Skip to main content

Update Images for Rockchip platform-based Boards by Local OTA

1. Introduction


  1. The device must be able to boot up to Debian
  2. Only update images from the same OS (e.g., Debian upgrade to Debian)
  3. Using update.img to upgrade

2. Preparatory Tools


  • Host computer with Windows
  • Firmware
  • (Optional) Debug Cable

3. Generate update.img


Run mkupdate.bat in rockdev to generate update.img.
☕Have a cup of tea while waiting the process to complete.

rockdev>Afptool -pack ./ Image\update.img
Android Firmware Package Tool v2.29
------ PACKAGE ------
Add file: .\package-file
package-file,Add file: .\package-file done,offset=0x800,size=0x268,userspace=0x1
Add file: .\Image/MiniLoaderAll.bin
bootloader,Add file: .\Image/MiniLoaderAll.bin done,offset=0x1000,size=0xbe1f9,userspace=0x17d
Add file: .\Image/parameter.txt
... ...
Add CRC...
Make firmware OK!
------ OK ------

rockdev>RKImageMaker.exe -RK3576 Image\MiniLoaderAll.bin Image\update.img update.img -os_type:androidos
********rkImageMaker ver 2.29********
Generating new image, please wait...
Writing head info...
Writing boot file...
Writing firmware...
Generating MD5 data...
MD5 data generated successfully!
New image generated successfully!

rockdev>rem update.img is new format, Image\update.img is old format, so delete older format

rockdev>del Image\update.img

rockdev>pause

4. Update images


  • Copy update.img to /userdata or '/sdcard' on the Development Board.
tip

"update.img" can be copied to the Development Board via USB drive/SD card, network commands (scp/ftp...), etc.

  • Use adb shell or Linux Terminal or Debug console, send the following command:
# update-ota

It will start upgrading automatically, ☕have a cup of tea while waiting the process to complete.
Once the upgrade is finished, the Development Board will bootup to debian automatically.