rk3588 代码kernel内核版本是5.10,Android 12,编译命令如下:
source build/envsetup.sh
lunch rk3588_s-userdebug
./build.sh-AUCKu -d rk3588s-evb1-lp4x-v10
代码编译相关命令:
./build.sh -UKAup
( WHERE: -U = build uboot
-C = build kernel with Clang各个平台编译命令汇总
-K = build kernel
-A = build android
-p = will build packaging in IMAGE
-o = build OTA package
-u = build update.img
-v = build android with 'user' or 'userdebug'
-d = huild kernel dts name
-V = build version
-J = build jobs
)
在编译rk3588的时候,本人还遇到了一些错误:
1、/u-boot/scripts/fit.sh: line 603: fdtget: command not found
此时需要安装fdtget
sudo apt-get install device-tree-compiler
2、/bin/sh: : lz4c: not found
make[]: *** [arch/arm64/boot/Image.lz4] error
make: *** [Image.lz4] error
很明显lz4命令没有找到,需要安装lz4
sudo apt-get install liblz4-tool
其次,也有可能遇到lz4版本的问题
sudo cp lz4 /usr/bin/lz4
可以用以下附件把系统中的lz4替换掉
lz4下载
固件版本下载
rk usb驱动:RKTools\windows\DriverAssitant_v5.1.1.zip
烧写工具:
RKTools\windows\AndroidTool\RKDevTool_Release_v2.84.zip
原作者:leezs0614
|