Verification OTA w/ update.zip and diff-ota.zip

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Verification OTA w/ update.zip and diff-ota.zip

Verification OTA w/ update.zip and diff-ota.zip

Step 1: Build r13.4.1

        make         /* Store images file for MFGTool use */

        make dist    /* Get ota_1.zip, and target_files_1.zip at out/dist, store them in a dedicated directory, for example .../release-1 */

Step 2: Modify any files in source code base;

Step 3: make dist    /* Get ota_2.zip, and target_files_2.zip at out/dist, store them in a dedicated directory, for example .../release-2 */

Step 4: MFGTool flash release-1 images;

Step 5: cp ota_2.zip to SD;

Step 6: start board, then execute following commands under serial terminal;

        cp /sdcard/ota_2.zip /cache/ota_2.zip

        mkdir /cache/recovery

        echo --update_package=/cache/ota_2.zip > /cache/recovery/command

        sync

        reboot recovery

        Then you can see the upgrade successful.

Step 7: MFGTool flash release-1 images;

Step 8: ./build/tools/releasetools/ota_from_target_files -i .../release-1/target_files_1.zip .../release-2/target_files_2.zip ./diff_from_1_to_2.zip Step 9: cp diff_from_1_to_2.zip to SD;

Step10: start board, then execute following commands under serial terminal;

        cp /sdcard/diff_from_1_to_2.zip /cache/diff.zip

        mkdir /cache/recovery

        echo --update_package=/cache/diff.zip > /cache/recovery/command

        sync

        reboot recovery

Tags (2)
Comments

Hi,

I am trying to update images over USB, as mentioned in above steps for imx6 sabersd (android 6.0.1). But not able to see "upgrade successful." message on the console and not able to see the changes after flashing done.

Below are the steps i am following,

1. $source build/envsetup.sh
2. $lunch sabresd_6dq-user
3. $make
4. Flash the generated images using mfgtool
5. Do changes one of the packages
6. $make dist
7. cp out/target/product/sabresd_6dq/sabresd_6dq-ota-20160331.zip /media/usb/ (copy from Host to USB device)
8. cp /mnt/media_rw/USB/sabresd_6dq-ota-20160331.zip /cache
9. $echo --update_package=/cache/sabresd_6dq-ota-20160331.zip > /cache/recovery/command
10. $reboot recovery
After step #10 system halting for some time with the below logs
init: Starting service 'recovery'...
EXT4-fs (mmcblk3p6): Ignoring removed nomblk_io_submit option
EXT4-fs (mmcblk3p6): mounted filesystem with ordered data mode. Opts: nomblk_io_submit
random: nonblocking pool is initialized
EXT4-fs (mmcblk3p6): Ignoring removed nomblk_io_submit option
EXT4-fs (mmcblk3p6): mounted filesystem with ordered data mode. Opts: nomblk_io_submit
SysRq : Emergency Remount R/O
Emergency Remount complete
reboot: Restarting system with command ''
Please let me know if anything wrong in the above steps or is there any other way to flash in new versions of android.
Thanks in advance.
Babu A
No ratings
Version history
Last update:
‎07-21-2013 07:40 PM
Updated by: