<?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=Feng</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=Feng"/>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Special:Contributions/Feng"/>
		<updated>2026-08-12T02:59:03Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.3</generator>

	<entry>
		<id>https://wiki.radxa.com/Rock3/downloads</id>
		<title>Rock3/downloads</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock3/downloads"/>
				<updated>2023-12-04T04:55:57Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: /*  Official Images */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rock3_header}}&lt;br /&gt;
{{Languages|rock3/downloads}}&lt;br /&gt;
&lt;br /&gt;
= Wiki is deprecated =&lt;br /&gt;
&lt;br /&gt;
Please find the latest information from our new [https://docs.radxa.com/en/rock3 docs site].&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
Official ROCK Pi system images can also be downloaded from&lt;br /&gt;
&lt;br /&gt;
* '''[http://rock.sh/rockpi-baidupan ROCK Pi  BaiduPan]'''&lt;br /&gt;
* '''[https://github.com/radxa/debos-radxa/releases/latest ROCK 3 Image Release]''' - The latest system images.&lt;br /&gt;
&lt;br /&gt;
For usernames and passwords please check the [https://wiki.radxa.com/Rock/FAQ#What.27s_the_user_and_password_in_Lubuntu FAQ].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-12&amp;quot;&amp;gt;&lt;br /&gt;
====&amp;lt;span class=&amp;quot;label forest&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-wrench&amp;quot; &amp;gt;&amp;lt;/i&amp;gt; Tools&amp;lt;/span&amp;gt;====&lt;br /&gt;
&amp;lt;div class=&amp;quot;table-responsive&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;table class=&amp;quot;table table-hover table-bordered table-striped&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;th&amp;gt;Description&amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;th&amp;gt;Linux&amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;th&amp;gt;MacOS&amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;th&amp;gt;Windows&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;td&amp;gt;&amp;lt;small&amp;gt;Etcher - A user friendly Image Writer&amp;lt;/small&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;td&amp;gt;[https://github.com/balena-io/etcher/releases/download/v1.4.9/balena-etcher-electron-1.4.9-linux-x64.zip Linux 64bit]  |  [https://github.com/balena-io/etcher/releases/download/v1.4.9/balena-etcher-electron-1.4.9-linux-ia32.zip Linux 32bit]&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;td&amp;gt;[https://github.com/balena-io/etcher/releases/download/v1.4.9/balenaEtcher-1.4.9.dmg balenaEtcher-1.4.9.dmg]&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;td&amp;gt;[https://github.com/balena-io/etcher/releases/download/v1.4.9/balenaEtcher-Setup-1.4.9-x86.exe balenaEtcher-Setup-1.4.9-x86.exe]&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-12&amp;quot;&amp;gt;&lt;br /&gt;
====&amp;lt;span class=&amp;quot;label forest&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-android&amp;quot; &amp;gt;&amp;lt;/i&amp;gt; Official Images&amp;lt;/span&amp;gt;====&lt;br /&gt;
&amp;lt;div class=&amp;quot;table-responsive&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;table class=&amp;quot;table table-hover table-bordered table-striped&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;th&amp;gt;Distribution&amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;th&amp;gt;Supported Boards&amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;th&amp;gt;Description&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;td&amp;gt;[[File:Android-Logo.jpg | 200px | link=https://github.com/radxa/manifests]]&amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;td&amp;gt;&lt;br /&gt;
* [https://dl.radxa.com/rock3/images/android/rock3a-android11-20220408_1204-gpt.img.xz ROCK 3A]&lt;br /&gt;
* [https://dl.radxa.com/rock3/images/android/rock3b-android11-20220408_1204-gpt.img.xz ROCK 3B]&lt;br /&gt;
* [https://dl.radxa.com/rock3/images/android/rock_cm3io-android11-20220408_1204-gpt.img.xz Radxa CM3 IO]&lt;br /&gt;
    &amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;td&amp;gt;&lt;br /&gt;
Version: Android11-20220408_1204&lt;br /&gt;
&lt;br /&gt;
ROCK 3A/3B [https://wiki.radxa.com/Rock3/install/usb-install Install Wiki.]&lt;br /&gt;
&lt;br /&gt;
CM3 IO [https://wiki.radxa.com/Rock3/installusb-install-radxa-cm3-io Install Wiki.]&lt;br /&gt;
  &amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;td&amp;gt;[[File:Debian-logo.png | 200px | link=https://github.com/radxa-build]]&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;td&amp;gt;&lt;br /&gt;
* [https://github.com/radxa-build/rock-3a/releases/latest ROCK 3A]&lt;br /&gt;
* [https://github.com/radxa-build/rock-3b/releases/latest ROCK 3B]&lt;br /&gt;
* [https://github.com/radxa-build/radxa-cm3-io/releases/download/b25/radxa-cm3-io_debian_bullseye_xfce_b25.img.xz Radxa CM3 IO]&lt;br /&gt;
* [https://github.com/radxa-build/radxa-cm3-rpi-cm4-io/releases/download/b15/radxa-cm3-rpi-cm4-io_debian_bullseye_kde_b15.img.xz Radxa CM3 RASPCM4IO]*&lt;br /&gt;
* [https://github.com/radxa-build/radxa-e23/releases/latest Radxa E23]&lt;br /&gt;
* [https://github.com/radxa/debos-radxa/releases/download/20221028-0344/radxa-e25-debian-bullseye-xfce4-arm64-20221028-0509-gpt.img.xz Radxa E25]&lt;br /&gt;
&lt;br /&gt;
ROCK 3C and CM3S user please visit our new [https://docs.radxa.com/en/rock3 docs site].&lt;br /&gt;
  &amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;td&amp;gt;&lt;br /&gt;
Debian Bullseye (11)&lt;br /&gt;
&lt;br /&gt;
[https://wiki.radxa.com/Rock3/Debian Install Wiki]&lt;br /&gt;
&lt;br /&gt;
[https://forum.radxa.com/t/230331-system-release-notice-for-rock-3c/15678 CM3S IO Debian11 Desktop Release Notice]&lt;br /&gt;
&lt;br /&gt;
[https://forum.radxa.com/t/230428-system-release-notice-for-rock-3c/16282 ROCK 3C Debian11 Desktop Release Notice]&lt;br /&gt;
&lt;br /&gt;
User of Radxa CM3 RASPCM4IO requires change of dtb file. The detailed instruction is included in the image download page.&lt;br /&gt;
  &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;td&amp;gt;[[File:Ubuntu_logo.png | 200px | link=https://github.com/radxa-build]]&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;td&amp;gt;&lt;br /&gt;
* [https://github.com/radxa-build/rock-3a/releases/latest ROCK 3A]&lt;br /&gt;
* [https://github.com/radxa-build/rock-3b/releases/latest ROCK 3B]&lt;br /&gt;
* [https://github.com/radxa-build/radxa-cm3-io/releases/latest Radxa CM3 IO]&lt;br /&gt;
* [https://github.com/radxa-build/radxa-cm3-io/releases/latest Radxa CM3 RASPCM4IO]*&lt;br /&gt;
* [https://github.com/radxa-build/radxa-e23/releases/latest Radxa E23]&lt;br /&gt;
* [https://github.com/radxa/debos-radxa/releases/download/20221028-0344/radxa-e25-ubuntu-focal-server-arm64-20221028-0448-gpt.img.xz Radxa E25]&lt;br /&gt;
&lt;br /&gt;
ROCK 3C and CM3S user please visit our new [https://docs.radxa.com/en/rock3 docs site].&lt;br /&gt;
  &amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;td&amp;gt;&lt;br /&gt;
Ubuntu Server 20.04&lt;br /&gt;
&lt;br /&gt;
[https://wiki.radxa.com/Rock3/Ubuntu Install Wiki]&lt;br /&gt;
&lt;br /&gt;
User of Radxa CM3 RASPCM4IO requires change of dtb file. The detailed instruction is included in the image download page.&lt;br /&gt;
  &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-12&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====&amp;lt;span class=&amp;quot;label forest&amp;quot; style=&amp;quot;margin-bottom:5px;&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-linux&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; Third Party Images&amp;lt;/span&amp;gt;====&lt;br /&gt;
&amp;lt;div class=&amp;quot;table-responsive&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;table align=&amp;quot;center&amp;quot; class=&amp;quot;table table-bordered table-striped&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Armbian(Unofficial build) --&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;col-md-2 mwbs-color-darker&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;th width=&amp;quot;8%&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;thumbnail&amp;quot; style=&amp;quot;display:  table-cell;&amp;quot;&amp;gt;[[File:Armbian-logo.png | link=https://discord.com/channels/855634073376260096/888960277788393553/912495051010084895]]&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;th width=&amp;quot;45%&amp;quot; style=&amp;quot;vertical-align:  middle;&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;caption&amp;quot; style=&amp;quot;text-align:  left;padding-left:  10px;&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;h5 class=&amp;quot;text-center&amp;quot; style=&amp;quot;display:  inline;&amp;quot;&amp;gt;&lt;br /&gt;
          &amp;lt;p class=&amp;quot;text-left&amp;quot; &amp;gt;[https://www.armbian.com/rock-3a/ Armbian]&amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/h5&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;th style=&amp;quot;vertical-align:  middle;&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;caption&amp;quot; style=&amp;quot;text-align:  left;padding-left:  10px;&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;p class=&amp;quot;text-left&amp;quot; &amp;gt;Build 2021-11-23.&amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;p class=&amp;quot;text-left&amp;quot; &amp;gt;user : pi  , password : armbian&amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;p class=&amp;quot;text-left&amp;quot; &amp;gt;[https://discord.com/channels/855634073376260096/888960277788393553/912495237748899851 Discord discussion]&amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- CRUX-ARM --&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;col-md-2 mwbs-color-darker&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;th width=&amp;quot;8%&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;thumbnail&amp;quot; style=&amp;quot;display:  table-cell;&amp;quot;&amp;gt;[[File:Cruxlogo.png | link=http://dl.slarm64.org/crux/images/rock_3/]]&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;th width=&amp;quot;45%&amp;quot; style=&amp;quot;vertical-align:  middle;&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;caption&amp;quot; style=&amp;quot;text-align:  left;padding-left:  10px;&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;h5 class=&amp;quot;text-center&amp;quot; style=&amp;quot;display:  inline;&amp;quot;&amp;gt;[https://dl.slarm64.org/crux/images/rock_3/crux-arm-3.6-aarch64-core-rock_3-6.0.6-build-20221029.img.zst CRUX-ARM]&amp;lt;/h5&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;th style=&amp;quot;vertical-align:  middle;&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;caption&amp;quot; style=&amp;quot;text-align:  left;padding-left:  10px;&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;p class=&amp;quot;text-left&amp;quot; &amp;gt;Build 2022-10-29.&amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;p class=&amp;quot;text-left&amp;quot; &amp;gt;[http://dl.slarm64.org/slackware/images/rock_3/README.TXT README.TXT].&amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;p class=&amp;quot;text-left&amp;quot; &amp;gt;[https://forum.radxa.com/t/rock-3-crux-arm-aarch64/7183 Forum discussion]&amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- manjaro --&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;col-md-2 mwbs-color-darker&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;th width=&amp;quot;8%&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;thumbnail&amp;quot; style=&amp;quot;display:  table-cell;&amp;quot;&amp;gt;[[File:Logo.png | link=https://manjaro.org/download]]&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;th width=&amp;quot;45%&amp;quot; style=&amp;quot;vertical-align:  middle;&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;div class=&amp;quot;caption&amp;quot; style=&amp;quot;text-align:  left;padding-left:  10px;&amp;quot;&amp;gt;&lt;br /&gt;
=====[https://github.com/manjaro-arm/rock3-a-images/releases Manjaro Image Release]=====&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;th style=&amp;quot;vertical-align:  middle;&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;div class=&amp;quot;caption&amp;quot; style=&amp;quot;text-align:  left;padding-left:  10px;&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;p class=&amp;quot;text-left&amp;quot; style=&amp;quot;display:  inline;&amp;quot;&amp;gt;Manjaro Product.&amp;lt;/p&amp;gt;&lt;br /&gt;
        &amp;lt;p class=&amp;quot;text-left&amp;quot; style=&amp;quot;display:  inline;&amp;quot;&amp;gt;[https://www.manjaro.org/ Install Wiki]&amp;lt;/p&amp;gt;&lt;br /&gt;
        &amp;lt;p class=&amp;quot;text-left&amp;quot; &amp;gt;[https://discord.com/channels/855634073376260096/866316562520473600/916175047390003270 Discussion Discord]&amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Slackware --&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;col-md-2 mwbs-color-darker&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;th width=&amp;quot;8%&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;thumbnail&amp;quot; style=&amp;quot;display:  table-cell;&amp;quot;&amp;gt;[[File:Slarm64-logo.png | link=http://dl.slarm64.org/slackware/images/rock_3/]]&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;th width=&amp;quot;45%&amp;quot; style=&amp;quot;vertical-align:  middle;&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;caption&amp;quot; style=&amp;quot;text-align:  left;padding-left:  10px;&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;h5 class=&amp;quot;text-center&amp;quot; style=&amp;quot;display:  inline;&amp;quot;&amp;gt;&lt;br /&gt;
          &amp;lt;p class=&amp;quot;text-left&amp;quot; &amp;gt;[https://dl.slarm64.org/slackware/images/rock_3a/slarm64-current-aarch64-core-rock_3a-6.6.0-rc5-build-20231015.img.zst Slarm64 Core (unofficial slackware)]&amp;lt;/p&amp;gt;&lt;br /&gt;
          &amp;lt;p class=&amp;quot;text-left&amp;quot; &amp;gt;[https://dl.slarm64.org/slackware/images/rock_3a/slarm64-current-aarch64-server-rock_3a-6.6.0-rc5-build-20231015.img.zst Slarm64 Server (unofficial slackware)]&amp;lt;/p&amp;gt;&lt;br /&gt;
          &amp;lt;p class=&amp;quot;text-left&amp;quot; &amp;gt;[https://dl.slarm64.org/slackware/images/rock_3a/slarm64-current-aarch64-xfce-rock_3a-6.6.0-rc5-build-20231015.img.zst Slarm64 XFCE (unofficial slackware)]&amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;/h5&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;th style=&amp;quot;vertical-align:  middle;&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;caption&amp;quot; style=&amp;quot;text-align:  left;padding-left:  10px;&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;p class=&amp;quot;text-left&amp;quot; &amp;gt;Build 2023-10-15.&amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;p class=&amp;quot;text-left&amp;quot; &amp;gt;[http://dl.slarm64.org/slackware/images/rock_3/README.TXT README.TXT].&amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;p class=&amp;quot;text-left&amp;quot; &amp;gt;[https://forum.radxa.com/t/rock-3-slarm64-aarch64-unofficial-slackware/7167/7 Forum discussion]&amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;col-md-12&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====&amp;lt;span class=&amp;quot;label forest&amp;quot; style=&amp;quot;margin-bottom:5px;&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-linux&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; Community Built Images&amp;lt;/span&amp;gt;==== &lt;br /&gt;
&amp;lt;div class=&amp;quot;table-responsive&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;table align=&amp;quot;center&amp;quot; class=&amp;quot;table table-bordered table-striped&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- community --&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;col-md-2 mwbs-color-darker&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;th width=&amp;quot;8%&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;thumbnail&amp;quot; style=&amp;quot;display:  table-cell;&amp;quot;&amp;gt;[[File:Community-logo.png | link=https://wiki.radxa.com/rock3/downloads/community_built_images]]&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;th width=&amp;quot;45%&amp;quot; style=&amp;quot;vertical-align:  middle;&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;caption&amp;quot; style=&amp;quot;text-align:  left;padding-left:  10px;&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;h5 class=&amp;quot;text-center&amp;quot; style=&amp;quot;display:  inline;&amp;quot;&amp;gt;[https://wiki.radxa.com/rock3/downloads/community_built_images Community Image]&amp;lt;/h5&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;th style=&amp;quot;vertical-align:  middle;&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;caption&amp;quot; style=&amp;quot;text-align:  left;padding-left:  10px;&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;p class=&amp;quot;text-left&amp;quot; style=&amp;quot;display:  inline;&amp;quot;&amp;gt;Image built by Community members&amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Rock5/guide/radxa-debian</id>
		<title>Rock5/guide/radxa-debian</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock5/guide/radxa-debian"/>
				<updated>2022-12-07T07:12:57Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: /* Accessories Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rock5_header}}&lt;br /&gt;
&lt;br /&gt;
{{Languages|rock5/guide/debian}}&lt;br /&gt;
&lt;br /&gt;
    [[rock5 | ROCK 5]] &amp;gt; [[rock5/guide | Guide]] &amp;gt; [[rock5/guide/radxa-debian | How to use Debian]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
=== Introduction to ROCK 5 Debian ===&lt;br /&gt;
&lt;br /&gt;
This guide is available for official ROCK 5 Debian images.&lt;br /&gt;
 &lt;br /&gt;
ROCK 5 Debian is an easy to use desktop system. While working with ROCK 5 Debian, you will find it do well on playing music, Internet, BT, AI and so on.&lt;br /&gt;
&lt;br /&gt;
ROCK 5 Debian uses '''systemd''' to manage system.&lt;br /&gt;
&lt;br /&gt;
Command prepended by $ means the command may be executed by an unprivileged user. And command prepended by # means the command may be executed by an privileged user. But the symbol, $ or #, is not part of the command.&lt;br /&gt;
&lt;br /&gt;
=== List of boards supported ===&lt;br /&gt;
&lt;br /&gt;
* ROCK 5B&lt;br /&gt;
&lt;br /&gt;
=== Access from the Host PC/Laptop ===&lt;br /&gt;
&lt;br /&gt;
==== Option 1: HDMI monitor and Mouse ====&lt;br /&gt;
&lt;br /&gt;
You would see Desktop on HDMI monitor.&lt;br /&gt;
&lt;br /&gt;
==== Option 2: Serial console ====&lt;br /&gt;
&lt;br /&gt;
See [[rock5/dev/serial-console | Serial Console]]&lt;br /&gt;
&lt;br /&gt;
==== Option 3: SSH ====&lt;br /&gt;
&lt;br /&gt;
SSH server  is enabled on port 22 of ROCK 5 default image. &lt;br /&gt;
&lt;br /&gt;
Please use [https://angryip.org/ angryip] to find your board IP address.&lt;br /&gt;
&lt;br /&gt;
 $ ping ip-of-device&lt;br /&gt;
 $ ssh rock@ip-of-device&lt;br /&gt;
&lt;br /&gt;
=== Default User Account ===&lt;br /&gt;
&lt;br /&gt;
Non-root User:&lt;br /&gt;
&lt;br /&gt;
 User Name : rock&lt;br /&gt;
 Password  : rock&lt;br /&gt;
&lt;br /&gt;
=== Switch to root user ===&lt;br /&gt;
&lt;br /&gt;
rock is sudo user and switch to root can be done with the following command as user rock:&lt;br /&gt;
&lt;br /&gt;
 sudo su&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
 rock@rock-5b:~$ &lt;br /&gt;
 rock@rock-5b:~$ sudo su&lt;br /&gt;
 [sudo] password for rock: &lt;br /&gt;
 root@rock-5b:/home/rock# &lt;br /&gt;
&lt;br /&gt;
There is no password for root user by default. You can set the password via 'passwd root'.&lt;br /&gt;
&lt;br /&gt;
 root@rock-5b:/home/rock# passwd root&lt;br /&gt;
 New password: &lt;br /&gt;
 Retype new password: &lt;br /&gt;
 passwd: password updated successfully&lt;br /&gt;
 root@rock-5b:/home/rock#&lt;br /&gt;
&lt;br /&gt;
=== Partition table ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Part Number || Offset || Name ||  Description &lt;br /&gt;
|- &lt;br /&gt;
|(raw) || 32KB  || loader1 || First stage loader&lt;br /&gt;
|-&lt;br /&gt;
|(raw) || 8MB  || loader2 || U-boot image&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 16MB || boot ||Kernel partition, bootable&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 528MB ||rootfs || Rootfs&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Offset when writing using '''dd'''&lt;br /&gt;
&lt;br /&gt;
 dd if=idbloader.img   of=/dev/sdx seek=64&lt;br /&gt;
 dd if=u-boot.itb      of=/dev/sdx seek=16384 &lt;br /&gt;
 dd if=boot.img        of=/dev/sdx seek=32768 &lt;br /&gt;
 dd if=rootfs.img      of=/dev/sdx seek=1081344&lt;br /&gt;
&lt;br /&gt;
=== LED ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;bs-example bs-example-tabs&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;ul id=&amp;quot;tabeth&amp;quot; class=&amp;quot;nav nav-tabs nav-justified nav-tabs&amp;quot; style=&amp;quot;margin:0;&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;li class=&amp;quot;active&amp;quot; data-toggle=&amp;quot;tab&amp;quot;&amp;gt;[http://wiki.radxa.com/Nav_Tabs#5b-leds ROCK 5B]&amp;lt;/li&amp;gt;     &lt;br /&gt;
        &amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div id=&amp;quot;tabeth&amp;quot; class=&amp;quot;tab-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;div class=&amp;quot;tab-pane active&amp;quot; id=&amp;quot;5b-ethernet&amp;quot;&amp;gt;&lt;br /&gt;
==== 5B LED ====&lt;br /&gt;
On ROCK 5B one blue LED is configured as LED class device.  When the blue LED is not active a green LED will show to indicate the board has power.&lt;br /&gt;
&lt;br /&gt;
You can control the behavior mode of the blue LED by writing to &amp;lt;code&amp;gt;/sys/class/leds/blue:status/trigger&amp;lt;/code&amp;gt;.  By default only root users can write to the device.&lt;br /&gt;
&lt;br /&gt;
The default mode of the blue LED is heartbeat. &lt;br /&gt;
&lt;br /&gt;
 root@rock-5b:/home/rock# echo activity &amp;gt; /sys/class/leds/blue:status/trigger&lt;br /&gt;
 root@rock-5b:/home/rock# echo timer &amp;gt; /sys/class/leds/blue:status/trigger&lt;br /&gt;
&lt;br /&gt;
You can use cat on the trigger property to list all the available LED modes.  The value in brackets is the currently active mode.&lt;br /&gt;
&lt;br /&gt;
 root@rock-5b:/home/rock# cat /sys/class/leds/blue:status/trigger &lt;br /&gt;
 none rfkill-any rfkill-none kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock tcpm-source-psy-4-0022-online timer oneshot disk-activity disk-read disk-write ide-disk mtd nand-disk [heartbeat] backlight gpio cpu cpu0 cpu1 cpu2 cpu3 cpu4 cpu5 cpu6 cpu7 activity default-on transient flash torch panic netdev mmc1 mmc0&lt;br /&gt;
&lt;br /&gt;
In the None mode, writing to /sys/class/leds/blue:status/brightness can manually control the status of the blue LED.&lt;br /&gt;
&lt;br /&gt;
 root@rock-5b:/home/rock# echo none &amp;gt; /sys/class/leds/blue:status/trigger&lt;br /&gt;
 root@rock-5b:/home/rock# echo 1 &amp;gt; /sys/class/leds/blue:status/brightness&lt;br /&gt;
 root@rock-5b:/home/rock# echo 0 &amp;gt; /sys/class/leds/blue:status/brightness&lt;br /&gt;
            &amp;lt;/div&amp;gt; &amp;lt;!--  id=&amp;quot;5b-leds&amp;quot; end--&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== RTC Device ===&lt;br /&gt;
ROCK 5B is equipped with one RTC IC hym8563. &lt;br /&gt;
&lt;br /&gt;
Firstly, plug in RTC battery to give power to RTC IC. Please note that we should keep the RTC battery in the RTC connector. &lt;br /&gt;
&lt;br /&gt;
Plug in power adaper to power on ROCK 5B.&lt;br /&gt;
&lt;br /&gt;
And confirm that the rtc hym8563 device is created. &lt;br /&gt;
&lt;br /&gt;
 root@rock-5b:/home/rock#  dmesg | grep rtc&lt;br /&gt;
 [    6.407133] rtc-hym8563 6-0051: rtc information is valid&lt;br /&gt;
 [    6.412731] rtc-hym8563 6-0051: registered as rtc0&lt;br /&gt;
 [    6.413779] rtc-hym8563 6-0051: setting system clock to 2022-06-22T01:22:26 UTC (1655860946)&lt;br /&gt;
Secondly, use the following commands to set the system time and synchronize it to rtc0. &lt;br /&gt;
 root@rock-5b:/home/rock# hwclock -r&lt;br /&gt;
 2021-06-12 08:10:02.613381+08:00&lt;br /&gt;
 root@rock-5b:/home/rock# date&lt;br /&gt;
 Wed Jun 22 10:06:10 CST 2022&lt;br /&gt;
 root@rock-5b:/home/rock# hwclock -w&lt;br /&gt;
 root@rock-5b:/home/rock# hwclock -r &lt;br /&gt;
 root@rock-5b:/home/rock# poweroff&lt;br /&gt;
take the RTC battery off，after 10minute or longer，insert the rtc battery and power on rock5b，check whether the RTC is synchronized with the system clock&lt;br /&gt;
 root@rock-5b:/home/rock# hwclock -r&lt;br /&gt;
 2022-06-22 10:09:59.214788+08:00&lt;br /&gt;
 root@rock-5b:/home/rock# date&lt;br /&gt;
 Wed Jun 22 10:17:01 CST 2022&lt;br /&gt;
&lt;br /&gt;
=== Ethernet ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;bs-example bs-example-tabs&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;ul id=&amp;quot;tabeth&amp;quot; class=&amp;quot;nav nav-tabs nav-justified nav-tabs&amp;quot; style=&amp;quot;margin:0;&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;li class=&amp;quot;active&amp;quot; data-toggle=&amp;quot;tab&amp;quot;&amp;gt;[http://wiki.radxa.com/Nav_Tabs#5b-ethernet ROCK 5B]&amp;lt;/li&amp;gt;     &lt;br /&gt;
        &amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div id=&amp;quot;tabeth&amp;quot; class=&amp;quot;tab-content&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;div class=&amp;quot;tab-pane active&amp;quot; id=&amp;quot;5b-ethernet&amp;quot;&amp;gt;&lt;br /&gt;
==== 5B Ethernet ====&lt;br /&gt;
&lt;br /&gt;
ROCK 5B is equipped with one 2.5G Ethernet port.&lt;br /&gt;
You can use a network cable (one end connected to the external network port or route) to connect your ROCK 5B to the network.&lt;br /&gt;
The ROCK 5B will automatically configure the network for your surfing on the Internet.&lt;br /&gt;
&lt;br /&gt;
===== Manually configure Ethernet =====&lt;br /&gt;
&lt;br /&gt;
* Switch to super user mode by command&lt;br /&gt;
 $ sudo su&lt;br /&gt;
&lt;br /&gt;
* Check whether the Ethernet is normal by command, ifconfig, which would show us a network card, eth0 or enP4p65s0 , and the Ethernet IP address. Also, use tool, ping, to connect to a normal domain. &lt;br /&gt;
&lt;br /&gt;
 $ ifconfig&lt;br /&gt;
 $ ping www.baidu.com&lt;br /&gt;
&lt;br /&gt;
* If failed to connect to a normal domain. , try &lt;br /&gt;
&lt;br /&gt;
 $ sudo dhclient eth0&lt;br /&gt;
 or&lt;br /&gt;
 $ sudo dhclient enP4p65s0&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;/div&amp;gt; &amp;lt;!--  id=&amp;quot;5b-ethernet&amp;quot; end--&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== WiFi ===&lt;br /&gt;
ROCK 5 Model B doesn't come with on board WiFi/BT. Currently the following WiFi Cards are tested and supported by the ROCK 5 Model B.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|- style=&amp;quot;font-weight:bold; background-color:#373A3C; color:#ECEEEF;&amp;quot;&lt;br /&gt;
| style=&amp;quot;vertical-align:middle;&amp;quot; | NO.&lt;br /&gt;
| style=&amp;quot;vertical-align:middle;&amp;quot; | Model&lt;br /&gt;
| style=&amp;quot;vertical-align:middle;&amp;quot; | Chip&lt;br /&gt;
| style=&amp;quot;vertical-align:middle;&amp;quot; | WiFi&lt;br /&gt;
| style=&amp;quot;vertical-align:middle;&amp;quot; | BT&lt;br /&gt;
| WIFI  Throughput&lt;br /&gt;
| Remark&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 1&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | ROCK Pi Wireless Module A1 (SDIO+UART) --- AP6236&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | BCM43436B0&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 2.4G&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 4.2&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | up:23.5 Mbits/sec down:40.4 Mbits/sec&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 2&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | ROCK Pi Wireless Module A2 (SDIO+UART) --- AP6256&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | BCM43456&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 2.4G&amp;amp;5G&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 5.0&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | up:196 Mbits/sec down: 187 Mbits/sec&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 3&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | ROCK Pi Wireless Module A3 (SDIO+UART) --- AP6398S&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | BCM43598&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 2.4G&amp;amp;5G&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 5.0&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | up:336 Mbits/sec down: 315 Mbits/sec&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 4&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | ROCK Pi Wireless Module A6s (SDIO+UART) --- AP6275S&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | BCM43752&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 2.4G&amp;amp;5G&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 5.0&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | up:234 Mbits/sec down: 273 Mbits/sec&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 5&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | Radxa wireless A8&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | RTL8852BE&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 2.4G&amp;amp;5G&amp;amp;WIFI6&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 5.0&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | up:600Mbits/sec down:900 Mbits/sec&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#F5F5F5; color:#212529;&amp;quot; | 6&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#F5F5F5; color:#212529;&amp;quot; | Intel 0MHK36 (PCIE+USB)&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#F5F5F5; color:#212529;&amp;quot; | Intel 3165&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#F5F5F5; color:#212529;&amp;quot; | 2.4G&amp;amp;5G&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#F5F5F5; color:#212529;&amp;quot; | 4.2&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#F5F5F5; color:#212529;&amp;quot; | up:283 Mbits/sec down: 334 Mbits/sec&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 7&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | Intel 7265NGW (PCIE+USB)&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | Intel 7265&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 2.4G&amp;amp;5G&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 4.2&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | up:363 Mbits/sec down: 619 Mbits/sec&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 8&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | Intel AX210 (PCIE+USB)&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | Intel AX210&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | WiFi 6&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 5.2&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | up: 859 Mbits/sec down: 813 Mbits/sec&lt;br /&gt;
| Only WIFI is supported currently, BT is not working&lt;br /&gt;
|}&lt;br /&gt;
==== To test the WIFI performance, we need to follow the steps: ====&lt;br /&gt;
&lt;br /&gt;
* Switch to super user mode&lt;br /&gt;
 $ sudo su&lt;br /&gt;
&lt;br /&gt;
* Open the WIFI&lt;br /&gt;
 $ nmcli r wifi on&lt;br /&gt;
&lt;br /&gt;
* Scan WIFI&lt;br /&gt;
 $ nmcli dev wifi&lt;br /&gt;
&lt;br /&gt;
* Connect to WIFI network&lt;br /&gt;
 $ nmcli dev wifi connect &amp;quot;wifi_name&amp;quot; password &amp;quot;wifi_password&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Test WIFI throughput by tool iperf3.&lt;br /&gt;
&lt;br /&gt;
=== BT ===&lt;br /&gt;
ROCK 5 Model B doesn't come with on board WiFi/BT. Currently the following WiFi Cards are tested and supported by the ROCK 5 Model B.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|- style=&amp;quot;font-weight:bold; background-color:#373A3C; color:#ECEEEF;&amp;quot;&lt;br /&gt;
| style=&amp;quot;vertical-align:middle;&amp;quot; | NO.&lt;br /&gt;
| style=&amp;quot;vertical-align:middle;&amp;quot; | Model&lt;br /&gt;
| style=&amp;quot;vertical-align:middle;&amp;quot; | Chip&lt;br /&gt;
| style=&amp;quot;vertical-align:middle;&amp;quot; | WiFi&lt;br /&gt;
| style=&amp;quot;vertical-align:middle;&amp;quot; | BT&lt;br /&gt;
| WIFI  Throughput&lt;br /&gt;
| Remark&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 1&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | ROCK Pi Wireless Module A1 (SDIO+UART) --- AP6236&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | BCM43436B0&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 2.4G&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 4.2&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | up:23.5 Mbits/sec down:40.4 Mbits/sec&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 2&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | ROCK Pi Wireless Module A2 (SDIO+UART) --- AP6256&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | BCM43456&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 2.4G&amp;amp;5G&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 5.0&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | up:196 Mbits/sec down: 187 Mbits/sec&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 3&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | ROCK Pi Wireless Module A3 (SDIO+UART) --- AP6398S&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | BCM43598&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 2.4G&amp;amp;5G&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 5.0&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | up:336 Mbits/sec down: 315 Mbits/sec&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 4&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | ROCK Pi Wireless Module A6s (SDIO+UART) --- AP6275S&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | BCM43752&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 2.4G&amp;amp;5G&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 5.0&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | up:234 Mbits/sec down: 273 Mbits/sec&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 5&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | Radxa wireless A8&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | RTL8852BE&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 2.4G&amp;amp;5G&amp;amp;WIFI6&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 5.0&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | up:600Mbits/sec down:900 Mbits/sec&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#F5F5F5; color:#212529;&amp;quot; | 6&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#F5F5F5; color:#212529;&amp;quot; | Intel 0MHK36 (PCIE+USB)&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#F5F5F5; color:#212529;&amp;quot; | Intel 3165&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#F5F5F5; color:#212529;&amp;quot; | 2.4G&amp;amp;5G&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#F5F5F5; color:#212529;&amp;quot; | 4.2&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#F5F5F5; color:#212529;&amp;quot; | up:283 Mbits/sec down: 334 Mbits/sec&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 7&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | Intel 7265NGW (PCIE+USB)&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | Intel 7265&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 2.4G&amp;amp;5G&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 4.2&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | up:363 Mbits/sec down: 619 Mbits/sec&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 8&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | Intel AX210 (PCIE+USB)&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | Intel AX210&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | WiFi 6&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | 5.2&lt;br /&gt;
| style=&amp;quot;vertical-align:middle; background-color:#FFF; color:#212529;&amp;quot; | up: 859 Mbits/sec down: 813 Mbits/sec&lt;br /&gt;
| Just WIFI Support&lt;br /&gt;
|}&lt;br /&gt;
Radxa APT includes '''broadcom-wifibt-firmware''' package for Broadcom wireless modules and '''intel-wifibt-firmware''' package for Intel wireless modules.&lt;br /&gt;
Take a look at your module and download the corresponding packages.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
 root@rock-5b:~# apt-get update -y&lt;br /&gt;
 root@rock-5b:~# apt-get install -y broadcom-wifibt-firmware intel-wifibt-firmware&lt;br /&gt;
&lt;br /&gt;
Below is the example of testing Broadcom modules BT.&lt;br /&gt;
&lt;br /&gt;
*Check BT service.&lt;br /&gt;
 root@rock-5b:~# systemctl status bluetooth&lt;br /&gt;
*Run BT service if the BT service is inactive.&lt;br /&gt;
 root@rock-5b:~# systemctl start bluetooth&lt;br /&gt;
*Check BT device.&lt;br /&gt;
 root@rock-5b:~# hciconfig&lt;br /&gt;
 hci0:   Type: Primary  Bus: UART&lt;br /&gt;
        BD Address: 10:2C:6B:49:D5:53  ACL MTU: 1021:8  SCO MTU: 64:1&lt;br /&gt;
        UP RUNNING &lt;br /&gt;
        RX bytes:850 acl:0 sco:0 events:58 errors:0&lt;br /&gt;
        TX bytes:2814 acl:0 sco:0 commands:58 errors:0&lt;br /&gt;
*Example: Connect to BT Speaker.&lt;br /&gt;
*Install pulseaudio packages.&lt;br /&gt;
 root@rock-5b:~# apt-get install -y pulseaudio-module-bluetooth pulseaudio&lt;br /&gt;
*Run pulseaudio.&lt;br /&gt;
 root@rock-5b:~# pulseaudio --start&lt;br /&gt;
*Connect using bluetoothctl.&lt;br /&gt;
 root@rock-5b:~# bluetoothctl&lt;br /&gt;
 [bluetooth]# default-agent &lt;br /&gt;
 [bluetooth]# power on&lt;br /&gt;
 [bluetooth]# scan on&lt;br /&gt;
 [bluetooth]# trust 41:42:1A:8D:A9:65       #BT-280&lt;br /&gt;
 [bluetooth]# pair 41:42:1A:8D:A9:65&lt;br /&gt;
 [bluetooth]# connect 41:42:1A:8D:A9:65&lt;br /&gt;
*Play songs and enjoy it.&lt;br /&gt;
&lt;br /&gt;
===== '''BT Tip:''' =====&lt;br /&gt;
When you use Radxa Wireless A8 Module, you must add some blacklist as follow to make BT work.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@rock-5b:~# cat /etc/modprobe.d/blacklist.conf &lt;br /&gt;
blacklist pgdrv&lt;br /&gt;
blacklist btusb&lt;br /&gt;
blacklist btrtl&lt;br /&gt;
blacklist btbcm&lt;br /&gt;
blacklist btintel&lt;br /&gt;
&lt;br /&gt;
root@rock-5b:~# reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Storage device ===&lt;br /&gt;
&lt;br /&gt;
* microSD card: /dev/mmcblk0&lt;br /&gt;
* eMMC: /dev/mmcblk1&lt;br /&gt;
* NVME M.2 SDD:  /dev/nvme0n1&lt;br /&gt;
&lt;br /&gt;
=== Benchmark ===&lt;br /&gt;
&lt;br /&gt;
==== Ethernet ====&lt;br /&gt;
&lt;br /&gt;
Ethernet throughput test result table.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Direction&lt;br /&gt;
! Bitrate&lt;br /&gt;
|-&lt;br /&gt;
| Upstream&lt;br /&gt;
| 2.34 Gbits/sec&lt;br /&gt;
|-&lt;br /&gt;
| Downstream&lt;br /&gt;
| 2.35 Gbits/sec&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== SD card  ====&lt;br /&gt;
&lt;br /&gt;
This is the test result of 128GB Sandisk card on ROCK 5B.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Operation&lt;br /&gt;
! Speed&lt;br /&gt;
|-&lt;br /&gt;
| Read&lt;br /&gt;
| 87.9MB/s&lt;br /&gt;
|-&lt;br /&gt;
| Write&lt;br /&gt;
| 66.3MB/s&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== GPU ====&lt;br /&gt;
&lt;br /&gt;
Run commands.&lt;br /&gt;
&lt;br /&gt;
 # test_gpu_glmark2_fullscreen.sh&lt;br /&gt;
&lt;br /&gt;
 # test_gpu_glmark2_offscreen.sh&lt;br /&gt;
&lt;br /&gt;
=== Accessories Configuration ===&lt;br /&gt;
&lt;br /&gt;
==== Fan ====&lt;br /&gt;
&lt;br /&gt;
There is one  PWM Fan connector on ROCK 5B.&lt;br /&gt;
&lt;br /&gt;
Execute shell script &amp;lt;code&amp;gt;test_fan_run.sh&amp;lt;/code&amp;gt; to turn on fan.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# test_fan_run.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The content of script test_fan_run.sh is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cat usr/local/bin/test_fan_run.sh &lt;br /&gt;
#!/bin/bash&lt;br /&gt;
echo &amp;quot;Trun on Fan&amp;quot;&lt;br /&gt;
echo 0 &amp;gt; /sys/devices/platform/fd8b0010.pwm/pwm/pwmchip*/export &lt;br /&gt;
echo 10000 &amp;gt; /sys/devices/platform/fd8b0010.pwm/pwm/pwmchip*/pwm0/period &lt;br /&gt;
echo 5000 &amp;gt; /sys/devices/platform/fd8b0010.pwm/pwm/pwmchip*/pwm0/duty_cycle &lt;br /&gt;
echo normal &amp;gt; /sys/devices/platform/fd8b0010.pwm/pwm/pwmchip*/pwm0/polarity &lt;br /&gt;
echo 1 &amp;gt; /sys/devices/platform/fd8b0010.pwm/pwm/pwmchip*/pwm0/enable &lt;br /&gt;
#echo 0 &amp;gt; /sys/devices/platform/fd8b0010.pwm/pwm/pwmchip*/pwm0/enable &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== HDMI 8K ====&lt;br /&gt;
&lt;br /&gt;
==== Radxa Display 8HD ====&lt;br /&gt;
&lt;br /&gt;
==== Radxa Camera 4K ====&lt;br /&gt;
&lt;br /&gt;
See [[rock5/accessories/radxa-camera-4k | Radxa Camera 4K]].&lt;br /&gt;
&lt;br /&gt;
==== Radxa Wireless Module A8 ====&lt;br /&gt;
&lt;br /&gt;
==== Wireless Module Intel AX210 ====&lt;br /&gt;
&lt;br /&gt;
==== Dp Sound ====&lt;br /&gt;
1. List existing sound cards via aplay&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@rock-5b:/# aplay -l&lt;br /&gt;
**** List of PLAYBACK Hardware Devices ****&lt;br /&gt;
card 0: rockchipdp0 [rockchip,dp0], device 0: rockchip,dp0 spdif-hifi-0 [rockchip,dp0 spdif-hifi-0]&lt;br /&gt;
  Subdevices: 1/1&lt;br /&gt;
  Subdevice #0: subdevice #0&lt;br /&gt;
card 1: rockchiphdmi0 [rockchip-hdmi0], device 0: rockchip-hdmi0 i2s-hifi-0 [rockchip-hdmi0 i2s-hifi-0]&lt;br /&gt;
  Subdevices: 1/1&lt;br /&gt;
  Subdevice #0: subdevice #0&lt;br /&gt;
card 2: rockchiphdmi1 [rockchip-hdmi1], device 0: rockchip-hdmi1 i2s-hifi-0 [rockchip-hdmi1 i2s-hifi-0]&lt;br /&gt;
  Subdevices: 1/1&lt;br /&gt;
  Subdevice #0: subdevice #0&lt;br /&gt;
card 3: rockchipes8316 [rockchip-es8316], device 0: fe470000.i2s-ES8316 HiFi es8316.7-0011-0 [fe470000.i2s-ES8316 HiFi es8316.7-00&lt;br /&gt;
11-0]&lt;br /&gt;
  Subdevices: 1/1&lt;br /&gt;
  Subdevice #0: subdevice #0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Specify the sound card to play audio in wav format&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@rock-5b:/# aplay -D hw:0,0 /mnt/test.wav &lt;br /&gt;
Playing WAVE '/mnt/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
hw:0,0 means card 0,device 0 Here it refers to rockchipdp0 (dp sound)&lt;br /&gt;
&lt;br /&gt;
=== OS ===&lt;br /&gt;
&lt;br /&gt;
==== Device Serial Number ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@rock-5b:~# cat /proc/cpuinfo | grep Serial&lt;br /&gt;
Serial		: 099b83b055b47b27&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== System update ====&lt;br /&gt;
&lt;br /&gt;
===== Radxa APT =====&lt;br /&gt;
&lt;br /&gt;
Radxa APT source includes stable one and testing one. Stable source includes stable packages while testing source includes latest but maybe unstable packages.&lt;br /&gt;
&lt;br /&gt;
Radxa APT stable source is added by default while testing source is not added.&lt;br /&gt;
&lt;br /&gt;
You can uncomment line like &amp;quot;deb http://apt.radxa.com/bullseye-testing/ bullseye main&amp;quot; in file /etc/apt/sources.list.d/apt-radxa-com.list to add testing source.&lt;br /&gt;
&lt;br /&gt;
See file /etc/apt/sources.list.d/apt-radxa-com.list&lt;br /&gt;
&lt;br /&gt;
 deb http://apt.radxa.com/bullseye-stable/ bullseye main&lt;br /&gt;
 deb http://apt.radxa.com/bullseye-testing/ bullseye main&lt;br /&gt;
&lt;br /&gt;
After adding testing source, you need to update APT and install your needed packages.&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
For more detail about Radxa APT, please see [[rock5/linux/radxa-apt | Radxa APT]].&lt;br /&gt;
&lt;br /&gt;
==== /boot/config.txt ====&lt;br /&gt;
&lt;br /&gt;
/boot/config.txt is designed for kernel parameters and hardware configuration.&lt;br /&gt;
Please note that execute &amp;quot;update_extlinux.sh&amp;quot; after changing file /boot/config.txt.&lt;br /&gt;
&lt;br /&gt;
===== kernel parameters =====&lt;br /&gt;
&lt;br /&gt;
kernel command line: started with &amp;quot;cmdline:&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
 # For console&lt;br /&gt;
 cmdline: earlycon=uart8250,mmio32,0xfeb50000 console=ttyFIQ0 console=tty1 consoleblank=0 loglevel=7&lt;br /&gt;
 # For rootfs&lt;br /&gt;
 cmdline: panic=10 rootwait rw init=/sbin/init rootfstype=ext4&lt;br /&gt;
&lt;br /&gt;
===== device tree overlay =====&lt;br /&gt;
&lt;br /&gt;
dt overlay line: started with &amp;quot;dtoverlay=&amp;quot;. One dt overlay one line.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
 dtoverlay=rk3588-uart7-m2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;span id=&amp;quot;common_hardware_interface&amp;quot;&amp;gt;Common Hardware Interfaces, GPIO, I2C, PWM, SPI, UART, CAN, etc&amp;lt;/span&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
The ROCK 5 system images use configuration file /boot/config.txt.&lt;br /&gt;
&lt;br /&gt;
'''Please note that execute &amp;quot;update_extlinux.sh&amp;quot; to update /boot/extlinux/extlinux.conf after changing file /boot/config.txt.'''&lt;br /&gt;
&lt;br /&gt;
===== GPIO =====&lt;br /&gt;
&lt;br /&gt;
===== I2C =====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== PWM =====&lt;br /&gt;
&lt;br /&gt;
====== PWM2-M1 ======&lt;br /&gt;
&lt;br /&gt;
To enable PWM2-M1 (/sys/class/pwm/pwmchip2), add one line &amp;quot;dtoverlay=rk3588-spi0-m2-cs0-spidev&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 dtoverlay=rk3588-pwm2-m1&lt;br /&gt;
&lt;br /&gt;
====== PWM3-M1 ======&lt;br /&gt;
&lt;br /&gt;
To enable PWM2-M1 (/sys/class/pwm/pwmchip3), add one line &amp;quot;dtoverlay=rk3588-spi0-m2-cs0-spidev&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 dtoverlay=rk3588-pwm3-m1&lt;br /&gt;
&lt;br /&gt;
===== SPI =====&lt;br /&gt;
&lt;br /&gt;
====== SPI0-M2-CS0 ======&lt;br /&gt;
&lt;br /&gt;
To enable SPI0-M2-CS0 (/dev/spidev0.0), add one line &amp;quot;dtoverlay=rk3588-spi0-m2-cs0-spidev&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 dtoverlay=rk3588-spi0-m2-cs0-spidev&lt;br /&gt;
&lt;br /&gt;
====== SPI0 M2 with CS1 ======&lt;br /&gt;
&lt;br /&gt;
To enable SPI0-M2-CS1 (/dev/spidev0.1), add one line &amp;quot;dtoverlay=rk3588-spi0-m2-cs1-spidev&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 dtoverlay=rk3588-spi0-m2-cs1-spidev&lt;br /&gt;
&lt;br /&gt;
====== SPI1 M1 with CS0 ======&lt;br /&gt;
&lt;br /&gt;
To enable SPI1-M1-CS0 (/dev/spidev1.0), add one line &amp;quot;dtoverlay=rk3588-spi1-m1-cs0-spidev&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 dtoverlay=rk3588-spi1-m1-cs0-spidev&lt;br /&gt;
&lt;br /&gt;
====== SPI1 M1 with CS1 ======&lt;br /&gt;
&lt;br /&gt;
To enable SPI1-M1-CS1 (/dev/spidev1.1), add one line &amp;quot;dtoverlay=rk3588-spi1-m1-cs1-spidev&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 dtoverlay=rk3588-spi1-m1-cs1-spidev&lt;br /&gt;
&lt;br /&gt;
===== UART =====&lt;/div&gt;</summary>
		<author><name>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Rock5/install/rockchip-flash-tools</id>
		<title>Rock5/install/rockchip-flash-tools</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock5/install/rockchip-flash-tools"/>
				<updated>2022-11-21T10:02:57Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: /* Step 1：Install RKDevTool */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rock3_header}}&lt;br /&gt;
&lt;br /&gt;
{{Languages|rock5/install/rockchip-flash-tools}}&lt;br /&gt;
&lt;br /&gt;
    [[rock5 | ROCK5]] &amp;gt; [[rock5/install | Installation]] &amp;gt; [[rock5/install/rockchip-flash-tools | Install Rockchip Flashing tools]]&lt;br /&gt;
&lt;br /&gt;
== Install Rockchip flashing tools ==&lt;br /&gt;
&lt;br /&gt;
ROCK 5 supports ''maskrom mode'', which is a special operation mode for CPU to wait for command from USB OTG port. The Linux/macOS PC tool we use to communicate with ROCK 5 in ''maskrom mode'' are '''rkdeveloptool on Linux/macOS PC''' and '''RKDevTool on Windows PC'''.&lt;br /&gt;
&lt;br /&gt;
=== Option one: RKDevTool on Windows ===&lt;br /&gt;
&lt;br /&gt;
==== Step 1：Install RKDevTool ====&lt;br /&gt;
The tool is provided in a compressed package. Please download the compressed package of this tool and extract files.&lt;br /&gt;
&lt;br /&gt;
* [https://dl.radxa.com/tools/windows/RKDevTool_Release_v2.81.zip RKDevTool_v2.81]&lt;br /&gt;
* [https://dl.radxa.com/tools/windows/windows_RKDevTool_Release_v2.92.zip RKDevTool_v2.92]&lt;br /&gt;
* [https://dl.radxa.com/tools/windows/RKDevTool_Release_v2.96-20221121.rar RKDevTool_v2.96 ](including ROCK 5B eMMC/SPI flash configuration files. Recommended.)&lt;br /&gt;
&lt;br /&gt;
Installation step is completed.&lt;br /&gt;
&lt;br /&gt;
==== Step 2：Install driver ====&lt;br /&gt;
Using the RK driver assistant tool to install the driver.&lt;br /&gt;
&lt;br /&gt;
There’s no need to connect your Rockchip device during this procedure just download and extract [https://dl.radxa.com/tools/windows/DriverAssitant_v5.0.zip RKDriverAssistant.zip]&lt;br /&gt;
&lt;br /&gt;
Then double click on DriverInstall.exe in the RKDriverAssistant directory to start the utility. If you installed the Rockchip USB drivers for any other Rockchip devices already, make sure you click “Uninstall Driver” first.&lt;br /&gt;
&lt;br /&gt;
[[File:RK_Driver_Assistant_Install_Uninstall.jpg]]&lt;br /&gt;
&lt;br /&gt;
Then click “Install Driver”to install the driver. And restart PC.&lt;br /&gt;
&lt;br /&gt;
=== Option two: rkdeveloptool on Linux (X86 or ARM) ===&lt;br /&gt;
&lt;br /&gt;
For Linux, we build the latest rkdeveloptool (version '''&amp;gt;=1.32'''), from source code.&lt;br /&gt;
&lt;br /&gt;
To build rkdeveloptool on a Debian based Linux distribution, follow the instruction below:&lt;br /&gt;
&lt;br /&gt;
Install build dependency:&lt;br /&gt;
  sudo apt-get install libudev-dev libusb-1.0-0-dev dh-autoreconf&lt;br /&gt;
&lt;br /&gt;
Clone the source code and build:&lt;br /&gt;
  git clone https://github.com/radxa/rkdeveloptool.git&lt;br /&gt;
  cd rkdeveloptool&lt;br /&gt;
  autoreconf -i&lt;br /&gt;
  ./configure&lt;br /&gt;
  make&lt;br /&gt;
&lt;br /&gt;
If you encounter compile error like below&lt;br /&gt;
  ./configure: line 4269: syntax error near unexpected token `LIBUSB1,libusb-1.0'&lt;br /&gt;
  ./configure: line 4269: `PKG_CHECK_MODULES(LIBUSB1,libusb-1.0)'&lt;br /&gt;
&lt;br /&gt;
You should install pkg-config libusb-1.0&lt;br /&gt;
  sudo apt-get install pkg-config libusb-1.0&lt;br /&gt;
&lt;br /&gt;
Then re-run &lt;br /&gt;
  autoreconf -i&lt;br /&gt;
  ./configure&lt;br /&gt;
  make&lt;br /&gt;
&lt;br /&gt;
Now you have rkdeveloptool executable at the current directory.&lt;br /&gt;
  sudo cp rkdeveloptool /usr/local/bin/&lt;br /&gt;
  sudo ldconfig&lt;br /&gt;
&lt;br /&gt;
Make sure that its version is 1.32.or later&lt;br /&gt;
&lt;br /&gt;
  rkdeveloptool -v&lt;br /&gt;
  rkdeveloptool ver 1.32&lt;br /&gt;
&lt;br /&gt;
=== Option three: rkdeveloptool on macOS(Intel &amp;amp; Apple Silicon) ===&lt;br /&gt;
&lt;br /&gt;
To build rkdeveloptool on macOS, you need [https://brew.sh/ homebrew](or similar package manager) to install required packages.&lt;br /&gt;
&lt;br /&gt;
Install build dependency:&lt;br /&gt;
  brew install automake autoconf libusb&lt;br /&gt;
&lt;br /&gt;
Clone the source code and build:&lt;br /&gt;
  git clone https://github.com/radxa/rkdeveloptool.git&lt;br /&gt;
  cd rkdeveloptool&lt;br /&gt;
  autoreconf -i&lt;br /&gt;
  ./configure&lt;br /&gt;
  make&lt;br /&gt;
&lt;br /&gt;
If you encounter compile error like below&lt;br /&gt;
  ./configure: line 5384: syntax error near unexpected token `LIBUSB1,libusb-1.0'&lt;br /&gt;
  ./configure: line 5384: `PKG_CHECK_MODULES(LIBUSB1,libusb-1.0)'&lt;br /&gt;
&lt;br /&gt;
You should install pkg-config libusb-1.0&lt;br /&gt;
  brew install pkg-config&lt;br /&gt;
&lt;br /&gt;
Then re-run &lt;br /&gt;
  autoreconf -i&lt;br /&gt;
  ./configure&lt;br /&gt;
  make&lt;br /&gt;
&lt;br /&gt;
Now you have rkdeveloptool executable at the current directory.&lt;br /&gt;
&lt;br /&gt;
  sudo cp rkdeveloptool /opt/homebrew/bin/&lt;br /&gt;
&lt;br /&gt;
Make sure that its version is 1.32 or later.&lt;br /&gt;
&lt;br /&gt;
  rkdeveloptool -v&lt;br /&gt;
  rkdeveloptool ver 1.32&lt;/div&gt;</summary>
		<author><name>Feng</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-01T03:54:25Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: /* Step 2: Load Configuration File */&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''' and '''[https://dl.radxa.co/tools/windows/windows_RKDevTool_Release_v2.92.zip RKDevTool]'''.  We use '''the rkdeveloptool in Linux/macOS ''' and '''the [https://dl.radxa.co/tools/windows/windows_RKDevTool_Release_v2.92.zip RKDevTool] under Windows'''.&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;
&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>Feng</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-01T03:52:20Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: /* Step 5: Excute */&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''' and '''[https://dl.radxa.co/tools/windows/windows_RKDevTool_Release_v2.92.zip RKDevTool]'''.  We use '''the rkdeveloptool in Linux/macOS ''' and '''the [https://dl.radxa.co/tools/windows/windows_RKDevTool_Release_v2.92.zip RKDevTool] under Windows'''.&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;
&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&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>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/File:Configuration.png</id>
		<title>File:Configuration.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/File:Configuration.png"/>
				<updated>2022-11-01T03:51:23Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Feng</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-01T03:45:29Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: /* Option 3: Flash with Windows PC */&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''' and '''[https://dl.radxa.co/tools/windows/windows_RKDevTool_Release_v2.92.zip RKDevTool]'''.  We use '''the rkdeveloptool in Linux/macOS ''' and '''the [https://dl.radxa.co/tools/windows/windows_RKDevTool_Release_v2.92.zip RKDevTool] under Windows'''.&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;
&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&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;
&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>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/File:Rock-5b-spi-flash-1.png</id>
		<title>File:Rock-5b-spi-flash-1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/File:Rock-5b-spi-flash-1.png"/>
				<updated>2022-11-01T03:44:00Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: Feng uploaded a new version of &amp;amp;quot;File:Rock-5b-spi-flash-1.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Feng</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-01T03:18:21Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: /* Option3: Erase with Windows PC */&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''' and '''[https://dl.radxa.co/tools/windows/windows_RKDevTool_Release_v2.92.zip RKDevTool]'''.  We use '''the rkdeveloptool in Linux/macOS ''' and '''the [https://dl.radxa.co/tools/windows/windows_RKDevTool_Release_v2.92.zip RKDevTool] under Windows'''.&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;
&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: 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 3: 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 4: 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;
&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>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/File:Eraseall_new.png</id>
		<title>File:Eraseall new.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/File:Eraseall_new.png"/>
				<updated>2022-11-01T03:17:44Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Rock5/guide/build-kernel-on-5b</id>
		<title>Rock5/guide/build-kernel-on-5b</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock5/guide/build-kernel-on-5b"/>
				<updated>2022-10-26T02:53:13Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: /* Get the source code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rock5_header}}&lt;br /&gt;
{{Languages|rock5/guide/build-kernel-5b}}&lt;br /&gt;
&lt;br /&gt;
    [[rock5 | ROCK 5]] &amp;gt; [[rock5/guide | Guide]] &amp;gt; [[rock5/guide/build-kernel-on-5b | Build Kernel on ROCK 5B]]&lt;br /&gt;
&lt;br /&gt;
== Build Kernel on ROCK 5B ==&lt;br /&gt;
=== Rockchip Debian SDK ===&lt;br /&gt;
&lt;br /&gt;
Below is the instructions of how to build kernel for ROCK 5 on rock5 board.&lt;br /&gt;
&lt;br /&gt;
Available boards:&lt;br /&gt;
&lt;br /&gt;
* ROCK 5B&lt;br /&gt;
&lt;br /&gt;
==== Get the source code ====&lt;br /&gt;
&lt;br /&gt;
You need Git to get multiple git repositories to build the image.&lt;br /&gt;
&lt;br /&gt;
Install Git if you don't have it.&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install git&lt;br /&gt;
&lt;br /&gt;
Clone the source code&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/rk3588-sdk &amp;amp;&amp;amp; cd ~/rk3588-sdk&lt;br /&gt;
 git clone -b stable-5.10-rock5 https://github.com/radxa/kernel.git&lt;br /&gt;
 git clone -b master https://github.com/radxa/rkbin.git&lt;br /&gt;
 git clone -b debian https://github.com/radxa/build.git&lt;br /&gt;
&lt;br /&gt;
And you will get &lt;br /&gt;
&lt;br /&gt;
 build  kernel  rkbin  &lt;br /&gt;
Directories usage introductions:&lt;br /&gt;
&lt;br /&gt;
* build:&lt;br /&gt;
** Some script files and configuration files for building u-boot, kernel and rootfs.&lt;br /&gt;
* kernel: &lt;br /&gt;
** kernel source code.&lt;br /&gt;
* rkbin: &lt;br /&gt;
** Prebuilt Rockchip binaries, include first stage loader and ATF(Arm Trustzone Firmware).&lt;br /&gt;
&lt;br /&gt;
==== Install other build tools ====&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install device-tree-compiler libncurses5 libncurses5-dev build-essential libssl-dev mtools bc python dosfstools bison flex rsync&lt;br /&gt;
&lt;br /&gt;
==== Build kernel ====&lt;br /&gt;
&lt;br /&gt;
Need to checkout branch to '''stable-5.10-rock5'''.&lt;br /&gt;
&lt;br /&gt;
Build kernel with default '''rockchip_linux_defconfig'''.&lt;br /&gt;
&lt;br /&gt;
 cd ~/rk3588-sdk&lt;br /&gt;
 ./build/mk-kernel.sh rk3588-rock-5b    #For ROCK 5B&lt;br /&gt;
&lt;br /&gt;
===== Change kernel config =====&lt;br /&gt;
&lt;br /&gt;
Optionally, if you want to change the default kernel config&lt;br /&gt;
&lt;br /&gt;
 cd ~/rk3588-sdk&lt;br /&gt;
 cd kernel&lt;br /&gt;
 make rockchip_linux_defconfig&lt;br /&gt;
 make menuconfig&lt;br /&gt;
 make savedefconfig&lt;br /&gt;
 cp defconfig arch/arm64/configs/rockchip_linux_defconfig&lt;br /&gt;
 cd ..&lt;br /&gt;
 ./build/mk-kernel.sh rk3588-rock-5b    #For ROCK 5B&lt;br /&gt;
&lt;br /&gt;
You will get the kernel image and dtb file&lt;br /&gt;
&lt;br /&gt;
 ls out/kernel/&lt;br /&gt;
 Image  rk3588-rock-5b.dtb&lt;br /&gt;
&lt;br /&gt;
==== Build kernel deb package ====&lt;br /&gt;
Because the cross compiler is not used, this line needs to be deleted out in the file kernel-package.mk.&lt;br /&gt;
 ...&lt;br /&gt;
 KERNEL_MAKE ?= make \&lt;br /&gt;
 ARCH=arm64 \&lt;br /&gt;
 CROSS_COMPILE=&amp;quot;path/aarch64-linux-gnu-&amp;quot;&lt;br /&gt;
 ...&lt;br /&gt;
change to:&lt;br /&gt;
 ...&lt;br /&gt;
 KERNEL_MAKE ?= make \&lt;br /&gt;
 ARCH=arm64 \&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The kernel package build can pack the kernel, device tree, modules and firmware into Debian packages, which makes it easier to install on the ROCK 5. &lt;br /&gt;
&lt;br /&gt;
 ./build/pack-kernel.sh -d rockchip_linux_defconfig -r 10 # rockchip_linux_defconfig: kernel defconfig; 1: release number&lt;br /&gt;
&lt;br /&gt;
The generated packages will be copied to out/packages directory.&lt;br /&gt;
&lt;br /&gt;
 ls out/packages/&lt;br /&gt;
 linux-5.10.66-10-rockchip-ge5013df5e066_5.10.66-10-rockchip_arm64.changes&lt;br /&gt;
 linux-image-5.10.66-10-rockchip-ge5013df5e066-dbg_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
 linux-headers-5.10.66-10-rockchip-ge5013df5e066_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
 linux-libc-dev_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
 linux-image-5.10.66-10-rockchip-ge5013df5e066_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
&lt;br /&gt;
When you want to install specified kernel packages to your OS, try the following steps.&lt;br /&gt;
&lt;br /&gt;
 # dpkg -i linux-image-5.10.66-10-rockchip-ge5013df5e066-dbg_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
&lt;br /&gt;
After a while, you will find that some files are generated in the /boot directory.then you may modify the default boot kernel.&lt;br /&gt;
 $ vim /boot/extlinux/extlinux.conf&lt;br /&gt;
 ...&lt;br /&gt;
 default l0&lt;br /&gt;
 menu title U-Boot menu&lt;br /&gt;
 prompt 0&lt;br /&gt;
 timeout 10&lt;br /&gt;
 ...&lt;br /&gt;
change to:&lt;br /&gt;
 ...&lt;br /&gt;
 default l1&lt;br /&gt;
 menu title U-Boot menu&lt;br /&gt;
 prompt 0&lt;br /&gt;
 timeout 10&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Now,you can reboot your board.After entering the system, enter the following command to check whether the version is the same as the version you built&lt;br /&gt;
 $ uname -r&lt;br /&gt;
&lt;br /&gt;
==== Flash the image ====&lt;br /&gt;
&lt;br /&gt;
==== FAQs ====&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
&lt;br /&gt;
Check [[rock5/FAQs |ROCK 5 FAQs]] first, if it doesn't help, start a new post on the forum https://forum.radxa.com/c/rock5.&lt;/div&gt;</summary>
		<author><name>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Rock5/guide/build-u-boot-on-5b</id>
		<title>Rock5/guide/build-u-boot-on-5b</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock5/guide/build-u-boot-on-5b"/>
				<updated>2022-10-26T02:47:42Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: /* Write u-boot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rock5_header}}&lt;br /&gt;
{{Languages|rock5/guide/build-u-boot-on-5b}}&lt;br /&gt;
&lt;br /&gt;
    [[rock5 | ROCK 5]] &amp;gt; [[rock5/guide | Guide]] &amp;gt; [[rock5/guide/build-u-boot-on-5b | Build U-Boot on ROCK 5B]]&lt;br /&gt;
&lt;br /&gt;
== Build U-Boot on ROCK 5B ==&lt;br /&gt;
=== Rockchip Debian SDK ===&lt;br /&gt;
&lt;br /&gt;
Below is the instructions of how to build u-boot image for ROCK 5 on rock5b board.&lt;br /&gt;
&lt;br /&gt;
Available boards:&lt;br /&gt;
&lt;br /&gt;
* ROCK 5B&lt;br /&gt;
&lt;br /&gt;
==== Get the source code ====&lt;br /&gt;
&lt;br /&gt;
You need Git to get multiple git repositories to build the image.&lt;br /&gt;
&lt;br /&gt;
Install Git if you don't have it.&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install git&lt;br /&gt;
&lt;br /&gt;
Clone the source code&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/rk3588-sdk &amp;amp;&amp;amp; cd ~/rk3588-sdk&lt;br /&gt;
 git clone -b stable-5.10-rock5 https://github.com/radxa/u-boot.git&lt;br /&gt;
 git clone -b master https://github.com/radxa/rkbin.git&lt;br /&gt;
 git clone -b debian https://github.com/radxa/build.git&lt;br /&gt;
&lt;br /&gt;
And you will get &lt;br /&gt;
&lt;br /&gt;
 build   rkbin u-boot&lt;br /&gt;
&lt;br /&gt;
Directories usage introductions:&lt;br /&gt;
&lt;br /&gt;
* build:&lt;br /&gt;
** Some script files and configuration files for building u-boot, kernel and rootfs.&lt;br /&gt;
* rkbin: &lt;br /&gt;
** Prebuilt Rockchip binaries, include first stage loader and ATF(Arm Trustzone Firmware).&lt;br /&gt;
* u-boot: &lt;br /&gt;
** u-boot as the second stage bootloader&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Install other build tools ====&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install device-tree-compiler libncurses5 libncurses5-dev build-essential libssl-dev mtools bc python dosfstools flex bison&lt;br /&gt;
&lt;br /&gt;
==== Build u-boot ====&lt;br /&gt;
&lt;br /&gt;
Need to checkout branch to '''stable-5.10-rock5'''.&lt;br /&gt;
&lt;br /&gt;
Build u-boot with default '''rock-5b-rk3588_defconfig'''.&lt;br /&gt;
&lt;br /&gt;
 cd ~/rk3588-sdk&lt;br /&gt;
 ./build/mk-uboot.sh rk3588-rock-5b     #For ROCK 5B&lt;br /&gt;
&lt;br /&gt;
The generated images will be copied to out/u-boot folder&lt;br /&gt;
&lt;br /&gt;
 ls out/u-boot/&lt;br /&gt;
 idbloader.img  rk3588_spl_loader_v1.07.111.bin  spi  u-boot.itb&lt;br /&gt;
&lt;br /&gt;
==== Write u-boot ====&lt;br /&gt;
&lt;br /&gt;
1. you should check file in out/u-boot should be like this:    &lt;br /&gt;
&lt;br /&gt;
 ls out/u-boot/&lt;br /&gt;
 idbloader.img  rk3588_spl_loader_v1.07.111.bin  spi  u-boot.itb&lt;br /&gt;
&lt;br /&gt;
2. flash u-boot to you storage  &lt;br /&gt;
* emmc&lt;br /&gt;
 sudo dd if=./idbloader.img of=/dev/mmcblk1 bs=512 seek=64&lt;br /&gt;
 sudo dd if=./u-boot.itb of=/dev/mmcblk1 bs=512 seek=16384&lt;br /&gt;
&lt;br /&gt;
* sdcard&lt;br /&gt;
 sudo dd if=./idbloader.img of=/dev/mmcblk0 bs=512 seek=64&lt;br /&gt;
 sudo dd if=./u-boot.itb of=/dev/mmcblk0 bs=512 seek=16384&lt;br /&gt;
&lt;br /&gt;
* spi nor&lt;br /&gt;
 sudo dd if=./idbloader.img of=/dev/mtdblock0 bs=512 seek=64&lt;br /&gt;
 sudo dd if=./u-boot.itb of=/dev/mtdblock0 bs=512 seek=16384&lt;br /&gt;
&lt;br /&gt;
==== FAQs ====&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
&lt;br /&gt;
Check [[rock5/FAQs |ROCK 5 FAQs]] first, if it doesn't help, start a new post on the forum https://forum.radxa.com/c/rock5.&lt;/div&gt;</summary>
		<author><name>Feng</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-10-25T08:48:11Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rock5_header}}&lt;br /&gt;
{{Languages|rock5/dev/usb-install}}&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 from USB port ==&lt;br /&gt;
&lt;br /&gt;
Rock 5 supports Maskrom mode, which is a special operation mode for CPU to wait for USB OTG port command.&lt;br /&gt;
The PC tools we use to communicate with rock 5 in Maskrom mode are the '''rkdeveloptool''' and '''[https://dl.radxa.co/tools/windows/windows_RKDevTool_Release_v2.92.zip RKDevTool v2.92]'''. &lt;br /&gt;
We use '''the rkdeveloptool in Linux/macOS ''' and '''the [https://dl.radxa.co/tools/windows/windows_RKDevTool_Release_v2.92.zip RKDevTool] under Windows'''.&lt;br /&gt;
&lt;br /&gt;
=== Requirement ===&lt;br /&gt;
&lt;br /&gt;
* ROCK 5B &lt;br /&gt;
* Linux image for ROCK 5B, Android image is not supported yet&lt;br /&gt;
* type-c cable&lt;br /&gt;
* SPI Nor Flash on board&lt;br /&gt;
* Windows/linux/macOS  PC&lt;br /&gt;
&lt;br /&gt;
=== 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]].&lt;br /&gt;
&lt;br /&gt;
=== 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;
=== Get RK3588 loader and U-Boot images ===&lt;br /&gt;
&lt;br /&gt;
==== 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;
&lt;br /&gt;
=== Write U-Boot images to SPI Nor Flash or erase SPI Nor Flash ===&lt;br /&gt;
&lt;br /&gt;
==== Linux/MacOS ====&lt;br /&gt;
On your PC, 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;
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 [https://dl.radxa.com/rock5/sw/images/loader/rock-5b/rk3588_spl_loader_v1.08.111.bin here]&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;
Write SPI image to SPI Nor Flash on board.&lt;br /&gt;
&lt;br /&gt;
You can use our pre-built files.&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;
==== Rock5B ====&lt;br /&gt;
Or If you want to update the image on the ROCK5B board, you need to enter the system, then enter the following command.&lt;br /&gt;
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;
 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;
&lt;br /&gt;
==== Windows ====&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: 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 3: 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 4: 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;
&lt;br /&gt;
[[File: rock-5b-spi-flash-02.png |1000px]]&lt;br /&gt;
&lt;br /&gt;
== Erase SPI Nor Flash ==&lt;br /&gt;
&lt;br /&gt;
=== Linux/MacOS ===&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;
=== Windows ===&lt;br /&gt;
&lt;br /&gt;
Before Erasing, please comfirm 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.jpg |700px]]&lt;br /&gt;
&lt;br /&gt;
=== Verify Loader version ===&lt;br /&gt;
&lt;br /&gt;
Version is display on UART console when board starts, one of the very first lines (older vs updated): &lt;br /&gt;
 DDR Version V1.07 20220412&lt;br /&gt;
 DDR Version V1.08 20220617&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>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Rock5/guide/build-kernel-on-5b</id>
		<title>Rock5/guide/build-kernel-on-5b</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock5/guide/build-kernel-on-5b"/>
				<updated>2022-10-25T07:05:06Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: /* Build kernel deb package */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rock5_header}}&lt;br /&gt;
{{Languages|rock5/guide/build-kernel-5b}}&lt;br /&gt;
&lt;br /&gt;
    [[rock5 | ROCK 5]] &amp;gt; [[rock5/guide | Guide]] &amp;gt; [[rock5/guide/build-kernel-on-5b | Build Kernel on ROCK 5B]]&lt;br /&gt;
&lt;br /&gt;
== Build Kernel on ROCK 5B ==&lt;br /&gt;
=== Rockchip Debian SDK ===&lt;br /&gt;
&lt;br /&gt;
Below is the instructions of how to build kernel for ROCK 5 on rock5 board.&lt;br /&gt;
&lt;br /&gt;
Available boards:&lt;br /&gt;
&lt;br /&gt;
* ROCK 5B&lt;br /&gt;
&lt;br /&gt;
==== Get the source code ====&lt;br /&gt;
&lt;br /&gt;
You need Git to get multiple git repositories to build the image.&lt;br /&gt;
&lt;br /&gt;
Install Git if you don't have it.&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install git&lt;br /&gt;
&lt;br /&gt;
Clone the source code&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/rk3588-sdk &amp;amp;&amp;amp; cd ~/rk3588-sdk&lt;br /&gt;
 git clone -b stable-5.10-rock5 https://github.com/radxa/kernel.git&lt;br /&gt;
 git clone -b master https://github.com/radxa/rkbin.git&lt;br /&gt;
 git clone -b debian https://github.com/radxa/build.git&lt;br /&gt;
&lt;br /&gt;
And you will get &lt;br /&gt;
&lt;br /&gt;
 build  kernel  rkbin  &lt;br /&gt;
Directories usage introductions:&lt;br /&gt;
&lt;br /&gt;
* build:&lt;br /&gt;
** Some script files and configuration files for building u-boot, kernel and rootfs.&lt;br /&gt;
* kernel: &lt;br /&gt;
** kernel source code, current version is 4.19.193.&lt;br /&gt;
* rkbin: &lt;br /&gt;
** Prebuilt Rockchip binaries, include first stage loader and ATF(Arm Trustzone Firmware).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Install other build tools ====&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install device-tree-compiler libncurses5 libncurses5-dev build-essential libssl-dev mtools bc python dosfstools bison flex rsync&lt;br /&gt;
&lt;br /&gt;
==== Build kernel ====&lt;br /&gt;
&lt;br /&gt;
Need to checkout branch to '''stable-5.10-rock5'''.&lt;br /&gt;
&lt;br /&gt;
Build kernel with default '''rockchip_linux_defconfig'''.&lt;br /&gt;
&lt;br /&gt;
 cd ~/rk3588-sdk&lt;br /&gt;
 ./build/mk-kernel.sh rk3588-rock-5b    #For ROCK 5B&lt;br /&gt;
&lt;br /&gt;
===== Change kernel config =====&lt;br /&gt;
&lt;br /&gt;
Optionally, if you want to change the default kernel config&lt;br /&gt;
&lt;br /&gt;
 cd ~/rk3588-sdk&lt;br /&gt;
 cd kernel&lt;br /&gt;
 make rockchip_linux_defconfig&lt;br /&gt;
 make menuconfig&lt;br /&gt;
 make savedefconfig&lt;br /&gt;
 cp defconfig arch/arm64/configs/rockchip_linux_defconfig&lt;br /&gt;
 cd ..&lt;br /&gt;
 ./build/mk-kernel.sh rk3588-rock-5b    #For ROCK 5B&lt;br /&gt;
&lt;br /&gt;
You will get the kernel image and dtb file&lt;br /&gt;
&lt;br /&gt;
 ls out/kernel/&lt;br /&gt;
 Image  rk3588-rock-5b.dtb&lt;br /&gt;
&lt;br /&gt;
==== Build kernel deb package ====&lt;br /&gt;
Because the cross compiler is not used, this line needs to be deleted out in the file kernel-package.mk.&lt;br /&gt;
 ...&lt;br /&gt;
 KERNEL_MAKE ?= make \&lt;br /&gt;
 ARCH=arm64 \&lt;br /&gt;
 CROSS_COMPILE=&amp;quot;path/aarch64-linux-gnu-&amp;quot;&lt;br /&gt;
 ...&lt;br /&gt;
change to:&lt;br /&gt;
 ...&lt;br /&gt;
 KERNEL_MAKE ?= make \&lt;br /&gt;
 ARCH=arm64 \&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The kernel package build can pack the kernel, device tree, modules and firmware into Debian packages, which makes it easier to install on the ROCK 5. &lt;br /&gt;
&lt;br /&gt;
 ./build/pack-kernel.sh -d rockchip_linux_defconfig -r 10 # rockchip_linux_defconfig: kernel defconfig; 1: release number&lt;br /&gt;
&lt;br /&gt;
The generated packages will be copied to out/packages directory.&lt;br /&gt;
&lt;br /&gt;
 ls out/packages/&lt;br /&gt;
 linux-5.10.66-10-rockchip-ge5013df5e066_5.10.66-10-rockchip_arm64.changes&lt;br /&gt;
 linux-image-5.10.66-10-rockchip-ge5013df5e066-dbg_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
 linux-headers-5.10.66-10-rockchip-ge5013df5e066_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
 linux-libc-dev_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
 linux-image-5.10.66-10-rockchip-ge5013df5e066_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
&lt;br /&gt;
When you want to install specified kernel packages to your OS, try the following steps.&lt;br /&gt;
&lt;br /&gt;
 # dpkg -i linux-image-5.10.66-10-rockchip-ge5013df5e066-dbg_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
&lt;br /&gt;
After a while, you will find that some files are generated in the /boot directory.then you may modify the default boot kernel.&lt;br /&gt;
 $ vim /boot/extlinux/extlinux.conf&lt;br /&gt;
 ...&lt;br /&gt;
 default l0&lt;br /&gt;
 menu title U-Boot menu&lt;br /&gt;
 prompt 0&lt;br /&gt;
 timeout 10&lt;br /&gt;
 ...&lt;br /&gt;
change to:&lt;br /&gt;
 ...&lt;br /&gt;
 default l1&lt;br /&gt;
 menu title U-Boot menu&lt;br /&gt;
 prompt 0&lt;br /&gt;
 timeout 10&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Now,you can reboot your board.After entering the system, enter the following command to check whether the version is the same as the version you built&lt;br /&gt;
 $ uname -r&lt;br /&gt;
&lt;br /&gt;
==== Flash the image ====&lt;br /&gt;
&lt;br /&gt;
==== FAQs ====&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
&lt;br /&gt;
Check [[rock5/FAQs |ROCK 5 FAQs]] first, if it doesn't help, start a new post on the forum https://forum.radxa.com/c/rock5.&lt;/div&gt;</summary>
		<author><name>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Rock5/guide/build-kernel-on-5b</id>
		<title>Rock5/guide/build-kernel-on-5b</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock5/guide/build-kernel-on-5b"/>
				<updated>2022-10-25T06:33:00Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rock5_header}}&lt;br /&gt;
{{Languages|rock5/guide/build-kernel-5b}}&lt;br /&gt;
&lt;br /&gt;
    [[rock5 | ROCK 5]] &amp;gt; [[rock5/guide | Guide]] &amp;gt; [[rock5/guide/build-kernel-on-5b | Build Kernel on ROCK 5B]]&lt;br /&gt;
&lt;br /&gt;
== Build Kernel on ROCK 5B ==&lt;br /&gt;
=== Rockchip Debian SDK ===&lt;br /&gt;
&lt;br /&gt;
Below is the instructions of how to build kernel for ROCK 5 on rock5 board.&lt;br /&gt;
&lt;br /&gt;
Available boards:&lt;br /&gt;
&lt;br /&gt;
* ROCK 5B&lt;br /&gt;
&lt;br /&gt;
==== Get the source code ====&lt;br /&gt;
&lt;br /&gt;
You need Git to get multiple git repositories to build the image.&lt;br /&gt;
&lt;br /&gt;
Install Git if you don't have it.&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install git&lt;br /&gt;
&lt;br /&gt;
Clone the source code&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/rk3588-sdk &amp;amp;&amp;amp; cd ~/rk3588-sdk&lt;br /&gt;
 git clone -b stable-5.10-rock5 https://github.com/radxa/kernel.git&lt;br /&gt;
 git clone -b master https://github.com/radxa/rkbin.git&lt;br /&gt;
 git clone -b debian https://github.com/radxa/build.git&lt;br /&gt;
&lt;br /&gt;
And you will get &lt;br /&gt;
&lt;br /&gt;
 build  kernel  rkbin  &lt;br /&gt;
Directories usage introductions:&lt;br /&gt;
&lt;br /&gt;
* build:&lt;br /&gt;
** Some script files and configuration files for building u-boot, kernel and rootfs.&lt;br /&gt;
* kernel: &lt;br /&gt;
** kernel source code, current version is 4.19.193.&lt;br /&gt;
* rkbin: &lt;br /&gt;
** Prebuilt Rockchip binaries, include first stage loader and ATF(Arm Trustzone Firmware).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Install other build tools ====&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install device-tree-compiler libncurses5 libncurses5-dev build-essential libssl-dev mtools bc python dosfstools bison flex rsync&lt;br /&gt;
&lt;br /&gt;
==== Build kernel ====&lt;br /&gt;
&lt;br /&gt;
Need to checkout branch to '''stable-5.10-rock5'''.&lt;br /&gt;
&lt;br /&gt;
Build kernel with default '''rockchip_linux_defconfig'''.&lt;br /&gt;
&lt;br /&gt;
 cd ~/rk3588-sdk&lt;br /&gt;
 ./build/mk-kernel.sh rk3588-rock-5b    #For ROCK 5B&lt;br /&gt;
&lt;br /&gt;
===== Change kernel config =====&lt;br /&gt;
&lt;br /&gt;
Optionally, if you want to change the default kernel config&lt;br /&gt;
&lt;br /&gt;
 cd ~/rk3588-sdk&lt;br /&gt;
 cd kernel&lt;br /&gt;
 make rockchip_linux_defconfig&lt;br /&gt;
 make menuconfig&lt;br /&gt;
 make savedefconfig&lt;br /&gt;
 cp defconfig arch/arm64/configs/rockchip_linux_defconfig&lt;br /&gt;
 cd ..&lt;br /&gt;
 ./build/mk-kernel.sh rk3588-rock-5b    #For ROCK 5B&lt;br /&gt;
&lt;br /&gt;
You will get the kernel image and dtb file&lt;br /&gt;
&lt;br /&gt;
 ls out/kernel/&lt;br /&gt;
 Image  rk3588-rock-5b.dtb&lt;br /&gt;
&lt;br /&gt;
==== Build kernel deb package ====&lt;br /&gt;
&lt;br /&gt;
The kernel package build can pack the kernel, device tree, modules and firmware into Debian packages, which makes it easier to install on the ROCK 5. &lt;br /&gt;
&lt;br /&gt;
 ./build/pack-kernel.sh -d rockchip_linux_defconfig -r 10 # rockchip_linux_defconfig: kernel defconfig; 1: release number&lt;br /&gt;
&lt;br /&gt;
The generated packages will be copied to out/packages directory.&lt;br /&gt;
&lt;br /&gt;
 ls out/packages/&lt;br /&gt;
 linux-5.10.66-10-rockchip-ge5013df5e066_5.10.66-10-rockchip_arm64.changes&lt;br /&gt;
 linux-image-5.10.66-10-rockchip-ge5013df5e066-dbg_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
 linux-headers-5.10.66-10-rockchip-ge5013df5e066_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
 linux-libc-dev_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
 linux-image-5.10.66-10-rockchip-ge5013df5e066_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
&lt;br /&gt;
When you want to install specified kernel packages to your OS, try the following steps.&lt;br /&gt;
&lt;br /&gt;
 # dpkg -i linux-image-5.10.66-10-rockchip-ge5013df5e066-dbg_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
&lt;br /&gt;
After a while, you will find that some files are generated in the /boot directory.then you may modify the default boot kernel.&lt;br /&gt;
 $ vim /boot/extlinux/extlinux.conf&lt;br /&gt;
 ...&lt;br /&gt;
 default l0&lt;br /&gt;
 menu title U-Boot menu&lt;br /&gt;
 prompt 0&lt;br /&gt;
 timeout 10&lt;br /&gt;
 ...&lt;br /&gt;
change to:&lt;br /&gt;
 ...&lt;br /&gt;
 default l1&lt;br /&gt;
 menu title U-Boot menu&lt;br /&gt;
 prompt 0&lt;br /&gt;
 timeout 10&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Now,you can reboot your board.After entering the system, enter the following command to check whether the version is the same as the version you built&lt;br /&gt;
 $ uname -r&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Flash the image ====&lt;br /&gt;
&lt;br /&gt;
==== FAQs ====&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
&lt;br /&gt;
Check [[rock5/FAQs |ROCK 5 FAQs]] first, if it doesn't help, start a new post on the forum https://forum.radxa.com/c/rock5.&lt;/div&gt;</summary>
		<author><name>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Rock5/guide/build-kernel-on-5b</id>
		<title>Rock5/guide/build-kernel-on-5b</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock5/guide/build-kernel-on-5b"/>
				<updated>2022-10-25T06:30:08Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rock5_header}}&lt;br /&gt;
{{Languages|rock5/guide/build-kernel-5b}}&lt;br /&gt;
&lt;br /&gt;
    [[rock5 | ROCK 5]] &amp;gt; [[rock5/guide | Guide]] &amp;gt; [[rock5/guide/build-kernel-on-5b | Build Kernel on ROCK 5B]]&lt;br /&gt;
&lt;br /&gt;
== Build Kernel on ROCK 5B ==&lt;br /&gt;
=== Rockchip Debian SDK ===&lt;br /&gt;
&lt;br /&gt;
Below is the instructions of how to build kernel for ROCK 5 on rock5 board.&lt;br /&gt;
&lt;br /&gt;
Available boards:&lt;br /&gt;
&lt;br /&gt;
* ROCK 5B&lt;br /&gt;
&lt;br /&gt;
==== Get the source code ====&lt;br /&gt;
&lt;br /&gt;
You need Git to get multiple git repositories to build the image.&lt;br /&gt;
&lt;br /&gt;
Install Git if you don't have it.&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install git&lt;br /&gt;
&lt;br /&gt;
Clone the source code&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/rk3588-sdk &amp;amp;&amp;amp; cd ~/rk3588-sdk&lt;br /&gt;
 git clone -b stable-5.10-rock5 https://github.com/radxa/kernel.git&lt;br /&gt;
 git clone -b master https://github.com/radxa/rkbin.git&lt;br /&gt;
 git clone -b debian https://github.com/radxa/build.git&lt;br /&gt;
 git clone -b main https://github.com/radxa/debos-radxa.git&lt;br /&gt;
&lt;br /&gt;
And you will get &lt;br /&gt;
&lt;br /&gt;
 build  kernel  rkbin  &lt;br /&gt;
Directories usage introductions:&lt;br /&gt;
&lt;br /&gt;
* build:&lt;br /&gt;
** Some script files and configuration files for building u-boot, kernel and rootfs.&lt;br /&gt;
* kernel: &lt;br /&gt;
** kernel source code, current version is 4.19.193.&lt;br /&gt;
* rkbin: &lt;br /&gt;
** Prebuilt Rockchip binaries, include first stage loader and ATF(Arm Trustzone Firmware).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Install other build tools ====&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install device-tree-compiler libncurses5 libncurses5-dev build-essential libssl-dev mtools bc python dosfstools bison flex rsync&lt;br /&gt;
&lt;br /&gt;
==== Build kernel ====&lt;br /&gt;
&lt;br /&gt;
Need to checkout branch to '''stable-5.10-rock5'''.&lt;br /&gt;
&lt;br /&gt;
Build kernel with default '''rockchip_linux_defconfig'''.&lt;br /&gt;
&lt;br /&gt;
 cd ~/rk3588-sdk&lt;br /&gt;
 ./build/mk-kernel.sh rk3588-rock-5b    #For ROCK 5B&lt;br /&gt;
&lt;br /&gt;
===== Change kernel config =====&lt;br /&gt;
&lt;br /&gt;
Optionally, if you want to change the default kernel config&lt;br /&gt;
&lt;br /&gt;
 cd ~/rk3588-sdk&lt;br /&gt;
 cd kernel&lt;br /&gt;
 make rockchip_linux_defconfig&lt;br /&gt;
 make menuconfig&lt;br /&gt;
 make savedefconfig&lt;br /&gt;
 cp defconfig arch/arm64/configs/rockchip_linux_defconfig&lt;br /&gt;
 cd ..&lt;br /&gt;
 ./build/mk-kernel.sh rk3588-rock-5b    #For ROCK 5B&lt;br /&gt;
&lt;br /&gt;
You will get the kernel image and dtb file&lt;br /&gt;
&lt;br /&gt;
 ls out/kernel/&lt;br /&gt;
 Image  rk3588-rock-5b.dtb&lt;br /&gt;
&lt;br /&gt;
==== Build kernel deb package ====&lt;br /&gt;
&lt;br /&gt;
The kernel package build can pack the kernel, device tree, modules and firmware into Debian packages, which makes it easier to install on the ROCK 5. &lt;br /&gt;
&lt;br /&gt;
 ./build/pack-kernel.sh -d rockchip_linux_defconfig -r 10 # rockchip_linux_defconfig: kernel defconfig; 1: release number&lt;br /&gt;
&lt;br /&gt;
The generated packages will be copied to out/packages directory.&lt;br /&gt;
&lt;br /&gt;
 ls out/packages/&lt;br /&gt;
 linux-5.10.66-10-rockchip-ge5013df5e066_5.10.66-10-rockchip_arm64.changes&lt;br /&gt;
 linux-image-5.10.66-10-rockchip-ge5013df5e066-dbg_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
 linux-headers-5.10.66-10-rockchip-ge5013df5e066_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
 linux-libc-dev_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
 linux-image-5.10.66-10-rockchip-ge5013df5e066_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
&lt;br /&gt;
When you want to install specified kernel packages to your OS, try the following steps.&lt;br /&gt;
&lt;br /&gt;
 # dpkg -i linux-image-5.10.66-10-rockchip-ge5013df5e066-dbg_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
&lt;br /&gt;
After a while, you will find that some files are generated in the /boot directory.then you may modify the default boot kernel.&lt;br /&gt;
 $ vim /boot/extlinux/extlinux.conf&lt;br /&gt;
 ...&lt;br /&gt;
 default l0&lt;br /&gt;
 menu title U-Boot menu&lt;br /&gt;
 prompt 0&lt;br /&gt;
 timeout 10&lt;br /&gt;
 ...&lt;br /&gt;
change to:&lt;br /&gt;
 ...&lt;br /&gt;
 default l1&lt;br /&gt;
 menu title U-Boot menu&lt;br /&gt;
 prompt 0&lt;br /&gt;
 timeout 10&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now,you can reboot your board.After entering the system, enter the following command to check whether the version is the same as the version you built&lt;br /&gt;
 $ uname -r&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Flash the image ====&lt;br /&gt;
&lt;br /&gt;
==== FAQs ====&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
&lt;br /&gt;
Check [[rock5/FAQs |ROCK 5 FAQs]] first, if it doesn't help, start a new post on the forum https://forum.radxa.com/c/rock5.&lt;/div&gt;</summary>
		<author><name>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Rock5/guide/build-kernel-on-5b</id>
		<title>Rock5/guide/build-kernel-on-5b</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock5/guide/build-kernel-on-5b"/>
				<updated>2022-10-25T03:24:30Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: /* Rockchip Debian SDK */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rock5_header}}&lt;br /&gt;
{{Languages|rock5/guide/build-kernel-5b}}&lt;br /&gt;
&lt;br /&gt;
    [[rock5 | ROCK 5]] &amp;gt; [[rock5/guide | Guide]] &amp;gt; [[rock5/guide/build-kernel-on-5b | Build Kernel on ROCK 5B]]&lt;br /&gt;
&lt;br /&gt;
== Build Kernel on ROCK 5B ==&lt;br /&gt;
=== Rockchip Debian SDK ===&lt;br /&gt;
&lt;br /&gt;
Below is the instructions of how to build image for ROCK 5 on rock5 board'.&lt;br /&gt;
&lt;br /&gt;
Available boards:&lt;br /&gt;
&lt;br /&gt;
* ROCK 5B&lt;br /&gt;
&lt;br /&gt;
==== Get the source code ====&lt;br /&gt;
&lt;br /&gt;
You need Git to get multiple git repositories to build the image.&lt;br /&gt;
&lt;br /&gt;
Install Git if you don't have it.&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install git&lt;br /&gt;
&lt;br /&gt;
Clone the source code&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/rk3588-sdk &amp;amp;&amp;amp; cd ~/rk3588-sdk&lt;br /&gt;
 git clone -b stable-5.10-rock5 https://github.com/radxa/kernel.git&lt;br /&gt;
 git clone -b master https://github.com/radxa/rkbin.git&lt;br /&gt;
 git clone -b debian https://github.com/radxa/build.git&lt;br /&gt;
 git clone -b main https://github.com/radxa/debos-radxa.git&lt;br /&gt;
&lt;br /&gt;
And you will get &lt;br /&gt;
&lt;br /&gt;
 build  kernel  rkbin  &lt;br /&gt;
Directories usage introductions:&lt;br /&gt;
&lt;br /&gt;
* build:&lt;br /&gt;
** Some script files and configuration files for building u-boot, kernel and rootfs.&lt;br /&gt;
* kernel: &lt;br /&gt;
** kernel source code, current version is 4.19.193.&lt;br /&gt;
* rkbin: &lt;br /&gt;
** Prebuilt Rockchip binaries, include first stage loader and ATF(Arm Trustzone Firmware).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Install other build tools ====&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install device-tree-compiler libncurses5 libncurses5-dev build-essential libssl-dev mtools bc python dosfstools bison flex rsync&lt;br /&gt;
&lt;br /&gt;
==== Build kernel ====&lt;br /&gt;
&lt;br /&gt;
Need to checkout branch to '''stable-5.10-rock5'''.&lt;br /&gt;
&lt;br /&gt;
Build kernel with default '''rockchip_linux_defconfig'''.&lt;br /&gt;
&lt;br /&gt;
 cd ~/rk3588-sdk&lt;br /&gt;
 ./build/mk-kernel.sh rk3588-rock-5b    #For ROCK 5B&lt;br /&gt;
&lt;br /&gt;
===== Change kernel config =====&lt;br /&gt;
&lt;br /&gt;
Optionally, if you want to change the default kernel config&lt;br /&gt;
&lt;br /&gt;
 cd ~/rk3588-sdk&lt;br /&gt;
 cd kernel&lt;br /&gt;
 make rockchip_linux_defconfig&lt;br /&gt;
 make menuconfig&lt;br /&gt;
 make savedefconfig&lt;br /&gt;
 cp defconfig arch/arm64/configs/rockchip_linux_defconfig&lt;br /&gt;
 cd ..&lt;br /&gt;
 ./build/mk-kernel.sh rk3588-rock-5b    #For ROCK 5B&lt;br /&gt;
&lt;br /&gt;
You will get the kernel image and dtb file&lt;br /&gt;
&lt;br /&gt;
 ls out/kernel/&lt;br /&gt;
 Image  rk3588-rock-5b.dtb&lt;br /&gt;
&lt;br /&gt;
==== Build kernel deb package ====&lt;br /&gt;
&lt;br /&gt;
The kernel package build can pack the kernel, device tree, modules and firmware into Debian packages, which makes it easier to install on the ROCK 5. &lt;br /&gt;
&lt;br /&gt;
 ./build/pack-kernel.sh -d rockchip_linux_defconfig -r 10 # rockchip_linux_defconfig: kernel defconfig; 1: release number&lt;br /&gt;
&lt;br /&gt;
The generated packages will be copied to out/packages directory.&lt;br /&gt;
&lt;br /&gt;
 ls out/packages/&lt;br /&gt;
 linux-5.10.66-10-rockchip-ge5013df5e066_5.10.66-10-rockchip_arm64.changes&lt;br /&gt;
 linux-image-5.10.66-10-rockchip-ge5013df5e066-dbg_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
 linux-headers-5.10.66-10-rockchip-ge5013df5e066_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
 linux-libc-dev_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
 linux-image-5.10.66-10-rockchip-ge5013df5e066_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
&lt;br /&gt;
When you want to install specified kernel packages to your OS, try the following steps.&lt;br /&gt;
&lt;br /&gt;
 # dpkg -i linux-image-5.10.66-10-rockchip-ge5013df5e066-dbg_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Flash the image ====&lt;br /&gt;
&lt;br /&gt;
==== FAQs ====&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
&lt;br /&gt;
Check [[rock5/FAQs |ROCK 5 FAQs]] first, if it doesn't help, start a new post on the forum https://forum.radxa.com/c/rock5.&lt;/div&gt;</summary>
		<author><name>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Rock5/guide/build-kernel-on-5b</id>
		<title>Rock5/guide/build-kernel-on-5b</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock5/guide/build-kernel-on-5b"/>
				<updated>2022-10-25T03:23:55Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: /* Build Kernel on ROCK 5B */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rock5_header}}&lt;br /&gt;
{{Languages|rock5/guide/build-kernel-5b}}&lt;br /&gt;
&lt;br /&gt;
    [[rock5 | ROCK 5]] &amp;gt; [[rock5/guide | Guide]] &amp;gt; [[rock5/guide/build-kernel-on-5b | Build Kernel on ROCK 5B]]&lt;br /&gt;
&lt;br /&gt;
== Build Kernel on ROCK 5B ==&lt;br /&gt;
=== Rockchip Debian SDK ===&lt;br /&gt;
&lt;br /&gt;
Below is the instructions of how to build image for ROCK 5 on a '''HOST PC'''.&lt;br /&gt;
&lt;br /&gt;
Available boards:&lt;br /&gt;
&lt;br /&gt;
* ROCK 5B&lt;br /&gt;
&lt;br /&gt;
==== Get the source code ====&lt;br /&gt;
&lt;br /&gt;
You need Git to get multiple git repositories to build the image.&lt;br /&gt;
&lt;br /&gt;
Install Git if you don't have it.&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install git&lt;br /&gt;
&lt;br /&gt;
Clone the source code&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/rk3588-sdk &amp;amp;&amp;amp; cd ~/rk3588-sdk&lt;br /&gt;
 git clone -b stable-5.10-rock5 https://github.com/radxa/kernel.git&lt;br /&gt;
 git clone -b master https://github.com/radxa/rkbin.git&lt;br /&gt;
 git clone -b debian https://github.com/radxa/build.git&lt;br /&gt;
 git clone -b main https://github.com/radxa/debos-radxa.git&lt;br /&gt;
&lt;br /&gt;
And you will get &lt;br /&gt;
&lt;br /&gt;
 build  kernel  rkbin  &lt;br /&gt;
Directories usage introductions:&lt;br /&gt;
&lt;br /&gt;
* build:&lt;br /&gt;
** Some script files and configuration files for building u-boot, kernel and rootfs.&lt;br /&gt;
* kernel: &lt;br /&gt;
** kernel source code, current version is 4.19.193.&lt;br /&gt;
* rkbin: &lt;br /&gt;
** Prebuilt Rockchip binaries, include first stage loader and ATF(Arm Trustzone Firmware).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Install other build tools ====&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install device-tree-compiler libncurses5 libncurses5-dev build-essential libssl-dev mtools bc python dosfstools bison flex rsync&lt;br /&gt;
&lt;br /&gt;
==== Build kernel ====&lt;br /&gt;
&lt;br /&gt;
Need to checkout branch to '''stable-5.10-rock5'''.&lt;br /&gt;
&lt;br /&gt;
Build kernel with default '''rockchip_linux_defconfig'''.&lt;br /&gt;
&lt;br /&gt;
 cd ~/rk3588-sdk&lt;br /&gt;
 ./build/mk-kernel.sh rk3588-rock-5b    #For ROCK 5B&lt;br /&gt;
&lt;br /&gt;
===== Change kernel config =====&lt;br /&gt;
&lt;br /&gt;
Optionally, if you want to change the default kernel config&lt;br /&gt;
&lt;br /&gt;
 cd ~/rk3588-sdk&lt;br /&gt;
 cd kernel&lt;br /&gt;
 make rockchip_linux_defconfig&lt;br /&gt;
 make menuconfig&lt;br /&gt;
 make savedefconfig&lt;br /&gt;
 cp defconfig arch/arm64/configs/rockchip_linux_defconfig&lt;br /&gt;
 cd ..&lt;br /&gt;
 ./build/mk-kernel.sh rk3588-rock-5b    #For ROCK 5B&lt;br /&gt;
&lt;br /&gt;
You will get the kernel image and dtb file&lt;br /&gt;
&lt;br /&gt;
 ls out/kernel/&lt;br /&gt;
 Image  rk3588-rock-5b.dtb&lt;br /&gt;
&lt;br /&gt;
==== Build kernel deb package ====&lt;br /&gt;
&lt;br /&gt;
The kernel package build can pack the kernel, device tree, modules and firmware into Debian packages, which makes it easier to install on the ROCK 5. &lt;br /&gt;
&lt;br /&gt;
 ./build/pack-kernel.sh -d rockchip_linux_defconfig -r 10 # rockchip_linux_defconfig: kernel defconfig; 1: release number&lt;br /&gt;
&lt;br /&gt;
The generated packages will be copied to out/packages directory.&lt;br /&gt;
&lt;br /&gt;
 ls out/packages/&lt;br /&gt;
 linux-5.10.66-10-rockchip-ge5013df5e066_5.10.66-10-rockchip_arm64.changes&lt;br /&gt;
 linux-image-5.10.66-10-rockchip-ge5013df5e066-dbg_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
 linux-headers-5.10.66-10-rockchip-ge5013df5e066_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
 linux-libc-dev_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
 linux-image-5.10.66-10-rockchip-ge5013df5e066_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
&lt;br /&gt;
When you want to install specified kernel packages to your OS, try the following steps.&lt;br /&gt;
&lt;br /&gt;
 # dpkg -i linux-image-5.10.66-10-rockchip-ge5013df5e066-dbg_5.10.66-10-rockchip_arm64.deb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Flash the image ====&lt;br /&gt;
&lt;br /&gt;
==== FAQs ====&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
&lt;br /&gt;
Check [[rock5/FAQs |ROCK 5 FAQs]] first, if it doesn't help, start a new post on the forum https://forum.radxa.com/c/rock5.&lt;/div&gt;</summary>
		<author><name>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Rock5/guide/build-u-boot-on-5b</id>
		<title>Rock5/guide/build-u-boot-on-5b</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock5/guide/build-u-boot-on-5b"/>
				<updated>2022-10-24T10:38:06Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rock5_header}}&lt;br /&gt;
{{Languages|rock5/guide/build-u-boot-on-5b}}&lt;br /&gt;
&lt;br /&gt;
    [[rock5 | ROCK 5]] &amp;gt; [[rock5/guide | Guide]] &amp;gt; [[rock5/guide/build-u-boot-on-5b | Build U-Boot on ROCK 5B]]&lt;br /&gt;
&lt;br /&gt;
== Build U-Boot on ROCK 5B ==&lt;br /&gt;
=== Rockchip Debian SDK ===&lt;br /&gt;
&lt;br /&gt;
Below is the instructions of how to build u-boot image for ROCK 5 on rock5b board.&lt;br /&gt;
&lt;br /&gt;
Available boards:&lt;br /&gt;
&lt;br /&gt;
* ROCK 5B&lt;br /&gt;
&lt;br /&gt;
==== Get the source code ====&lt;br /&gt;
&lt;br /&gt;
You need Git to get multiple git repositories to build the image.&lt;br /&gt;
&lt;br /&gt;
Install Git if you don't have it.&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install git&lt;br /&gt;
&lt;br /&gt;
Clone the source code&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/rk3588-sdk &amp;amp;&amp;amp; cd ~/rk3588-sdk&lt;br /&gt;
 git clone -b stable-5.10-rock5 https://github.com/radxa/u-boot.git&lt;br /&gt;
 git clone -b master https://github.com/radxa/rkbin.git&lt;br /&gt;
 git clone -b debian https://github.com/radxa/build.git&lt;br /&gt;
&lt;br /&gt;
And you will get &lt;br /&gt;
&lt;br /&gt;
 build   rkbin u-boot&lt;br /&gt;
&lt;br /&gt;
Directories usage introductions:&lt;br /&gt;
&lt;br /&gt;
* build:&lt;br /&gt;
** Some script files and configuration files for building u-boot, kernel and rootfs.&lt;br /&gt;
* rkbin: &lt;br /&gt;
** Prebuilt Rockchip binaries, include first stage loader and ATF(Arm Trustzone Firmware).&lt;br /&gt;
* u-boot: &lt;br /&gt;
** u-boot as the second stage bootloader&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Install other build tools ====&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install device-tree-compiler libncurses5 libncurses5-dev build-essential libssl-dev mtools bc python dosfstools flex bison&lt;br /&gt;
&lt;br /&gt;
==== Build u-boot ====&lt;br /&gt;
&lt;br /&gt;
Need to checkout branch to '''stable-5.10-rock5'''.&lt;br /&gt;
&lt;br /&gt;
Build u-boot with default '''rock-5b-rk3588_defconfig'''.&lt;br /&gt;
&lt;br /&gt;
 cd ~/rk3588-sdk&lt;br /&gt;
 ./build/mk-uboot.sh rk3588-rock-5b     #For ROCK 5B&lt;br /&gt;
&lt;br /&gt;
The generated images will be copied to out/u-boot folder&lt;br /&gt;
&lt;br /&gt;
 ls out/u-boot/&lt;br /&gt;
 idbloader.img  rk3588_spl_loader_v1.07.111.bin  spi  u-boot.itb&lt;br /&gt;
&lt;br /&gt;
==== Write u-boot ====&lt;br /&gt;
&lt;br /&gt;
1. you should check file in out/u-boot should be like this:    &lt;br /&gt;
&lt;br /&gt;
 ls out/u-boot/&lt;br /&gt;
 idbloader.img  rk3588_spl_loader_v1.07.111.bin  spi  u-boot.itb&lt;br /&gt;
&lt;br /&gt;
2. flash u-boot to you storage  &lt;br /&gt;
&lt;br /&gt;
 sudo dd if=./idbloader.img of=/path/to/storage/device bs=512 seek=64&lt;br /&gt;
 sudo dd if=./u-boot.itb of=/path/to/storage/device bs=512 seek=16384&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== FAQs ====&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
&lt;br /&gt;
Check [[rock5/FAQs |ROCK 5 FAQs]] first, if it doesn't help, start a new post on the forum https://forum.radxa.com/c/rock5.&lt;/div&gt;</summary>
		<author><name>Feng</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-10-24T07:49:56Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: /* Write U-Boot images to SPI Nor Flash or erase SPI Nor Flash */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rock5_header}}&lt;br /&gt;
{{Languages|rock5/dev/usb-install}}&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 from USB port ==&lt;br /&gt;
&lt;br /&gt;
Rock 5 supports Maskrom mode, which is a special operation mode for CPU to wait for USB OTG port command.&lt;br /&gt;
The PC tools we use to communicate with rock 5 in Maskrom mode are the '''rkdeveloptool''' and '''[https://dl.radxa.co/tools/windows/windows_RKDevTool_Release_v2.92.zip RKDevTool v2.92]'''. &lt;br /&gt;
We use '''the rkdeveloptool in Linux/macOS ''' and '''the [https://dl.radxa.co/tools/windows/windows_RKDevTool_Release_v2.92.zip RKDevTool] under Windows'''.&lt;br /&gt;
&lt;br /&gt;
=== Requirement ===&lt;br /&gt;
&lt;br /&gt;
* ROCK 5B &lt;br /&gt;
* Linux image for ROCK 5B, Android image is not supported yet&lt;br /&gt;
* type-c cable&lt;br /&gt;
* SPI Nor Flash on board&lt;br /&gt;
* Windows/linux/macOS  PC&lt;br /&gt;
&lt;br /&gt;
=== 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]].&lt;br /&gt;
&lt;br /&gt;
=== 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;
=== Get RK3588 loader and U-Boot images ===&lt;br /&gt;
&lt;br /&gt;
==== 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;
&lt;br /&gt;
=== Write U-Boot images to SPI Nor Flash or erase SPI Nor Flash ===&lt;br /&gt;
&lt;br /&gt;
==== Linux/MacOS ====&lt;br /&gt;
On your PC, 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;
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 [https://dl.radxa.com/rock5/sw/images/loader/rock-5b/rk3588_spl_loader_v1.08.111.bin here]&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;
Write SPI image to SPI Nor Flash on board.&lt;br /&gt;
&lt;br /&gt;
You can use our pre-built files.&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;
Or If you want to update the image on the board, you need to enter the system, then enter the following command.&lt;br /&gt;
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;
 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;
&lt;br /&gt;
==== Windows ====&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: 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 3: 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 4: 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;
&lt;br /&gt;
[[File: rock-5b-spi-flash-02.png |1000px]]&lt;br /&gt;
&lt;br /&gt;
== Erase SPI Nor Flash ==&lt;br /&gt;
&lt;br /&gt;
=== Linux/MacOS ===&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;
=== Windows ===&lt;br /&gt;
&lt;br /&gt;
Before Erasing, please comfirm 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.jpg |700px]]&lt;br /&gt;
&lt;br /&gt;
=== Verify Loader version ===&lt;br /&gt;
&lt;br /&gt;
Version is display on UART console when board starts, one of the very first lines (older vs updated): &lt;br /&gt;
 DDR Version V1.07 20220412&lt;br /&gt;
 DDR Version V1.08 20220617&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>Feng</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-10-24T07:48:32Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rock5_header}}&lt;br /&gt;
{{Languages|rock5/dev/usb-install}}&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 from USB port ==&lt;br /&gt;
&lt;br /&gt;
Rock 5 supports Maskrom mode, which is a special operation mode for CPU to wait for USB OTG port command.&lt;br /&gt;
The PC tools we use to communicate with rock 5 in Maskrom mode are the '''rkdeveloptool''' and '''[https://dl.radxa.co/tools/windows/windows_RKDevTool_Release_v2.92.zip RKDevTool v2.92]'''. &lt;br /&gt;
We use '''the rkdeveloptool in Linux/macOS ''' and '''the [https://dl.radxa.co/tools/windows/windows_RKDevTool_Release_v2.92.zip RKDevTool] under Windows'''.&lt;br /&gt;
&lt;br /&gt;
=== Requirement ===&lt;br /&gt;
&lt;br /&gt;
* ROCK 5B &lt;br /&gt;
* Linux image for ROCK 5B, Android image is not supported yet&lt;br /&gt;
* type-c cable&lt;br /&gt;
* SPI Nor Flash on board&lt;br /&gt;
* Windows/linux/macOS  PC&lt;br /&gt;
&lt;br /&gt;
=== 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]].&lt;br /&gt;
&lt;br /&gt;
=== 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;
=== Get RK3588 loader and U-Boot images ===&lt;br /&gt;
&lt;br /&gt;
==== 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;
&lt;br /&gt;
=== Write U-Boot images to SPI Nor Flash or erase SPI Nor Flash ===&lt;br /&gt;
&lt;br /&gt;
==== Linux/MacOS ====&lt;br /&gt;
On your PC, 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;
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 [https://dl.radxa.com/rock5/sw/images/loader/rock-5b/rk3588_spl_loader_v1.08.111.bin here]&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;
Write SPI image to SPI Nor Flash on board.&lt;br /&gt;
&lt;br /&gt;
You can use our pre-built files.&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;
Or If you want to update the spi on the board, you need to enter the system, then enter the following command.&lt;br /&gt;
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;
 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;
&lt;br /&gt;
==== Windows ====&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: 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 3: 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 4: 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;
&lt;br /&gt;
[[File: rock-5b-spi-flash-02.png |1000px]]&lt;br /&gt;
&lt;br /&gt;
== Erase SPI Nor Flash ==&lt;br /&gt;
&lt;br /&gt;
=== Linux/MacOS ===&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;
=== Windows ===&lt;br /&gt;
&lt;br /&gt;
Before Erasing, please comfirm 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.jpg |700px]]&lt;br /&gt;
&lt;br /&gt;
=== Verify Loader version ===&lt;br /&gt;
&lt;br /&gt;
Version is display on UART console when board starts, one of the very first lines (older vs updated): &lt;br /&gt;
 DDR Version V1.07 20220412&lt;br /&gt;
 DDR Version V1.08 20220617&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>Feng</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-10-24T07:42:32Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: /* Write U-Boot images to SPI Nor Flash or erase SPI Nor Flash */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rock5_header}}&lt;br /&gt;
{{Languages|rock5/dev/usb-install}}&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 from USB port ==&lt;br /&gt;
&lt;br /&gt;
Rock 5 supports Maskrom mode, which is a special operation mode for CPU to wait for USB OTG port command.&lt;br /&gt;
The PC tools we use to communicate with rock 5 in Maskrom mode are the '''rkdeveloptool''' and '''[https://dl.radxa.co/tools/windows/windows_RKDevTool_Release_v2.92.zip RKDevTool v2.92]'''. &lt;br /&gt;
We use '''the rkdeveloptool in Linux/macOS ''' and '''the [https://dl.radxa.co/tools/windows/windows_RKDevTool_Release_v2.92.zip RKDevTool] under Windows'''.&lt;br /&gt;
&lt;br /&gt;
=== Requirement ===&lt;br /&gt;
&lt;br /&gt;
* ROCK 5B &lt;br /&gt;
* Linux image for ROCK 5B, Android image is not supported yet&lt;br /&gt;
* type-c cable&lt;br /&gt;
* SPI Nor Flash on board&lt;br /&gt;
* Windows/linux/macOS  PC&lt;br /&gt;
&lt;br /&gt;
=== 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]].&lt;br /&gt;
&lt;br /&gt;
=== 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;
=== Get RK3588 loader and U-Boot images ===&lt;br /&gt;
&lt;br /&gt;
==== 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;
&lt;br /&gt;
=== Write U-Boot images to SPI Nor Flash or erase SPI Nor Flash ===&lt;br /&gt;
&lt;br /&gt;
==== Linux/MacOS ====&lt;br /&gt;
On your PC, 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;
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 [https://dl.radxa.com/rock5/sw/images/loader/rock-5b/rk3588_spl_loader_v1.08.111.bin here]&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;
Write SPI image to SPI Nor Flash on board.&lt;br /&gt;
&lt;br /&gt;
You can use our pre-built files.&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;
Or If you want to update the spi on the board, you need to enter the system, then enter the following command&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;
&lt;br /&gt;
==== Windows ====&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: 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 3: 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 4: 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;
&lt;br /&gt;
[[File: rock-5b-spi-flash-02.png |1000px]]&lt;br /&gt;
&lt;br /&gt;
== Erase SPI Nor Flash ==&lt;br /&gt;
&lt;br /&gt;
=== Linux/MacOS ===&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;
=== Windows ===&lt;br /&gt;
&lt;br /&gt;
Before Erasing, please comfirm 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.jpg |700px]]&lt;br /&gt;
&lt;br /&gt;
=== Verify Loader version ===&lt;br /&gt;
&lt;br /&gt;
Version is display on UART console when board starts, one of the very first lines (older vs updated): &lt;br /&gt;
 DDR Version V1.07 20220412&lt;br /&gt;
 DDR Version V1.08 20220617&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>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Rock5/install/usb-install-emmc</id>
		<title>Rock5/install/usb-install-emmc</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock5/install/usb-install-emmc"/>
				<updated>2022-10-21T03:29:14Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rock5_header}}&lt;br /&gt;
{{Languages|rock5/dev/usb-install}}&lt;br /&gt;
&lt;br /&gt;
    [[rock5 | ROCK 5]] &amp;gt; [[rock5/install | Installation]] &amp;gt; [[rock5/install/usb-install-emmc | Install the Image to eMMC from USB port]]&lt;br /&gt;
&lt;br /&gt;
== Install the image to eMMC from USB port ==&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
=== Requirement ===&lt;br /&gt;
&lt;br /&gt;
* Rock 5B &lt;br /&gt;
* type-c cable&lt;br /&gt;
* emmc module&lt;br /&gt;
* Windows/linux/macOS  PC&lt;br /&gt;
&lt;br /&gt;
=== 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]].&lt;br /&gt;
&lt;br /&gt;
=== 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;
* Press the golden 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;
=== Get RK3588 loader and system image ===&lt;br /&gt;
&lt;br /&gt;
==== ROCK 5B ====&lt;br /&gt;
&lt;br /&gt;
* [https://dl.radxa.com/rock5/sw/images/loader/rock-5b/rk3588_spl_loader_v1.08.111.bin RK3588 loader]&lt;br /&gt;
* [https://wiki.radxa.com/Rock5/downloads ROCK 5B system image]&lt;br /&gt;
&lt;br /&gt;
=== Write system image to eMMC module ===&lt;br /&gt;
&lt;br /&gt;
==== Linux/MacOS ====&lt;br /&gt;
&lt;br /&gt;
On your PC, 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;
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 [https://dl.radxa.com/rock5/sw/images/loader/rock-5b/rk3588_spl_loader_v1.08.111.bin here]&lt;br /&gt;
&lt;br /&gt;
 sudo rkdeveloptool db /path/to/rk3588_spl_loader_v1.08.111.bin&lt;br /&gt;
&lt;br /&gt;
Write SPI image to SPI Nor Flash on board.&lt;br /&gt;
&lt;br /&gt;
You can use our pre-built files.&lt;br /&gt;
&lt;br /&gt;
 sudo rkdeveloptool wl 0 rock-5b-debian-bullseye-xfce4-arm64-20220919-0912-gpt.img				&lt;br /&gt;
&lt;br /&gt;
Reboot the device &lt;br /&gt;
 sudo rkdeveloptool rd&lt;br /&gt;
&lt;br /&gt;
now, the device should boot on eMMC.&lt;br /&gt;
&lt;br /&gt;
=== Windows ===&lt;br /&gt;
# 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]&lt;br /&gt;
# Check whether it is in maskrom mode. The red part 2 in the figure below indicates that it has entered maskrom mode.&lt;br /&gt;
#; [[File:emmc_down_start.png]]&lt;br /&gt;
# Check the &amp;quot;write by address&amp;quot; option.&lt;br /&gt;
# Right-click in the blank area of the list and select Load configuration file.&lt;br /&gt;
#; [[File:rkdevtool_package_cfg.png]]&lt;br /&gt;
# After loading the configuration file, you need to modify the path of the file to be downloaded.&lt;br /&gt;
# Now,Click Run, if successful, you will see the download successful message in the right box.&lt;br /&gt;
#; [[File:emmc_down_finsh.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Erase Emmc ==&lt;br /&gt;
=== Linux/MacOS ===&lt;br /&gt;
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]&lt;br /&gt;
And extract it.&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;
=== Windows ===&lt;br /&gt;
# Run the RKDevTool,Choose advanced features&lt;br /&gt;
# Check whether it is in maskrom mode.The red part 2 in the figure below indicates that it has entered maskrom mode.&lt;br /&gt;
# Select the loader file and click Download，you can proceed to the next step after completion.&lt;br /&gt;
# After downloading the loader, click the emmc option in the list, then click Switch Storage&lt;br /&gt;
#; [[File:emmc_erase_start.png]]&lt;br /&gt;
# Now,click the Erase All button to erase emmc&lt;br /&gt;
#; [[File:emmc_erase_finsh.png]]&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>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/File:Emmc_erase_finsh.png</id>
		<title>File:Emmc erase finsh.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/File:Emmc_erase_finsh.png"/>
				<updated>2022-10-21T03:23:24Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/File:Emmc_erase_start.png</id>
		<title>File:Emmc erase start.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/File:Emmc_erase_start.png"/>
				<updated>2022-10-21T03:23:07Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Rock5/install/usb-install-emmc</id>
		<title>Rock5/install/usb-install-emmc</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock5/install/usb-install-emmc"/>
				<updated>2022-10-21T02:23:26Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rock5_header}}&lt;br /&gt;
{{Languages|rock5/dev/usb-install}}&lt;br /&gt;
&lt;br /&gt;
    [[rock5 | ROCK 5]] &amp;gt; [[rock5/install | Installation]] &amp;gt; [[rock5/install/usb-install-emmc | Install the Image to eMMC from USB port]]&lt;br /&gt;
&lt;br /&gt;
== Install the image to eMMC from USB port ==&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
=== Requirement ===&lt;br /&gt;
&lt;br /&gt;
* Rock 5B &lt;br /&gt;
* type-c cable&lt;br /&gt;
* emmc module&lt;br /&gt;
* Windows/linux/macOS  PC&lt;br /&gt;
&lt;br /&gt;
=== 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]].&lt;br /&gt;
&lt;br /&gt;
=== 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;
* Press the golden 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;
=== Get RK3588 loader and system image ===&lt;br /&gt;
&lt;br /&gt;
==== ROCK 5B ====&lt;br /&gt;
&lt;br /&gt;
* [https://dl.radxa.com/rock5/sw/images/loader/rock-5b/rk3588_spl_loader_v1.08.111.bin RK3588 loader]&lt;br /&gt;
* [https://wiki.radxa.com/Rock5/downloads ROCK 5B system image]&lt;br /&gt;
&lt;br /&gt;
=== Write system image to eMMC module ===&lt;br /&gt;
&lt;br /&gt;
==== Linux/MacOS ====&lt;br /&gt;
&lt;br /&gt;
On your PC, 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;
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 [https://dl.radxa.com/rock5/sw/images/loader/rock-5b/rk3588_spl_loader_v1.08.111.bin here]&lt;br /&gt;
&lt;br /&gt;
 sudo rkdeveloptool db /path/to/rk3588_spl_loader_v1.08.111.bin&lt;br /&gt;
&lt;br /&gt;
Write SPI image to SPI Nor Flash on board.&lt;br /&gt;
&lt;br /&gt;
You can use our pre-built files.&lt;br /&gt;
&lt;br /&gt;
 sudo rkdeveloptool wl 0 rock-5b-debian-bullseye-xfce4-arm64-20220919-0912-gpt.img				&lt;br /&gt;
&lt;br /&gt;
Reboot the device &lt;br /&gt;
 sudo rkdeveloptool rd&lt;br /&gt;
&lt;br /&gt;
now, the device should boot on eMMC.&lt;br /&gt;
&lt;br /&gt;
=== Windows ===&lt;br /&gt;
# 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]&lt;br /&gt;
# Check whether it is in maskrom mode. The red part 2 in the figure below indicates that it has entered maskrom mode.&lt;br /&gt;
#; [[File:emmc_down_start.png]]&lt;br /&gt;
# Check the &amp;quot;write by address&amp;quot; option.&lt;br /&gt;
# Right-click in the blank area of the list and select Load configuration file.&lt;br /&gt;
#; [[File:rkdevtool_package_cfg.png]]&lt;br /&gt;
# After loading the configuration file, you need to modify the path of the file to be downloaded.&lt;br /&gt;
# Now,Click Run, if successful, you will see the download successful message in the right box.&lt;br /&gt;
#; [[File:emmc_down_finsh.png]]&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>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/File:Emmc_down_finsh.png</id>
		<title>File:Emmc down finsh.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/File:Emmc_down_finsh.png"/>
				<updated>2022-10-21T02:16:11Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/File:Rkdevtool_package_cfg.png</id>
		<title>File:Rkdevtool package cfg.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/File:Rkdevtool_package_cfg.png"/>
				<updated>2022-10-21T02:13:59Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/File:Emmc_down_start.png</id>
		<title>File:Emmc down start.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/File:Emmc_down_start.png"/>
				<updated>2022-10-21T02:12:55Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/File:Rock5b_emmc_dowload.png</id>
		<title>File:Rock5b emmc dowload.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/File:Rock5b_emmc_dowload.png"/>
				<updated>2022-10-20T10:35:12Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: Feng uploaded a new version of &amp;amp;quot;File:Rock5b emmc dowload.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/File:Rock5b_emmc_dowload.png</id>
		<title>File:Rock5b emmc dowload.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/File:Rock5b_emmc_dowload.png"/>
				<updated>2022-10-20T10:33:18Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/File:Rock5b_maskrom.png</id>
		<title>File:Rock5b maskrom.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/File:Rock5b_maskrom.png"/>
				<updated>2022-10-20T10:32:21Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Feng</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-10-19T03:52:04Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{rock5_header}}&lt;br /&gt;
{{Languages|rock5/dev/usb-install}}&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 from USB port ==&lt;br /&gt;
&lt;br /&gt;
Rock 5 supports Maskrom mode, which is a special operation mode for CPU to wait for USB OTG port command.&lt;br /&gt;
The PC tools we use to communicate with rock 5 in Maskrom mode are the '''rkdeveloptool''' and '''RKDevTool'''. &lt;br /&gt;
We use '''the rkdeveloptool in Linux/macOS ''' and '''the RKDevTool under Windows'''.&lt;br /&gt;
&lt;br /&gt;
=== Requirement ===&lt;br /&gt;
&lt;br /&gt;
* ROCK 5B &lt;br /&gt;
* Linux image for ROCK 5B, Android image is not supported yet&lt;br /&gt;
* type-c cable&lt;br /&gt;
* SPI Nor Flash on board&lt;br /&gt;
* Windows/linux/macOS  PC&lt;br /&gt;
&lt;br /&gt;
=== 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]].&lt;br /&gt;
&lt;br /&gt;
=== 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 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;
=== Get RK3588 loader and U-Boot images ===&lt;br /&gt;
&lt;br /&gt;
==== ROCK 5B ====&lt;br /&gt;
&lt;br /&gt;
* [https://dl.radxa.com/rock5/sw/images/loader/rock-5b/rk3588_spl_loader_v1.08.111.bin RK3588 loader]&lt;br /&gt;
* [https://dl.radxa.com/rock5/sw/images/loader/rock-5b/rock-5b-spi-image-g49da44e116d.img ROCK 5B SPI image]&lt;br /&gt;
** SPI image version&lt;br /&gt;
*** [https://dl.radxa.com/rock5/sw/images/loader/rock-5b/release release version] without u-boot log&lt;br /&gt;
*** [https://dl.radxa.com/rock5/sw/images/loader/rock-5b/debug debug version] with u-boot log&lt;br /&gt;
&lt;br /&gt;
=== Write U-Boot images to SPI Nor Flash or erase SPI Nor Flash ===&lt;br /&gt;
&lt;br /&gt;
==== Linux/MacOS ====&lt;br /&gt;
&lt;br /&gt;
On your PC, 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;
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 [https://dl.radxa.com/rock5/sw/images/loader/rock-5b/rk3588_spl_loader_v1.08.111.bin here]&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;
Write SPI image to SPI Nor Flash on board.&lt;br /&gt;
&lt;br /&gt;
You can use our pre-built files.&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;
==== Windows ====&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: 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 3: 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 4: 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;
&lt;br /&gt;
[[File: rock-5b-spi-flash-02.png |1000px]]&lt;br /&gt;
&lt;br /&gt;
== Erase SPI Nor Flash ==&lt;br /&gt;
&lt;br /&gt;
=== Linux/MacOS ===&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;
=== Windows ===&lt;br /&gt;
&lt;br /&gt;
Before Erasing, please comfirm 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.jpg |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>Feng</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/File:Eraseall.jpg</id>
		<title>File:Eraseall.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/File:Eraseall.jpg"/>
				<updated>2022-10-19T03:48:28Z</updated>
		
		<summary type="html">&lt;p&gt;Feng: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Feng</name></author>	</entry>

	</feed>