20241125编译友善之臂的NanoPi R3S开发板【RK3566】STEP-BY-STEP版本
2024/11/25 15:59
20241125编译友善之臂的NanoPi R3S开发板【RK3566】精简步骤
2024/11/25 19:37
viewpro@viewpro-ThinkBook-16-G5-IRH:~$
viewpro@viewpro-ThinkBook-16-G5-IRH:~$ df -h
viewpro@viewpro-ThinkBook-16-G5-IRH:~$ ll *.tar
viewpro@viewpro-ThinkBook-16-G5-IRH:~$ tar xvf buildroot-rk3566-20241007.tar
viewpro@viewpro-ThinkBook-16-G5-IRH:~$ cd buildroot-rk3566/
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ .repo/repo/repo sync -l
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ ll
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ cd pre-download
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$ ll
【如果可以上github,这一步可以不执行的!^_主要是解压缩文件系统和以太网卡/WIFI的驱动程序。】
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$ ./unpack.sh
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$ cd ..
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ ./build.sh init
no .current_config.mk, please select a board first.
# select board:
./build.sh rk3566.mk
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
【可选操作,由于Rockchip的包管理策略变化,所有的包放在目录里,友善之臂的魔改SDK自带的裸露在dl中的包无效/过时了。】
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ cd buildroot/
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$ rm dl -rf
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$ mv dl dl2
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$ cd ..
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ ./build.sh rk3566.mk
【请输入su的密码】
Re-running script under sudo...
[sudo] password for viewpro:
using config /home/viewpro/buildroot-rk3566/device/friendlyelec/rk3566/rk3566.mk
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ find . -name *.img
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ sudo find . -name *.img
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ sudo find . -type f -size +800M
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ sudo find . -type f -size +500M
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ ./build.sh init
Can't find a build config file, please check again
USAGE: ./build.sh <parameter>
# select board:
./build.sh rk3566.mk
# build module:
./build.sh all -build all
./build.sh uboot -build uboot only
./build.sh kernel -build kernel only
./build.sh buildroot -build buildroot rootfs only
./build.sh sd-img -pack sd-card image, used to create bootable SD card
./build.sh emmc-img -pack sd-card image, used to write buildroot to emmc
# clean
./build.sh clean -remove old images
./build.sh cleanall
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ ./build.sh emmc-img
【可选操作,备份友善之臂的NanoPi R3S开发板/RK3566的Buildroot的SDK的dl,以便下次从头编译的时候节省下载时间!】
【下载可能会高达1-2小时,并且都是从外网下载。最终能否下载完成看人品!】
viewpro@viewpro-ThinkBook-16-G5-IRH:~$
viewpro@viewpro-ThinkBook-16-G5-IRH:~$ cd buildroot-rk3566/
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$ du -sh dl
721M dl
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$ tar zcvf dl1903.tar.gz dl/
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$ time tar --use-compress-program=pigz -cvpf dl1904.tgz dl/
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$ cd ..
最详细的LOG:
viewpro@viewpro-ThinkBook-16-G5-IRH:~$
viewpro@viewpro-ThinkBook-16-G5-IRH:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 7.7G 0 7.7G 0% /dev
tmpfs 1.6G 4.4M 1.6G 1% /run
/dev/nvme0n1p2 938G 603G 287G 68% /
tmpfs 7.7G 0 7.7G 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 7.7G 0 7.7G 0% /sys/fs/cgroup
/dev/loop0 64M 64M 0 100% /snap/core20/2379
/dev/loop3 39M 39M 0 100% /snap/snapd/21759
/dev/loop2 13M 13M 0 100% /snap/snap-store/1113
/dev/loop1 75M 75M 0 100% /snap/core22/1621
/dev/loop4 45M 45M 0 100% /snap/snapd/22991
/dev/loop5 13M 13M 0 100% /snap/snap-store/1216
/dev/loop7 74M 74M 0 100% /snap/core22/1663
/dev/loop6 347M 347M 0 100% /snap/gnome-3-38-2004/119
/dev/loop10 497M 497M 0 100% /snap/gnome-42-2204/141
/dev/loop11 350M 350M 0 100% /snap/gnome-3-38-2004/143
/dev/loop13 128K 128K 0 100% /snap/bare/5
/dev/loop12 64M 64M 0 100% /snap/core20/2434
/dev/loop9 92M 92M 0 100% /snap/gtk-common-themes/1535
/dev/loop8 506M 506M 0 100% /snap/gnome-42-2204/176
/dev/nvme0n1p1 511M 15M 497M 3% /boot/efi
tmpfs 1.6G 16K 1.6G 1% /run/user/126
tmpfs 1.6G 36K 1.6G 1% /run/user/1000
viewpro@viewpro-ThinkBook-16-G5-IRH:~$
viewpro@viewpro-ThinkBook-16-G5-IRH:~$
viewpro@viewpro-ThinkBook-16-G5-IRH:~$ ll *.tar
-rwx------ 1 viewpro viewpro 14312161280 11月 20 15:18 buildroot-rk3566-20241007.tar*
viewpro@viewpro-ThinkBook-16-G5-IRH:~$
viewpro@viewpro-ThinkBook-16-G5-IRH:~$
viewpro@viewpro-ThinkBook-16-G5-IRH:~$ tar xvf buildroot-rk3566-20241007.tar
buildroot-rk3566/
【一分钟内】
viewpro@viewpro-ThinkBook-16-G5-IRH:~$
viewpro@viewpro-ThinkBook-16-G5-IRH:~$ cd buildroot-rk3566/
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ ll
total 24
drwxrwxr-x 4 viewpro viewpro 4096 10月 7 11:45 ./
drwxr-xr-x 47 viewpro viewpro 12288 11月 25 16:02 ../
lrwxrwxrwx 1 viewpro viewpro 26 10月 7 11:44 .current -> device/friendlyelec/rk3566
drwxrwxr-x 2 viewpro viewpro 4096 10月 7 11:45 pre-download/
drwxrwxr-x 7 viewpro viewpro 4096 10月 7 11:44 .repo/
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ .repo/repo/repo sync -l
Updating files: 100% (354/354), done.g files: 27% (96/354)
Updating files: 100% (279/279), done.g files: 86% (241/279)
Updating files: 100% (21245/21245), done.les: 17% (3718/21245)
Updating files: 100% (1418/1418), done.files: 4% (65/1418)
Updating files: 100% (1178/1178), done.files: 24% (292/1178)
Updating files: 100% (83001/83001), done.iles: 27% (22576/83001)
Syncing work tree: 100% (15/15), done.
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ ll
total 60
drwxrwxr-x 13 viewpro viewpro 4096 11月 25 16:16 ./
drwxr-xr-x 47 viewpro viewpro 12288 11月 25 16:02 ../
drwxrwxr-x 5 viewpro viewpro 4096 11月 25 16:15 app/
drwxrwxr-x 18 viewpro viewpro 4096 11月 25 16:15 buildroot/
lrwxrwxrwx 1 viewpro viewpro 16 11月 25 16:15 build.sh -> scripts/build.sh*
lrwxrwxrwx 1 viewpro viewpro 26 10月 7 11:44 .current -> device/friendlyelec/rk3566/
drwxrwxr-x 4 viewpro viewpro 4096 11月 25 16:15 device/
drwxrwxr-x 30 viewpro viewpro 4096 11月 25 16:15 external/
drwxrwxr-x 28 viewpro viewpro 4096 11月 25 16:15 kernel/
lrwxrwxrwx 1 viewpro viewpro 19 11月 25 16:16 out -> scripts/sd-fuse/out/
drwxrwxr-x 2 viewpro viewpro 4096 10月 7 11:45 pre-download/
drwxrwxr-x 7 viewpro viewpro 4096 10月 7 11:44 .repo/
drwxrwxr-x 10 viewpro viewpro 4096 11月 25 16:15 rkbin/
drwxrwxr-x 4 viewpro viewpro 4096 11月 25 16:15 scripts/
drwxrwxr-x 5 viewpro viewpro 4096 11月 25 16:16 toolchain/
drwxrwxr-x 25 viewpro viewpro 4096 11月 25 16:16 u-boot/
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$ ^C
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$ ll
total 314660
drwxrwxr-x 2 viewpro viewpro 4096 10??? 7 11:45 ./
drwxrwxr-x 13 viewpro viewpro 4096 11??? 25 16:16 ../
-rw-r--r-- 1 viewpro viewpro 280249569 10??? 7 11:45 eflasher.tgz
-rw-rw-r-- 1 viewpro viewpro 41946789 10??? 7 11:45 kernel-3rd-drivers.tgz
-rwxr-xr-x 1 viewpro viewpro 223 10??? 7 11:45 unpack.sh*
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$ cat unpack.sh
#!/bin/bash
set -eu
if [ ! -d ../kernel ]; then
echo "Please run \"repo sync -l\" first."
exit 1
fi
tar xzf eflasher.tgz -C ../scripts/sd-fuse/
tar xzf kernel-3rd-drivers.tgz -C ../scripts/sd-fuse/out/
echo "done."
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$ tar zxvf eflasher.tgz
eflasher/
eflasher/rootfs.img
eflasher/dtbo.img
eflasher/info.conf
eflasher/kernel.img
eflasher/uboot.img
eflasher/MiniLoaderAll.bin
eflasher/resource.img
eflasher/boot.img
eflasher/parameter.txt
eflasher/misc.img
eflasher/idbloader.img
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$ tar zxvf kernel-3rd-drivers.tgz
cryptodev-linux/
cryptodev-linux/cryptlib.h
cryptodev-linux/util.c
cryptodev-linux/lib/
cryptodev-linux/lib/hash.h
cryptodev-linux/lib/benchmark.c
cryptodev-linux/lib/main.c
cryptodev-linux/lib/threshold.c
cryptodev-linux/lib/hash.c
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$ ll
total 314696
drwxrwxr-x 11 viewpro viewpro 4096 11??? 25 16:25 ./
drwxrwxr-x 13 viewpro viewpro 4096 11??? 25 16:16 ../
drwxrwxr-x 7 viewpro viewpro 4096 8??? 9 14:21 cryptodev-linux/
drwxr-xr-x 2 viewpro viewpro 4096 10??? 5 21:48 eflasher/
-rw-r--r-- 1 viewpro viewpro 280249569 10??? 7 11:45 eflasher.tgz
-rw-rw-r-- 1 viewpro viewpro 41946789 10??? 7 11:45 kernel-3rd-drivers.tgz
drwxrwxr-x 4 viewpro viewpro 4096 8??? 9 14:21 nft-fullcone/
drwxrwxr-x 3 viewpro viewpro 4096 8??? 9 14:21 r8125/
drwxrwxr-x 8 viewpro viewpro 4096 8??? 9 14:21 rtl8812au/
drwxrwxr-x 9 viewpro viewpro 4096 8??? 9 14:21 rtl8821CU/
drwxrwxr-x 8 viewpro viewpro 4096 8??? 9 14:21 rtl8822bu/
drwxrwxr-x 8 viewpro viewpro 4096 8??? 9 14:21 rtl8822cs/
drwxrwxr-x 4 viewpro viewpro 4096 8??? 9 14:21 rtw88/
-rwxr-xr-x 1 viewpro viewpro 223 10??? 7 11:45 unpack.sh*
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$ ./unpack.sh
done.
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/pre-download$ cd ..
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ ll
total 60
drwxrwxr-x 13 viewpro viewpro 4096 11??? 25 16:16 ./
drwxr-xr-x 47 viewpro viewpro 12288 11??? 25 16:30 ../
drwxrwxr-x 5 viewpro viewpro 4096 11??? 25 16:15 app/
drwxrwxr-x 18 viewpro viewpro 4096 11??? 25 16:15 buildroot/
lrwxrwxrwx 1 viewpro viewpro 16 11??? 25 16:15 build.sh -> scripts/build.sh*
lrwxrwxrwx 1 viewpro viewpro 26 10??? 7 11:44 .current -> device/friendlyelec/rk3566/
drwxrwxr-x 4 viewpro viewpro 4096 11??? 25 16:15 device/
drwxrwxr-x 30 viewpro viewpro 4096 11??? 25 16:15 external/
drwxrwxr-x 28 viewpro viewpro 4096 11??? 25 16:15 kernel/
lrwxrwxrwx 1 viewpro viewpro 19 11??? 25 16:16 out -> scripts/sd-fuse/out/
drwxrwxr-x 11 viewpro viewpro 4096 11??? 25 16:25 pre-download/
drwxrwxr-x 7 viewpro viewpro 4096 10??? 7 11:44 .repo/
drwxrwxr-x 10 viewpro viewpro 4096 11??? 25 16:15 rkbin/
drwxrwxr-x 4 viewpro viewpro 4096 11??? 25 16:15 scripts/
drwxrwxr-x 5 viewpro viewpro 4096 11??? 25 16:16 toolchain/
drwxrwxr-x 25 viewpro viewpro 4096 11??? 25 16:16 u-boot/
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ ./build.sh init
no .current_config.mk, please select a board first.
# select board:
./build.sh rk3566.mk
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ ./build.sh --help
no .current_config.mk, please select a board first.
# select board:
./build.sh rk3566.mk
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ ./build.sh rk3566.mk
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ ./build.sh rk3566.mk^C
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ cd buildroot/
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$ ll
total 952
drwxrwxr-x 18 viewpro viewpro 4096 11??? 25 16:15 ./
drwxrwxr-x 13 viewpro viewpro 4096 11??? 25 16:16 ../
drwxrwxr-x 2 viewpro viewpro 4096 11??? 25 16:15 arch/
drwxrwxr-x 2 viewpro viewpro 4096 11??? 25 16:15 archives/
drwxrwxr-x 75 viewpro viewpro 4096 11??? 25 16:15 board/
drwxrwxr-x 26 viewpro viewpro 4096 11??? 25 16:15 boot/
-rw-rw-r-- 1 viewpro viewpro 454027 11??? 25 16:15 CHANGES
-rw-rw-r-- 1 viewpro viewpro 29466 11??? 25 16:15 Config.in
-rw-rw-r-- 1 viewpro viewpro 135649 11??? 25 16:15 Config.in.legacy
drwxrwxr-x 3 viewpro viewpro 20480 11??? 25 16:15 configs/
-rw-rw-r-- 1 viewpro viewpro 18767 11??? 25 16:15 COPYING
-rw-rw-r-- 1 viewpro viewpro 1198 11??? 25 16:15 .defconfig
-rw-rw-r-- 1 viewpro viewpro 72437 11??? 25 16:15 DEVELOPERS
drwxrwxr-x 3 viewpro viewpro 20480 11??? 25 16:15 dl/
drwxrwxr-x 5 viewpro viewpro 4096 11??? 25 16:15 docs/
lrwxrwxrwx 1 viewpro viewpro 19 11??? 25 16:15 envsetup.sh -> scripts/envsetup.sh*
-rw-rw-r-- 1 viewpro viewpro 96 11??? 25 16:15 .flake8
drwxrwxr-x 20 viewpro viewpro 4096 11??? 25 16:15 fs/
drwxrwxr-x 2 viewpro viewpro 4096 11??? 25 16:15 .git/
-rw-rw-r-- 1 viewpro viewpro 125 11??? 25 16:15 .gitignore
-rw-rw-r-- 1 viewpro viewpro 721 11??? 25 16:15 .gitlab-ci.yml
drwxrwxr-x 3 viewpro viewpro 4096 11??? 25 16:15 linux/
-rw-rw-r-- 1 viewpro viewpro 47147 11??? 25 16:15 Makefile
-rw-rw-r-- 1 viewpro viewpro 2292 11??? 25 16:15 Makefile.legacy
drwxrwxr-x 2602 viewpro viewpro 69632 11??? 25 16:15 package/
-rw-rw-r-- 1 viewpro viewpro 1075 11??? 25 16:15 README
-rw-rw-r-- 1 viewpro viewpro 721 11??? 25 16:15 README.rockchip
drwxrwxr-x 2 viewpro viewpro 4096 11??? 25 16:15 scripts/
drwxrwxr-x 13 viewpro viewpro 4096 11??? 25 16:15 support/
drwxrwxr-x 3 viewpro viewpro 4096 11??? 25 16:15 system/
drwxrwxr-x 5 viewpro viewpro 4096 11??? 25 16:15 toolchain/
drwxrwxr-x 3 viewpro viewpro 4096 11??? 25 16:15 utils/
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$ mv dl dl2
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$
Number of gids 4
root (0)
viewpro (1000)
unknown (1001)
www-data (33)
>>> Generating filesystem image rootfs.tar
mkdir -p /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/images
rm -rf /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/tar
mkdir -p /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/tar
rsync -auH --exclude=/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/target/ /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/tar/target
echo '#!/bin/sh' > /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/tar/fakeroot
echo "set -e" >> /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/tar/fakeroot
echo "chown -h -R 0:0 /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/tar/target" >> /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/tar/fakeroot
PATH="/home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/host/bin:/home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/host/sbin:/home/viewpro/.local/bin:/usr/lib/jvm/jdk1.6.0_45/bin:/opt/FriendlyARM/toolchain/4.9.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" /home/viewpro/buildroot-rk3566/buildroot/support/scripts/mkusers /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/full_users_table.txt /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/tar/target >> /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/tar/fakeroot
echo "/home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/host/bin/makedevs -d /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/full_devices_table.txt /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/tar/target" >> /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/tar/fakeroot
printf ' rm -rf /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/tar/target//etc/udev/hwdb.d/\n' >> /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/tar/fakeroot
printf ' \n' >> /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/tar/fakeroot
printf ' \n' >> /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/tar/fakeroot
printf ' (cd /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/tar/target; find -print0 | LC_ALL=C sort -z | tar --pax-option=exthdr.name=%%d/PaxHeaders/%%f,atime:=0,ctime:=0 -cf /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/images/rootfs.tar --null --xattrs-include='\''*'\'' --no-recursion -T - --numeric-owner)\n' >> /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/tar/fakeroot
chmod a+x /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/tar/fakeroot
PATH="/home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/host/bin:/home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/host/sbin:/home/viewpro/.local/bin:/usr/lib/jvm/jdk1.6.0_45/bin:/opt/FriendlyARM/toolchain/4.9.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" FAKEROOTDONTTRYCHOWN=1 /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/host/bin/fakeroot -- /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/tar/fakeroot
rootdir=/home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/tar/target
table='/home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/build/buildroot-fs/full_devices_table.txt'
PATH="/home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/host/bin:/home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/host/sbin:/home/viewpro/.local/bin:/usr/lib/jvm/jdk1.6.0_45/bin:/opt/FriendlyARM/toolchain/4.9.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" xz -9 -C crc32 -c -T 21 /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/images/rootfs.tar > /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/images/rootfs.tar.xz
ln -snf /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/host/aarch64-buildroot-linux-gnu/sysroot /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/staging
====Building buildroot ok!====
Re-running script under sudo...
[sudo] password for viewpro:
using config /home/viewpro/buildroot-rk3566/device/friendlyelec/rk3566/rk3566.mk
============Start building uboot============
SRC = /home/viewpro/buildroot-rk3566/u-boot
TARGET_ARCH = arm64
TARGET_PLAT = rk3566
TARGET_UBOOT_CONFIG=nanopi_r3_defconfig
TARGET_OSNAME = buildroot
=========================================
CLEAN dts/../arch/arm/dts
CLEAN dts
CLEAN examples/standalone
CLEAN tools
CLEAN tools/lib tools/common
CLEAN spl/arch spl/board spl/cmd spl/common spl/disk spl/drivers spl/dts spl/env spl/fs spl/lib spl/u-boot.cfg spl/u-boot-spl spl/u-boot-spl.bin spl/u-boot-spl.dtb spl/u-boot-spl-dtb.bin spl/u-boot-spl.lds spl/u-boot-spl.map spl/u-boot-spl-nodtb.bin spl/u-boot-spl.sym tpl/arch tpl/board tpl/common tpl/disk tpl/drivers tpl/dts tpl/fs tpl/u-boot.cfg tpl/u-boot-spl.lds tpl/u-boot-tpl tpl/u-boot-tpl.bin tpl/u-boot-tpl.map tpl/u-boot-tpl-nodtb.bin tpl/u-boot-tpl.sym
CLEAN u-boot-nodtb.bin.digest u-boot.lds u-boot.dtb u-boot-nodtb.bin.gz u-boot.map u-boot-nodtb.bin u-boot.srec u-boot.cfg u-boot.bin u-boot-dtb.bin u-boot u-boot.sym u-boot.cfg.configs System.map bl31_0xfdcd0000.bin bl31_0x00040000.bin u-boot-nodtb.bin bl31_0xfdcc1000.bin tee.bin bl31_0x0006b000.bin bl31_0x00069000.bin u-boot.bin u-boot-dtb.bin bl31_0xfdcce000.bin rk356x_spl_loader_v1.22.114.bin uboot.img bl31_0x00040000.bin.gz u-boot-nodtb.bin.gz tee.bin.gz
CLEAN scripts/basic
CLEAN scripts/dtc
CLEAN scripts/kconfig
CLEAN include/config include/generated spl tpl
CLEAN .config include/autoconf.mk include/autoconf.mk.dep include/config.h
grep: .config: No such file or directory
grep: .config: No such file or directory
## make nanopi_r3_defconfig -j40
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2468:
scripts/kconfig/confdata.c: In function a??conf_writea??:
scripts/kconfig/confdata.c:771:19: warning: a??%sa?? directive writing likely 7 or more bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
771 | sprintf(newname, "%s%s", dirname, basename);
| ^~~~~~
scripts/kconfig/confdata.c:771:19: note: assuming directive output of 7 bytes
In file included from /usr/include/stdio.h:867,
from scripts/kconfig/zconf.tab.c:82:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: a??__builtin___sprintf_chka?? output 1 or more bytes (assuming 4104) into a destination of size 4097
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from scripts/kconfig/zconf.tab.c:2468:
scripts/kconfig/confdata.c:774:20: warning: a??.tmpconfig.a?? directive writing 11 bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
774 | sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid());
| ^~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from scripts/kconfig/zconf.tab.c:82:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: a??__builtin___sprintf_chka?? output between 13 and 4119 bytes into a destination of size 4097
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config.h
UPD include/config.h
CFG u-boot.cfg
GEN include/autoconf.mk.dep
CFG spl/u-boot.cfg
[INFO]: Applying device/friendlyelec/rk3566/r8168 to /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.REAppMZM0
[INFO]: Applying device/friendlyelec/alsa-config to /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.REAppMZM0
[INFO]: Applying device/friendlyelec/usbdevice-wrapper to /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.REAppMZM0
[INFO]: prepare boot.img ...
mke2fs 1.45.4 (23-Sep-2019)
Creating regular file ./buildroot/boot.img
Creating filesystem with 16384 4k blocks and 144 inodes
Allocating group tables: done
Writing inode tables: done
Creating journal (1024 blocks): done
Copying files into the device: done
Writing superblocks and filesystem accounting information: done
generating ./buildroot/boot.img done.
[INFO]: prepare rootfs.img ...
mke2fs 1.45.4 (23-Sep-2019)
Creating regular file buildroot/rootfs.img
Creating filesystem with 278528 4k blocks and 9360 inodes
Filesystem UUID: f0c749e5-d72f-4b3b-9c57-16a2af02253f
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Copying files into the device: done
Writing superblocks and filesystem accounting information: done
'/home/viewpro/buildroot-rk3566/scripts/sd-fuse/prebuilt/parameter.template' -> 'buildroot/parameter.txt'
generating buildroot/parameter.txt done.
0
generating buildroot/rootfs.img done.
0
Generating empty userdata.img (size:209715200)
mke2fs 1.45.4 (23-Sep-2019)
Creating regular file ./buildroot/userdata.img
Creating filesystem with 51200 4k blocks and 12800 inodes
Filesystem UUID: 6157aa6a-d8c7-4d22-bca0-30212c5e82d4
Superblock backups stored on blocks:
32768
Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Copying files into the device: done
Writing superblocks and filesystem accounting information: done
-----------------------------------------
rootfs dir:
/home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.REAppMZM0
boot dir:
/home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/boot.oGeWhbAaG
-----------------------------------------
Creating RAW image: out/buildroot_20241125_rk3566_arm64_sd.img (7800 MB)
---------------------------------
0+0 records in
0+0 records out
0 bytes copied, 0.000100362 s, 0.0 kB/s
----------------------------------------------------------------
[out/buildroot_20241125_rk3566_arm64_sd.img] capacity = 7438MB, 7799999488 bytes
current out/buildroot_20241125_rk3566_arm64_sd.img partition:
----------------------------------------------------------------
parsing ./buildroot/parameter.txt:
create new GPT 9:
----------------------------------------------------------------
copy from: ./buildroot to out/buildroot_20241125_rk3566_arm64_sd.img
[RAW. 0]: 310 KB | ./buildroot/idbloader.img > 100% : done.
[RAW. 1]: 4096 KB | ./buildroot/uboot.img > 100% : done.
[RAW. 2]: 48 KB | ./buildroot/misc.img > 100% : done.
[RAW. 3]: 1 KB | ./buildroot/dtbo.img > 100% : done.
[RAW. 4]: 7083 KB | ./buildroot/resource.img > 100% : done.
[RAW. 5]: 35846 KB | ./buildroot/kernel.img > 100% : done.
[RAW. 6]: 7759 KB | ./buildroot/boot.img > 100% : done.
[RAW. 8]: 886956 KB | ./buildroot/rootfs.img > 100% : done.
[RAW. 9]: 156 KB | ./buildroot/userdata.img > 100% : done.
----------------------------------------------------------------
---------------------------------
RAW image successfully created (17:59:07).
-rw-r--r-- 1 root root 7799999488 11??? 25 17:59 out/buildroot_20241125_rk3566_arm64_sd.img
Tip: You can compress it to save disk space.
-----------------------------------------
Run the following command for sdcard install:
sudo dd if=out/buildroot_20241125_rk3566_arm64_sd.img bs=1M of=/dev/sdX
-----------------------------------------
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ find . -name *.img
./device/rockchip/common/images/userdata/sl/ref_data.img
./rkbin/img/rk1x/rk1806_trust_v1.12.img
find: ?€?./scripts/sd-fuse/out/rootfs.REAppMZM0/root?€?: Permission denied
./scripts/sd-fuse/out/buildroot_20241125_rk3566_arm64_sd.img
find: ?€?./scripts/sd-fuse/out/boot.oGeWhbAaG?€?: Permission denied
./scripts/sd-fuse/prebuilt/dtbo-plain.img
./scripts/sd-fuse/prebuilt/misc.img
./scripts/sd-fuse/prebuilt/uboot.img
./scripts/sd-fuse/prebuilt/idbloader.img
./scripts/sd-fuse/prebuilt/boot.img
./scripts/sd-fuse/prebuilt/dtbo.img
./scripts/sd-fuse/buildroot/resource.img
./scripts/sd-fuse/buildroot/kernel.img
./scripts/sd-fuse/buildroot/rootfs.img
./scripts/sd-fuse/buildroot/misc.img
./scripts/sd-fuse/buildroot/userdata.img
./scripts/sd-fuse/buildroot/uboot.img
./scripts/sd-fuse/buildroot/idbloader.img
./scripts/sd-fuse/buildroot/boot.img
./scripts/sd-fuse/buildroot/dtbo.img
./scripts/sd-fuse/eflasher/resource.img
./scripts/sd-fuse/eflasher/kernel.img
./scripts/sd-fuse/eflasher/rootfs.img
./scripts/sd-fuse/eflasher/misc.img
./scripts/sd-fuse/eflasher/uboot.img
./scripts/sd-fuse/eflasher/idbloader.img
./scripts/sd-fuse/eflasher/boot.img
./scripts/sd-fuse/eflasher/dtbo.img
./buildroot/output/rockchip_rk3566/build/linux-headers-custom/resource.img
./buildroot/output/rockchip_rk3566/build/linux-headers-custom/kernel.img
./buildroot/output/rockchip_rk3566/build/host-util-linux-2.39.3/tests/ts/cramfs/cramfs-little.img
./buildroot/output/rockchip_rk3566/build/host-util-linux-2.39.3/tests/ts/cramfs/cramfs-big.img
./buildroot/output/rockchip_rk3566/build/util-linux-2.39.3/tests/ts/cramfs/cramfs-little.img
./buildroot/output/rockchip_rk3566/build/util-linux-2.39.3/tests/ts/cramfs/cramfs-big.img
./buildroot/output/rockchip_rk3566/build/util-linux-libs-2.39.3/tests/ts/cramfs/cramfs-little.img
./buildroot/output/rockchip_rk3566/build/util-linux-libs-2.39.3/tests/ts/cramfs/cramfs-big.img
./u-boot/uboot.img
./kernel/resource.img
./kernel/kernel.img
./kernel/boot.img
./pre-download/eflasher/resource.img
./pre-download/eflasher/kernel.img
./pre-download/eflasher/rootfs.img
./pre-download/eflasher/misc.img
./pre-download/eflasher/uboot.img
./pre-download/eflasher/idbloader.img
./pre-download/eflasher/boot.img
./pre-download/eflasher/dtbo.img
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ sudo find . -name *.img
./device/rockchip/common/images/userdata/sl/ref_data.img
./rkbin/img/rk1x/rk1806_trust_v1.12.img
./scripts/sd-fuse/out/buildroot_20241125_rk3566_arm64_sd.img
./scripts/sd-fuse/prebuilt/dtbo-plain.img
./scripts/sd-fuse/prebuilt/misc.img
./scripts/sd-fuse/prebuilt/uboot.img
./scripts/sd-fuse/prebuilt/idbloader.img
./scripts/sd-fuse/prebuilt/boot.img
./scripts/sd-fuse/prebuilt/dtbo.img
./scripts/sd-fuse/buildroot/resource.img
./scripts/sd-fuse/buildroot/kernel.img
./scripts/sd-fuse/buildroot/rootfs.img
./scripts/sd-fuse/buildroot/misc.img
./scripts/sd-fuse/buildroot/userdata.img
./scripts/sd-fuse/buildroot/uboot.img
./scripts/sd-fuse/buildroot/idbloader.img
./scripts/sd-fuse/buildroot/boot.img
./scripts/sd-fuse/buildroot/dtbo.img
./scripts/sd-fuse/eflasher/resource.img
./scripts/sd-fuse/eflasher/kernel.img
./scripts/sd-fuse/eflasher/rootfs.img
./scripts/sd-fuse/eflasher/misc.img
./scripts/sd-fuse/eflasher/uboot.img
./scripts/sd-fuse/eflasher/idbloader.img
./scripts/sd-fuse/eflasher/boot.img
./scripts/sd-fuse/eflasher/dtbo.img
./buildroot/output/rockchip_rk3566/build/linux-headers-custom/resource.img
./buildroot/output/rockchip_rk3566/build/linux-headers-custom/kernel.img
./buildroot/output/rockchip_rk3566/build/host-util-linux-2.39.3/tests/ts/cramfs/cramfs-little.img
./buildroot/output/rockchip_rk3566/build/host-util-linux-2.39.3/tests/ts/cramfs/cramfs-big.img
./buildroot/output/rockchip_rk3566/build/util-linux-2.39.3/tests/ts/cramfs/cramfs-little.img
./buildroot/output/rockchip_rk3566/build/util-linux-2.39.3/tests/ts/cramfs/cramfs-big.img
./buildroot/output/rockchip_rk3566/build/util-linux-libs-2.39.3/tests/ts/cramfs/cramfs-little.img
./buildroot/output/rockchip_rk3566/build/util-linux-libs-2.39.3/tests/ts/cramfs/cramfs-big.img
./u-boot/uboot.img
./kernel/resource.img
./kernel/kernel.img
./kernel/boot.img
./pre-download/eflasher/resource.img
./pre-download/eflasher/kernel.img
./pre-download/eflasher/rootfs.img
./pre-download/eflasher/misc.img
./pre-download/eflasher/uboot.img
./pre-download/eflasher/idbloader.img
./pre-download/eflasher/boot.img
./pre-download/eflasher/dtbo.img
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ sudo find . -type f -size +800M
./scripts/sd-fuse/out/buildroot_20241125_rk3566_arm64_sd.img
./scripts/sd-fuse/buildroot/rootfs.img
./buildroot/output/rockchip_rk3566/images/rootfs.ext2
./.repo/project-objects/rknn-toolkit2.git/objects/pack/pack-788c7d828c420c6965dff4d0679a356eadd928e8.pack
./.repo/project-objects/linuxsdk-rockchip-dl.git/objects/pack/pack-afa291ce84bb9a4f905f43ad209378229f4b870c.pack
./.repo/project-objects/linuxsdk-rockchip-external.git/objects/pack/pack-5cd05401aaabbc77df8ec3661855f4d4ea1f496e.pack
./.repo/project-objects/kernel-rockchip.git/objects/pack/pack-b3a39d70bc56c0407dbbb67d6ac3097b3b11aaea.pack
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ sudo find . -type f -size +500M
./scripts/sd-fuse/out/buildroot_20241125_rk3566_arm64_sd.img
./scripts/sd-fuse/buildroot/rootfs.img
./scripts/sd-fuse/eflasher/rootfs.img
./buildroot/output/rockchip_rk3566/images/rootfs.ext2
./buildroot/output/rockchip_rk3566/images/rootfs.tar
./buildroot/output/rockchip_rk3566/images/rootfs.cpio
./.repo/project-objects/rknn-toolkit2.git/objects/pack/pack-788c7d828c420c6965dff4d0679a356eadd928e8.pack
./.repo/project-objects/linuxsdk-rockchip-dl.git/objects/pack/pack-afa291ce84bb9a4f905f43ad209378229f4b870c.pack
./.repo/project-objects/linuxsdk-rockchip-dl.git/objects/pack/tmp_pack_uqHS93
./.repo/project-objects/linuxsdk-rockchip-external.git/objects/pack/pack-5cd05401aaabbc77df8ec3661855f4d4ea1f496e.pack
./.repo/project-objects/kernel-rockchip.git/objects/pack/pack-b3a39d70bc56c0407dbbb67d6ac3097b3b11aaea.pack
./.repo/project-objects/rknpu2.git/objects/pack/pack-d14ea14fb2509ea265cb2cc52f86950f6adf3c87.pack
./pre-download/eflasher/rootfs.img
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ ./build.sh init
Can't find a build config file, please check again
USAGE: ./build.sh <parameter>
# select board:
./build.sh rk3566.mk
# build module:
./build.sh all -build all
./build.sh uboot -build uboot only
./build.sh kernel -build kernel only
./build.sh buildroot -build buildroot rootfs only
./build.sh sd-img -pack sd-card image, used to create bootable SD card
./build.sh emmc-img -pack sd-card image, used to write buildroot to emmc
# clean
./build.sh clean -remove old images
./build.sh cleanall
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ ./build.sh emmc-img
Re-running script under sudo...
[INFO]: Extracting /home/viewpro/buildroot-rk3566/buildroot/output/rockchip_rk3566/images/rootfs.tar to /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF/
[INFO]: Applying device/rockchip to /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF
OVERLAY_DIR = /home/viewpro/buildroot-rk3566/device/rockchip/common/fonts
Installing extra font(dejavu-2.37) to /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF...
Installing extra font(liberation-2.00.1) to /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF...
Installing extra font(source-han-sans-cn-2.004R) to /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF...
OVERLAY_DIR = /home/viewpro/buildroot-rk3566/device/rockchip/common/tools
Installing prebuilt tools: /home/viewpro/buildroot-rk3566/device/rockchip/common/tools to /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF...
sending incremental file list
./
README
adb
brcm_patchram_plus1
busybox
coremark
dhd_priv
dhrystone
edid-decode
frecon
gdb
gdbserver
inotifywait
inotifywatch
io
kmsgrab
lockfile-check
lockfile-create
lockfile-remove
lockfile-touch
memtester
modetest
perf
perf-4.19
perf-4.4
perf-5.10
perf-6.1
pmap
procrank
ps
rtk_hciattach
slabtop
strace
stressapptest
top
umtprd
update
updateEngine
uvc-gadget
vendor_storage
vmstat
watch
sent 58,734,462 bytes received 798 bytes 117,470,520.00 bytes/sec
total size is 58,717,698 speedup is 1.00
Running 02-usb.sh for /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF (buildroot init=busybox)...
USB gadget functions:
Installing USB services...
[INFO]: apply device/rockchip/common/post-hooks/02-usb.sh ret 0
Running 05-udev.sh for /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF (buildroot init=busybox)...
[INFO]: apply device/rockchip/common/post-hooks/05-udev.sh ret 0
Running 06-async-commit.sh for /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF (buildroot init=busybox)...
Installing async-commit service...
[INFO]: apply device/rockchip/common/post-hooks/06-async-commit.sh ret 0
Running 10-os-release.sh for /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF (buildroot init=busybox)...
Adding information to /etc/os-release...
[INFO]: apply device/rockchip/common/post-hooks/10-os-release.sh ret 0
Running 30-fstab.sh for /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF (buildroot init=busybox)...
Fixing up /etc/fstab...
Fixing up rootfs type: auto
Fixing up basic partition: proc /proc
Deleting partition: proc /proc
Fixing up partition: proc /proc proc defaults 0
Fixing up basic partition: devtmpfs /dev
Deleting partition: devtmpfs /dev
Fixing up partition: devtmpfs /dev devtmpfs defaults 0
Fixing up basic partition: devpts /dev/pts mode=0620,ptmxmode=0666,gid=5
Deleting partition: devpts /dev/pts
Fixing up partition: devpts /dev/pts devpts mode=0620,ptmxmode=0666,gid=5 0
Fixing up basic partition: tmpfs /dev/shm nosuid,nodev,noexec
Deleting partition: tmpfs /dev/shm
Fixing up partition: tmpfs /dev/shm tmpfs nosuid,nodev,noexec 0
Fixing up basic partition: sysfs /sys
Deleting partition: sysfs /sys
Fixing up partition: sysfs /sys sysfs defaults 0
Fixing up basic partition: configfs /sys/kernel/config
Deleting partition: configfs /sys/kernel/config
Fixing up partition: configfs /sys/kernel/config configfs defaults 0
Fixing up basic partition: debugfs /sys/kernel/debug
Deleting partition: debugfs /sys/kernel/debug
Fixing up partition: debugfs /sys/kernel/debug debugfs defaults 0
Fixing up basic partition: pstore /sys/fs/pstore
Deleting partition: pstore /sys/fs/pstore
Fixing up partition: pstore /sys/fs/pstore pstore defaults 0
[INFO]: apply device/rockchip/common/post-hooks/30-fstab.sh ret 0
Running 40-busybox-reboot.sh for /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF (buildroot init=busybox)...
[INFO]: apply device/rockchip/common/post-hooks/40-busybox-reboot.sh ret 0
Running 50-locale.sh for /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF (buildroot init=busybox)...
Setting LANG environment to en_US.UTF-8...
[INFO]: apply device/rockchip/common/post-hooks/50-locale.sh ret 0
Running 60-dirs.sh for /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF (buildroot init=busybox)...
Adding dirs and links...
[INFO]: apply device/rockchip/common/post-hooks/60-dirs.sh ret 0
Running 90-overlay.sh for /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF (buildroot init=busybox)...
[INFO]: apply device/rockchip/common/post-hooks/90-overlay.sh ret 0
Running 99-owner.sh for /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF (buildroot init=busybox)...
[INFO]: apply device/rockchip/common/post-hooks/99-owner.sh ret 0
[INFO]: Applying device/friendlyelec/misc-files to /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF
[INFO]: Applying device/friendlyelec/keep-the-net-classic-naming to /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF
[INFO]: Applying device/friendlyelec/network-interfaces to /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF
[INFO]: Applying device/friendlyelec/network-leds to /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF
[INFO]: Applying device/friendlyelec/fancontrol to /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF
[INFO]: Applying device/friendlyelec/rom-version to /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF
[INFO]: Applying device/friendlyelec/rk3566/disable-unnecessary-services to /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF
[INFO]: Applying device/friendlyelec/load-modules-service to /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF
[INFO]: Applying device/friendlyelec/rk3566/r8168 to /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF
[INFO]: Applying device/friendlyelec/alsa-config to /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF
[INFO]: Applying device/friendlyelec/usbdevice-wrapper to /home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF
[INFO]: prepare boot.img ...
mke2fs 1.45.4 (23-Sep-2019)
Creating regular file ./buildroot/boot.img
Creating filesystem with 16384 4k blocks and 144 inodes
Allocating group tables: done
Writing inode tables: done
Creating journal (1024 blocks): done
Copying files into the device: done
Writing superblocks and filesystem accounting information: done
generating ./buildroot/boot.img done.
[INFO]: prepare rootfs.img ...
mke2fs 1.45.4 (23-Sep-2019)
Creating regular file buildroot/rootfs.img
Creating filesystem with 278528 4k blocks and 9360 inodes
Filesystem UUID: b38c3cd5-1388-4170-bb2f-c2f6a900474b
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Copying files into the device: done
Writing superblocks and filesystem accounting information: done
'/home/viewpro/buildroot-rk3566/scripts/sd-fuse/prebuilt/parameter.template' -> 'buildroot/parameter.txt'
generating buildroot/parameter.txt done.
0
generating buildroot/rootfs.img done.
0
Generating empty userdata.img (size:209715200)
mke2fs 1.45.4 (23-Sep-2019)
Creating regular file ./buildroot/userdata.img
Creating filesystem with 51200 4k blocks and 12800 inodes
Filesystem UUID: 924000be-f3c6-4cf9-8b50-106f618471fb
Superblock backups stored on blocks:
32768
Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Copying files into the device: done
Writing superblocks and filesystem accounting information: done
-----------------------------------------
rootfs dir:
/home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/rootfs.06aVz9pnF
boot dir:
/home/viewpro/buildroot-rk3566/scripts/sd-fuse/out/boot.Q5qkKAbHs
-----------------------------------------
Creating RAW image: out/rk3566-eflasher-20241125.img (7800 MB)
---------------------------------
0+0 records in
0+0 records out
0 bytes copied, 6.4497e-05 s, 0.0 kB/s
Using device: /dev/loop14
---------------------------------
Bootloader image is fused successfully.
----------------------------------------------------------------
[/dev/loop14] capacity = 7438MB, 7799999488 bytes
current /dev/loop14 partition:
----------------------------------------------------------------
parsing ./eflasher/parameter.txt:
create new GPT 9:
----------------------------------------------------------------
copy from: ./eflasher to /dev/loop14
[RAW. 0]: 310 KB | ./eflasher/idbloader.img > 100% : done.
[RAW. 2]: 4096 KB | ./eflasher/uboot.img > 100% : done.
[RAW. 3]: 48 KB | ./eflasher/misc.img > 100% : done.
[RAW. 4]: 1 KB | ./eflasher/dtbo.img > 100% : done.
[RAW. 5]: 7087 KB | ./eflasher/resource.img > 100% : done.
[RAW. 6]: 35846 KB | ./eflasher/kernel.img > 100% : done.
[RAW. 7]: 7759 KB | ./eflasher/boot.img > 100% : done.
[RAW. 9]: 685068 KB | ./eflasher/rootfs.img > 100% : done.
----------------------------------------------------------------
/dev/loop14: gpt partitions 2 3 4 5 6 7 8 9 1
---------------------------------
All done.
mkexfatfs 1.3.0
Creating... done.
Flushing... done.
File system created successfully.
---------------------------------
RAW image successfully created (18:14:23).
-rw-r--r-- 1 root root 7799999488 11??? 25 18:14 out/rk3566-eflasher-20241125.img
Tip: You can compress it to save disk space.
FUSE exfat 1.3.0
copying /home/viewpro/buildroot-rk3566/scripts/sd-fuse/buildroot/* to /tmp/media_exfat/buildroot ...
-rw-r--r-- 1 root root 7799999488 11??? 25 18:14 out/buildroot_20241125_rk3566_arm64_eflasher.img
all done.
-----------------------------------------
Run the following command for sdcard install:
sudo dd if=out/buildroot_20241125_rk3566_arm64_eflasher.img bs=1M of=/dev/sdX
-----------------------------------------
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
最后一步,打包备份dl目录:
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ cd buildroot/
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$ ll
total 960
drwxrwxr-x 20 viewpro viewpro 4096 11??? 25 16:49 ./
drwxrwxr-x 13 viewpro viewpro 4096 11??? 25 17:53 ../
drwxrwxr-x 2 viewpro viewpro 4096 11??? 25 16:15 arch/
drwxrwxr-x 2 viewpro viewpro 4096 11??? 25 16:15 archives/
drwxrwxr-x 75 viewpro viewpro 4096 11??? 25 16:15 board/
drwxrwxr-x 26 viewpro viewpro 4096 11??? 25 16:15 boot/
-rw-rw-r-- 1 viewpro viewpro 454027 11??? 25 16:15 CHANGES
-rw-rw-r-- 1 viewpro viewpro 29466 11??? 25 16:15 Config.in
-rw-rw-r-- 1 viewpro viewpro 135649 11??? 25 16:15 Config.in.legacy
drwxrwxr-x 3 viewpro viewpro 20480 11??? 25 16:15 configs/
-rw-rw-r-- 1 viewpro viewpro 18767 11??? 25 16:15 COPYING
-rw-rw-r-- 1 viewpro viewpro 1198 11??? 25 16:15 .defconfig
-rw-rw-r-- 1 viewpro viewpro 72437 11??? 25 16:15 DEVELOPERS
drwxr-xr-x 179 viewpro viewpro 4096 11??? 25 17:11 dl/
drwxrwxr-x 3 viewpro viewpro 20480 11??? 25 16:15 dl2/
drwxrwxr-x 5 viewpro viewpro 4096 11??? 25 16:15 docs/
lrwxrwxrwx 1 viewpro viewpro 19 11??? 25 16:15 envsetup.sh -> scripts/envsetup.sh*
-rw-rw-r-- 1 viewpro viewpro 96 11??? 25 16:15 .flake8
drwxrwxr-x 20 viewpro viewpro 4096 11??? 25 16:15 fs/
drwxrwxr-x 2 viewpro viewpro 4096 11??? 25 17:55 .git/
-rw-rw-r-- 1 viewpro viewpro 125 11??? 25 16:15 .gitignore
-rw-rw-r-- 1 viewpro viewpro 721 11??? 25 16:15 .gitlab-ci.yml
drwxrwxr-x 3 viewpro viewpro 4096 11??? 25 16:15 linux/
-rw-rw-r-- 1 viewpro viewpro 47147 11??? 25 16:15 Makefile
-rw-rw-r-- 1 viewpro viewpro 2292 11??? 25 16:15 Makefile.legacy
drwxrwxr-x 3 viewpro viewpro 4096 11??? 25 16:49 output/
drwxrwxr-x 2602 viewpro viewpro 69632 11??? 25 16:15 package/
-rw-rw-r-- 1 viewpro viewpro 1075 11??? 25 16:15 README
-rw-rw-r-- 1 viewpro viewpro 721 11??? 25 16:15 README.rockchip
drwxrwxr-x 2 viewpro viewpro 4096 11??? 25 16:15 scripts/
drwxrwxr-x 13 viewpro viewpro 4096 11??? 25 16:15 support/
drwxrwxr-x 3 viewpro viewpro 4096 11??? 25 16:15 system/
drwxrwxr-x 5 viewpro viewpro 4096 11??? 25 16:15 toolchain/
drwxrwxr-x 3 viewpro viewpro 4096 11??? 25 16:15 utils/
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$ du -sh dl
721M dl
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$ ll
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$ tar zcvf dl1903.tar.gz dl/
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$ time tar --use-compress-program=pigz -cvpf dl1904.tgz dl/
viewpro@viewpro-ThinkBook-16-G5-IRH:~$
viewpro@viewpro-ThinkBook-16-G5-IRH:~$ cd buildroot-rk3566/
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ ll
total 64
drwxrwxr-x 13 viewpro viewpro 4096 11月 25 16:36 ./
drwxr-xr-x 47 viewpro viewpro 12288 11月 25 16:30 ../
drwxrwxr-x 5 viewpro viewpro 4096 11月 25 16:15 app/
drwxrwxr-x 20 viewpro viewpro 4096 11月 25 16:49 buildroot/
lrwxrwxrwx 1 viewpro viewpro 16 11月 25 16:15 build.sh -> scripts/build.sh*
lrwxrwxrwx 1 viewpro viewpro 26 10月 7 11:44 .current -> device/friendlyelec/rk3566/
lrwxrwxrwx 1 viewpro viewpro 67 11月 25 16:36 .current_config.mk -> /home/viewpro/buildroot-rk3566/device/friendlyelec/rk3566/rk3566.mk
drwxrwxr-x 4 viewpro viewpro 4096 11月 25 16:15 device/
drwxrwxr-x 30 viewpro viewpro 4096 11月 25 16:15 external/
drwxrwxr-x 28 viewpro viewpro 4096 11月 25 16:46 kernel/
lrwxrwxrwx 1 viewpro viewpro 19 11月 25 16:16 out -> scripts/sd-fuse/out/
drwxrwxr-x 11 viewpro viewpro 4096 11月 25 16:25 pre-download/
drwxrwxr-x 7 viewpro viewpro 4096 10月 7 11:44 .repo/
drwxrwxr-x 10 viewpro viewpro 4096 11月 25 16:37 rkbin/
drwxrwxr-x 4 viewpro viewpro 4096 11月 25 16:15 scripts/
drwxrwxr-x 5 viewpro viewpro 4096 11月 25 16:16 toolchain/
drwxrwxr-x 28 viewpro viewpro 4096 11月 25 16:37 u-boot/
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566$ cd buildroot/
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$ ll
total 960
drwxrwxr-x 20 viewpro viewpro 4096 11月 25 16:49 ./
drwxrwxr-x 13 viewpro viewpro 4096 11月 25 16:36 ../
drwxrwxr-x 2 viewpro viewpro 4096 11月 25 16:15 arch/
drwxrwxr-x 2 viewpro viewpro 4096 11月 25 16:15 archives/
drwxrwxr-x 75 viewpro viewpro 4096 11月 25 16:15 board/
drwxrwxr-x 26 viewpro viewpro 4096 11月 25 16:15 boot/
-rw-rw-r-- 1 viewpro viewpro 454027 11月 25 16:15 CHANGES
-rw-rw-r-- 1 viewpro viewpro 29466 11月 25 16:15 Config.in
-rw-rw-r-- 1 viewpro viewpro 135649 11月 25 16:15 Config.in.legacy
drwxrwxr-x 3 viewpro viewpro 20480 11月 25 16:15 configs/
-rw-rw-r-- 1 viewpro viewpro 18767 11月 25 16:15 COPYING
-rw-rw-r-- 1 viewpro viewpro 1198 11月 25 16:15 .defconfig
-rw-rw-r-- 1 viewpro viewpro 72437 11月 25 16:15 DEVELOPERS
drwxr-xr-x 179 viewpro viewpro 4096 11月 25 17:11 dl/
drwxrwxr-x 3 viewpro viewpro 20480 11月 25 16:15 dl2/
drwxrwxr-x 5 viewpro viewpro 4096 11月 25 16:15 docs/
lrwxrwxrwx 1 viewpro viewpro 19 11月 25 16:15 envsetup.sh -> scripts/envsetup.sh*
-rw-rw-r-- 1 viewpro viewpro 96 11月 25 16:15 .flake8
drwxrwxr-x 20 viewpro viewpro 4096 11月 25 16:15 fs/
drwxrwxr-x 2 viewpro viewpro 4096 11月 25 17:13 .git/
-rw-rw-r-- 1 viewpro viewpro 125 11月 25 16:15 .gitignore
-rw-rw-r-- 1 viewpro viewpro 721 11月 25 16:15 .gitlab-ci.yml
drwxrwxr-x 3 viewpro viewpro 4096 11月 25 16:15 linux/
-rw-rw-r-- 1 viewpro viewpro 47147 11月 25 16:15 Makefile
-rw-rw-r-- 1 viewpro viewpro 2292 11月 25 16:15 Makefile.legacy
drwxrwxr-x 3 viewpro viewpro 4096 11月 25 16:49 output/
drwxrwxr-x 2602 viewpro viewpro 69632 11月 25 16:15 package/
-rw-rw-r-- 1 viewpro viewpro 1075 11月 25 16:15 README
-rw-rw-r-- 1 viewpro viewpro 721 11月 25 16:15 README.rockchip
drwxrwxr-x 2 viewpro viewpro 4096 11月 25 16:15 scripts/
drwxrwxr-x 13 viewpro viewpro 4096 11月 25 16:15 support/
drwxrwxr-x 3 viewpro viewpro 4096 11月 25 16:15 system/
drwxrwxr-x 5 viewpro viewpro 4096 11月 25 16:15 toolchain/
drwxrwxr-x 3 viewpro viewpro 4096 11月 25 16:15 utils/
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$ du -sh dl
721M dl
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/buildroot-rk3566/buildroot$
Y:\buildroot-rk3566\scripts\sd-fuse\out\
Y:\buildroot-rk3566\scripts\sd-fuse\out\buildroot_20241125_rk3566_arm64_eflasher.img
Y:\buildroot-rk3566\scripts\sd-fuse\out\buildroot_20241125_rk3566_arm64_sd.img
参考资料:
https://wiki.friendlyelec.com/wiki/index.php/Main_Page
Main Page
4.3 NanoPC/Pi Series
NanoPi R3S
https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R3S/zh#.E5.8E.9F.E7.90.86.E5.9B.BE.E5.92.8C.E6.95.B0.E6.8D.AE.E6.89.8B.E5.86.8C
NanoPi R3S/zh
4.4 安装系统
4.4.1 下载固件
4.4.1.1 官方固件
访问此处的下载地址下载固件文件 (位于网盘的"01_系统固件"目录):
https://download.friendlyelec.com/NanoPiR3S
NanoPi-R3S - free download
百度网盘 Google Drive
Mainland Chinese users please click on: International users please click on:
BaiduPan Google Drive
https://pan.baidu.com/s/1i-YKtUlowKS8GkQHfjcwwg#list/path=%2F
提取码:jvvb