Make a "Fast Package Update Image"

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 uboot
    $ make CROSS_COMPILE=aarch64-linux-gnu- TARGET_DECONFIG
    $ make CROSS_COMPILE=aarch64-linux-gnu-
  • Copy files to output directory

    $ cd PATH_YOUR_PROJECT
    $ cp uboot/fip/u-boot.bin out/target/product/TARGET/
    $ cp uboot/fip/u-boot.bin.usb.bl2 out/target/product/TARGET/upgrade/
    $ cp uboot/fip/u-boot.bin.usb.tpl out/target/product/TARGET/upgrade/
    $ cp uboot/fip/u-boot.bin.sd.bin out/target/product/TARGET/upgrade/
  • Package Update Image

    $ ./vendor/amlogic/tools/aml_upgrade/aml_image_v2_packer  -r out/target/product/TARGET/upgrade/aml_upgrade_package.conf  out/target/product/TARGET/upgrade/ out/target/product/TARGET/update.img
  • 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 logoimg
  • Package Update Image

    $ ./vendor/amlogic/tools/aml_upgrade/aml_image_v2_packer  -r out/target/product/TARGET/upgrade/aml_upgrade_package.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
    $ source device/khadas/TARGET/mkern.sh
  • Package Update Image

    $ ./vendor/amlogic/tools/aml_upgrade/aml_image_v2_packer  -r out/target/product/TARGET/upgrade/aml_upgrade_package.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 snod
  • Package Update Image

    $ ./vendor/amlogic/tools/aml_upgrade/aml_image_v2_packer  -r out/target/product/TARGET/upgrade/aml_upgrade_package.conf  out/target/product/TARGET/upgrade/ out/target/product/TARGET/update.img

Note:

  • Replace ‘PATH_YOUR_PROJECT’ to your project path
  • Replace ‘TARGET_LUNCH’ to your lunch select
  • ‘TARGET’ should be kvim or kvim2
  • ‘TARGET_DECONFIG’ should be kvim_defconfig or kvim2_defconfig