OTA guide

Revision as of 05:34, 6 April 2017 by Tim.liang (talk | contribs) (Created page with "1.dd image to SD card dd if=core-image-full-cmdline-imx6qrom3420a1.sdcard of=/dev/sdc;sync 2.'''OTA clien'''t should download update.zip to /cache 3.'''OTA client''' shoul...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

1.dd image to SD card

dd if=core-image-full-cmdline-imx6qrom3420a1.sdcard of=/dev/sdc;sync

2.OTA client should download update.zip to /cache

3.OTA client should call as below

/tools/do_update.sh /cache/update.zip

then it returns

Write recovery command ...
Write BCB ...
0+1 records in
0+1 records out
14 bytes copied, 0.00918567 s, 1.5 kB/s
Setup OK. Reboot to recovery image!

4.OTA client should reboot system after above command

5.After reboot , system will enter recovery image for updating system and reboot system

Adv-Boot 2009.08-advantech_rom3420_1G_V2.210_svn414 (Mar 14 2014 - 09:51:19)
U-Boot 2016.03-OTA+g3adf656d (Apr 05 2017 - 06:05:49 +0000)
setup env for recovery..
flash target is MMC:0
Net:   FEC [PRIME]
Normal Boot
Hit any key to stop autoboot:  0
boota mmc0 recovery
kernel   @ 14008000 (5845616)
ramdisk  @ 15000000 (5362058)
fdt      @ 14f00000 (53290)
[OTA] Read recovery commands ...
[OTA] Check OTA package ...
[OTA] Unzip /cache/update.zip ...
Archive:  /cache/update.zip
  inflating: ota-update/updater-script
  inflating: ota-update/zImage
  inflating: ota-update/imx6q-rom3420-a1.dtb
[OTA] Parse updater-script in /cache/update.zip ...
[OTA] Update boot partition (zImage) ...
[OTA] Update done!
[OTA] Cleaning BCB ...
32+0 records in
32+0 records out
random: nonblocking pool is initialized
[OTA] BCB is clear!
[OTA] Going to reboot ...
reboot: Restarting system 

5.After updating system, OTA client can call command as below

/tools/do_update.sh result

it returns


which means system updates successfully