• Home
  • Application
  • About Us
  • Contact Us
  • News

Device Firmware Upgrade for Rockchip Boards (RK3588/RK3576)

Device firmware upgrade on Rockchip smart panel

A Rockchip development board is not finished when the hardware passes its first power-on test. The firmware image you ship determines whether the board performs to spec three years from now: whether the NPU reaches its rated throughput, whether kernel-level bugs are patched, and whether a new panel or peripheral is supported without a hardware respin. Device firmware upgrade is therefore a routine operator skill, not an emergency procedure.

The complication is that Rockchip does not use standard USB DFU. It implements its own RockUSB protocol on top of two boot modes, Maskrom and Loader, and the difference between them decides whether a non-booting board can be recovered or must be scrapped. On Ieeker RK3588 and RK3576 boards there is a second structural detail that trips people up: the bootloader lives in SPI flash while the operating system lives in eMMC. A full upgrade therefore writes two different storage devices in one pass, and understanding that split is the difference between a clean flash and a board that no longer boots.

This guide covers the full workflow: what the firmware image actually rewrites, how to select the correct mode, the flashing steps, the failure modes that brick boards, and the production habits that prevent it.

What a Firmware Upgrade Actually Rewrites

Before touching a flashing tool, understand the boot chain, because every failure symptom maps onto one of its stages. Rockchip application processors boot in stages documented in Rockchip’s open-source wiki on boot options:

StageComponentWhere it lives on Ieeker boards
1BootRom (mask ROM inside the SoC)Silicon, cannot be modified
2idbloader (idbloader.img) — DDR init plus miniloader, or U-Boot TPL/SPLSPI NOR flash
3U-Boot proper, with Arm Trusted Firmware / OP-TEESPI NOR flash
4Linux kernel and device tree (boot.img)eMMC
5Root filesystem (rootfs.img)eMMC

Three consequences follow directly.

First, Stage 1 is mask ROM and is never written during an upgrade. That is exactly why Maskrom mode can revive a board whose Stage 2 and 3 are corrupted: the SoC always has a working entry point independent of what is on either flash device.

Second, storing the loader in SPI flash has real engineering advantages. The loader is available before the eMMC is touched, so a corrupted or swapped eMMC does not prevent the board from enumerating over USB. It also means an OS reflash during development leaves the bootloader untouched, which removes the highest-consequence write from the routine update path. The cost is that the SPI flash becomes a single point of failure: corrupt it, and the board cannot boot far enough to be updated except through Maskrom.

Third, a full update.img from Ieeker is not one firmware binary but a packaged bundle containing the loader destined for SPI flash plus the kernel, device tree and root filesystem destined for eMMC, together with a partition table and checksums. Flashing a bundle built for a different board variant rewrites the partition layout, not just the code, and the resulting failure usually looks like a hardware fault rather than an image mismatch.

The Three Upgrade Modes

Maskrom mode and Loader mode comparison on Rockchip boards, with Loader running from SPI flash

Maskrom mode

Maskrom runs from the SoC’s internal BootRom. It exists on every Rockchip part regardless of what is in SPI flash or eMMC, which makes it the only entry point available when the loader region itself is damaged. The board enumerates as a RockUSB device with Rockchip’s vendor ID 0x2207 and stays there until you write a loader or power cycle.

Entering it is a deliberate sequence, not a menu option: hold the recovery (or MASKROM) button, connect the Type-C OTG cable to the host, then apply power, and release the button once the tool reports the device. Getting the order wrong is the single most common reason a tool “cannot detect” a board.

Use Maskrom when the SPI loader is corrupted, when a previous interrupt left storage in an inconsistent state, or when the partition table must be rebuilt from scratch. This is also the path that rewrites SPI flash, since the loader must be downloaded over RockUSB before any other write is possible.

Loader mode

Loader mode assumes a working Stage 2. The BootRom loads the miniloader from SPI flash, which then initialises DRAM and exposes the RockUSB download service. The practical benefit is speed: the loader runs from DDR, so writes are faster and partial-partition programming is possible, which is what you want for iterative kernel or rootfs updates during development.

This is the default choice for routine device firmware upgrade work on Ieeker RK3588 and RK3576 boards, and because the loader is already in SPI, a Loader-mode OS update never touches the bootloader region at all.

SD card recovery

SD recovery needs no host PC at all. Write the official update.img to a FAT32 card, insert it, power up, and the board’s recovery path flashes the onboard storage automatically. For batch production and field service in locations without a Windows machine, this is the most reliable method available, and it eliminates the cable and driver variables that cause most USB failures.

The trade-off is that SD recovery depends on a working boot chain plus recovery support compiled into the firmware, and some custom carrier board variants disable it. Verify against the board schematic before relying on it in the field.

Method comparison

ModeInterfaceBest forMain advantageRisk
Maskrom (RockUSB)Type-C OTGBrick recovery, corrupted SPI loaderRecovers a non-booting boardLow with official images
Loader (RockUSB)Type-C OTGDaily updates, prototype flashingFast, partial writes, bootloader untouchedLow
SD recoveryMicroSD slotBatch testing, offline field serviceNo host PC requiredVery low

USB Flashing, Step by Step

Rockchip development board connected to PC via Type-C OTG for USB firmware flashing
  1. Download the official image from the Ieeker documentation page for your exact board variant. Confirm the RK3588 or RK3576 designation matches the silkscreen. A firmware image built for a different DDR population or PMIC will boot-fail in ways that look like hardware faults.
  2. Install Rockchip Driver Assistant on Windows to load the RockUSB driver, or build rkdeveloptool on Linux. Both expose the same operations the GUI uses: download boot, write LBA, read LBA, reset.
  3. Use a genuine Type-C data cable. Charge-only cables carry no data lines, and the failure looks identical to a driver problem, which sends people debugging the wrong layer for hours.
  4. Power the board off, hold the recovery button, connect USB, then power on. Release once the tool shows Maskrom or Loader.
  5. Import update.img. Because the bundle spans two devices, confirm the write targets: the loader and U-Boot regions go to SPI flash, the kernel, device tree and root filesystem go to eMMC. If your tool asks for a single target, select the eMMC entry and let the packaged partition table route the loader writes.
  6. Do not attempt to write the full OS bundle into SPI flash. The SPI device is small — typically a fraction of the eMMC capacity — and a rootfs image will either be rejected or fill it and destroy the loader.
  7. Start the upgrade and do not interrupt power or the cable. Writes to both SPI NOR and eMMC are non-atomic; a cut mid-write leaves an inconsistent partition, and a cut during the loader write leaves a board that cannot boot at all.
  8. On success, power cycle and verify three things: kernel version, NPU runtime with a real inference result, and system build number. A board that boots but reports an old kernel usually means the write targeted the wrong storage device.

Linux operators can script the same flow. A typical session downloads the loader first, then writes partitions by logical block address, which is also how you update only the rootfs without rewriting the bootloader.

Warning: power loss during the loader write to SPI flash is the highest-consequence failure in this workflow, and it is the leading cause of bricked Rockchip boards. Use a stable supply, prefer the board’s DC input over USB bus power on high-power RK3588 designs, and never flash over a marginal cable.

Why Boards Brick, and What Each Symptom Means

SymptomLikely causeCorrect response
Tool detects nothingCharge-only cable, driver missing, wrong button timingReplace cable, reinstall driver, redo the power sequence
Detected in Maskrom but write fails immediatelyLoader binary incompatible with the SoCUse the loader bundled in the official image
Board dead after a power cut mid-flashInterrupted write in the SPI loader regionEnter Maskrom and reflash the full bundle
Boot loop after flashingWrong device tree or DDR configurationReflash correct variant, then verify dtb
Boot loader works but OS missingOS partitions written to the wrong deviceReflash with eMMC as the OS target
Boots but no display / wrong resolutionPanel driver or dts panel node mismatchUpdate dtb, check the panel timing table
Random crashes under load after upgradeInsufficient power headroom, thermal deratingValidate at maximum ambient before release
SD recovery does nothingRecovery disabled in firmware or on custom carrierUse USB Loader mode instead

