20250718在ubuntu22.04.5下编译RK3588的Buildroot【linux-6.1】

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/rk3588_linux6.1_release_v1.2.0_20241220$ ll

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/rk3588_linux6.1_release_v1.2.0_20241220$ cat rk3588_linux6.1_release_v1.2.0_20241220.tar_0* > rk3588_linux6.1_release_v1.2.0_20241220.tar

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/rk3588_linux6.1_release_v1.2.0_20241220$ ll

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/rk3588_linux6.1_release_v1.2.0_20241220$ tar xvf rk3588_linux6.1_release_v1.2.0_20241220.tar

rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/rk3588_linux6.1_release_v1.2.0_20241220$ .repo/repo/repo sync -l

2025/7/18 20:43:41 rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$ ll

2025/7/18 20:43:51 rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$ cd rk3588_linux6.1_release_v1.2.0_20241220/

2025/7/18 20:43:52 rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/rk3588_linux6.1_release_v1.2.0_20241220 ll \[2025/7/18 20:44:37\] rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:\~/rk3588_linux6.1_release_v1.2.0_20241220 ./build.sh lunch
2025/7/18 20:44:38 3. rockchip_rk3588_evb7_v11_defconfig
2025/7/18 20:44:50 Which would you like? 1: 3
2025/7/18 20:45:22 rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/rk3588_linux6.1_release_v1.2.0_20241220$ ./build.sh

2025/7/18 23:09:32 rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/rk3588_linux6.1_release_v1.2.0_20241220$ ll

2025/7/18 23:09:36 rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/rk3588_linux6.1_release_v1.2.0_20241220$ du -sh

编译完成的IMG固件:

Y:\rk3588_linux6.1_release_v1.2.0_20241220\output\update\Image\update.img

Y:\rk3588_linux6.1_release_v1.2.0_20241220\kernel-6.1\arch\arm64\boot\dts\rockchip\rk3588-evb7-v11-linux.dtb

Y:\rk3588_linux6.1_release_v1.2.0_20241220\kernel-6.1\.config

Automatically generated file; DO NOT EDIT.

Linux/arm64 6.1.75 Kernel Configuration

20250718在ubuntu22.04.5下编译RK3588的Buildroot【linux-6.1】

2025/7/18 23:41

缘起:在 海鲜市场拿到了这份找了很久很久的SDK。

以EVB7模式开搞!

精简编译LOG:

2025/7/18 20:43:41 rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$ ll

2025/7/18 20:43:51 rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$ cd rk3588_linux6.1_release_v1.2.0_20241220/

2025/7/18 20:43:52 rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/rk3588_linux6.1_release_v1.2.0_20241220$ ll

2025/7/18 20:43:52 rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/rk3588_linux6.1_release_v1.2.0_20241220$

2025/7/18 20:44:37 rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/rk3588_linux6.1_release_v1.2.0_20241220$ ./build.sh lunch

2025/7/18 20:44:38 Log colors: message notice warning error fatal

2025/7/18 20:44:38

2025/7/18 20:44:38 Parsing supported commands...

2025/7/18 20:44:38

2025/7/18 20:44:38 Log saved at /home/rootroot/rk3588_linux6.1_release_v1.2.0_20241220/output/sessions/2025-07-18_20-44-44

2025/7/18 20:44:38 Pick a defconfig:

2025/7/18 20:44:38

2025/7/18 20:44:38 1. rockchip_defconfig

2025/7/18 20:44:38 2. rockchip_rk3588_evb1_lp4_v10_defconfig

2025/7/18 20:44:38 3. rockchip_rk3588_evb7_v11_defconfig

2025/7/18 20:44:38 4. rockchip_rk3588_ipc_evb1_v10_defconfig

2025/7/18 20:44:38 5. rockchip_rk3588_multi_ipc_evb1_v10_defconfig

2025/7/18 20:44:38 6. rockchip_rk3588s_evb1_lp4x_v10_defconfig

2025/7/18 20:44:50 Which would you like? 1: 3

2025/7/18 20:44:50 Switching to defconfig: /home/rootroot/rk3588_linux6.1_release_v1.2.0_20241220/device/rockchip/.chip/rockchip_rk3588_evb7_v11_defconfig

2025/7/18 20:44:50 mkdir -p /home/rootroot/rk3588_linux6.1_release_v1.2.0_20241220/output/kconf/lxdialog

2025/7/18 20:44:50 make CC="gcc" HOSTCC="gcc" \

2025/7/18 20:44:50 obj=/home/rootroot/rk3588_linux6.1_release_v1.2.0_20241220/output/kconf -C /home/rootroot/rk3588_linux6.1_release_v1.2.0_20241220/device/rockchip/common/kconfig -f Makefile.br conf

2025/7/18 20:44:50 make1: Entering directory '/home/rootroot/rk3588_linux6.1_release_v1.2.0_20241220/device/rockchip/common/kconfig'

2025/7/18 20:44:50 gcc -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE -I/home/rootroot/rk3588_linux6.1_release_v1.2.0_20241220/output/kconf -DCONFIG_=\"\" -MM *.c > /home/rootroot/rk3588_linux6.1_release_v1.2.0_20241220/output/kconf/.depend 2>/dev/null || :

