20250502在ubuntu18.04.6系统上编译RK3566的buildroot系统【linux-4.19内核】

rootroot@ubuntu:~/rk3568_linux4.19 sudo apt install bison rootroot@ubuntu:\~/rk3568_linux4.19 sudo apt install flex
rootroot@ubuntu:~/rk3568_linux4.19 sudo apt install libssl-dev rootroot@ubuntu:\~/rk3568_linux4.19 sudo apt install expect

20250502在ubuntu18.04.6系统上编译RK3566的buildroot系统【linux-4.19内核】

2025/5/2 11:02

缘起:公司的应用工程师,说RK3566的buildroot【linux-4.19内核】可以使用VI【可能是因为vi的*.so库文件的原因】

现在就尝试找找RK3566的buildroot【linux-4.19内核】的SDK。

代理商那里没有。查档案/当年做鸿蒙的时候,RK3568/RK3399的buildroot使用的就是linux-4.19内核。

想办法找出来,就开始编译了。

百度:buildroot dl unixbench-master.tar.gz

https://github.com/qiaoqidui/dl

qiaoqidui/dl

unixbench-master.tar.gz add unixbench-master.tar.gz 7 years ago

sudo nano /etc/apt/apt.conf.d/20auto-upgrades

把值改为0

代码语言:txt

复制

APT::Periodic::Update-Package-Lists "0";

APT::Periodic::Unattended-Upgrade "0";

rootroot@ubuntu:~ sudo apt install openssh-server rootroot@ubuntu:\~ sudo apt install terminator
rootroot@ubuntu:~ sudo apt install samba rootroot@ubuntu:\~/friendlywrt-h3 sudo apt install gawk
rootroot@ubuntu:~/friendlywrt-h3 sudo apt install ncurses\* rootroot@ubuntu:\~/friendlywrt-h3 sudo apt-get install exfat-utils exfat-fuse
rootroot@ubuntu:~/friendlywrt-h3 sudo apt install git rootroot@ubuntu:\~/friendlywrt-h3 sudo apt-get install u-boot-tools
rootroot@ubuntu:~/friendlywrt-h3 sudo apt-get install net-tools rootroot@ubuntu:\~/friendlywrt-h3 sudo apt-get install nethogs
rootroot@ubuntu:~/friendlywrt-h3 sudo apt install gcc rootroot@ubuntu:\~/friendlywrt-h3 sudo apt install g++
rootroot@ubuntu:~/friendlywrt-h3$ sudo apt-get install build-essential

rootroot@rootroot-Lenovo-IdeaPad-S410:/etc/samba$ sudo cp smb.conf smb.conf.bak1

rootroot@rootroot-Lenovo-IdeaPad-S410:/etc/samba$ sudo vi smb.conf

最后面加入:

sudo echo "[rootroot]" >> smb.conf

sudo echo "comment=rootroot Shared Folder" >> smb.conf

sudo echo "path=/" >> smb.conf

sudo echo "#public=yes" >> smb.conf

sudo echo "writable=yes" >> smb.conf

sudo echo "#readonly=yes" >> smb.conf

sudo echo "valid users=rootroot" >> smb.conf

sudo echo "create mask=0700" >> smb.conf

sudo echo "directory mask=0700" >> smb.conf

sudo echo "available=yes" >> smb.conf

sudo echo "browseable=yes" >> smb.conf

rootroot@rootroot-Lenovo-IdeaPad-S410:/etc/samba$ sudo smbpasswd -a rootroot

New SMB password:

Retype new SMB password:

Added user rootroot.

rootroot@rootroot-Lenovo-IdeaPad-S410:/etc/samba$

rootroot@ubuntu:~/rk3568_linux4.19 sudo apt install bison rootroot@ubuntu:\~/rk3568_linux4.19 sudo apt install flex
rootroot@ubuntu:~/rk3568_linux4.19 sudo apt install libssl-dev rootroot@ubuntu:\~/rk3568_linux4.19 sudo apt install expect

参考资料:

百度:rk3566 firefly linux4-19

https://www.t-firefly.com/product/industry/aio3566jd4.html

AIO-3566JD4四核高性能人工智能主板

https://wiki.t-firefly.com/Core-3566JD4/linux_compile.html#bian-yi-huan-jing-da-jian

https://pan.baidu.com/share/init?surl=jgMLrZ4ez1GWprLs66CqIQ

源代码

Linux_SDK 源码包

提取码:1234

【由于buildroot中的dl目录中的包下载可能需要很久很久的时间。我就直接把firefly的包拿下来放进去了!以节省下载的时间了!^_】
https://wiki.t-firefly.com/ROC-RK3568-PC/linux_compile.html
ROC-RK3568-PC

  1. 编译 Linux4.19 固件

X:\rk356x_amp_release_20240607_v0.0.1a\linux_sdk_tar\buildroot\dl
Y:\rk3568_linux4.19\buildroot\dl

完整的LOG:

rootroot@ubuntu:~$

rootroot@ubuntu:~$ cd rk3568_linux4.19/

rootroot@ubuntu:~/rk3568_linux4.19$ ll

total 64

drwxrwxr-x 16 rootroot rootroot 4096 May 10 2022 ./

drwxr-xr-x 18 rootroot rootroot 4096 Apr 30 18:16 ../

drwxrwxr-x 11 rootroot rootroot 4096 May 10 2022 app/

drwxrwxr-x 16 rootroot rootroot 4096 May 10 2022 buildroot/

lrwxrwxrwx 1 rootroot rootroot 31 May 10 2022 build.sh -> device/rockchip/common/build.sh*

drwxrwxr-x 9 rootroot rootroot 4096 May 10 2022 debian/

drwxrwxr-x 3 rootroot rootroot 4096 May 10 2022 device/

drwxrwxr-x 7 rootroot rootroot 4096 May 10 2022 docs/

lrwxrwxrwx 1 rootroot rootroot 27 May 10 2022 envsetup.sh -> buildroot/build/envsetup.sh*

drwxrwxr-x 31 rootroot rootroot 4096 May 10 2022 external/

drwxrwxr-x 27 rootroot rootroot 4096 May 10 2022 kernel/

lrwxrwxrwx 1 rootroot rootroot 24 May 10 2022 Makefile -> buildroot/build/Makefile*

lrwxrwxrwx 1 rootroot rootroot 36 May 10 2022 mkfirmware.sh -> device/rockchip/common/mkfirmware.sh*

drwxrwxr-x 3 rootroot rootroot 4096 May 10 2022 prebuilts/

drwxrwxr-x 10 rootroot rootroot 4096 May 10 2022 repo/

drwxrwxr-x 7 rootroot rootroot 4096 May 10 2022 .repo/

drwxrwxr-x 9 rootroot rootroot 4096 May 10 2022 rkbin/

lrwxrwxrwx 1 rootroot rootroot 33 May 10 2022 rkflash.sh -> device/rockchip/common/rkflash.sh*

drwxrwxr-x 5 rootroot rootroot 4096 May 10 2022 tools/

drwxrwxr-x 25 rootroot rootroot 4096 May 10 2022 u-boot/

drwxrwxr-x 9 rootroot rootroot 4096 May 10 2022 yocto/

rootroot@ubuntu:~/rk3568_linux4.19$ ll *.sh

lrwxrwxrwx 1 rootroot rootroot 31 May 10 2022 build.sh -> device/rockchip/common/build.sh*

lrwxrwxrwx 1 rootroot rootroot 27 May 10 2022 envsetup.sh -> buildroot/build/envsetup.sh*

lrwxrwxrwx 1 rootroot rootroot 36 May 10 2022 mkfirmware.sh -> device/rockchip/common/mkfirmware.sh*

lrwxrwxrwx 1 rootroot rootroot 33 May 10 2022 rkflash.sh -> device/rockchip/common/rkflash.sh*

rootroot@ubuntu:~/rk3568_linux4.19$ ./build.sh

You're building on Linux

Lunch menu...pick a combo:

  1. default BoardConfig.mk

  2. BoardConfig-rk3566-evb2-lp4x-v10-32bit.mk

  3. BoardConfig-rk3566-evb2-lp4x-v10.mk

  4. BoardConfig-rk3568-evb1-ddr4-v10-32bit.mk

  5. BoardConfig-rk3568-evb1-ddr4-v10-spi-nor-64M.mk

  6. BoardConfig-rk3568-evb1-ddr4-v10.mk

  7. BoardConfig-rk3568-nvr-spi-nand.mk

  8. BoardConfig-rk3568-nvr.mk

  9. BoardConfig-rk3568-uvc-evb1-ddr4-v10.mk

  10. BoardConfig.mk

Which would you like? [0]: 3

switching to board: /home/rootroot/rk3568_linux4.19/device/rockchip/rk356x

./build.sh: line 97: source: /home/rootroot/rk3568_linux4.19/device/rockchip/.BoardConfig.mk: is a directory

ERROR: Running main failed!

ERROR: exit code 1 from line 97:

source $BOARD_CONFIG

rootroot@ubuntu:~/rk3568_linux4.19$ ./build.sh 2

./build.sh: line 97: source: /home/rootroot/rk3568_linux4.19/device/rockchip/.BoardConfig.mk: is a directory

ERROR: Running main failed!

ERROR: exit code 1 from line 97:

source $BOARD_CONFIG

rootroot@ubuntu:~/rk3568_linux4.19$

rootroot@ubuntu:~/rk3568_linux4.19$ cd device/rockchip/

rootroot@ubuntu:~/rk3568_linux4.19/device/rockchip$ ll

total 112

drwxrwxr-x 27 rootroot rootroot 4096 Apr 30 18:17 ./

drwxrwxr-x 3 rootroot rootroot 4096 May 10 2022 ../

lrwxrwxrwx 1 rootroot rootroot 6 Apr 30 18:17 .BoardConfig.mk -> rk356x/

drwxrwxr-x 3 rootroot rootroot 4096 May 10 2022 common/

drwxrwxr-x 2 rootroot rootroot 4096 May 10 2022 .git/

-rw-rw-r-- 1 rootroot rootroot 32 May 10 2022 .gitignore

