20241031使用Rockchip原厂RK3566的Buildroot编译RK3399方案
20241031使用Rockchip原厂RK3566的Buildroot编译RK3399方案
2024/10/31 18:06
RK3566_Linux5.10_V1.2.0_20241022.tar.gz
rk356x_linux5p10_v120_20241025_1020.tgz
由于Rockchip可能像全志一样,为了简单,直接所有的SDK都打包/放置在一个git仓库里了,方便管理。
所以你才能在RK3566的SDK中解析出来/切换到RK3399的部分。
不过我找来找去,都没有发现RK3576的DTS/DTSI,在Android13的rockchip目录也没有发现/找到RK3576的DTS/DTSI。
也许是供应商特地拿掉了RK3576的部分。
话说回来,也许RK3576现阶段还是不太成熟/可靠稳定。
Rockchip没有信心/能力/经验将它合并到mainline中。
viewpro@viewpro-ThinkBook-16-G5-IRH:~/rk3566_buildroot_v120$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/rk3566_buildroot_v120$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/rk3566_buildroot_v120$ ./build.sh rk3568:rockchip_defconfig^C
viewpro@viewpro-ThinkBook-16-G5-IRH:~/rk3566_buildroot_v120$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/rk3566_buildroot_v120$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/rk3566_buildroot_v120$ ./build.sh lunch
Log colors: message notice warning error fatal
Log saved at /home/viewpro/rk3566_buildroot_v120/output/sessions/2024-10-31_20-19-49
Pick a defconfig:
1. rockchip_defconfig
2. rockchip_rk3588_evb1_lp4_v10_defconfig
3. rockchip_rk3588_evb7_v11_defconfig
4. rockchip_rk3588_ipc_evb1_v10_defconfig
5. rockchip_rk3588_multi_ipc_evb1_v10_defconfig
6. rockchip_rk3588s_evb1_lp4x_v10_defconfig
Which would you like? [1]: 1
Switching to defconfig: /home/viewpro/rk3566_buildroot_v120/device/rockchip/.chip/rockchip_defconfig
#
# configuration written to /home/viewpro/rk3566_buildroot_v120/output/.config
#
Using last kernel version(5.10)
viewpro@viewpro-ThinkBook-16-G5-IRH:~/rk3566_buildroot_v120$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/rk3566_buildroot_v120$ ./build.sh rk3399:rockchip_defconfig
Log colors: message notice warning error fatal
Log saved at /home/viewpro/rk3566_buildroot_v120/output/sessions/2024-10-31_20-20-06
Switching to chip: rk3399
Switching to defconfig: /home/viewpro/rk3566_buildroot_v120/device/rockchip/.chip/rockchip_defconfig
#
# configuration written to /home/viewpro/rk3566_buildroot_v120/output/.config
#
Using last kernel version(5.10)
viewpro@viewpro-ThinkBook-16-G5-IRH:~/rk3566_buildroot_v120$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/rk3566_buildroot_v120$ ./build.sh lunch
Log colors: message notice warning error fatal
Log saved at /home/viewpro/rk3566_buildroot_v120/output/sessions/2024-10-31_20-20-12
Pick a defconfig:
1. rockchip_defconfig
2. rockchip_rk3399_evb_ind_lpddr4_defconfig
3. rockchip_rk3399_firefly_defconfig
4. rockchip_rk3399_sapphire_excavator_defconfig
5. rockchip_rk3399_sapphire_excavator_lp4_defconfig
Which would you like? [1]: 5
Switching to defconfig: /home/viewpro/rk3566_buildroot_v120/device/rockchip/.chip/rockchip_rk3399_sapphire_excavator_lp4_defconfig
#
# configuration written to /home/viewpro/rk3566_buildroot_v120/output/.config
#
Using last kernel version(5.10)
viewpro@viewpro-ThinkBook-16-G5-IRH:~/rk3566_buildroot_v120$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/rk3566_buildroot_v120$
viewpro@viewpro-ThinkBook-16-G5-IRH:~/rk3566_buildroot_v120$ ./build.sh
【出错1:】
2024-10-31T12:52:17 >>> camera-engine-rkisp 1.0 Syncing from source dir /home/viewpro/rk3566_buildroot_v120/buildroot/../external/camera_engine_rkisp
2024-10-31T12:52:17 ERROR: /home/viewpro/rk3566_buildroot_v120/buildroot/../external/camera_engine_rkisp does not exist
2024-10-31T12:52:17 make[1]: *** [package/pkg-generic.mk:248: /home/viewpro/rk3566_buildroot_v120/buildroot/output/rockchip_rk3399/build/camera-engine-rkisp-1.0/.stamp_rsynced] Error 1
2024-10-31T12:52:17 make: *** [Makefile:114: _all] Error 2
2024-10-31T12:52:17 make: Leaving directory '/home/viewpro/rk3566_buildroot_v120/buildroot'
将荣品的camera_engine_rkisp打包之后再拷贝到这里之后,解压缩即可。
【考虑到的是,在buildroot下,暂时用不到isp,直接拷贝过去,先编译了再说!^_】
Z:\rk3566_buildroot_v120\external\camera_engine_rkaiq
Z:\source\external\camera_engine_rkaiq
Z:\source\external\camera_engine_rkisp
打开build.sh的时候,无意中发现切换平台的格式:
# Special handle for chip and defconfig
# e.g. ./build.sh rk3588:rockchip_defconfig
for opt in $OPTIONS; do
if [ -d "$RK_CHIPS_DIR/${opt%%:*}" ]; then
OPTIONS=$(echo "$OPTIONS" | xargs -n 1 | \
sed "s/^$opt$/chip:$opt/" | xargs)
elif echo "$opt" | grep -q "^[0-9a-z_]*_defconfig$"; then
OPTIONS=$(echo "$OPTIONS" | xargs -n 1 | \
sed "s/^$opt$/defconfig:$opt/" | xargs)
fi
done