2025/7/18 20:44:51 gcc -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE -I/home/rootroot/rk3588_linux6.1_release_v1.2.0_20241220/output/kconf -DCONFIG_=\"\" -c conf.c -o /home/rootroot/rk3588_linux6.1_release_v1.2.0_20241220/output/kconf/conf.o

2025/7/18 20:44:51 gcc -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE -I/home/rootroot/rk3588_linux6.1_release_v1.2.0_20241220/output/kconf -DCONFIG_=\"\" -I. -c /home/rootroot/rk3588_linux6.1_release_v1.2.0_20241220/output/kconf/zconf.tab.c -o /home/rootroot/rk3588_linux6.1_release_v1.2.0_20241220/output/kconf/zconf.tab.o

2025/7/18 20:44:51 In file included from /home/rootroot/rk3588_linux6.1_release_v1.2.0_20241220/output/kconf/zconf.tab.c:2518:

2025/7/18 20:44:51 ./util.c: In function 'file_write_dep':

2025/7/18 20:44:51\] ./util.c:86:26: warning: '%s' directive writing 10 or more bytes into a region of size between 1 and 4097 \[-Wformat-overflow=

2025/7/18 20:44:51 86 | sprintf(buf2, "%s%s", dir, name);

2025/7/18 20:44:51 | ^~

2025/7/18 20:44:51 ./util.c:86:9: note: 'sprintf' output 11 or more bytes (assuming 4107) into a destination of size 4097

2025/7/18 20:44:51 86 | sprintf(buf2, "%s%s", dir, name);

2025/7/18 20:44:51 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2025/7/18 20:44:51 gcc -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE -I/home/rootroot/rk3588_linux6.1_release_v1.2.0_20241220/output/kconf -DCONFIG_=\"\" /home/rootroot/rk3588_linux6.1_release_v1.2.0_20241220/output/kconf/conf.o /home/rootroot/rk3588_linux6.1_release_v1.2.0_20241220/output/kconf/zconf.tab.o -o /home/rootroot/rk3588_linux6.1_release_v1.2.0_20241220/output/kconf/conf

2025/7/18 20:44:51 rm /home/rootroot/rk3588_linux6.1_release_v1.2.0_20241220/output/kconf/zconf.tab.c

2025/7/18 20:44:51 make1: Leaving directory '/home/rootroot/rk3588_linux6.1_release_v1.2.0_20241220/device/rockchip/common/kconfig'

2025/7/18 20:44:51 #

2025/7/18 20:44:51 # configuration written to /home/rootroot/rk3588_linux6.1_release_v1.2.0_20241220/output/.config

2025/7/18 20:44:51 #

2025/7/18 20:44:51 Using current kernel version(6.1)

2025/7/18 20:44:54 rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/rk3588_linux6.1_release_v1.2.0_20241220$

2025/7/18 20:45:22 rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/rk3588_linux6.1_release_v1.2.0_20241220$ ./build.sh

2025/7/18 20:45:22 Log colors: message notice warning error fatal

2025/7/18 20:45:22

2025/7/18 20:45:22 Log saved at /home/rootroot/rk3588_linux6.1_release_v1.2.0_20241220/output/sessions/2025-07-18_20-45-29

2025/7/18 20:45:23 Using last kernel version(6.1)

2025/7/18 23:00:18 Debian control file:

2025/7/18 23:00:18 Package: linux-headers-6.1-arm64

2025/7/18 23:00:18 Source: linux-rockchip (6.1)

2025/7/18 23:00:18 Version: 6.1-rockchip

2025/7/18 23:00:18 Architecture: aarch64

2025/7/18 23:00:18 Section: kernel

2025/7/18 23:00:18 Priority: optional

2025/7/18 23:00:18 Multi-Arch: foreign

2025/7/18 23:00:18 Maintainer: Tao Huang <huangtao@rock-chips.com>

2025/7/18 23:00:18 Homepage: https://www.kernel.org/
2025/7/18 23:00:18 Description: Kbuild and headers for Rockchip Linux 6.1 arm64 configuration
2025/7/18 23:00:18 Packing linux-headers-6.1-arm64_aarch64.deb...
2025/7/18 23:00:40 Running mk-kernel.sh - linux-headers-aarch64 succeeded.
2025/7/18 23:00:40 Running mk-kernel.sh - linux-headers succeeded.
2025/7/18 23:00:40 Running 99-all.sh - build_all succeeded.

2025/7/18 23:09:31 rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/rk3588_linux6.1_release_v1.2.0_20241220$

2025/7/18 23:09:32 rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/rk3588_linux6.1_release_v1.2.0_20241220$ ll

2025/7/18 23:09:33 rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/rk3588_linux6.1_release_v1.2.0_20241220$

2025/7/18 23:09:36 rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/rk3588_linux6.1_release_v1.2.0_20241220$ du -sh

2025/7/18 23:10:04 50G .

2025/7/18 23:11:34 rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/rk3588_linux6.1_release_v1.2.0_20241220$