Upgrade to Android jb4.3_1.1.0 GA bootloader in an OTA

Showing results for 
Search instead for 
Did you mean: 

Upgrade to Android jb4.3_1.1.0 GA bootloader in an OTA

Contributor IV

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:

MEAT-INF folder

recovery folder

system folder



Would I insert the u-boot.bin into this and zip it? Is there a script?

Please help.



Labels (3)
0 Kudos
2 Replies

Contributor II

do you have the answer?

0 Kudos

Contributor IV

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:

ui_print("writting u-boot...");

write_raw_image("u-boot.bin", "/dev/mtd0");

show_progress(0.1, 5);

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.

ui_print("writting u-boot...");

package_extract_file("files/u-boot-no-padding.bin", "/tmp/u-boot-no-padding.bin");

sysfs_file_write("class/mmc_host/mmc0/mmc0:0001/boot_config", "1");

simple_dd("/tmp/u-boot-no-padding.bin", "/dev/block/mmcblk0", 1024);

sysfs_file_write("class/mmc_host/mmc0/mmc0:0001/boot_config", "8");

show_progress(0.1, 5);

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:

Please help

0 Kudos