Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Difference between revisions of "Rock/flash the image"

(Windows)
(Windows)
Line 47: Line 47:
 
[[File:flash_image_8.jpg]]
 
[[File:flash_image_8.jpg]]
  
power down radxa board, Connect the radxa rock board and the pc/laptop,let the board go to [[rock/recovery mode]] ,then the program will detect it <br />
+
Power down radxa board, Connect the radxa rock board and the pc/laptop,let the board go to [[rock/recovery mode]] ,then the program will detect it <br />
 
[[File:flash_image_9.jpg]]
 
[[File:flash_image_9.jpg]]
  
 
Click the "Upgrade" to begin flashing. when flashing finishes successfully ,you will see the follow interface <br/>
 
Click the "Upgrade" to begin flashing. when flashing finishes successfully ,you will see the follow interface <br/>
 
[[File:flash_image_10.jpg]]
 
[[File:flash_image_10.jpg]]
 +
 
<br/>If the flashing is abort ,it may be some error with the update.img ,you can redo the operations above or make the update.img again !
 
<br/>If the flashing is abort ,it may be some error with the update.img ,you can redo the operations above or make the update.img again !
  

Revision as of 08:29, 3 December 2013

This page describe how to install the image to the nand flash of radxa rock, ie, how to flash the board.

Before started

What you need to flash the board is:

  • a radxa rock board(full version or lite version)
  • a desktop/laptop running Windows(XP 32/64bit, Windows 7 32/64 bit) or Linux(32/64bit)
  • a micro usb cable, one side plugged in to the OTG port of radxa rock, the other side plugged in to the usb port on desktop/laptop


Windows

This is a guide for developer with Windows + VM:

1 Make sure you have installed the usb driver ,if yes skip this step, otherwise ,install driver as follows:
Download the file (usb_driver_v3.5.zip) from here [1] Shut down radxa board, Connect the radxa rock board and the pc/laptop, let the board go to rock/recovery mode,then your pc/laptop will detect the board,you will see an Unknown device in the Computer Management
Flash image 1.jpg

Select the UnKnown device , right click and select "Update Driver Software"

Flash image 2.jpg

Select "Browse the computer for driver software"

Flash image 2.5.jpg

Find the file unziped from you just downloaded(usb_driver_v3.5.zip) ,select the right file folder Click "OK" to install

Flash image 3.jpg

When driver is installed successful, you will see a Rockusb Device in the Computer Management window.

Flash image 6.jpg
Up to this point, driver is ok!


2 Flash the Image
Run the tools RKBatchTool.exe (RK_BatchTools_V1.7/BatchTool) ,if you haven't RK_BatchTools_V1.7 download here [2] you will see the interface as follow

Flash image 7.jpg

Select the image(rockdev/update.img ) About how to make the update.img see here http://wiki.radxa.com/Rock/Android_Build
Flash image 8.jpg

Power down radxa board, Connect the radxa rock board and the pc/laptop,let the board go to rock/recovery mode ,then the program will detect it
Flash image 9.jpg

Click the "Upgrade" to begin flashing. when flashing finishes successfully ,you will see the follow interface
Flash image 10.jpg


If the flashing is abort ,it may be some error with the update.img ,you can redo the operations above or make the update.img again !

Linux

Rockchip officially doesn't provide the tools of upgrading under Linux. The initial RE work of the Rockchip bootloader updating protocol is by naobsd and improved by some others in rkflashtool, linuxerwang made the GUI version of the rkflashtool called rkflashkit. Note: both rkflashtool and rkflashkit can not flash the rock/update.img and can only flash in the rock/bootloader mode, not rock/mask rom mode because the rock/mask rom updating protocol is not RE yet. If you are interested in RE the protocol, ping naobad at #radxa. Since the rock/bootloader remains unchanged for a long time, it's enough for normal usage.

The GUI way

You can download the prebuilt rkflashkit here or build it yourself with the following command:

   git clone https://github.com/linuxerwang/rkflashkit 
   cd rkflashkit 
   ./waf debian 

Install it with the following command

   sudo apt-get install python-gtk2 
   sudo dpkg -i rkflashkit_0.1.1_all.deb

Run it with the following command

   sudo rkflashkit

You can see the interface like this:

Rkflashkit1.png

Connect the radxa rock board and the pc/laptop, let the board go to rock/recovery mode, you can see the the program detects the board in recovery mode.

  1. Click the Nand partition, you will see the partitions of the board listed, choose the one you want to flash.
  2. Choose the location of the image you want to flash to that partition.
  3. Click "Flash image" button, it will start flashing
  4. After done, click "Reboot Device" to reboot the board.


Rkflashkit2.png Rkflashkit3.png