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

Step-by-Step: How to Flash Rockchip Firmware on RK3328, RK3568 and RK3588

How to flash Rockchip firmware on RK3588, RK3568, RK3328 board

Flashing firmware is the first hands-on task most developers face after buying a Rockchip single-board computer. Whether you are deploying a Debian build, an Android image, or a factory Yocto system, the flashing step decides whether the board boots at all. This guide covers SD-card flashing and maskrom (USB) flashing for mainstream Rockchip SoCs, with the checks and failure modes that actually cause dead boards in the field — written for the boards we ship and support daily, including the RK3328 quad-core secondary development SBC, the RK3568 core board + baseboard kit, the RK3588 board, and the RK3568 / RK3568J industrial variant.

How Rockchip Boot Works (And Why Flashing Order Matters)

Understanding the boot chain removes 80% of the guesswork when a flash fails.

Every Rockchip SoC starts in BootROM, a mask-ROM routine inside the chip itself that cannot be erased or overwritten. On power-up, BootROM probes the available storage in a fixed priority order — typically SD card first, then eMMC/NAND, then USB (maskrom). It then loads a small miniloader / TPL from the first sectors of that medium, which in turn brings up DDR, reads the parameter / GPT table, and hands control to U-Boot.

1. SD Card Boot Usually Takes Priority

An SD card with a valid boot image usually wins over eMMC. That is why “flash from SD” works even on a board whose eMMC is corrupted or blank — the SoC simply never reaches the eMMC path.

2. The Bootloader Area Is Critical

BootROM only reads the first few megabytes. If the bootloader area is wrong, the rest of the image is irrelevant — the board stays dark regardless of how good your rootfs is.

3. Maskrom Mode Is the Recovery Path

The chip cannot brick itself. Even with a fully destroyed eMMC, maskrom mode remains reachable by hardware, which is the recovery path described later. Rockchip documents this chain on its open-source documentation site, including the Rockusb protocol and firmware upgrade tools.

Two image formats appear in practice, and mixing them up is a very common failure:

Rockchip-Packaged update.img

Rockchip-packaged update.img is an RKFW/RKAF container holding bootloader, parameter.txt, boot.img, resource.img, and rootfs. Written to SD, it acts as an SD upgrade image; the board boots into a recovery routine and writes the whole set into eMMC, with the status LED blinking until it finishes.

Third-Party Full-Disk Images

Third-party full-disk images include Armbian, Debian, Ubuntu, and Android raw dumps. They are plain sector-by-sector images. You write them with an imaging tool and boot directly from them; nothing is programmed into eMMC unless you take an extra step.

Decide which one you need before touching a card. “Boot from SD permanently” and “install to eMMC from SD” are two different operations with different images.

Rockchip boot chain flow, BootROM, TPL, U-Boot, eMMC, SD card boot priority

Pre-Requisites

  • Matching firmware image for your exact SKU (SoC + DDR size + board revision)
  • MicroSD card, 8 GB or larger, Class 10 / U1 or better (A1/A2 rated cards are the safe choice)
  • USB 3.0 card reader — not a bundled no-name reader
  • Host PC with Windows, Linux, or macOS
  • 5 V / 2–3 A DC power supply with a known-good cable
  • A USB-A to USB-A or USB-C cable, depending on the board, if you plan to use maskrom flashing
  • Optional but strongly recommended: a 3.3 V USB-TTL adapter for the debug UART

Note: The most common “faulty board” we receive is not faulty. It is a cheap SD card, a 5 V/1 A phone charger, or a charge-only USB cable. Verify these three before concluding the hardware is dead.

Step 1 — Verify the Firmware Image Before Writing It

Never flash an image you have not checked. Skipping this step is how a wrong SoCC image ends up on a board.

1. Confirm SoC and Board Revision

RK3328, RK3568, and RK3588 firmware are mutually incompatible. A bootloader built for RK3568 will not run on RK3588 silicon, and an RK3568B2 build may fail on an RK3568J industrial part with different DDR timings.

2. Verify the Checksum

Vendors often publish an MD5 or SHA-256 alongside the image. On Linux, you can verify the file with sha256sum firmware-sd-update.img. Compare the result against the published value. A truncated download produces exactly the symptoms of a dead board: no boot, no console output.

3. Confirm the Image Type

A 4–8 MB file is almost certainly a bare bootloader or a partial set, not a full image. A complete SD image is typically hundreds of megabytes to several gigabytes.

4. Check the Partition Table If You Are Unsure

If you want to inspect the image structure before writing, you can check the partition table on Linux with fdisk -l firmware.img. A Rockchip-packaged image shows the RKFW header and the parameter/GPT structure; a distro image shows a normal GPT with boot and root partitions.

Step 2 — Prepare the SD Card Properly

Format the card before writing, and use the right tool. The SD Association’s official SD Memory Card Formatter is the reference implementation for SD/SDHC/SDXC media; operating-system format dialogs are frequently not optimised for SD cards and can leave cluster sizes or partition alignment that slow the card or cause intermittent read errors.

