8,367
edits
Changes
no edit summary
* If need to flash unity firmware(update.img), click Firmware on Upgrade Firmware, select path of update.img. After it recognized LOADER device, click Upgrade and it will begin to upgrade. The right side would show the status of flashing.
<div style="padding-left:200px;">[[文件:Orange-pi-rk3399-img14.png|800px|]]</div>
<br>
=== '''Flashing image on Linux''' ===
<br>
'''1)Flash tool: upgrade_tool'''
<br>
On Linux, the tool we use is upgrade_tool which is same with working on Windows. Enter into Loader flashing mode like the following:
* Type-A Connect to PC
* Press on Recovery key of Orange Pi RK3399
* Type-C Connect to Orange Pi RK3399
* Insert DC power supply
Since OrangePi RK3399 supports powered by TypeC, power voltage on USB of PC is enough for flashing image. However, it may not enough to support Orange Pi booting. In that case, we need to insert DC power supply to make sure the Orange Pi could boot successfully after flashed image.<br>
There would be log information if you connect debug pin.
<div style="padding-left:200px;">[[文件:Orange-pi-rk3399-img10.png|400px|]]</div>
<br>
If there is no Loader device, then you need to flash image with short connect like the following:
When short connect EMMC Clk and GND, insert DC power supply, enter into Maskrom mode. And insert Type-C cable to connect both PC and RK3399.<br>
Location of EMMC Clk is show on the following:
<div>[[文件:Orange-pi-rk3399-img11.png|800px|]]</div>
<br>
<div>[[文件:Orange-pi-rk3399-img12.png|800px|]]</div>
<br>
Run upgrade_tool on terminal of Linux:
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
$ sudo ./upgrade_tool<br>
List of rockusb connected<br>
DevNo=1 Vid=0x2207,Pid=0x330c,LocationID=201 Loader<br>
Found 1 rockusb,Select input DevNo,Rescan press <R>,Quit press <Q>:
</div>
Enter R: Re-scan the USB port to find the device<br>
Enter Q: Exit flashing tool<br>
Enter DevNo: Select the corresponding operation device<br>
Here I would enter 1:
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
Found 1 rockusb,Select input DevNo,Rescan press <R>,Quit press <Q>:1
</div>
The help menu is displayed when you enter, and the Rockusb> prompt appears
<div>[[文件:Orange-pi-rk3399-img18.png|600px|]]</div>
<br>
* It could be operated by entering the corresponding instructions after the Rockusb> prompt. No distinguish between capital and lowercase.<br>
TD Command: used to test whether the device status is normal
<div>[[文件:Orange-pi-rk3399-img19.png|600px|]]</div>
<br>
DI Command: used for flashing separate partitions *.img :<br>
DI <-p|-b|-k|-s|-r|-m image> [parameter file]<br>
The first parameter is used to specify the partition name that needs to be flashed.<br>
The second parameter is used to specify the path of the flashed image<br>
For example, there would be two method to flash kernel.img:<br>
Rockusb>di -k ./kernel.img<br>
Rockusb>di kernel ./kernel.img
<div>[[文件:Orange-pi-rk3399-img20.png|600px|]]</div>
<br>
UF Command: used for unity flashed image update.img<br>
UF <Firmware><br>
The only parameter is used to specify the need to burn the firmware path.<br>
For example, if my firmware path is:<br>
RK3399_IMAGE/Image_Android6.0_20171228.img<br>
Then the command should be:<br>
Rockusb>uf RK3399_IMAGE/Image_Android6.0_20171228.img
<div>[[文件:Orange-pi-rk3399-img21.png|600px|]]</div>
<br>
After flashed, there would show the following information and the Orange Pi would reboot. (UF command would reboot, but not DI command.)
<div>[[文件:Orange-pi-rk3399-img22.png|600px|]]</div>
<br>