diff --git a/docs/hardware/en/lichee/th1520/lpi4a/3_images.md b/docs/hardware/en/lichee/th1520/lpi4a/3_images.md index 88c788471e..f089655f5a 100644 --- a/docs/hardware/en/lichee/th1520/lpi4a/3_images.md +++ b/docs/hardware/en/lichee/th1520/lpi4a/3_images.md @@ -118,6 +118,34 @@ TODO ![android](./../../../../zh/lichee/th1520/lpi4a/assets/images/android.png) Readme and image download link: [Click me](https://gitee.com/thead-android/thead-android) +> The Android 13 SDK is still in its infancy, and the problems will be gradually fixed + +The precompiled image file of Android 13 is provided in the network disk download link of Sipeed official image, and the burning method after downloading is as follows. Please use the version downloaded from here for the fastboot tool: +https://developer.android.com/tools/releases/platform-tools + +There are also fastboot files in the network disk. + +```shell +#Burn uboot and initialize boot environment variables +fastboot flash ram u-boot-with-spl.bin +fastboot reboot +fastboot flash uboot u-boot-with-spl.bin + +#Burn all partitions +#In the non-boot burning mode, you can enter the command fastboot usb 0 in the uboot command line to burn the partition separately +fastboot flash bootpart bootpart.ext4 +fastboot flash boot boot.img +fastboot flash vendor_boot vendor_boot.img +fastboot flash super super.img +fastboot flash userdata userdata.img +fastboot flash vbmeta vbmeta.img +fastboot flash vbmeta_system vbmeta_system.img + +#Initialize metadata and misc partition +fastboot erase metadata +fastboot erase misc +``` + ## Third-party images The images provided by third parties are listed here for informational purposes only. Sipeed does not guarantee the availability and stability of these images. diff --git a/docs/hardware/en/lichee/th1520/lpi4a/5_desktop.md b/docs/hardware/en/lichee/th1520/lpi4a/5_desktop.md index 50ecb6a6cc..830a950fea 100644 --- a/docs/hardware/en/lichee/th1520/lpi4a/5_desktop.md +++ b/docs/hardware/en/lichee/th1520/lpi4a/5_desktop.md @@ -174,7 +174,7 @@ You can try the following command to fix it: ```shell sudo apt-key adv --keyserver keyring.debian.org --recv-keys 'Replace the key value after NO_PUBKEY in the error message here' # or -gpg --keyserver keyring.debian.org --recv-keys 'Replace the key value after NO_PUBKEY in the error message here' +gpg --keyserver keyserver.ubuntu.com --recv-keys 'Replace the key value after NO_PUBKEY in the error message here' ``` ## SSH @@ -245,6 +245,12 @@ The Chromium browser is built-in and is available by clicking the browser icon a ![browser_location](./../../../../zh/lichee/th1520/lpi4a/assets/desktop/browser_location.png) +> If the launch bar icon at the bottom of the desktop is displayed abnormally, you can try to use the following commands to fix it: +```shell +cp /etc/xdg/xfce4/panel/default.xml /home/sipeed/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml +chown sipeed:sipeed /home/sipeed/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml +``` + Use a search engine: ![browser_search_engine_use](./../../../../zh/lichee/th1520/lpi4a/assets/desktop/browser_search_engine_use.jpg) diff --git a/docs/hardware/en/lichee/th1520/lpi4a/6_peripheral.md b/docs/hardware/en/lichee/th1520/lpi4a/6_peripheral.md index f77b934f89..9f0eff2fc4 100644 --- a/docs/hardware/en/lichee/th1520/lpi4a/6_peripheral.md +++ b/docs/hardware/en/lichee/th1520/lpi4a/6_peripheral.md @@ -346,6 +346,59 @@ sudo apt-get install fswebcam fswebcam /dev/video0 image.jpg ``` +To allow the USB camera to automatically save images, a reference script is given below. The script uses the uvccapture tool, which makes it easy to adjust capture parameters as needed. + +Install this tool first +```shell +sudo apt install uvccapture +``` + +This tool supports various parameters, use `-x -y` to adjust the shooting resolution, `-B` to adjust the brightness, `-C` to adjust the contrast, `-S` to adjust the saturation, and `-o` to specify the shooting image storage Path, for specific use, refer to the following script code: +```shell +#!/bin/bash + +# Check if the interval time parameter is passed in +if [ -z "$1" ]; then + echo -e "The interval time parameter is not specified, and the default interval is 1 second" + interval=1 +else + interval=$1 +the fi + +# Check if the output file path parameter is passed in +if [ -z "$2" ]; then + echo -e "The output file path parameter is not specified, the default output is to the current directory" + output_file="$PWD" +else + output_file=$2 +the fi + +# Check whether the number of shots parameter is passed in +if [ -z "$3" ]; then + echo -e "The number of shots is not specified, the default is 10 shots" + num_executions=10 +else + num_executions=$3 +the fi + +echo -e "script started, press q to stop" + +for ((i = 1; i <= num_executions; i++)); do + echo -e "capture img $i" + uvccapture -x640 -y480 -m -o$output_file/$image$i.jpg +# Take pictures at specified time intervals +sleep $interval +# Press the q key to exit +read -t 1 -n 1 key +if [[ $key = "q" ]]; then +break +the fi +done + +echo -e "Script execution ended" +``` +The above script can also be operated with fswebcam, just make corresponding changes. + ### USB Sound Card TODO diff --git a/docs/hardware/en/lichee/th1520/lpi4a/7_develop_android.md b/docs/hardware/en/lichee/th1520/lpi4a/7_develop_android.md index 5d1dc173c4..63e055f84c 100644 --- a/docs/hardware/en/lichee/th1520/lpi4a/7_develop_android.md +++ b/docs/hardware/en/lichee/th1520/lpi4a/7_develop_android.md @@ -22,7 +22,7 @@ This project is a repository supported by the Android Open Source Project (AOSP) > Note that the project is still in the early stage, the current AOSP on Licheepi 4A is not stable and the functionality is not yet complete. A stable version with improved functionality will be updated later, so please keep an eye on this document for updates. -### 快速上手 +### Get Started Before downloading the source code of Android open source project , please check your working environment , it is recommended to use a Linux system with at least 250G free disk space , 16GB + RAM (Ubuntu 20.04 or later version is recommended ) of the working environment , compilation time and the number of processor cores of the host computer is related to the host computer , it is recommended to use a host computer with more cores . It is recommended to use a host with more cores. Due to the network, the download time may vary greatly depending on the network conditions, and it is recommended to use a proxy to download the source code. diff --git a/docs/hardware/en/lichee/th1520/lpi4a/8_application.md b/docs/hardware/en/lichee/th1520/lpi4a/8_application.md index a1f582d1a1..023730e304 100644 --- a/docs/hardware/en/lichee/th1520/lpi4a/8_application.md +++ b/docs/hardware/en/lichee/th1520/lpi4a/8_application.md @@ -93,7 +93,7 @@ At this point, the basic python environment has been created. Similar to other a The opencv installation will depend on other python packages, so if pip does not download them automatically, you can install the dependencies manually first. See [download riscv whl](https://www.yuque.com/za4k4z/uzn618/zsp0krgg9dlp0fhx) for more information on how to get the packages. -**获取 YOLOX 模型** +**Get YOLOX** [YOLOX](https://github.com/Megvii-BaseDetection/YOLOX) is a YOLO-like target detection model with quite excellent performance. The source code and model can be downloaded directly from github @@ -298,6 +298,187 @@ hello-world latest eb6f80695a28 2 months ago 4.98kB To experience a more complete image, go [here](https://hub.docker.com/) and search for the name of the distribution you want to use and pull it. +## K3s-RISCV + +This chapter will show how to run the lightweight Kubernetes distribution K3s on LPi4A. + +First download the precompiled K3s package: +https://github.com/CARV-ICS-FORTH/k3s/releases + +Then merge the downloaded packages into a `.gz` file and decompress it. After completion, add execution permission to k3s: +```shell +wget https://github.com/CARV-ICS-FORTH/k3s/releases/download/20230721/k3s-riscv64.gz.aa +wget https://github.com/CARV-ICS-FORTH/k3s/releases/download/20230721/k3s-riscv64.gz.ab +wget https://github.com/CARV-ICS-FORTH/k3s/releases/download/20230721/k3s-riscv64.gz.ac +# The following commands need root user to execute +sudo -i +cat k3s-riscv64.gz.* | gunzip > /usr/local/bin/k3s +chmod +x /usr/local/bin/k3s +exit +``` + +Verify whether it can run successfully. The typical output of a successful run is as follows: +```shell +sipeed@lpi4a:~$ k3s +NAME: + k3s-riscv64 - Kubernetes, but small and simple + +USAGE: + k3s-riscv64 [global options] command [command options] [arguments...] + +VERSION: + v1.27.3+k3s-9d376dfb-dirty (9d376dfb) + +COMMANDS: + server Run management server + agent Run node agent + kubectl Run kubectl + crictl Run crictl + ctr Run ctr + check-config Run config check + token Manage bootstrap tokens + etcd-snapshot + secrets-encrypt Control secrets encryption and keys rotation + certificate Manage K3s certificates + completion Install shell completion script + help, h Shows a list of commands or help for one command + +GLOBAL OPTIONS: + --debug (logging) Turn on debug logs [$K3S_DEBUG] + --data-dir value, -d value (data) Folder to hold state (default: /var/lib/r) + --help, -h show help + --version, -v print the version +``` + +Now, download and run the k3s install script: +```shell +curl -sfL https://get.k3s.io > k3s-install.sh +chmod +x k3s-install.sh +INSTALL_K3S_EXEC="server --disable metrics-server" INSTALL_K3S_SKIP_DOWNLOAD="true" bash -x ./k3s-install.sh +``` + +After running, use the following command to check whether k3s is running normally. Typical output is as follows: +```shell +sipeed@lpi4a:~$ systemctl status k3s +● k3s.service - Lightweight Kubernetes + Loaded: loaded (8;;file://lpi4a/etc/systemd/system/k3s.service/etc/systemd) + Active: active (running) since Mon 2023-07-31 06:48:34 UTC; 6s ago + Docs: 8;;https://k3s.iohttps://k3s.io8;; + Process: 3240 ExecStartPre=/bin/sh -xc ! /usr/bin/systemctl is-enabled --qu> + Process: 3242 ExecStartPre=/sbin/modprobe br_netfilter (code=exited, status> + Process: 3243 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SU> + Main PID: 3244 (k3s-server) + Tasks: 37 + Memory: 529.5M + CPU: 54.841s + CGroup: /system.slice/k3s.service + ├─3244 "/usr/local/bin/k3s server" + └─3361 "containerd +``` + +Next, we create a new configuration file to run the k3s container: +```shell +vi hello-lpi4a.yaml +``` + +The content of the file is as follows (refer to https://raw.githubusercontent.com/CARV-ICS-FORTH/kubernetes-riscv64/main/examples/hello-kubernetes.yaml): +```yaml +apiVersion: v1 +kind: Service +metadata: + name: hello +spec: + type: ClusterIP + ports: + - port: 8080 + selector: + app: hello +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: hello +spec: + replicas: 1 + selector: + matchLabels: + app: hello + template: + metadata: + labels: + app: hello + spec: + containers: + - name: hello-kubernetes + image: carvicsforth/hello-kubernetes:1.10.1 + env: + - name: MESSAGE + value: "Hello Lichee Pi 4A!" +``` + +Then start a container with this configuration file. A typical input is as follows: +```shell +sipeed@lpi4a:~$ sudo kubectl apply -f hello-lpi4a.yaml +service/hello created +deployment.apps/hello created +``` + +Then check the status of pods (if the IP address is not displayed in the output, you can wait a little longer and check again): +```shell +sipeed@lpi4a:~$ +NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES +hello-5b576d45d7-fdjgh 1/1 Running 0 16m 10.42.0.6 lpi4a +``` + +Next, use curl to test whether the k3s container runs successfully. The typical output is as follows: +```shell +sipeed@lpi4a:~$ curl 10.42.0.6:8080 + + + + Hello Kubernetes! + + + + + +
+ +
+
+ Hello Lichee Pi 4A! +
+
+ + + + + + + + + + + + + +
namespace:-
pod:hello-5b576d45d7-fdjgh
node:- (Linux 5.10.113-gfac22a756532)
+
+ +
+
+ + + +``` +So far, the k3s container has run successfully. + +The page shows as follows: + +![k3s_hello_world](./../../../../zh/lichee/th1520/lpi4a/assets/application/k3s_hello_world.png) + ## Minecraft Server Here we take `1.20.1` version as an example, LPi4A as Server and PC (Ubuntu 22.04) as Client. @@ -363,8 +544,11 @@ java -jar HMCL-3.5.5.jar ``` You can download ``1.20.1`` version directly in the launcher and configure the game account, then you can enter the game, after entering the game, enter the server IP (LPi4A's IP) to add the server to connect (make sure that the computer and LPi4A are under the same network), the effect is as follows: + ![mc_server_menu](./../../../../zh/lichee/th1520/lpi4a/assets/application/mc_server_menu.png) +![mc_server_use](./../../../../zh/lichee/th1520/lpi4a/assets/application/mc_server_use.png) + > Note that if you want to change back to the original version of the JDK, run: > ```shell. > sudo rm /usr/bin/java diff --git a/docs/hardware/en/sidebar.yaml b/docs/hardware/en/sidebar.yaml index 7e4450198d..883d70dd13 100644 --- a/docs/hardware/en/sidebar.yaml +++ b/docs/hardware/en/sidebar.yaml @@ -134,9 +134,10 @@ items: - label: revyos file: lichee/th1520/lpi4a/7_develop_revyos.md - label: Linux Mainline (Work in Progress) + - label: Android + file: lichee/th1520/lpi4a/7_develop_android.md - label: THead Yocto file: lichee/th1520/lpi4a/7_develop_thead.md - - label: Android (Work in Progress) - label: OpenHarmony (Work in Progress) - label: OpenWRT (Work in Progress) - label: Application(Building) diff --git a/docs/hardware/zh/lichee/th1520/lpi4a/3_images.md b/docs/hardware/zh/lichee/th1520/lpi4a/3_images.md index 9706528d7c..3d5d271544 100644 --- a/docs/hardware/zh/lichee/th1520/lpi4a/3_images.md +++ b/docs/hardware/zh/lichee/th1520/lpi4a/3_images.md @@ -98,6 +98,34 @@ TODO Readme and image download link: [Click me](https://gitee.com/thead-android/thead-android) +> 安卓13 SDK 仍处于初期状态,会逐步修复其中的问题 + +Sipeed 官方镜像的网盘下载链接中提供了 Android 13的预编译镜像文件,下载后烧录方式如下,fastboot工具请使用从这里下载的版本: +https://developer.android.com/tools/releases/platform-tools + +网盘中也有提供 fastboot 的文件 + +```shell +#烧录uboot并初始化boot环境变量 +fastboot flash ram u-boot-with-spl.bin +fastboot reboot +fastboot flash uboot u-boot-with-spl.bin + +#烧录各个分区 +#在非boot烧写模式,可以在uboot的命令行中输入命令fastboot usb 0,单独烧录分区 +fastboot flash bootpart bootpart.ext4 +fastboot flash boot boot.img +fastboot flash vendor_boot vendor_boot.img +fastboot flash super super.img +fastboot flash userdata userdata.img +fastboot flash vbmeta vbmeta.img +fastboot flash vbmeta_system vbmeta_system.img + +#初始化metadata和misc分区 +fastboot erase metadata +fastboot erase misc +``` + ## 第三方镜像 这里整理了第三方提供的镜像,仅供用户体验,sipeed 不保证此类镜像的可用性,稳定性。 diff --git a/docs/hardware/zh/lichee/th1520/lpi4a/5_desktop.md b/docs/hardware/zh/lichee/th1520/lpi4a/5_desktop.md index 97cc4a90e9..ba03d78ae1 100644 --- a/docs/hardware/zh/lichee/th1520/lpi4a/5_desktop.md +++ b/docs/hardware/zh/lichee/th1520/lpi4a/5_desktop.md @@ -175,7 +175,7 @@ W: GPG error: http://archive.ubuntu.com trusty-updates Release: The following si ``` 可以尝试用下列命令修复: ```shell -sudo apt-key adv --keyserver keyring.debian.org --recv-keys '替换成报错中的NO_PUBKEY 后面的key值' +sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys '替换成报错中的NO_PUBKEY 后面的key值' # 或使用 gpg --keyserver keyring.debian.org --recv-keys '替换成报错中的NO_PUBKEY 后面的key值' ``` @@ -249,7 +249,11 @@ LibreOffice Writer 即 WORD 功能: ![browser_location](./assets/desktop/browser_location.png) -> +> 若桌面下方启动栏图标显示异常,可以尝试使用以下命令修复: +```shell +cp /etc/xdg/xfce4/panel/default.xml /home/sipeed/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml +chown sipeed:sipeed /home/sipeed/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml +``` 使用搜索引擎: diff --git a/docs/hardware/zh/lichee/th1520/lpi4a/6_peripheral.md b/docs/hardware/zh/lichee/th1520/lpi4a/6_peripheral.md index 42844dccf0..4c0329653e 100644 --- a/docs/hardware/zh/lichee/th1520/lpi4a/6_peripheral.md +++ b/docs/hardware/zh/lichee/th1520/lpi4a/6_peripheral.md @@ -345,6 +345,59 @@ sudo apt-get install fswebcam fswebcam /dev/video0 image.jpg ``` +若要让 USB 摄像头自动存图,以下给出一个参考脚本。该脚本使用 uvccapture 工具,可以方便地根据需要调整拍摄参数。 + +首先安装这个工具 +```shell +sudo apt install uvccapture +``` + +这个工具支持各种参数,使用 `-x -y` 调整拍摄分辨率,`-B`调整亮度,`-C`调整对比度,`-S`调整饱和度,`-o`可以指定拍摄图像存储路径,具体使用参考下面的脚本代码: +```shell +#!/bin/bash + +# 检查是否传入了间隔时间参数 +if [ -z "$1" ]; then + echo -e "未指定间隔时间参数,默认使用1秒间隔" + interval=1 +else + interval=$1 +fi + +# 检查是否传入了输出文件路径参数 +if [ -z "$2" ]; then + echo -e "未指定输出文件路径参数,默认输出到当前目录下" + output_file="$PWD" +else + output_file=$2 +fi + +# 检查是否传入了拍摄次数参数 +if [ -z "$3" ]; then + echo -e "未指定拍摄次数,默认拍摄10张" + num_executions=10 +else + num_executions=$3 +fi + +echo -e "脚本开始执行,按下q键停止" + +for ((i = 1; i <= num_executions; i++)); do + echo -e "capture img $i" + uvccapture -x640 -y480 -m -o$output_file/$image$i.jpg + # 间隔指定时间再拍照 + sleep $interval + # 按下q键退出 + read -t 1 -n 1 key + if [[ $key = "q" ]]; then + break + fi +done + +echo -e "脚本执行结束" +``` +上述脚本中也可以使用 fswebcam 来操作,做相应更改即可。 + ### USB 声卡 TODO diff --git a/docs/hardware/zh/lichee/th1520/lpi4a/8_application.md b/docs/hardware/zh/lichee/th1520/lpi4a/8_application.md index f37d856932..518ab5a45a 100644 --- a/docs/hardware/zh/lichee/th1520/lpi4a/8_application.md +++ b/docs/hardware/zh/lichee/th1520/lpi4a/8_application.md @@ -299,6 +299,236 @@ hello-world latest eb6f80695a28 2 months ago 4.98kB 若要体验更完整的镜像,去[这里](https://hub.docker.com/)搜索想要使用的发行版名称,拉取即可。 +## K3s-RISCV + +该章节将展示如何在 LPi4A 上运行轻量级的 Kubernetes 发行版本 K3s。 + +先下载预编译的 K3s包: +https://github.com/CARV-ICS-FORTH/k3s/releases + +然后将下载下来的包合并为一个 `.gz` 文件并解压,完成后给 k3s 添加执行权限: +```shell +wget https://github.com/CARV-ICS-FORTH/k3s/releases/download/20230721/k3s-riscv64.gz.aa +wget https://github.com/CARV-ICS-FORTH/k3s/releases/download/20230721/k3s-riscv64.gz.ab +wget https://github.com/CARV-ICS-FORTH/k3s/releases/download/20230721/k3s-riscv64.gz.ac +# 下面的命令需要root用户来执行 +sudo -i +cat k3s-riscv64.gz.* | gunzip > /usr/local/bin/k3s +chmod +x /usr/local/bin/k3s +exit +``` + +验证是否能成功运行,成功运行的典型输出如下: +```shell +sipeed@lpi4a:~$ k3s +NAME: + k3s-riscv64 - Kubernetes, but small and simple + +USAGE: + k3s-riscv64 [global options] command [command options] [arguments...] + +VERSION: + v1.27.3+k3s-9d376dfb-dirty (9d376dfb) + +COMMANDS: + server Run management server + agent Run node agent + kubectl Run kubectl + crictl Run crictl + ctr Run ctr + check-config Run config check + token Manage bootstrap tokens + etcd-snapshot + secrets-encrypt Control secrets encryption and keys rotation + certificate Manage K3s certificates + completion Install shell completion script + help, h Shows a list of commands or help for one command + +GLOBAL OPTIONS: + --debug (logging) Turn on debug logs [$K3S_DEBUG] + --data-dir value, -d value (data) Folder to hold state (default: /var/lib/r) + --help, -h show help + --version, -v print the version +``` + +现在,下载并运行 k3s 的安装脚本: +```shell +curl -sfL https://get.k3s.io > k3s-install.sh +chmod +x k3s-install.sh +INSTALL_K3S_EXEC="server --disable metrics-server" INSTALL_K3S_SKIP_DOWNLOAD="true" bash -x ./k3s-install.sh +``` + +运行完成后,使用如下命令检查 k3s 是否正常运行。典型输出如下: +```shell +sipeed@lpi4a:~$ systemctl status k3s +● k3s.service - Lightweight Kubernetes + Loaded: loaded (8;;file://lpi4a/etc/systemd/system/k3s.service/etc/systemd) + Active: active (running) since Mon 2023-07-31 06:48:34 UTC; 6s ago + Docs: 8;;https://k3s.iohttps://k3s.io8;; + Process: 3240 ExecStartPre=/bin/sh -xc ! /usr/bin/systemctl is-enabled --qu> + Process: 3242 ExecStartPre=/sbin/modprobe br_netfilter (code=exited, status> + Process: 3243 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SU> + Main PID: 3244 (k3s-server) + Tasks: 37 + Memory: 529.5M + CPU: 54.841s + CGroup: /system.slice/k3s.service + ├─3244 "/usr/local/bin/k3s server" + └─3361 "containerd +``` + +接下来我们新建一个配置文件,运行 k3s 容器: +```shell +vi hello-lpi4a.yaml +``` + +文件内容如下(参考https://raw.githubusercontent.com/CARV-ICS-FORTH/kubernetes-riscv64/main/examples/hello-kubernetes.yaml): +```yaml +apiVersion: v1 +kind: Service +metadata: + name: hello +spec: + type: ClusterIP + ports: + - port: 8080 + selector: + app: hello +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: hello +spec: + replicas: 1 + selector: + matchLabels: + app: hello + template: + metadata: + labels: + app: hello + spec: + containers: + - name: hello-kubernetes + image: carvicsforth/hello-kubernetes:1.10.1 + env: + - name: MESSAGE + value: "Hello Lichee Pi 4A!" +``` + +然后使用这个配置文件启动一个容器。典型输入如下: +```shell +sipeed@lpi4a:~$ sudo kubectl apply -f hello-lpi4a.yaml +service/hello created +deployment.apps/hello created +``` + +然后查看 pods 情况(若输出中没显示 IP 地址,可以多等待一会儿再查看): +```shell +sipeed@lpi4a:~$ +NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES +hello-5b576d45d7-fdjgh 1/1 Running 0 16m 10.42.0.6 lpi4a +``` + +接下来使用 curl 测试 k3s 容器是否运行成功,典型输出如下: +```shell +sipeed@lpi4a:~$ curl 10.42.0.6:8080 + + + + Hello Kubernetes! + + + + + +
+ +
+
+ Hello Lichee Pi 4A! +
+
+ + + + + + + + + + + + + +
namespace:-
pod:hello-5b576d45d7-fdjgh
node:- (Linux 5.10.113-gfac22a756532)
+
+ +
+
+ + + +``` +至此,k3s容器已经运行成功。 + +页面效果如下: + +![k3s_hello_world](./assets/application/k3s_hello_world.png) + + + + ## Minecraft Server 这里以`1.20.1`版本为例,LPi4A 作为 Server,电脑端(Ubuntu 22.04)作为 Client。 @@ -364,8 +594,11 @@ java -jar HMCL-3.5.5.jar ``` 可以直接在启动器中下载`1.20.1`版本,并且配置好游戏账户,然后即可进入游戏,进入游戏后,输入 服务器 IP(LPi4A 的 IP)添加服务器后即可连接(确保电脑和 LPi4A 处于同一网络下),效果如下: + ![mc_server_menu](./assets/application/mc_server_menu.png) +![mc_server_use](./assets/application/mc_server_use.png) + > 注意,若想改回原来版本的 JDK,则执行: > ```shell > sudo rm /usr/bin/java diff --git a/docs/hardware/zh/lichee/th1520/lpi4a/assets/application/k3s_hello_world.png b/docs/hardware/zh/lichee/th1520/lpi4a/assets/application/k3s_hello_world.png new file mode 100644 index 0000000000..782e9e9c24 Binary files /dev/null and b/docs/hardware/zh/lichee/th1520/lpi4a/assets/application/k3s_hello_world.png differ diff --git a/docs/hardware/zh/lichee/th1520/lpi4a/assets/application/mc_server_use.png b/docs/hardware/zh/lichee/th1520/lpi4a/assets/application/mc_server_use.png new file mode 100644 index 0000000000..41699694ae Binary files /dev/null and b/docs/hardware/zh/lichee/th1520/lpi4a/assets/application/mc_server_use.png differ diff --git a/docs/hardware/zh/sidebar.yaml b/docs/hardware/zh/sidebar.yaml index 45524e98e9..c51900986e 100644 --- a/docs/hardware/zh/sidebar.yaml +++ b/docs/hardware/zh/sidebar.yaml @@ -136,10 +136,10 @@ items: file: lichee/th1520/lpi4a/7_develop_revyos.md - label: Linux 主线 (编写中) # file: + - label: Android + file: lichee/th1520/lpi4a/7_develop_android.md - label: THead Yocto file: lichee/th1520/lpi4a/7_develop_thead.md - - label: Android (编写中) - # file: - label: OpenHarmony (编写中) # file: - label: OpenWRT (编写中)