drwxrwxr-x 12 rootroot rootroot 4096 May 10 2022 oem/

drwxrwxr-x 2 rootroot rootroot 4096 May 10 2022 px30/

drwxrwxr-x 2 rootroot rootroot 4096 May 10 2022 px3se/

drwxrwxr-x 2 rootroot rootroot 4096 May 10 2022 rk1806/

drwxrwxr-x 3 rootroot rootroot 4096 May 10 2022 rk1808/

drwxrwxr-x 2 rootroot rootroot 4096 May 10 2022 rk3036/

drwxrwxr-x 2 rootroot rootroot 4096 May 10 2022 rk3126c/

drwxrwxr-x 2 rootroot rootroot 4096 May 10 2022 rk3128/

drwxrwxr-x 2 rootroot rootroot 4096 May 10 2022 rk3128h/

drwxrwxr-x 2 rootroot rootroot 4096 May 10 2022 rk3229/

drwxrwxr-x 2 rootroot rootroot 4096 May 10 2022 rk3288/

drwxrwxr-x 16 rootroot rootroot 4096 May 10 2022 rk3308/

drwxrwxr-x 2 rootroot rootroot 4096 May 10 2022 rk3326/

drwxrwxr-x 2 rootroot rootroot 4096 May 10 2022 rk3328/

drwxrwxr-x 2 rootroot rootroot 4096 May 10 2022 rk3358/

drwxrwxr-x 2 rootroot rootroot 4096 May 10 2022 rk3399/

drwxrwxr-x 2 rootroot rootroot 4096 May 10 2022 rk3399pro/

drwxrwxr-x 2 rootroot rootroot 4096 May 10 2022 rk356x/

drwxrwxr-x 2 rootroot rootroot 4096 May 10 2022 rk3588/

drwxrwxr-x 2 rootroot rootroot 4096 May 10 2022 rockimg/

drwxrwxr-x 5 rootroot rootroot 4096 May 10 2022 rv1108/

drwxrwxr-x 3 rootroot rootroot 4096 May 10 2022 rv1126_rv1109/

lrwxrwxrwx 1 rootroot rootroot 6 May 10 2022 .target_product -> rk356x/

drwxrwxr-x 5 rootroot rootroot 4096 May 10 2022 userdata/

rootroot@ubuntu:~/rk3568_linux4.19/device/rockchip$ rm .BoardConfig.mk

rootroot@ubuntu:~/rk3568_linux4.19/device/rockchip$ cd ../..

rootroot@ubuntu:~/rk3568_linux4.19$ ll

total 64

drwxrwxr-x 16 rootroot rootroot 4096 May 10 2022 ./

drwxr-xr-x 18 rootroot rootroot 4096 Apr 30 18:16 ../

drwxrwxr-x 11 rootroot rootroot 4096 May 10 2022 app/

drwxrwxr-x 16 rootroot rootroot 4096 May 10 2022 buildroot/

lrwxrwxrwx 1 rootroot rootroot 31 May 10 2022 build.sh -> device/rockchip/common/build.sh*

drwxrwxr-x 9 rootroot rootroot 4096 May 10 2022 debian/

drwxrwxr-x 3 rootroot rootroot 4096 May 10 2022 device/

drwxrwxr-x 7 rootroot rootroot 4096 May 10 2022 docs/

lrwxrwxrwx 1 rootroot rootroot 27 May 10 2022 envsetup.sh -> buildroot/build/envsetup.sh*

drwxrwxr-x 31 rootroot rootroot 4096 May 10 2022 external/

drwxrwxr-x 27 rootroot rootroot 4096 May 10 2022 kernel/

lrwxrwxrwx 1 rootroot rootroot 24 May 10 2022 Makefile -> buildroot/build/Makefile*

lrwxrwxrwx 1 rootroot rootroot 36 May 10 2022 mkfirmware.sh -> device/rockchip/common/mkfirmware.sh*

drwxrwxr-x 3 rootroot rootroot 4096 May 10 2022 prebuilts/

drwxrwxr-x 10 rootroot rootroot 4096 May 10 2022 repo/

drwxrwxr-x 7 rootroot rootroot 4096 May 10 2022 .repo/

drwxrwxr-x 9 rootroot rootroot 4096 May 10 2022 rkbin/

lrwxrwxrwx 1 rootroot rootroot 33 May 10 2022 rkflash.sh -> device/rockchip/common/rkflash.sh*

drwxrwxr-x 5 rootroot rootroot 4096 May 10 2022 tools/

drwxrwxr-x 25 rootroot rootroot 4096 May 10 2022 u-boot/

drwxrwxr-x 9 rootroot rootroot 4096 May 10 2022 yocto/

rootroot@ubuntu:~/rk3568_linux4.19$ ./build.sh

You're building on Linux

Lunch menu...pick a combo:

  1. default BoardConfig.mk

  2. BoardConfig-rk3566-evb2-lp4x-v10-32bit.mk

  3. BoardConfig-rk3566-evb2-lp4x-v10.mk

  4. BoardConfig-rk3568-evb1-ddr4-v10-32bit.mk

  5. BoardConfig-rk3568-evb1-ddr4-v10-spi-nor-64M.mk

  6. BoardConfig-rk3568-evb1-ddr4-v10.mk

  7. BoardConfig-rk3568-nvr-spi-nand.mk

  8. BoardConfig-rk3568-nvr.mk

  9. BoardConfig-rk3568-uvc-evb1-ddr4-v10.mk

  10. BoardConfig.mk
    Which would you like? [0]: 2

switching to board: /home/rootroot/rk3568_linux4.19/device/rockchip/rk356x/BoardConfig-rk3566-evb2-lp4x-v10.mk

processing option: allsave

============================================

TARGET_ARCH=arm64

TARGET_PLATFORM=rk356x

TARGET_UBOOT_CONFIG=rk3566

TARGET_SPL_CONFIG=

TARGET_KERNEL_CONFIG=rockchip_linux_defconfig

TARGET_KERNEL_DTS=rk3566-evb2-lp4x-v10-linux

TARGET_TOOLCHAIN_CONFIG=

TARGET_BUILDROOT_CONFIG=rockchip_rk3566

TARGET_RECOVERY_CONFIG=rockchip_rk356x_recovery

TARGET_PCBA_CONFIG=

TARGET_RAMBOOT_CONFIG=

============================================

============Start building uboot============

TARGET_UBOOT_CONFIG=rk3566

=========================================

grep: .config: No such file or directory

make rk3568_defconfig rk3566.config -j16

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

HOSTLD scripts/kconfig/conf

configuration written to .config

Using .config as base

Merging ./arch/../configs/rk3566.config

Value of CONFIG_BASE_DEFCONFIG is redefined by fragment ./arch/../configs/rk3566.config:

Previous value: CONFIG_BASE_DEFCONFIG=""

New value: CONFIG_BASE_DEFCONFIG="rk3568_defconfig"

Value of CONFIG_LOADER_INI is redefined by fragment ./arch/../configs/rk3566.config:

Previous value: CONFIG_LOADER_INI=""

New value: CONFIG_LOADER_INI="RK3566MINIALL.ini"

merged configuration written to .config (needs make)

scripts/kconfig/conf --oldconfig Kconfig

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

CFG tpl/u-boot.cfg

GEN include/autoconf.mk

GEN tpl/include/autoconf.mk

GEN spl/include/autoconf.mk

CHK include/config/uboot.release

CHK include/generated/timestamp_autogenerated.h

UPD include/generated/timestamp_autogenerated.h

HOSTCC scripts/dtc/flattree.o

HOSTCC scripts/dtc/data.o

HOSTCC scripts/dtc/dtc.o

HOSTCC scripts/dtc/fstree.o

HOSTCC scripts/dtc/livetree.o

HOSTCC scripts/dtc/treesource.o

HOSTCC scripts/dtc/util.o

HOSTCC scripts/dtc/checks.o

SHIPPED scripts/dtc/dtc-lexer.lex.c

SHIPPED scripts/dtc/dtc-parser.tab.h

HOSTCC scripts/dtc/srcpos.o

SHIPPED scripts/dtc/dtc-parser.tab.c

HOSTCC scripts/dtc/dtc-lexer.lex.o

HOSTCC scripts/dtc/dtc-parser.tab.o

CHK include/config.h

CFG u-boot.cfg

HOSTLD scripts/dtc/dtc

2025-04-30T21:10:12 >>> host-libxml-parser-perl 2.44 Extracting

2025-04-30T21:10:12 >>> host-libxml-parser-perl 2.44 Patching

2025-04-30T21:10:12 >>> host-libxml-parser-perl 2.44 Configuring

2025-04-30T21:10:12 >>> host-libxml-parser-perl 2.44 Building

2025-04-30T21:10:13 >>> host-libxml-parser-perl 2.44 Installing to host directory

2025-04-30T21:10:14 >>> host-intltool 0.51.0 Extracting

2025-04-30T21:10:14 >>> host-intltool 0.51.0 Patching

2025-04-30T21:10:14 >>> host-intltool 0.51.0 Updating config.sub and config.guess

2025-04-30T21:10:14 >>> host-intltool 0.51.0 Patching libtool

2025-04-30T21:10:14 >>> host-intltool 0.51.0 Configuring

2025-04-30T21:10:16 >>> host-intltool 0.51.0 Building

2025-04-30T21:10:16 >>> host-intltool 0.51.0 Installing to host directory

2025-04-30T21:10:16 >>> upower 0.99.4 Extracting

2025-04-30T21:10:17 >>> upower 0.99.4 Patching

2025-04-30T21:10:17 >>> upower 0.99.4 Updating config.sub and config.guess

2025-04-30T21:10:17 >>> upower 0.99.4 Patching libtool

2025-04-30T21:10:17 >>> upower 0.99.4 Configuring

2025-04-30T21:10:18 >>> upower 0.99.4 Building

2025-04-30T21:10:21 >>> upower 0.99.4 Installing to staging directory

2025-04-30T21:10:21 >>> upower 0.99.4 Fixing libtool files

2025-04-30T21:10:21 >>> upower 0.99.4 Installing to target

