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

Difference between revisions of "Rock5/install/usb-install-emmc"

< Rock5‎ | install
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{rock5_header}}
 
{{rock5_header}}
{{Languages|rock5/dev/usb-install}}
+
{{Languages|rock5/install/usb-install-emmc}}
  
 
     [[rock5 | ROCK 5]] > [[rock5/install | Installation]] > [[rock5/install/usb-install-emmc | Install the Image to eMMC from USB port]]
 
     [[rock5 | ROCK 5]] > [[rock5/install | Installation]] > [[rock5/install/usb-install-emmc | Install the Image to eMMC from USB port]]
Line 6: Line 6:
 
== Install the image to eMMC from USB port ==
 
== Install the image to eMMC from USB port ==
  
Rock 5 supports Maskrom mode, which is a special operation mode for CPU to wait for USB OTG port command. The PC tools we use to communicate with rock 5 in Maskrom mode are the rkdeveloptool and RKDevTool. We use the rkdeveloptool in Linux/macOS and the RKDevTool under Windows.  
+
ROCK 5 supports Maskrom mode, which is a special operation mode for CPU to wait for USB OTG port command. The PC tools we use to communicate with ROCK 5 in Maskrom mode are the rkdeveloptool and RKDevTool. We use the rkdeveloptool in Linux/macOS and the RKDevTool under Windows.  
  
 
=== Requirement ===
 
=== Requirement ===
  
* Rock 5B  
+
* ROCK 5B  
 
* type-c cable
 
* type-c cable
 
* emmc module
 
* emmc module
Line 41: Line 41:
 