Recommended Formatting Steps

  • Format to FAT32 for SD-upgrade images.
  • Avoid the “quick format” checkbox if the card has been used before.
  • Do not reuse cards with old Raspberry Pi or camera partitions without full reformat.
  • Use 8 GB or larger cards for most images; 16–32 GB is comfortable for desktop-class distros.

A note on card quality: Rockchip boards are far less forgiving of slow or counterfeit cards than a phone is. If a board boots one card and not another, the card is the variable — not the firmware.

Step 3 — Write the Image with balenaEtcher

balenaEtcher is the most reliable cross-platform choice for this job: it refuses to write to system drives, verifies the write, and handles compressed images directly.

Writing Steps

  1. Launch Etcher and select Flash from file, pointing to your .img file.
  2. Select the target SD card. Double-check the drive letter or device name.
  3. Click Flash. Keep the validation option enabled.
  4. After the write finishes, safely eject the SD card.

Linux users who prefer the shell can achieve the same result with dd, accepting that there is no built-in verification and no protection against the wrong device. Run sudo dd if=firmware.img of=/dev/sdX bs=4M conv=fsync status=progress, replace /dev/sdX with the card’s device node — confirmed via lsblk, never guessed.

Step 4 — Boot From SD Card

  1. Power the board off, insert the SD card, then apply power.
  2. For SD-upgrade images: the LED blinks during flashing, usually 3–8 minutes. Do not cut power.
  3. For OS distro images: the board boots directly into the system. First boot is slow due to filesystem expansion and initialization.
  4. Connect the debug UART if the board appears to do nothing. Rockchip consoles often run at 1500000 baud, 8N1.

If nothing appears on the console, check the boot-medium priority next. Some boards ship with SD boot disabled via OTP or a boot-order configuration, in which case SD is ignored entirely, and maskrom flashing is your route.

Step 5 — Maskrom / USB Flashing (eMMC Recovery)

Maskrom flashing works when the eMMC is blank, the bootloader is corrupted, or SD boot fails. To enter maskrom mode: hold the recovery button while powering on the board, then release. The board will enumerate as a Rockusb device.

Tool Selection

  • Windows: RKDevTool + Rockusb driver
  • Linux/macOS: rkdeveloptool CLI

Important: Use a data USB cable, not a charge-only cable. Unpowered USB hubs often cause flashing failures. Interrupting an eMMC write mid-stream is the one genuinely dangerous operation in this process. The board will not brick —Maskromm is always reachable — but you will need to redo the entire flash.

Troubleshooting: Common Flashing Issues

SymptomMost likely causeFix
No LED, no consolePoor power supply or bad cableUse 5V/3A power supply
Boot loop/reset cycleMismatched firmware, insufficient powerRe-flash the correct firmware
SD card not detectedDamaged SD card, wrong formatReformat with SD Formatter or swap card
Black screen after flashWrong display config, headless imageCheck UART debug log
Maskrom device not foundDriver/cable/button timing issueReinstall driver and retry

A simple rule: if the UART console prints logs, the SoC and bootloader work. The fault is the kernel, device tree, or rootfs. A silent console means a power, boot medium, or bootloader problem.

Troubleshooting guide for Rockchip SBC flashing failure, power, SD card, bootloader issues

After Flashing: Verification Before Mass Deployment

  1. Check the dmesg log to confirm eMMC, Ethernet,t and peripherals are detected.
  2. Run df -h to verify storage partition expansion.
  3. Test all required interfaces: Ethernet, USB, display, GPIO.
  4. Record the firmware version and checksum for future maintenance.

Frequently Asked Questions

Q: Can I flash RK3328 firmware onto an RK3588 board?

A: No. Each Rockchip SoC platform requires dedicated firmware, including a matched bootloader, DDR initialization blob, and device tree. Cross-chip firmware will fail to boot.

Q: What tools do I need for Rockchip firmware flashing via SD card?

A: balenaEtcher is recommended for SD card image burning. If your board is completely unbootable and needs eMMC recovery, use Rockchip’s official RKDevTool (Windows) or rkdeveloptool (Linux).

Q: Will cutting power during flashing permanently brick my Rockchip SBC?

A: It is not recommended, but the board usually cannot be permanently bricked. BootROM is hard-coded inside the chip. You can enter maskrom mode and reflash firmware to recover it.

Q: Why does my board show a black screen after successful SD flashing?

A: Common causes include mismatched display configuration, headless-only firmware, poor power supply, or a faulty SD card. It is best to connect the UART debug port to view the real boot log for troubleshooting.

Conclusion

Rockchip firmware flashing is a deterministic procedure once you understand the boot chain: verify the checksum, format the SD card properly, write the image with validation enabled, and use maskrom mode for recovery. Most failures are not complex bugs — bad SD cards, underrated power adapters, or mismatched firmware. Validate one sample board fully before batch flashing.

Disclaimer: All steps are for technical reference only. Hardware behaviour varies with board revision. Test before mass production deployment.

Step-by-Step: How to Flash Rockchip Firmware on RK3328, RK3568 and RK3588

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