2025-04-30T21:10:21 >>> usbmount 0.0.22 Extracting

2025-04-30T21:10:21 >>> usbmount 0.0.22 Patching

2025-04-30T21:10:21 >>> usbmount 0.0.22 Configuring

2025-04-30T21:10:21 >>> usbmount 0.0.22 Building

2025-04-30T21:10:21 >>> usbmount 0.0.22 Installing to target

2025-04-30T21:10:21 >>> host-attr 2.4.47 Extracting

2025-04-30T21:10:21 >>> host-attr 2.4.47 Patching

2025-04-30T21:10:21 >>> host-attr 2.4.47 Updating config.sub and config.guess

2025-04-30T21:10:21 >>> host-attr 2.4.47 Patching libtool

2025-04-30T21:10:21 >>> host-attr 2.4.47 Configuring

2025-04-30T21:10:23 >>> host-attr 2.4.47 Building

2025-04-30T21:10:23 >>> host-attr 2.4.47 Installing to host directory

2025-04-30T21:10:24 >>> host-acl 2.2.52 Extracting

2025-04-30T21:10:24 >>> host-acl 2.2.52 Patching

2025-04-30T21:10:24 >>> host-acl 2.2.52 Updating config.sub and config.guess

2025-04-30T21:10:24 >>> host-acl 2.2.52 Patching libtool

2025-04-30T21:10:24 >>> host-acl 2.2.52 Configuring

2025-04-30T21:10:26 >>> host-acl 2.2.52 Building

2025-04-30T21:10:27 >>> host-acl 2.2.52 Installing to host directory

2025-04-30T21:10:28 >>> host-fakeroot 1.20.2 Extracting

2025-04-30T21:10:28 >>> host-fakeroot 1.20.2 Patching

2025-04-30T21:10:28 >>> host-fakeroot 1.20.2 Updating config.sub and config.guess

2025-04-30T21:10:28 >>> host-fakeroot 1.20.2 Patching libtool

2025-04-30T21:10:28 >>> host-fakeroot 1.20.2 Configuring

2025-04-30T21:10:32 >>> host-fakeroot 1.20.2 Building

2025-04-30T21:10:32 >>> host-fakeroot 1.20.2 Installing to host directory

2025-04-30T21:10:33 >>> host-makedevs Extracting

2025-04-30T21:10:33 >>> host-makedevs Patching

2025-04-30T21:10:33 >>> host-makedevs Configuring

2025-04-30T21:10:33 >>> host-makedevs Building

2025-04-30T21:10:33 >>> host-makedevs Installing to host directory

2025-04-30T21:10:34 >>> host-mkpasswd Extracting

2025-04-30T21:10:34 >>> host-mkpasswd Patching

2025-04-30T21:10:34 >>> host-mkpasswd Configuring

2025-04-30T21:10:34 >>> host-mkpasswd Building

2025-04-30T21:10:35 >>> host-mkpasswd Installing to host directory

2025-04-30T21:10:35 >>> host-lz4 v1.7.5 Extracting

2025-04-30T21:10:35 >>> host-lz4 v1.7.5 Patching

2025-04-30T21:10:35 >>> host-lz4 v1.7.5 Configuring

2025-04-30T21:10:35 >>> host-lz4 v1.7.5 Building

2025-04-30T21:10:41 >>> host-lz4 v1.7.5 Installing to host directory

2025-04-30T21:10:42 >>> host-cmake 3.8.2 Extracting

2025-04-30T21:10:42 >>> host-cmake 3.8.2 Patching

2025-04-30T21:10:42 >>> host-cmake 3.8.2 Configuring

2025-04-30T21:11:31 >>> host-cmake 3.8.2 Building

2025-04-30T21:12:32 >>> host-cmake 3.8.2 Installing to host directory

2025-04-30T21:12:34 >>> host-lzo 2.10 Extracting

2025-04-30T21:12:34 >>> host-lzo 2.10 Patching

2025-04-30T21:12:34 >>> host-lzo 2.10 Configuring

2025-04-30T21:12:38 >>> host-lzo 2.10 Building

2025-04-30T21:12:40 >>> host-lzo 2.10 Installing to host directory

2025-04-30T21:12:41 >>> host-xz 5.2.3 Extracting

2025-04-30T21:12:41 >>> host-xz 5.2.3 Patching

2025-04-30T21:12:41 >>> host-xz 5.2.3 Updating config.sub and config.guess

2025-04-30T21:12:41 >>> host-xz 5.2.3 Patching libtool

2025-04-30T21:12:41 >>> host-xz 5.2.3 Configuring

2025-04-30T21:12:44 >>> host-xz 5.2.3 Building

2025-04-30T21:12:47 >>> host-xz 5.2.3 Installing to host directory

2025-04-30T21:12:48 >>> host-squashfs 3de1687d7432ea9b302c2db9521996f506c140a3 Extracting

2025-04-30T21:12:48 >>> host-squashfs 3de1687d7432ea9b302c2db9521996f506c140a3 Patching

2025-04-30T21:12:48 >>> host-squashfs 3de1687d7432ea9b302c2db9521996f506c140a3 Configuring

