Difference between revisions of "Rkdeveloptool"

From Rockchip open source Document
Jump to: navigation, search
(Created page with " = Download rkdeveloptool = Get the source code for rkdeveloptool <pre>git clone https://github.com/rockchip-linux/rkdeveloptool.git</pre>   = Build rkdeveloptool = F...")
 
Line 17: Line 17:
 
= Usage =
 
= Usage =
  
---------------------Tool Usage ---------------------<br/> Help: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -H<br/> Version: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-V<br/> DownloadBoot:&nbsp;&nbsp; &nbsp;DB <Loader><br/> ReadLBA:&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;RL &nbsp;<BeginSec> <SectorLen> <File><br/> WriteLBA:&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;WL &nbsp;<BeginSec> <File><br/> EraseFlash:&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;EF&nbsp;<br/> TestDevice:&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;TD<br/> ResetDevice:&nbsp;&nbsp; &nbsp;RD [subcode]<br/> ReadFlashID:&nbsp;&nbsp; &nbsp;RID<br/> ReadFlashInfo:&nbsp;&nbsp; &nbsp;RFI<br/> ReadChipInfo:&nbsp;&nbsp; &nbsp;RCI<br/> -------------------------------------------------------
+
== Support commands ==
 +
 
 +
--------------------Tool Usage ---------------------<br/> Help: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -H<br/> Version: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-V<br/> DownloadBoot:&nbsp;&nbsp; &nbsp;DB <Loader><br/> ReadLBA:&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;RL &nbsp;<BeginSec> <SectorLen> <File><br/> WriteLBA:&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;WL &nbsp;<BeginSec> <File><br/> EraseFlash:&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;EF&nbsp;<br/> TestDevice:&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;TD<br/> ResetDevice:&nbsp;&nbsp; &nbsp;RD [subcode]<br/> ReadFlashID:&nbsp;&nbsp; &nbsp;RID<br/> ReadFlashInfo:&nbsp;&nbsp; &nbsp;RFI<br/> ReadChipInfo:&nbsp;&nbsp; &nbsp;RCI<br/> -------------------------------------------------------
 +
 
 +
== Flash image to target emmc ==
 +
 
 +
In order to flash image to target emmc,&nbsp;
 +
 
 +
#Make target&nbsp;&nbsp;get into rockusb mode;
 +
#Connect target to Host PC via USB;
 +
 
 +
&nbsp;

Revision as of 10:08, 16 March 2017

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;