This guide is about how to make a “Fast Package Update Image”; This means that you will only change one part of Android. For example, only change the U-Boot, Kernel or System.
Preparations:
Only Change the U-Boot
Rebuild U-Boot
$ cd PATH_YOUR_PROJECT
$ cd bootload/uboot
$ ./mk TARGETCopy files to output directory
$ cd PATH_YOUR_PROJECT
$ cp bootloader/uboot/build/u-boot.bin out/target/product/TARGET/bootloader.img
$ cp bootloader/uboot/build/u-boot.bin.usb.bl2 out/target/product/TARGET/upgrade/
$ cp bootloader/uboot/build/u-boot.bin.usb.tpl out/target/product/TARGET/upgrade/
$ cp bootloader/uboot/build/u-boot.bin.sd.bin out/target/product/TARGET/upgrade/Package Update Image
$ ./vendor/amlogic/common/tools/aml_upgrade/aml_image_v2_packer -r out/target/product/TARGET/upgrade/aml_upgrade_package_avb.conf
out/target/product/TARGET/upgrade/ out/target/product/TARGET/update.imgOnly Change the Bootup Logo
Rebuild Logo Image.(About more informations,You can refer to Build Bootup Logo For U-boot)
$ cd PATH_YOUR_PROJECT
$ source build/envsetup.sh
$ lunch TARGET_LUNCH
$ make logoimgPackage Update Image
$ ./vendor/amlogic/common/tools/aml_upgrade/aml_image_v2_packer -r out/target/product/TARGET/upgrade/aml_upgrade_package_avb.conf out/target/product/TARGET/upgrade/ out/target/product/TARGET/update.img
Only Change the DTB or Kernel
Rebuild DTB and Kernel
$ cd PATH_YOUR_PROJECT
$ source build/envsetup.sh
$ lunch TARGET_LUNCH
$ make bootimagePackage Update Image
$ ./vendor/amlogic/common/tools/aml_upgrade/aml_image_v2_packer -r out/target/product/TARGET/upgrade/aml_upgrade_package_avb.conf out/target/product/TARGET/upgrade/ out/target/product/TARGET/update.img
Only Change the System
Rebuild System Image
$ cd PATH_YOUR_PROJECT
$ source build/envsetup.sh
$ lunch TARGET_LUNCH
$ make systemimagePackage Update Image
$ ./vendor/amlogic/common/tools/aml_upgrade/aml_image_v2_packer -r out/target/product/TARGET/upgrade/aml_upgrade_package_avb.conf out/target/product/TARGET/upgrade/ out/target/product/TARGET/update.img
*Note**:
Replace
PATH_YOUR_PROJECT
to your project pathReplace
TARGET_LUNCH
to your lunch select.- For VIM3, it’s kvim3-userdebug.
- For VIM3L, it’s kvim3l-userdebug.
TARGET
should be kvim3 or kvim3l