Does anyone know how to get the bootloader to upgrade with the rest of the Android system in an OTA? The contents of an OTA contain:
Would I insert the u-boot.bin into this and zip it? Is there a script?
I have found in the JB4.3_1.1.0 GA documentation; specifically the FAQ:
40 How do I customize the update script to update uboot?
Because Android only upgrades the boot.img, system.img, and recovery partitions, the automatically generated update
package does not support upgrading bootloader. If you need to upgrade the bootloader, you need to modify the update
package and perform the signing work manually.
1. Unzip the update.zip, and then modify the updater_script by implementing the following operations.
To upgrade uboot to NOR flash, refer to this script:
To upgrade uboot for eMMC storage, because u-boot may be stored in the "boot partition" of eMMC, you need to
perform some system file operations before dd, for example,
# Write u-boot to 1K position.
# u-boot binary should be a no padding uboot!
# For eMMC(iNand) device, needs to unlock boot partition.
simple_dd("/tmp/u-boot-no-padding.bin", "/dev/block/mmcblk0", 1024);
2. Resign the update package by using the following command:
$ make_update_zip.sh ~/mydroid ~/update-dir
I want to do this in the update script. I get that. My question is do I use the NOR flash or eMMC? This runs off the sdcard (I thought). The other question is does this go in the beginning or the end of the update script. I'm pretty lost? :smileyconfused: