From: Johan Jonker <jbx6244@gmail.com>
To: u-boot@0leil.net
Cc: kever.yang@rock-chips.com, sjg@chromium.org, trini@konsulko.com,
u-boot@lists.u-boot-project.org, eddie.cai.linux@gmail.com
Subject: [PATCH v7 2/6] rockchip: doc: add mask ROM mode text
Date: Sat, 15 Aug 2026 15:07:53 +0200 [thread overview]
Message-ID: <72cb1d52-c09a-4f33-a369-1741e0b0f543@gmail.com> (raw)
In-Reply-To: <5e1799a6-68b3-4535-b56b-f115467e637e@gmail.com>
Add text that explains how to get into mask ROM mode.
Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---
Changed V6:
BootROM/Mask ROM swap
Changed V5:
reword
---
doc/board/rockchip/rockchip.rst | 31 ++++++++++++++++++++++++++-----
1 file changed, 26 insertions(+), 5 deletions(-)
diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst
index de2df3046e28..7c911662b840 100644
--- a/doc/board/rockchip/rockchip.rst
+++ b/doc/board/rockchip/rockchip.rst
@@ -325,6 +325,27 @@ To build rk3588 boards:
make evb-rk3588_defconfig
make CROSS_COMPILE=aarch64-linux-gnu-
+Mask ROM mode
+-------------
+
+Mask ROM mode is the fallback mode of the boot ROM,
+in which it listens for USB commands 0x471/0x472.
+
+Options to get your board into Mask ROM mode:
+
+* Hold the recovery button, depending on firmware support or wiring,
+ while booting the board.
+* Remove any SD cards, removable eMMC or removable UFS modules.
+* Erase any storage media containing boot firmware.
+
+Methods of last resort (USE AT YOUR OWN RISK):
+
+Short the following pins briefly while powering the board, so the boot ROM
+cannot locate any boot firmware and falls back into Mask ROM mode:
+
+* NAND: connect pin 8 and 9 of the NAND flash with a needle.
+* eMMC: connect the clock line to ground.
+
Flashing
--------
@@ -443,8 +464,8 @@ Note:
3. Package the RK3066 image with U-Boot TPL/SPL on NAND
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-Unlike later SoC models the rk3066 BootROM doesn't have SDMMC support.
-If all other boot options fail then it enters into a BootROM mode on the USB OTG port.
+Unlike later SoC models the rk3066 boot ROM doesn't have SDMMC support.
+If all other boot options fail then it enters into a Mask ROM mode on the USB OTG port.
This method loads TPL/SPL on NAND with U-Boot and kernel on SD card.
SD Card
@@ -485,10 +506,10 @@ To write a U-Boot image to the SD card (assumed to be /dev/sda):
NAND
""""
-Bring device in BootROM mode:
+Bring device in Mask ROM mode:
-If bricked and no BootROM mode shows up then connect pin 8 and 9 of the NAND flash
-with a needle while reconnecting to the USB OTG port to a PC.
+If bricked and no Mask ROM mode shows up then connect pin 8 and 9
+of the NAND flash briefly with a needle while powering the board.
Show connected devices with:
--
2.39.5
next prev parent reply other threads:[~2026-08-15 13:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-15 13:05 [PATCH v7 0/6] doc: clean up README.rockchip Johan Jonker
2026-08-15 13:07 ` [PATCH v7 1/6] rockchip: scripts: remove rkmux.py Johan Jonker
2026-08-15 13:07 ` Johan Jonker [this message]
2026-08-19 12:16 ` [PATCH v7 2/6] rockchip: doc: add mask ROM mode text Quentin Schulz
2026-08-15 13:08 ` [PATCH v7 3/6] rockchip: doc: remove TODO Johan Jonker
2026-08-15 13:08 ` [PATCH v7 4/6] rockchip: doc: remove README.rockchip Johan Jonker
2026-08-15 13:08 ` [PATCH v7 5/6] rockchip: doc: add back to ROM section Johan Jonker
2026-08-19 12:49 ` Quentin Schulz
2026-08-20 10:40 ` Alexey Charkov
2026-08-20 12:53 ` Quentin Schulz
2026-08-15 13:08 ` [PATCH v7 6/6] rockchip: doc: add notes section Johan Jonker
2026-08-19 13:03 ` Quentin Schulz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=72cb1d52-c09a-4f33-a369-1741e0b0f543@gmail.com \
--to=jbx6244@gmail.com \
--cc=eddie.cai.linux@gmail.com \
--cc=kever.yang@rock-chips.com \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@0leil.net \
--cc=u-boot@lists.u-boot-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.