2025-04-30T21:12:48 >>> host-squashfs 3de1687d7432ea9b302c2db9521996f506c140a3 Building

2025-04-30T21:12:49 >>> host-squashfs 3de1687d7432ea9b302c2db9521996f506c140a3 Installing to host directory

2025-04-30T21:12:50 >>> Finalizing target directory

2025-04-30T21:12:51 >>> Sanitizing RPATH in target tree

2025-04-30T21:12:51 >>> Copying overlay board/rockchip/common/base

2025-04-30T21:12:51 >>> Copying overlay board/rockchip/common/recovery

2025-04-30T21:12:51 >>> Copying overlay board/rockchip/rk356x/fs-overlay/

2025-04-30T21:12:51 >>> Copying overlay board/rockchip/rk356x/fs-overlay-recovery/

2025-04-30T21:12:51 >>> Executing post-build script build/post.sh

2025-04-30T21:12:51 >>> Generating root filesystem image rootfs.cpio

2025-04-30T21:12:53 >>> Generating root filesystem image rootfs.ext2

2025-04-30T21:12:54 >>> Generating root filesystem image rootfs.squashfs

2025-04-30T21:12:54 >>> Generating root filesystem image rootfs.tar

Done in 23min 42s

log saved on /home/rootroot/rk3568_linux4.19/br.log

====Build rockchip_rk356x_recovery ok!====

