这篇文档介绍在只修改部分内容(如uboot和linux)的情况下如何快速打包安卓升级固件而不需要整个完全打包。
准备:
仅仅修改U-boot
1 2 3 4
| $ cd PATH_YOUR_PROJECT $ cd bootloader/uboot $ ./mk TARGET
|
1 2 3 4 5
| $ 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/
|
1 2
| $ ./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
|
仅仅修改开机logo
1 2 3 4
| $ cd PATH_YOUR_PROJECT $ source build/envsetup.sh $ lunch TARGET_LUNCH $ make logoimg
|
1
| $ ./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
|
仅仅修改DTB或kernel
1 2 3 4
| $ cd PATH_YOUR_PROJECT $ source build/envsetup.sh $ lunch TARGET_LUNCH $ make bootimage
|
1
| $ ./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
|
仅仅修改System
1 2 3 4
| $ cd PATH_YOUR_PROJECT $ source build/envsetup.sh $ lunch TARGET_LUNCH $ make systemimage
|
1
| $ ./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
|
注意
- 替换
PATH_YOUR_PROJECT
为你自己的项目路径
- 替换
TARGET_LUNCH
为你自己选择的lunch.
- 编译VIM3时,选择 kvim3-userdebug.
- 编译VIM3L时,选择 kvim3l-userdebug.
TARGET
应该为kvim3
或kvim3l