Rkdeveloptool

From Rockchip open source Document
Revision as of 03:22, 23 March 2017 by Kever (talk | contribs)
Jump to: navigation, search

Download rkdeveloptool

Get the source code for rkdeveloptool

git clone https://github.com/rockchip-linux/rkdeveloptool.git

 

Build rkdeveloptool

First, install the libusb and udev. In Ubuntu, 

sudo apt-get install libudev-dev libusb-1.0-0-dev

Then 

sudo make && make install

Usage

Support commands


Tool Usage ---------------------
Help:             -H
Version:          -V
DownloadBoot:    DB <Loader>
ReadLBA:        RL  <BeginSec> <SectorLen> <File>
WriteLBA:        WL  <BeginSec> <File>
EraseFlash:        EF 
TestDevice:        TD
ResetDevice:    RD [subcode]
ReadFlashID:    RID
ReadFlashInfo:    RFI
ReadChipInfo:    RCI
-------------------------------------------------------


Flash image to target emmc

In order to flash image to target emmc, 

  1. Make target  get into rockusb mode;
  2. Connect target to Host PC via USB;
  3. Write the image to the eMMC with tool command;
  • use download boot command to make target init DRAM and run usbplug;
rkdeveloptool db rkxx_loader_vx.xx.bin
  • use write lba command to write image to target, this step can be repeat for many times;
rkdeveloptool wl 0x40 idbLoader.img
rkdeveloptool wl 0x4000 uboot.img
rkdeveloptool wl 0x8000 boot.img
rkdeveloptool wl 0x40000 rootfs.img
  • use reset device comamnd to reset the target after image write complete
rkdeveloptool rd