The pattern worth internalising: very few of these are “firmware bugs”. Most are image-variant mismatches, cable or power problems, a write aimed at the wrong storage device, or an upgrade performed in the wrong mode. Diagnose by stage, starting from the boot chain table above, rather than by reinstalling tools.

Production Habits That Prevent Downtime

  • Source images only from the official Ieeker resource centre. Unverified third-party bundles are the most common origin of unrecoverable boards.
  • Default to Loader mode for routine work and reserve Maskrom for genuine recovery. Loader mode also protects the SPI loader by never rewriting it, which is a meaningful reliability gain in volume production.
  • Flash one sample board and run a full functional pass before touching a batch. A bad image replicated across a hundred units is a schedule event, not an inconvenience.
  • Keep a version ledger: board model, image build number, kernel version, flashing date and operator. When a customer reports a regression, this is the only way to reconstruct the state of their unit.
  • Retain the last known-good image for every SKU. Rolling back is straightforward over USB, but data written by newer firmware may not be readable afterwards, so plan the migration before you downgrade.
  • Treat the SPI loader region as a protected asset: restrict who can run Maskrom-mode writes, log every loader update, and validate the boot chain after each one instead of assuming the write succeeded.

FAQ

Q1: What is the difference between RockUSB Loader and Maskrom mode? Loader mode runs from the miniloader already stored in SPI flash, initialises DRAM and flashes quickly, so it suits routine device firmware upgrade tasks. Maskrom runs from the SoC’s internal BootRom and is independent of both SPI flash and eMMC contents, so it is the only option when the loader is corrupted. Rockchip’s boot stage documentation describes both paths in detail.

Q2: RKDevTool cannot detect my RK3588 or RK3576 board over USB. Check four things in order: a data-capable Type-C cable, a correctly installed RockUSB driver, the button held before power is applied rather than after, and whether the board enumerated as vendor ID 0x2207. If it never enumerates, the fault is physical or driver-level rather than firmware.

Q3: Can I use standard DFU tools such as dfu-util for Rockchip boards? No. Rockchip implements RockUSB rather than USB DFU, so generic DFU clients will not talk to the device. Use the official RKDevTool on Windows or the open-source rkdeveloptool on Linux, both built around the RockUSB protocol.

Q4: Can I roll back firmware on Ieeker Rockchip boards? Yes, over Loader or Maskrom with a previously validated image. Two caveats: user data written by newer firmware may not be readable after downgrade, and some newer bootloader revisions reject older images. Verify compatibility before rolling back a production unit.

Q5: Is SD card recovery available on every board? Most Ieeker Rockchip boards support it, but custom carrier variants may disable the recovery path. Check the board schematic and firmware notes first; when in doubt, use USB Loader mode, which does not depend on recovery support.

Final Thoughts

Device firmware upgrade on Rockchip hardware is a boot-chain exercise, not a button-pressing ritual. Understand that BootRom is immutable, that the loader sits in SPI flash while the OS sits in eMMC, that Maskrom bypasses both, and that update.img rewrites a partition layout rather than a single binary — and most of the mystique around “bricked boards” disappears.

Match the image to the exact board variant, use a data cable and stable power, verify the kernel and NPU after every write, and keep a version ledger you can roll back to. Those four habits cost almost nothing and remove nearly all of the risk from a task you will repeat for the life of the product.

For board-specific firmware files and partition details, start from the Ieeker wiki for your board. Background on how the bootloader, kernel and rootfs are assembled is covered in our Rockchip system porting and firmware development guide, the hardware-side prerequisites are summarised in the RK3576 specs, datasheet and hardware design guide, and a platform-wide walkthrough across RK3328, RK3568 and RK3588 is available in the step-by-step Rockchip flashing guide.

Device Firmware Upgrade for Rockchip Boards (RK3588/RK3576)

Get exclusive offers for Development Board now. We will provide you with the best solution to help you save more money.

Email
Email: sales@ieeker.com
Skype
Skype: +8618138874685
Wechat
Wechat QR Code
WhatsApp
WhatsApp QR Code