Flash different images using Linux_Upgrade_Tool

Attention

Pre-requisites

  1. You need to have the Linux_Upgrade_Tool on your host machine.

    Download Linux_Upgrade_Tool.

  2. You need to load the rk3399_loader_v1.xx.xxx.bin file to the board. This file can be generated by compiling the u-boot for the board. [Check the u-boot development guide](../linux-development-guide/u-boot.md)

./upgrade_tool db rk3399_loader_v1.xx.xxx.bin
Partitions and Offsets

Partition

Offset

uboot

0x04000

trust

0x06000

misc

0x08000

boot (bootable)

0x0a000

recovery

0x4a000

backup

0x5a000

userdata

0x6a000

rootfs (grow)

0xea000

You can use the above table to flash different images using Linux_Upgrade_Tool or Windows RKDevTool

./upgrade_tool wl <offset> <image name>

# Example
./upgrade_tool wl 0x4000 idbloader.img
Flashing Firmware Images

Image Name

Flashing Command

idbloader.img

./upgrade_tool wl 0x40 idbloader.img or

./upgrade_tool wl 64 idbloader.img

u-boot.img

./upgrade_tool wl 0x4000 u-boot.img or

./upgrade_tool wl 16384 u-boot.img or

(using Rockchip updateimg firmware) ./upgrade_tool di -u u-boot.img

trust.img

./upgrade_tool wl 0x6000 trust.img or

./upgrade_tool wl 24576 trust.img or

(using Rockchip updateimg firmware) ./upgrade_tool di -t trust.img

misc.img

./upgrade_tool wl 0x8000 misc.img or

./upgrade_tool wl 32768 misc.img or

(using Rockchip updateimg firmware) ./upgrade_tool di -m misc.img

boot.img

./upgrade_tool wl 0xa000 boot.img or

./upgrade_tool wl 40960 boot.img or

(using Rockchip updateimg firmware) ./upgrade_tool di -b boot.img

recovery.img

./upgrade_tool wl 0x2a000 recovery.img or

./upgrade_tool wl 174080 recovery.img or

(using Rockchip updateimg firmware) ./upgrade_tool di -r recovery.img

backup.img

./upgrade_tool wl 0x3a000 backup.img or

./upgrade_tool wl 241664 backup.img or

(using Rockchip updateimg firmware) ./upgrade_tool di -k backup.img

userdata.img

./upgrade_tool wl 0x4a000 userdata.img or

./upgrade_tool wl 307200 userdata.img

rootfs.img

./upgrade_tool wl 0xca000 rootfs.img or

./upgrade_tool wl 81920 rootfs.img