3. Compile Source
❶ Unzip the source.
1tar xvf ROCKCHIP_ANDROID12.0_SDK_RELEASE.tar.gz
2cd ROCKCHIP_ANDROID12.0_SDK_RELEASE
❷ Compile uboot.
1cd u-boot
2./make.sh rk3568
❸ Compile kernel.
1cd kernel-4.19/
2make ARCH=arm64 rockchip_defconfig android-11.config
3make ARCH=arm64 rk3568-evb2-lp4x-v10.img -j24
kernel.img
and resource.img
are included in boot.img
.
If only update kernel, complie as follow. After compiling, user can directly flash the boot.img
under kernel directory.
1make ARCH=arm64 rockchip_defconfig android-11.config
2make ARCH=arm64 BOOT_IMG=../rockdev/Image-rk3568_s/boot.img rk3568-evb2-lp4x-v10.img -j24
❹ Compile Android.
1source build/envsetup.sh
2lunch rk3568_r-userdebug
3make -j12
❺ Generated image file.
1./mkimage.sh
2./build.sh -u //package update.img
3cd rockdev
4ls
Images
and update.img
are generated in current directory.