Blog Categories

Blog Recent Comment

  1. Reflashing in MASKROM mode for RockChip devices Thursday, Jul 19, 2018
    Hello! I have a tvbox rk3229, and I'm having probl...
    Comment by Marcelo
  2. Ugoos Launcher 1.4.7 Release Tuesday, Jul 10, 2018
    Best launcher, now after update is always crashing...
    Comment by ricardo
  3. Firmware Upgrade Guide for Rockchip devices Friday, Jul 6, 2018
    Make sure and check connect to PC is checked in th...
    Comment by Mike

Rockchip Firmware Upgrade Guide for Linux users

Thursday, Mar 3, 2016 | Post by admin | 0 comment(s)

Here is Rockchip reflashing tutorial for those who has no Windows host PC and just obtain Linux distributive.

Here is Ugoos Rockchip Firmware Guide for Windows Host PC.

 

Rockchip provides a command line utility named "upgrade_tool" under Linux, which support flashing of both update.img and partition images.

 

In addition, we have two choices with regard to open source tools:

 

 

Both of them only support flashing partition images, not update.img. rkflashtool is a command line tool, and flashkit has a nice and easy to use GUI with command line support lately added.

 

If you use Upgrade Tool:

There is no need to install device driver. Just connect the device and host PC.

Download Linux_Upgrade_Tool, and install it to host filesystem:


  tar xf Linux_UpgradeTool_v1.2.tar.gz

   cd Linux_UpgradeTool_v1.2

   sudo mv upgrade_tool /usr/local/bin

   sudo chown root:root /usr/local/bin/upgrade_tool


 

Flash update.img:


   sudo upgrade_tool uf update.img

 

 

Flash partition images:


sudo upgrade_tool di -b /path/to/boot.img
   sudo upgrade_tool di -k /path/to/kernel.img
   sudo upgrade_tool di -s /path/to/system.img
   sudo upgrade_tool di -r /path/to/recovery.img
   sudo upgrade_tool di -m /path/to/misc.img
   sudo upgrade_tool di resource /path/to/resource.img
   sudo upgrade_tool di -p paramater   # flash parameter
   sudo upgrade_tool ul bootloader.bin # flash bootloader

 

If errors occur due to flash problem, you can try to low format, or erase the flash:


  upgrade_tool lf   # low format flash
   upgrade_tool ef   # erase flash

 

Following instruction is for rkflashkit utility.

Install:


sudo apt-get install build-essential fakeroot
   git clone https://github.com/linuxerwang/rkflashkit
   cd rkflashkit
   ./waf debian
   sudo apt-get install python-gtk2
   sudo dpkg -i rkflashkit_0.1.2_all.deb

 

GUI:


  sudo rkflashkit

 

Command line:


$ rkflashkit --help
Usage: <cmd> [args] [<cmd> [args]...]

 
part                              List partition
flash @<PARTITION> <IMAGE FILE>   Flash partition with image file
cmp @<PARTITION> <IMAGE FILE>     Compare partition with image file
backup @<PARTITION> <IMAGE FILE>  Backup partition to image file
erase  @<PARTITION>               Erase partition
reboot                            Reboot device

 
For example, flash device with boot.img and kernel.img, then reboot:

 

  sudo rkflashkit flash @boot boot.img @kernel.img kernel.img reboot

 

See the example above, which is really handy to flash multiple images then reboot device in one command, especially good for developers who will compile and flash kernel again and again.

 

 


Find us:

Facebook

Twitter

Youtube

Share this article Post item information on Facebook Add To Twiiter Add To Del.icio.us Stumble This Digg This Add To Reddit Add To Yahoo

Related Articles

Leave Your Comment