Note: Be sure to update the remote warehouse after decompression. The following is how to update from gitlab:
1. Enter the SDK root directorycd ~/proj/RK3588_Android12.02. Download remote bundle repositorygit clone https://gitlab.com/T-Firefly/rk3588-android12.0-bundle.git .bundle3. If the download warehouse fails, it may be stuck or failed problems during synchronization. we can download and unzip it from the cloud disk link below to the SDK root directory.7z x rk3588-android12.0-bundle.7z -r -o. && mv rk3588-android12.0-bundle .bundle4. Update the SDK, and subsequent updates do not need to pull the remote warehouse again, just execute the following command.bundle/update5. Follow the prompts to update the content to FETCH_HEAD, synchronize FETCH_HEAD to the firefly branchgit rebase FETCH_HEAD
After packaging, it will be in rockdev/Image-rk3588_firefly_itx_3588j/ Generate unified firmware under the directory: (product name )XXX_XXX_date XXX.img
It is also very simple to package the unified firmware update.img under Windows. Copy the generated files to the rockdev \ Image directory of AndroidTool, and then run the mkupdate.bat batch file under the rockdev directory to create up
date.img and store it in rockdev \ Image directory.
kernel.img and resource.img for Android12.0 are included in boot.img, After compiling the kernel, you need to run the ./mkimage.sh command in the android root directory to repackage boot.img, and then upgrade boot.img of the rockdev/Image-rk3588_firefly_itx_3588j/ directory.
Principle of compilation: in the kernel directory, the generated kernel.img And resource.img Replace with old boot.img, so you need to use BOOT_IMG=XXX parameter specification boot.img when compiling. The command is as follows:
When compiling, executing ./mkimage.sh will repackage boot.img and super.img, and copy other related image files to the directory rockdev/Image-rk3588_firefly_itx_3588j/. The following lists the image files used by general firmware:
Image
Instruction
boot.img
including ramdis、kernel、dtb
dtbo.img
Device Tree Overlays
MiniLoaderAll.bin
including first level loader
misc.img
including recovery-wipe boot symbol information, after flashing it will enter recovery
parameter.txt
including partition information
recovery.img
including recovery-ramdis、kernel、dtb
super.img
including the contents of odm、vendor、system partitions
uboot.img
including uboot image
vbmeta.img
including avb verification information, used for AVB verification
update.img
including the above img files to be flashed, can be used for the tool to directly flash the whole image package