pack recovery.img...fdt {

kernel {

ramdisk {

resource {

FIT description: U-Boot FIT source file for arm

Created: Wed Apr 30 21:12:55 2025

Image 0 (fdt)

Description: unavailable

Created: Wed Apr 30 21:12:55 2025

Type: Flat Device Tree

Compression: uncompressed

Data Size: 132633 Bytes = 129.52 KiB = 0.13 MiB

Architecture: AArch64

Load Address: 0xffffff00

Hash algo: sha256

Hash value: da2d2bca2623fa414783a3a0cb8a639bd587a338a1d1618a107a65f1d1cd3f38

Image 1 (kernel)

Description: unavailable

Created: Wed Apr 30 21:12:55 2025

Type: Kernel Image

Compression: uncompressed

Data Size: 22388744 Bytes = 21864.01 KiB = 21.35 MiB

Architecture: AArch64

OS: Linux

Load Address: 0xffffff01

Entry Point: 0xffffff01

Hash algo: sha256

Hash value: f156049aa6858f303160153f0cd89ba5b47a081f44fc41b388ebde4920042eef

Image 2 (ramdisk)

Description: unavailable

Created: Wed Apr 30 21:12:55 2025

Type: RAMDisk Image

Compression: uncompressed

Data Size: 6969510 Bytes = 6806.16 KiB = 6.65 MiB

Architecture: AArch64

OS: Linux

Load Address: 0xffffff02

Entry Point: unavailable

Hash algo: sha256

Hash value: 532ba65fb093dd61fdda1982c60a815ad211e3cd5b32c71547fc7a3dd4e53a5b

Image 3 (resource)

Description: unavailable

Created: Wed Apr 30 21:12:55 2025

Type: Multi-File Image

Compression: uncompressed

Data Size: 171008 Bytes = 167.00 KiB = 0.16 MiB

Hash algo: sha256

Hash value: e39aed695469d196c19ddaf64846c3a0faa923c5e3ac1e975a6cc7c46bacfcbc

Default Configuration: 'conf'

Configuration 0 (conf)

Description: unavailable

Kernel: kernel

Init Ramdisk: ramdisk

FDT: fdt

done.

you take 23:42.89 to build recovery

Running build_recovery succeeded.

Skipping build_ramboot for missing configs: RK_CFG_RAMBOOT.

Running build_all succeeded.

/usr/bin/fakeroot

Source buildroot/build/envsetup.sh

Top of tree: /home/rootroot/rk3568_linux4.19

===========================================

#TARGET_BOARD=rk3566

#OUTPUT_DIR=output/rockchip_rk3566

#CONFIG=rockchip_rk3566_defconfig

===========================================

make: Entering directory '/home/rootroot/rk3568_linux4.19/buildroot'

GEN /home/rootroot/rk3568_linux4.19/buildroot/output/rockchip_rk3566/Makefile

/home/rootroot/rk3568_linux4.19/buildroot/build/defconfig_hook.py -m /home/rootroot/rk3568_linux4.19/buildroot/configs/rockchip_rk3566_defconfig /home/rootroot/rk3568_linux4.19/buildroot/output/rockchip_rk3566/.rockchipconfig

BR2_DEFCONFIG='' KCONFIG_AUTOCONFIG=/home/rootroot/rk3568_linux4.19/buildroot/output/rockchip_rk3566/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/rootroot/rk3568_linux4.19/buildroot/output/rockchip_rk3566/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/rootroot/rk3568_linux4.19/buildroot/output/rockchip_rk3566/build/buildroot-config/tristate.config BR2_CONFIG=/home/rootroot/rk3568_linux4.19/buildroot/output/rockchip_rk3566/.config HOST_GCC_VERSION="7" BUILD_DIR=/home/rootroot/rk3568_linux4.19/buildroot/output/rockchip_rk3566/build SKIP_LEGACY= BR2_DEFCONFIG=/home/rootroot/rk3568_linux4.19/buildroot/configs/rockchip_rk3566_defconfig /home/rootroot/rk3568_linux4.19/buildroot/output/rockchip_rk3566/build/buildroot-config/conf --defconfig=/home/rootroot/rk3568_linux4.19/buildroot/output/rockchip_rk3566/.rockchipconfig Config.in

/home/rootroot/rk3568_linux4.19/buildroot/output/rockchip_rk3566/.rockchipconfig:285:warning: override: reassigning to symbol BR2_PACKAGE_MPP

/home/rootroot/rk3568_linux4.19/buildroot/output/rockchip_rk3566/.rockchipconfig:286:warning: override: reassigning to symbol BR2_PACKAGE_MPP_ALLOCATOR_DRM

/home/rootroot/rk3568_linux4.19/buildroot/output/rockchip_rk3566/.rockchipconfig:288:warning: override: reassigning to symbol BR2_PACKAGE_LINUX_RGA

/home/rootroot/rk3568_linux4.19/buildroot/output/rockchip_rk3566/.rockchipconfig:313:warning: override: reassigning to symbol BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_RTP

/home/rootroot/rk3568_linux4.19/buildroot/output/rockchip_rk3566/.rockchipconfig:314:warning: override: reassigning to symbol BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_RTPMANAGER

/home/rootroot/rk3568_linux4.19/buildroot/output/rockchip_rk3566/.rockchipconfig:315:warning: override: reassigning to symbol BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_RTSP

/home/rootroot/rk3568_linux4.19/buildroot/output/rockchip_rk3566/.rockchipconfig:321:warning: override: reassigning to symbol BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VIDEORATE

/home/rootroot/rk3568_linux4.19/buildroot/output/rockchip_rk3566/.rockchipconfig:322:warning: override: reassigning to symbol BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VORBIS

/home/rootroot/rk3568_linux4.19/buildroot/output/rockchip_rk3566/.rockchipconfig:323:warning: override: reassigning to symbol BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_OGG

/home/rootroot/rk3568_linux4.19/buildroot/output/rockchip_rk3566/.rockchipconfig:342:warning: override: reassigning to symbol BR2_PACKAGE_ROCKCHIP_TEST

/home/rootroot/rk3568_linux4.19/buildroot/output/rockchip_rk3566/.rockchipconfig:345:warning: override: reassigning to symbol BR2_PACKAGE_RKWIFIBT

configuration written to /home/rootroot/rk3568_linux4.19/buildroot/output/rockchip_rk3566/.config

make: Leaving directory '/home/rootroot/rk3568_linux4.19/buildroot'

create rootfs.img...done.

create parameter...done.

/home/rootroot/rk3568_linux4.19/device/rockchip/rk356x/parameter-buildroot-fit.txt

0x00002000@0x00004000(uboot),0x00002000@0x00006000(misc),0x00020000@0x00008000(boot),0x00020000@0x00028000(recovery),0x00010000@0x00048000(backup),0x00c00000@0x00058000(rootfs),0x00040000@0x00c58000(oem),-@0x00c98000(userdata:grow)

create recovery.img...done.

create misc.img...done.

Making /home/rootroot/rk3568_linux4.19/rockdev/oem.img from /home/rootroot/rk3568_linux4.19/device/rockchip/oem/oem_normal (auto sized)

Making /home/rootroot/rk3568_linux4.19/rockdev/oem.img from /home/rootroot/rk3568_linux4.19/device/rockchip/oem/oem_normal with size(17M)

0+0 records in

0+0 records out

0 bytes copied, 2.4725e-05 s, 0.0 kB/s

mke2fs 1.46.5 (30-Dec-2021)

Discarding device blocks: done

Creating filesystem with 17408 1k blocks and 4344 inodes

Filesystem UUID: 78ab8507-301f-442c-8263-d2acb051fde7

Superblock backups stored on blocks:

8193

Allocating group tables: done

Writing inode tables: done

Copying files into the device: done

Writing superblocks and filesystem accounting information: done

tune2fs 1.46.5 (30-Dec-2021)

Setting maximal mount count to -1

Setting interval between checks to 0 seconds

Making /home/rootroot/rk3568_linux4.19/rockdev/userdata.img from /home/rootroot/rk3568_linux4.19/device/rockchip/userdata/userdata_normal (auto sized)

Making /home/rootroot/rk3568_linux4.19/rockdev/userdata.img from /home/rootroot/rk3568_linux4.19/device/rockchip/userdata/userdata_normal with size(5M)

0+0 records in

0+0 records out

0 bytes copied, 2.1881e-05 s, 0.0 kB/s

mke2fs 1.46.5 (30-Dec-2021)

Discarding device blocks: done

Creating filesystem with 5120 1k blocks and 1280 inodes

Allocating group tables: done

Writing inode tables: done

Copying files into the device: done

Writing superblocks and filesystem accounting information: done

tune2fs 1.46.5 (30-Dec-2021)

Setting maximal mount count to -1

Setting interval between checks to 0 seconds

create uboot.img...done.

uboot fotmat type is fit, so ignore trust.img...

create loader...done.

create boot.img...done.

Image: image in rockdev is ready

Running build_firmware succeeded.

Make update.img

start to make update.img...

Android Firmware Package Tool v2.0

------ PACKAGE ------

Add file: ./package-file

package-file,Add file: ./package-file done,offset=0x800,size=0x28b,userspace=0x1

Add file: ./Image/MiniLoaderAll.bin

bootloader,Add file: ./Image/MiniLoaderAll.bin done,offset=0x1000,size=0x719c0,userspace=0xe4

Add file: ./Image/parameter.txt

parameter,Add file: ./Image/parameter.txt done,offset=0x73000,size=0x1f4,userspace=0x1

Add file: ./Image/uboot.img

uboot,Add file: ./Image/uboot.img done,offset=0x73800,size=0x400000,userspace=0x800

Add file: ./Image/misc.img

misc,Add file: ./Image/misc.img done,offset=0x473800,size=0xc000,userspace=0x18

Add file: ./Image/boot.img

boot,Add file: ./Image/boot.img done,offset=0x47f800,size=0x15a5200,userspace=0x2b4b

Add file: ./Image/recovery.img

recovery,Add file: ./Image/recovery.img done,offset=0x1a25000,size=0x1c4ac00,userspace=0x3896

Add file: ./Image/rootfs.img

rootfs,Add file: ./Image/rootfs.img done,offset=0x3670000,size=0x2e2bc000,userspace=0x5c578

Add file: ./Image/oem.img

oem,Add file: ./Image/oem.img done,offset=0x3192c000,size=0x1100000,userspace=0x2200

Add file: ./Image/userdata.img

userdata,Add file: ./Image/userdata.img done,offset=0x32a2c000,size=0x500000,userspace=0xa00

Add CRC...

Make firmware OK!

------ OK ------

********rkImageMaker ver 2.0********

Generating new image, please wait...

Writing head info...

Writing boot file...

Writing firmware...

Generating MD5 data...

MD5 data generated successfully!

New image generated successfully!

Making ./Image/update.img OK.

Running build_updateimg succeeded.

Saved manifest to /home/rootroot/rk3568_linux4.19/IMAGE/RK3566-EVB2-LP4X-V10-LINUX_20250430.2113_RELEASE_TEST/manifest_20250430.2113.xml

Running build_save succeeded.

grep: exceeded PCRE's backtracking limit

grep: exceeded PCRE's backtracking limit

grep: exceeded PCRE's backtracking limit

grep: exceeded PCRE's backtracking limit

grep: exceeded PCRE's backtracking limit

grep: exceeded PCRE's backtracking limit

grep: exceeded PCRE's backtracking limit

PLEASE CHECK BOARD GPIO POWER DOMAIN CONFIGURATION !!!!!

<<< ESPECIALLY Wi-Fi/Flash/Ethernet IO power domain >>> !!!!!

Check Node [pmu_io_domains] in the file: /home/rootroot/rk3568_linux4.19/kernel/arch/arm64/boot/dts/rockchip/rk3566-evb2-lp4x-v10-linux.dts

请再次确认板级的电源域配置!!!!!!

<<< 特别是Wi-Fi,FLASH,以太网这几路IO电源的配置 >>> !!!!!

检查内核文件 /home/rootroot/rk3568_linux4.19/kernel/arch/arm64/boot/dts/rockchip/rk3566-evb2-lp4x-v10-linux.dts 的节点 [pmu_io_domains]

Running build_allsave succeeded.

rootroot@ubuntu:~/rk3568_linux4.19$

相关推荐
攻城狮-鹏哥1 天前
DRV8301 三相电机驱动芯片的硬件参数与应用设计
驱动开发·单片机·嵌入式硬件·mcu·硬件架构·dsp开发·pcb工艺
程序员JerrySUN2 天前
驱动开发硬核特训 │ Day 23(下篇): i.MX8MP LCDIFv3 驱动中的 Regulator 系统全解
linux·驱动开发·嵌入式硬件
sukalot2 天前
window 显示驱动开发-微型端口程序的初始化(三)
驱动开发
程序员JerrySUN4 天前
驱动开发硬核特训 · Day 25 (附加篇):从设备树到驱动——深入理解Linux时钟子系统的实战链路
linux·运维·驱动开发
程序员JerrySUN4 天前
驱动开发硬核特训 · Day 24(上篇):走进Linux内核时钟子系统 —— 硬件基础全解析
linux·驱动开发·单片机
程序员JerrySUN4 天前
驱动开发硬核特训 │ Regulator 子系统全解
linux·驱动开发·嵌入式硬件
qxqxa4 天前
dma_request_slave_channel_compat 与 dma_request_channel 的区别
linux·驱动开发
程序员JerrySUN4 天前
驱动开发硬核特训 · Day 21(上篇) 抽象理解 Linux 子系统:内核工程师的视角
java·linux·驱动开发
kuinnebula5 天前
Linux GPIO驱动开发实战:Poll与异步通知双机制详解
驱动开发