* [https://wiki.radxa.com/Rock5/downloads ROCK 5B system image]
 
* [https://wiki.radxa.com/Rock5/downloads ROCK 5B system image]
  
=== Write system image to eMMC module ===
+
=== Write image to eMMC module ===
  
==== Linux/MacOS ====
+
==== Option 1: Linux/MacOS ====
  
 
On your PC, run the rkdeveloptool  
 
On your PC, run the rkdeveloptool  
Line 65: Line 65:
 
now, the device should boot on eMMC.
 
now, the device should boot on eMMC.
  
=== Windows ===
+
==== Option 2: Windows ====
# Run the RKDevTool.exe if you do not have this,you can download it here.[https://dl.radxa.com/tools/windows/RKDevTool_Release_v2.96_20221020.rar RKDevTool]
+
# Run the RKDevTool.exe if you do not have this,you can download it here.[https://dl.radxa.com/tools/windows/RKDevTool_Release_v2.96-20221121.rar RKDevTool]
 
# Check whether it is in maskrom mode. The red part 2 in the figure below indicates that it has entered maskrom mode.
 
# Check whether it is in maskrom mode. The red part 2 in the figure below indicates that it has entered maskrom mode.
 
#; [[File:emmc_down_start.png]]
 
#; [[File:emmc_down_start.png]]
Line 78: Line 78:
  
 
== Erase Emmc ==
 
== Erase Emmc ==
=== Linux/MacOS ===
+
 
 +
=== Option 1: Linux/MacOS ===
 
Please notice that when you want to erase emmc, fire these commands. If you don't have zero.img, download this one please. [https://dl.radxa.com/rock5/sw/images/others/zero.img.gz zero.img]
 
Please notice that when you want to erase emmc, fire these commands. If you don't have zero.img, download this one please. [https://dl.radxa.com/rock5/sw/images/others/zero.img.gz zero.img]
 
And extract it.
 
And extract it.
Line 85: Line 86:
 
  rkdeveloptool rd
 
  rkdeveloptool rd
  
=== Windows ===
+
=== Option 2: Windows ===
 +
 
 
# Run the RKDevTool,Choose advanced features
 
# Run the RKDevTool,Choose advanced features
 
# Check whether it is in maskrom mode.The red part 2 in the figure below indicates that it has entered maskrom mode.
 
# Check whether it is in maskrom mode.The red part 2 in the figure below indicates that it has entered maskrom mode.
Line 93: Line 95:
 
# Now,click the Erase All button to erase emmc
 
# Now,click the Erase All button to erase emmc
 
#; [[File:emmc_erase_finsh.png]]
 
#; [[File:emmc_erase_finsh.png]]
=== Troubleshooting ===
+
 
 +
== Troubleshooting ==
  
 
* If you have issue with flashing via USB OTG, start a new post on the forum, https://forum.radxa.com/c/rock5.
 
* If you have issue with flashing via USB OTG, start a new post on the forum, https://forum.radxa.com/c/rock5.

Latest revision as of 02:59, 10 October 2023

    ROCK 5 >  Installation >  Install the Image to eMMC from USB port

Install the image to eMMC from USB port

ROCK 5 supports Maskrom mode, which is a special operation mode for CPU to wait for USB OTG port command. The PC tools we use to communicate with ROCK 5 in Maskrom mode are the rkdeveloptool and RKDevTool. We use the rkdeveloptool in Linux/macOS and the RKDevTool under Windows.

Requirement

  • ROCK 5B
  • type-c cable
  • emmc module
  • Windows/linux/macOS PC

Install Tools&Drivers

Please check this guide, Install rockchip flash tools under Windows/Linux/MacOS PC.

Boot the board to Maskrom mode

Rock-5b-typec-maskrom.jpeg

To boot ROCK 5B to Maskrom mode is simple:

  • Power off the board.
  • Press the golden button and hold it.
  • Plug the USB-A to Type-C cable to ROCK 5B Type-C port, the other side to PC.
  • Release the golded button.
  • Check usb device
    • For macOS host: lsusb result: Bus 002 Device 032: ID 2207:350b Fuzhou Rockchip Electronics Co., Ltd. Composite Device
    • For Linux host: lsusb result: Bus 001 Device 112: ID 2207:350b Fuzhou Rockchip Electronics Company
    • For Windows host: Open RKDevTool and you would see the device is in Found One MASKROM Device.

Get RK3588 loader and system image

ROCK 5B

Write image to eMMC module

Option 1: Linux/MacOS

On your PC, run the rkdeveloptool

sudo rkdeveloptool ld
DevNo=1	Vid=0x2207,Pid=0x350b,LocationID=106	Maskrom

Download the loader (flash helper) to init the ram and prepare the flashing environment etc. If you don't have it, you can download it from here

sudo rkdeveloptool db /path/to/rk3588_spl_loader_v1.08.111.bin

Write SPI image to SPI Nor Flash on board.

You can use our pre-built files.

sudo rkdeveloptool wl 0 rock-5b-debian-bullseye-xfce4-arm64-20220919-0912-gpt.img				

Reboot the device

sudo rkdeveloptool rd

now, the device should boot on eMMC.

Option 2: Windows

  1. Run the RKDevTool.exe if you do not have this,you can download it here.RKDevTool
  2. Check whether it is in maskrom mode. The red part 2 in the figure below indicates that it has entered maskrom mode.
    Emmc down start.png
  3. Check the "write by address" option.
  4. Right-click in the blank area of the list and select Load configuration file.
    Rkdevtool package cfg.png
  5. After loading the configuration file, you need to modify the path of the file to be downloaded.
  6. Now,Click Run, if successful, you will see the download successful message in the right box.
    Emmc down finsh.png


Erase Emmc

Option 1: Linux/MacOS

Please notice that when you want to erase emmc, fire these commands. If you don't have zero.img, download this one please. zero.img And extract it.

rkdeveloptool db rk3588_spl_loader_v1.08.111.bin
rkdeveloptool wl 0 zero.img
rkdeveloptool rd

Option 2: Windows

  1. Run the RKDevTool,Choose advanced features
  2. Check whether it is in maskrom mode.The red part 2 in the figure below indicates that it has entered maskrom mode.
  3. Select the loader file and click Download,you can proceed to the next step after completion.
  4. After downloading the loader, click the emmc option in the list, then click Switch Storage
    Emmc erase start.png
  5. Now,click the Erase All button to erase emmc
    Emmc erase finsh.png

Troubleshooting