<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.radxa.com/mw/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.radxa.com/mw/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Huazi</id>
		<title>Radxa Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.radxa.com/mw/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Huazi"/>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Special:Contributions/Huazi"/>
		<updated>2026-06-05T00:04:38Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.3</generator>

	<entry>
		<id>https://wiki.radxa.com/Rock5/install/spi</id>
		<title>Rock5/install/spi</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock5/install/spi"/>
				<updated>2022-11-30T04:15:29Z</updated>
		
		<summary type="html">&lt;p&gt;Huazi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rock5_header}}&lt;br /&gt;
{{Languages|rock5/dev/spi}}&lt;br /&gt;
&lt;br /&gt;
    [[rock5 | ROCK 5]] &amp;gt; [[rock5/install | Installation]] &amp;gt; [[rock5/install/spi | Install the Image to SPI Nor Flash]]&lt;br /&gt;
&lt;br /&gt;
== Install the image to SPI Nor Flash ==&lt;br /&gt;
&lt;br /&gt;
ROCK 5 has one SPI Flash on the board, it's useful to install the bootloader to the SPI flash for a back up booting and support other booting media that the SoC maskrom mode doesn't direct support, such as SATA, USB 3 or NVMe. This page describe how to write/install the image to the SPI flash with the tool from another PC or on the ROCK 5B board itself.&lt;br /&gt;
&lt;br /&gt;
===  Requirement ===&lt;br /&gt;
&lt;br /&gt;
* ROCK 5B with proper power &lt;br /&gt;
* Linux image for ROCK 5B, Android image is not supported yet&lt;br /&gt;
* SD card or eMMC module&lt;br /&gt;
* USB Type C cable&lt;br /&gt;
* Windows/linux/macOS  PC&lt;br /&gt;
&lt;br /&gt;
=== Step1: Install Tools&amp;amp;Drivers ===&lt;br /&gt;
&lt;br /&gt;
Please check this guide, [[rock5/install/rockchip-flash-tools | Install rockchip flash tools under Windows/Linux/MacOS PC]]. The PC tools we use to communicate with ROCK 5 in Maskrom mode are the '''rkdeveloptool''' on Linux/macOS and '''RkDevtool''' on Windows PC.&lt;br /&gt;
&lt;br /&gt;
=== Step2: Get RK3588 loader and U-Boot images ===&lt;br /&gt;
&lt;br /&gt;
==== For ROCK 5B ====&lt;br /&gt;
&lt;br /&gt;
* Download the loader image from: &lt;br /&gt;
** [https://dl.radxa.com/rock5/sw/images/loader/rock-5b/rk3588_spl_loader_v1.08.111.bin RK3588 loader] - USB flashing helper&lt;br /&gt;
&lt;br /&gt;
* Download the latest SPI image from:&lt;br /&gt;
** [https://dl.radxa.com/rock5/sw/images/loader/rock-5b/release/rock-5b-spi-image-g49da44e116d.img release version] with u-boot serial console disabled(Recommend)&lt;br /&gt;
** [https://dl.radxa.com/rock5/sw/images/loader/rock-5b/debug/rock-5b-spi-image-g3caf61a44c2-debug.img debug version] with u-boot serial console enabled(Use it when you need to troubleshoot booting issue)&lt;br /&gt;
** [https://github.com/huazi-yg/rock5b/releases/download/rock5b/rkspi_loader.img armbian version] (Use it when you need to install the armbian Image to M.2 NVME SSD)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Step3: Boot the board to Maskrom mode ===&lt;br /&gt;
&lt;br /&gt;
[[File:Rock-5b-typec-maskrom.jpeg|400px]]&lt;br /&gt;
&lt;br /&gt;
To boot ROCK 5B to Maskrom mode is simple:&lt;br /&gt;
&lt;br /&gt;
* Power off the board.&lt;br /&gt;
* Remove bootable device like MicroSD card, eMMC module, etc.&lt;br /&gt;
* Press the golden (or silver on some board revisions) button and hold it.&lt;br /&gt;
* Plug the USB-A to Type-C cable to ROCK 5B Type-C port, the other side to PC.&lt;br /&gt;
* Release the golded button.&lt;br /&gt;
* Check usb device&lt;br /&gt;
** For macOS host: lsusb result: '''Bus 002 Device 032: ID 2207:350b Fuzhou Rockchip Electronics Co., Ltd. Composite Device'''&lt;br /&gt;
** For Linux host: lsusb result: '''Bus 001 Device 112: ID 2207:350b Fuzhou Rockchip Electronics Company'''&lt;br /&gt;
** For Windows host: Open RKDevTool and you would see the device is in '''Found One MASKROM Device'''&lt;br /&gt;
&lt;br /&gt;
=== Step4: Write U-Boot images to SPI Nor Flash or erase SPI Nor Flash ===&lt;br /&gt;
&lt;br /&gt;
==== Option 1: Operate on ROCK 5B ====&lt;br /&gt;
&lt;br /&gt;
Boot your ROCK 5B with Linux running on SD card or eMMC module:&lt;br /&gt;
&lt;br /&gt;
Make sure the SPI flash is available:&lt;br /&gt;
 ls /dev/mtdblk*&lt;br /&gt;
&lt;br /&gt;
 sudo dd if=zero.img of=/dev/mtdblock0&lt;br /&gt;
 sudo dd if=rock-5b-spi-image-g49da44e116d.img of=/dev/mtdblock0&lt;br /&gt;
 sync&lt;br /&gt;
&lt;br /&gt;
Get zero.img from [https://dl.radxa.com/rock5/sw/images/others/zero.img.gz here].&lt;br /&gt;
&lt;br /&gt;
==== Option 2: Flash with Linux PC/Mac ====&lt;br /&gt;
&lt;br /&gt;
On your PC or Mac, run the rkdeveloptool &lt;br /&gt;
&lt;br /&gt;
 sudo rkdeveloptool ld&lt;br /&gt;
 DevNo=1	Vid=0x2207,Pid=0x350b,LocationID=106	Maskrom&lt;br /&gt;
&lt;br /&gt;
This will load the loader (flash helper, downloaded from Step2) to run on ROCK 5B and init the ram and prepare the flashing environment etc.  &lt;br /&gt;
&lt;br /&gt;
 sudo rkdeveloptool db /path/to/rk3588_spl_loader_v1.08.111.bin		 # will output:&lt;br /&gt;
 Downloading bootloader succeeded.&lt;br /&gt;
&lt;br /&gt;
Next, write SPI image from PC/Mac to ROCK 5B SPI flash&lt;br /&gt;
&lt;br /&gt;
You can use the image download from Step 2.&lt;br /&gt;
&lt;br /&gt;
 sudo rkdeveloptool wl 0 rock-5b-spi-image-g49da44e116d.img					&lt;br /&gt;
 Write LBA from file (100%)&lt;br /&gt;
&lt;br /&gt;
Reboot the device &lt;br /&gt;
 rkdeveloptool rd&lt;br /&gt;
&lt;br /&gt;
now, the device should boot on SPI Nor Flash. And '''the blue led is on'''.&lt;br /&gt;
&lt;br /&gt;
==== Option 3: Flash with Windows PC ====&lt;br /&gt;
&lt;br /&gt;
Double click the RKDevTool.exe and you will see the following interface:&lt;br /&gt;
Double click the '''RKDevTool.exe''' and you will see the following interface:&lt;br /&gt;
&lt;br /&gt;
===== Step 1: comfirm that ROCK 5B is in Maskrom mode =====&lt;br /&gt;
&lt;br /&gt;
If your ROCK 5B is in maskrom mode and connects to PC, you can see that the program detects it, as the red arrow below&lt;br /&gt;
&lt;br /&gt;
===== Step 2: Load Configuration File =====&lt;br /&gt;
&lt;br /&gt;
Right-click in the list box and select Load Config,Then select the configuration file in the resource management folder（The configuration file and RKDevTool are in the same directory）&lt;br /&gt;
&lt;br /&gt;
===== Step 3: Select Loader =====&lt;br /&gt;
&lt;br /&gt;
Next, click  the right last columns in the &amp;quot;Loader&amp;quot; row to select rk3588_spl_loader_v1.08.111.bin&lt;br /&gt;
&lt;br /&gt;
===== Step 4: Select SPI image =====&lt;br /&gt;
&lt;br /&gt;
Next, click  the right last columns in the &amp;quot;spi&amp;quot; row to select spi-image.&lt;br /&gt;
&lt;br /&gt;
===== Step 5: Excute =====&lt;br /&gt;
&lt;br /&gt;
Finally, click the &amp;quot;Excute&amp;quot; button, and you will see the content in the red box on the right. When the progress reaches 100%, the download is completed.&lt;br /&gt;
&lt;br /&gt;
[[File: rock-5b-spi-flash-1.png |1000px]]&lt;br /&gt;
[[File: configuration.png |1000px]]&lt;br /&gt;
&lt;br /&gt;
[[File: rock-5b-spi-flash-02.png |1000px]]&lt;br /&gt;
&lt;br /&gt;
== Addition: Erase the SPI Nor Flash ==&lt;br /&gt;
&lt;br /&gt;
==== Option 1: Operate on ROCK 5B ====&lt;br /&gt;
&lt;br /&gt;
Boot your ROCK 5B with Linux running on SD card or eMMC module:&lt;br /&gt;
&lt;br /&gt;
Make sure the SPI flash is available:&lt;br /&gt;
 ls /dev/mtdblk*&lt;br /&gt;
&lt;br /&gt;
 sudo dd if=/dev/zero of=/dev/mtdblock0&lt;br /&gt;
 sync&lt;br /&gt;
&lt;br /&gt;
==== Option 2: Erase with Linux PC/Mac ====&lt;br /&gt;
&lt;br /&gt;
Please notice that when you want to erase SPI Nor Flash, 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]&lt;br /&gt;
And extract it.&lt;br /&gt;
&lt;br /&gt;
 rkdeveloptool db rk3588_spl_loader_v1.08.111.bin&lt;br /&gt;
 rkdeveloptool wl 0 zero.img&lt;br /&gt;
 rkdeveloptool rd&lt;br /&gt;
&lt;br /&gt;
==== Option3: Erase with Windows PC====&lt;br /&gt;
&lt;br /&gt;
Before Erasing, please confirm that ROCK 5B is in Maskrom mode&lt;br /&gt;
&lt;br /&gt;
===== Step 1: Download =====&lt;br /&gt;
Choose the &amp;quot;Advanced features&amp;quot; button, then select rk3588_spl_loader_v1.08.111.bin, next click the &amp;quot;Download&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
===== Step 2: Erase all  =====&lt;br /&gt;
Click the &amp;quot;erase all&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
===== Step 3: Reboot device =====&lt;br /&gt;
&lt;br /&gt;
[[File: eraseall_new.png |700px]]&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
* If you have issue with flashing via USB OTG, start a new post on the forum, https://forum.radxa.com/c/rock5.&lt;/div&gt;</summary>
		<author><name>Huazi</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Rock5/install/spi</id>
		<title>Rock5/install/spi</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock5/install/spi"/>
				<updated>2022-11-28T06:01:02Z</updated>
		
		<summary type="html">&lt;p&gt;Huazi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rock5_header}}&lt;br /&gt;
{{Languages|rock5/dev/spi}}&lt;br /&gt;
&lt;br /&gt;
    [[rock5 | ROCK 5]] &amp;gt; [[rock5/install | Installation]] &amp;gt; [[rock5/install/spi | Install the Image to SPI Nor Flash]]&lt;br /&gt;
&lt;br /&gt;
== Install the image to SPI Nor Flash ==&lt;br /&gt;
&lt;br /&gt;
ROCK 5 has one SPI Flash on the board, it's useful to install the bootloader to the SPI flash for a back up booting and support other booting media that the SoC maskrom mode doesn't direct support, such as SATA, USB 3 or NVMe. This page describe how to write/install the image to the SPI flash with the tool from another PC or on the ROCK 5B board itself.&lt;br /&gt;
&lt;br /&gt;
===  Requirement ===&lt;br /&gt;
&lt;br /&gt;
* ROCK 5B with proper power &lt;br /&gt;
* Linux image for ROCK 5B, Android image is not supported yet&lt;br /&gt;
* SD card or eMMC module&lt;br /&gt;
* USB Type C cable&lt;br /&gt;
* Windows/linux/macOS  PC&lt;br /&gt;
&lt;br /&gt;
=== Step1: Install Tools&amp;amp;Drivers ===&lt;br /&gt;
&lt;br /&gt;
Please check this guide, [[rock5/install/rockchip-flash-tools | Install rockchip flash tools under Windows/Linux/MacOS PC]]. The PC tools we use to communicate with ROCK 5 in Maskrom mode are the '''rkdeveloptool''' on Linux/macOS and '''RkDevtool''' on Windows PC.&lt;br /&gt;
&lt;br /&gt;
=== Step2: Get RK3588 loader and U-Boot images ===&lt;br /&gt;
&lt;br /&gt;
==== For ROCK 5B ====&lt;br /&gt;
&lt;br /&gt;
* Download the loader image from: &lt;br /&gt;
** [https://dl.radxa.com/rock5/sw/images/loader/rock-5b/rk3588_spl_loader_v1.08.111.bin RK3588 loader] - USB flashing helper&lt;br /&gt;
&lt;br /&gt;
* Download the latest SPI image from:&lt;br /&gt;
** [https://dl.radxa.com/rock5/sw/images/loader/rock-5b/release/rock-5b-spi-image-g49da44e116d.img release version] with u-boot serial console disabled(Recommend)&lt;br /&gt;
** [https://dl.radxa.com/rock5/sw/images/loader/rock-5b/debug/rock-5b-spi-image-g3caf61a44c2-debug.img debug version] with u-boot serial console enabled(Use it when you need to troubleshoot booting issue)&lt;br /&gt;
** [https://github.com/huazi-yg/rock5b/releases/download/rock5b/rkspi_loader.img armbian version] (Use it when you need to install the armbian Image)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Step3: Boot the board to Maskrom mode ===&lt;br /&gt;
&lt;br /&gt;
[[File:Rock-5b-typec-maskrom.jpeg|400px]]&lt;br /&gt;
&lt;br /&gt;
To boot ROCK 5B to Maskrom mode is simple:&lt;br /&gt;
&lt;br /&gt;
* Power off the board.&lt;br /&gt;
* Remove bootable device like MicroSD card, eMMC module, etc.&lt;br /&gt;
* Press the golden (or silver on some board revisions) button and hold it.&lt;br /&gt;
* Plug the USB-A to Type-C cable to ROCK 5B Type-C port, the other side to PC.&lt;br /&gt;
* Release the golded button.&lt;br /&gt;
* Check usb device&lt;br /&gt;
** For macOS host: lsusb result: '''Bus 002 Device 032: ID 2207:350b Fuzhou Rockchip Electronics Co., Ltd. Composite Device'''&lt;br /&gt;
** For Linux host: lsusb result: '''Bus 001 Device 112: ID 2207:350b Fuzhou Rockchip Electronics Company'''&lt;br /&gt;
** For Windows host: Open RKDevTool and you would see the device is in '''Found One MASKROM Device'''&lt;br /&gt;
&lt;br /&gt;
=== Step4: Write U-Boot images to SPI Nor Flash or erase SPI Nor Flash ===&lt;br /&gt;
&lt;br /&gt;
==== Option 1: Operate on ROCK 5B ====&lt;br /&gt;
&lt;br /&gt;
Boot your ROCK 5B with Linux running on SD card or eMMC module:&lt;br /&gt;
&lt;br /&gt;
Make sure the SPI flash is available:&lt;br /&gt;
 ls /dev/mtdblk*&lt;br /&gt;
&lt;br /&gt;
 sudo dd if=zero.img of=/dev/mtdblock0&lt;br /&gt;
 sudo dd if=rock-5b-spi-image-g49da44e116d.img of=/dev/mtdblock0&lt;br /&gt;
 sync&lt;br /&gt;
&lt;br /&gt;
Get zero.img from [https://dl.radxa.com/rock5/sw/images/others/zero.img.gz here].&lt;br /&gt;
&lt;br /&gt;
==== Option 2: Flash with Linux PC/Mac ====&lt;br /&gt;
&lt;br /&gt;
On your PC or Mac, run the rkdeveloptool &lt;br /&gt;
&lt;br /&gt;
 sudo rkdeveloptool ld&lt;br /&gt;
 DevNo=1	Vid=0x2207,Pid=0x350b,LocationID=106	Maskrom&lt;br /&gt;
&lt;br /&gt;
This will load the loader (flash helper, downloaded from Step2) to run on ROCK 5B and init the ram and prepare the flashing environment etc.  &lt;br /&gt;
&lt;br /&gt;
 sudo rkdeveloptool db /path/to/rk3588_spl_loader_v1.08.111.bin		 # will output:&lt;br /&gt;
 Downloading bootloader succeeded.&lt;br /&gt;
&lt;br /&gt;
Next, write SPI image from PC/Mac to ROCK 5B SPI flash&lt;br /&gt;
&lt;br /&gt;
You can use the image download from Step 2.&lt;br /&gt;
&lt;br /&gt;
 sudo rkdeveloptool wl 0 rock-5b-spi-image-g49da44e116d.img					&lt;br /&gt;
 Write LBA from file (100%)&lt;br /&gt;
&lt;br /&gt;
Reboot the device &lt;br /&gt;
 rkdeveloptool rd&lt;br /&gt;
&lt;br /&gt;
now, the device should boot on SPI Nor Flash. And '''the blue led is on'''.&lt;br /&gt;
&lt;br /&gt;
==== Option 3: Flash with Windows PC ====&lt;br /&gt;
&lt;br /&gt;
Double click the RKDevTool.exe and you will see the following interface:&lt;br /&gt;
Double click the '''RKDevTool.exe''' and you will see the following interface:&lt;br /&gt;
&lt;br /&gt;
===== Step 1: comfirm that ROCK 5B is in Maskrom mode =====&lt;br /&gt;
&lt;br /&gt;
If your ROCK 5B is in maskrom mode and connects to PC, you can see that the program detects it, as the red arrow below&lt;br /&gt;
&lt;br /&gt;
===== Step 2: Load Configuration File =====&lt;br /&gt;
&lt;br /&gt;
Right-click in the list box and select Load Config,Then select the configuration file in the resource management folder（The configuration file and RKDevTool are in the same directory）&lt;br /&gt;
&lt;br /&gt;
===== Step 3: Select Loader =====&lt;br /&gt;
&lt;br /&gt;
Next, click  the right last columns in the &amp;quot;Loader&amp;quot; row to select rk3588_spl_loader_v1.08.111.bin&lt;br /&gt;
&lt;br /&gt;
===== Step 4: Select SPI image =====&lt;br /&gt;
&lt;br /&gt;
Next, click  the right last columns in the &amp;quot;spi&amp;quot; row to select spi-image.&lt;br /&gt;
&lt;br /&gt;
===== Step 5: Excute =====&lt;br /&gt;
&lt;br /&gt;
Finally, click the &amp;quot;Excute&amp;quot; button, and you will see the content in the red box on the right. When the progress reaches 100%, the download is completed.&lt;br /&gt;
&lt;br /&gt;
[[File: rock-5b-spi-flash-1.png |1000px]]&lt;br /&gt;
[[File: configuration.png |1000px]]&lt;br /&gt;
&lt;br /&gt;
[[File: rock-5b-spi-flash-02.png |1000px]]&lt;br /&gt;
&lt;br /&gt;
== Addition: Erase the SPI Nor Flash ==&lt;br /&gt;
&lt;br /&gt;
==== Option 1: Operate on ROCK 5B ====&lt;br /&gt;
&lt;br /&gt;
Boot your ROCK 5B with Linux running on SD card or eMMC module:&lt;br /&gt;
&lt;br /&gt;
Make sure the SPI flash is available:&lt;br /&gt;
 ls /dev/mtdblk*&lt;br /&gt;
&lt;br /&gt;
 sudo dd if=/dev/zero of=/dev/mtdblock0&lt;br /&gt;
 sync&lt;br /&gt;
&lt;br /&gt;
==== Option 2: Erase with Linux PC/Mac ====&lt;br /&gt;
&lt;br /&gt;
Please notice that when you want to erase SPI Nor Flash, 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]&lt;br /&gt;
And extract it.&lt;br /&gt;
&lt;br /&gt;
 rkdeveloptool db rk3588_spl_loader_v1.08.111.bin&lt;br /&gt;
 rkdeveloptool wl 0 zero.img&lt;br /&gt;
 rkdeveloptool rd&lt;br /&gt;
&lt;br /&gt;
==== Option3: Erase with Windows PC====&lt;br /&gt;
&lt;br /&gt;
Before Erasing, please confirm that ROCK 5B is in Maskrom mode&lt;br /&gt;
&lt;br /&gt;
===== Step 1: Download =====&lt;br /&gt;
Choose the &amp;quot;Advanced features&amp;quot; button, then select rk3588_spl_loader_v1.08.111.bin, next click the &amp;quot;Download&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
===== Step 2: Erase all  =====&lt;br /&gt;
Click the &amp;quot;erase all&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
===== Step 3: Reboot device =====&lt;br /&gt;
&lt;br /&gt;
[[File: eraseall_new.png |700px]]&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
* If you have issue with flashing via USB OTG, start a new post on the forum, https://forum.radxa.com/c/rock5.&lt;/div&gt;</summary>
		<author><name>Huazi</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Rock5/install/spi</id>
		<title>Rock5/install/spi</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock5/install/spi"/>
				<updated>2022-11-28T05:56:43Z</updated>
		
		<summary type="html">&lt;p&gt;Huazi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rock5_header}}&lt;br /&gt;
{{Languages|rock5/dev/spi}}&lt;br /&gt;
&lt;br /&gt;
    [[rock5 | ROCK 5]] &amp;gt; [[rock5/install | Installation]] &amp;gt; [[rock5/install/spi | Install the Image to SPI Nor Flash]]&lt;br /&gt;
&lt;br /&gt;
== Install the image to SPI Nor Flash ==&lt;br /&gt;
&lt;br /&gt;
ROCK 5 has one SPI Flash on the board, it's useful to install the bootloader to the SPI flash for a back up booting and support other booting media that the SoC maskrom mode doesn't direct support, such as SATA, USB 3 or NVMe. This page describe how to write/install the image to the SPI flash with the tool from another PC or on the ROCK 5B board itself.&lt;br /&gt;
&lt;br /&gt;
===  Requirement ===&lt;br /&gt;
&lt;br /&gt;
* ROCK 5B with proper power &lt;br /&gt;
* Linux image for ROCK 5B, Android image is not supported yet&lt;br /&gt;
* SD card or eMMC module&lt;br /&gt;
* USB Type C cable&lt;br /&gt;
* Windows/linux/macOS  PC&lt;br /&gt;
&lt;br /&gt;
=== Step1: Install Tools&amp;amp;Drivers ===&lt;br /&gt;
&lt;br /&gt;
Please check this guide, [[rock5/install/rockchip-flash-tools | Install rockchip flash tools under Windows/Linux/MacOS PC]]. The PC tools we use to communicate with ROCK 5 in Maskrom mode are the '''rkdeveloptool''' on Linux/macOS and '''RkDevtool''' on Windows PC.&lt;br /&gt;
&lt;br /&gt;
=== Step2: Get RK3588 loader and U-Boot images ===&lt;br /&gt;
&lt;br /&gt;
==== For ROCK 5B ====&lt;br /&gt;
&lt;br /&gt;
* Download the loader image from: &lt;br /&gt;
** [https://dl.radxa.com/rock5/sw/images/loader/rock-5b/rk3588_spl_loader_v1.08.111.bin RK3588 loader] - USB flashing helper&lt;br /&gt;
&lt;br /&gt;
* Download the latest SPI image from:&lt;br /&gt;
** [https://dl.radxa.com/rock5/sw/images/loader/rock-5b/release/rock-5b-spi-image-g49da44e116d.img release version] with u-boot serial console disabled(Recommend)&lt;br /&gt;
** [https://dl.radxa.com/rock5/sw/images/loader/rock-5b/debug/rock-5b-spi-image-g3caf61a44c2-debug.img debug version] with u-boot serial console enabled(Use it when you need to troubleshoot booting issue)&lt;br /&gt;
** [https://github.com/huazi-yg/rock5b/releases/download/rock5b/rkspi_loader.img armbian version] (Use it when you install the armbian Image)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Step3: Boot the board to Maskrom mode ===&lt;br /&gt;
&lt;br /&gt;
[[File:Rock-5b-typec-maskrom.jpeg|400px]]&lt;br /&gt;
&lt;br /&gt;
To boot ROCK 5B to Maskrom mode is simple:&lt;br /&gt;
&lt;br /&gt;
* Power off the board.&lt;br /&gt;
* Remove bootable device like MicroSD card, eMMC module, etc.&lt;br /&gt;
* Press the golden (or silver on some board revisions) button and hold it.&lt;br /&gt;
* Plug the USB-A to Type-C cable to ROCK 5B Type-C port, the other side to PC.&lt;br /&gt;
* Release the golded button.&lt;br /&gt;
* Check usb device&lt;br /&gt;
** For macOS host: lsusb result: '''Bus 002 Device 032: ID 2207:350b Fuzhou Rockchip Electronics Co., Ltd. Composite Device'''&lt;br /&gt;
** For Linux host: lsusb result: '''Bus 001 Device 112: ID 2207:350b Fuzhou Rockchip Electronics Company'''&lt;br /&gt;
** For Windows host: Open RKDevTool and you would see the device is in '''Found One MASKROM Device'''&lt;br /&gt;
&lt;br /&gt;
=== Step4: Write U-Boot images to SPI Nor Flash or erase SPI Nor Flash ===&lt;br /&gt;
&lt;br /&gt;
==== Option 1: Operate on ROCK 5B ====&lt;br /&gt;
&lt;br /&gt;
Boot your ROCK 5B with Linux running on SD card or eMMC module:&lt;br /&gt;
&lt;br /&gt;
Make sure the SPI flash is available:&lt;br /&gt;
 ls /dev/mtdblk*&lt;br /&gt;
&lt;br /&gt;
 sudo dd if=zero.img of=/dev/mtdblock0&lt;br /&gt;
 sudo dd if=rock-5b-spi-image-g49da44e116d.img of=/dev/mtdblock0&lt;br /&gt;
 sync&lt;br /&gt;
&lt;br /&gt;
Get zero.img from [https://dl.radxa.com/rock5/sw/images/others/zero.img.gz here].&lt;br /&gt;
&lt;br /&gt;
==== Option 2: Flash with Linux PC/Mac ====&lt;br /&gt;
&lt;br /&gt;
On your PC or Mac, run the rkdeveloptool &lt;br /&gt;
&lt;br /&gt;
 sudo rkdeveloptool ld&lt;br /&gt;
 DevNo=1	Vid=0x2207,Pid=0x350b,LocationID=106	Maskrom&lt;br /&gt;
&lt;br /&gt;
This will load the loader (flash helper, downloaded from Step2) to run on ROCK 5B and init the ram and prepare the flashing environment etc.  &lt;br /&gt;
&lt;br /&gt;
 sudo rkdeveloptool db /path/to/rk3588_spl_loader_v1.08.111.bin		 # will output:&lt;br /&gt;
 Downloading bootloader succeeded.&lt;br /&gt;
&lt;br /&gt;
Next, write SPI image from PC/Mac to ROCK 5B SPI flash&lt;br /&gt;
&lt;br /&gt;
You can use the image download from Step 2.&lt;br /&gt;
&lt;br /&gt;
 sudo rkdeveloptool wl 0 rock-5b-spi-image-g49da44e116d.img					&lt;br /&gt;
 Write LBA from file (100%)&lt;br /&gt;
&lt;br /&gt;
Reboot the device &lt;br /&gt;
 rkdeveloptool rd&lt;br /&gt;
&lt;br /&gt;
now, the device should boot on SPI Nor Flash. And '''the blue led is on'''.&lt;br /&gt;
&lt;br /&gt;
==== Option 3: Flash with Windows PC ====&lt;br /&gt;
&lt;br /&gt;
Double click the RKDevTool.exe and you will see the following interface:&lt;br /&gt;
Double click the '''RKDevTool.exe''' and you will see the following interface:&lt;br /&gt;
&lt;br /&gt;
===== Step 1: comfirm that ROCK 5B is in Maskrom mode =====&lt;br /&gt;
&lt;br /&gt;
If your ROCK 5B is in maskrom mode and connects to PC, you can see that the program detects it, as the red arrow below&lt;br /&gt;
&lt;br /&gt;
===== Step 2: Load Configuration File =====&lt;br /&gt;
&lt;br /&gt;
Right-click in the list box and select Load Config,Then select the configuration file in the resource management folder（The configuration file and RKDevTool are in the same directory）&lt;br /&gt;
&lt;br /&gt;
===== Step 3: Select Loader =====&lt;br /&gt;
&lt;br /&gt;
Next, click  the right last columns in the &amp;quot;Loader&amp;quot; row to select rk3588_spl_loader_v1.08.111.bin&lt;br /&gt;
&lt;br /&gt;
===== Step 4: Select SPI image =====&lt;br /&gt;
&lt;br /&gt;
Next, click  the right last columns in the &amp;quot;spi&amp;quot; row to select spi-image.&lt;br /&gt;
&lt;br /&gt;
===== Step 5: Excute =====&lt;br /&gt;
&lt;br /&gt;
Finally, click the &amp;quot;Excute&amp;quot; button, and you will see the content in the red box on the right. When the progress reaches 100%, the download is completed.&lt;br /&gt;
&lt;br /&gt;
[[File: rock-5b-spi-flash-1.png |1000px]]&lt;br /&gt;
[[File: configuration.png |1000px]]&lt;br /&gt;
&lt;br /&gt;
[[File: rock-5b-spi-flash-02.png |1000px]]&lt;br /&gt;
&lt;br /&gt;
== Addition: Erase the SPI Nor Flash ==&lt;br /&gt;
&lt;br /&gt;
==== Option 1: Operate on ROCK 5B ====&lt;br /&gt;
&lt;br /&gt;
Boot your ROCK 5B with Linux running on SD card or eMMC module:&lt;br /&gt;
&lt;br /&gt;
Make sure the SPI flash is available:&lt;br /&gt;
 ls /dev/mtdblk*&lt;br /&gt;
&lt;br /&gt;
 sudo dd if=/dev/zero of=/dev/mtdblock0&lt;br /&gt;
 sync&lt;br /&gt;
&lt;br /&gt;
==== Option 2: Erase with Linux PC/Mac ====&lt;br /&gt;
&lt;br /&gt;
Please notice that when you want to erase SPI Nor Flash, 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]&lt;br /&gt;
And extract it.&lt;br /&gt;
&lt;br /&gt;
 rkdeveloptool db rk3588_spl_loader_v1.08.111.bin&lt;br /&gt;
 rkdeveloptool wl 0 zero.img&lt;br /&gt;
 rkdeveloptool rd&lt;br /&gt;
&lt;br /&gt;
==== Option3: Erase with Windows PC====&lt;br /&gt;
&lt;br /&gt;
Before Erasing, please confirm that ROCK 5B is in Maskrom mode&lt;br /&gt;
&lt;br /&gt;
===== Step 1: Download =====&lt;br /&gt;
Choose the &amp;quot;Advanced features&amp;quot; button, then select rk3588_spl_loader_v1.08.111.bin, next click the &amp;quot;Download&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
===== Step 2: Erase all  =====&lt;br /&gt;
Click the &amp;quot;erase all&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
===== Step 3: Reboot device =====&lt;br /&gt;
&lt;br /&gt;
[[File: eraseall_new.png |700px]]&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
* If you have issue with flashing via USB OTG, start a new post on the forum, https://forum.radxa.com/c/rock5.&lt;/div&gt;</summary>
		<author><name>Huazi</name></author>	</entry>

	</feed>