| English | 简体中文 |
From the Releases page,
or out/ after scripts/package.sh. Offsets: image layout.
| Release file | Board | Goes on |
|---|---|---|
ROCK4D-spi-edk2-<ver>.img |
Radxa ROCK 4D | 16 MB SPI NOR, from sector 0 |
CM5IO-emmc-edk2-<ver>.img |
ArmSoM CM5-IO | eMMC, with a partition table |
CM5IO-sdcard-edk2-<ver>.img |
ArmSoM CM5-IO | SD card |
TaishanPi3M-emmc-edk2-<ver>.img |
LCKFB TaishanPi 3M | eMMC, with a partition table. Needed for Windows. |
TaishanPi3M-sdcard-edk2-<ver>.img |
LCKFB TaishanPi 3M | SD card, with the SPL on the eMMC |
TaishanPi3M-spl-<ver>.bin |
LCKFB TaishanPi 3M | the SPL alone, eMMC sector 64 |
<Board>-emmc.sfdisk |
CM5-IO, TaishanPi 3M | the eMMC partition table on its own |
The pre-release ci
holds the images of the latest successful build of main
(<Board>-emmc-edk2-ci-<sha>.img and so on, with the .sfdisk tables and
SHA256SUMS.txt). Each build of main replaces it, and nothing in it has
been run on a board as a whole. Use it only for a change that is not
released yet, and keep the release image to go back to.
All three need the board in MaskROM mode (see your board below), connected over USB.
rkdeveloptool.On Windows, first install the WinUSB driver for the Rockchip device with Zadig. Linux and macOS need no driver.
db needs a Rockchip loader starting with LDR , such as rkbin’s
rk3576_spl_loader_*.bin (not in this repository).
binaries/rk3576_ddr.bin is a raw DDR blob and fails with
Opening loader failed.db; a wl right after it can fail with
Write LBA failed.wl reached 100% before rd. A failed write still reboots into
the old firmware.boot, write and reset.For a new board or a fresh eMMC. This replaces the partition table, everything on the eMMC and the saved UEFI settings. In the web flasher: “UEFI firmware, whole image”.
rkdeveloptool db rk3576_spl_loader.bin
rkdeveloptool wl 0 <Board>-emmc-edk2-<ver>.img
rkdeveloptool rd
The GPT has the firmware in p1 (sector 64, 64 MiB) and the rest of the eMMC
as p2, unformatted. The image is 32 MiB long, so run
sudo sgdisk -e /dev/mmcblk0 once from Linux to write the backup GPT (the
Windows install script does not need it).
For an eMMC that already holds Windows, Linux or other partitions. This writes sectors 64 to 43647 (SPL and firmware) and stops before sector 43648, where the UEFI settings are. Same range on the CM5-IO and the TaishanPi 3M. In the web flasher and Maskrom Studio: “UEFI firmware, keep the partitions”.
dd if=<Board>-emmc-edk2-<ver>.img of=firmware.bin bs=512 skip=64 count=43584
rkdeveloptool db rk3576_spl_loader.bin
rkdeveloptool wl 64 firmware.bin
rkdeveloptool rd
From Linux on the board (check with lsblk that /dev/mmcblk0 is the eMMC):
sudo dd if=<Board>-emmc-edk2-<ver>.img of=/dev/mmcblk0 bs=512 skip=64 seek=64 count=43584 conv=fsync
Do not write the whole p1 partition or use tail -c +32769: both
overwrite sector 43648 and reset every UEFI setting and boot option.
If the partition table was lost,
sudo sfdisk --wipe always /dev/mmcblk0 < <Board>-emmc.sfdisk writes it back;
the data behind it survives.
The firmware and the UEFI settings (at 0xFC0000) are on the 16 MB SPI NOR;
writing the image resets the settings.
Write:
rkdeveloptool db rk3576_spl_loader.bin
rkdeveloptool wl 0 ROCK4D-spi-edk2-<ver>.img
rkdeveloptool rd
From Linux booted off an SD card, flashcp to /dev/mtd0 also works.
The firmware goes on the eMMC or an SD card (the carrier’s 64 KB SPI NOR is too small). MaskROM: hold the MaskROM button while powering on; the MaskROM port is the USB-C port, so unplug anything else from it.
CM5IO-emmc file.dd if=CM5IO-sdcard-edk2-<ver>.img of=/dev/sdX bs=1M status=progress conv=fsync.
The settings are stored on the card. The BootROM tries the eMMC first, so
the card is ignored while the eMMC holds a bootloader.The BootROM reads only the eMMC, so at least the SPL must be on the eMMC.
MaskROM (no button):
MSK pads directly under the RK3576 silkscreen (photo:
TaishanPi3M-msk-pads.png in the 0.4.1 release).OTG+DP and power on. Device 2207:350e
appears.A board running this firmware also enters MaskROM with F4 during the boot countdown.
All on the eMMC (needed for Windows): the two sections above with the
TaishanPi3M-emmc file. The whole image replaces LCKFB’s stock system.
SPL on the eMMC, firmware on an SD card: with the card in, the SPL prints
Trying to boot from MMC2 and loads the firmware from it; with the card out
the board boots whatever is on the eMMC. Make sure MaskROM works first, since
it is the way back from a bad SPL write.
SPL to eMMC sector 64 (about 200 KB; an OS whose U-Boot FIT is at sector 16384 still boots without a card). From Linux on the board:
sudo dd if=TaishanPi3M-spl-<ver>.bin of=/dev/mmcblk0 bs=512 seek=64 conv=fsync
or from MaskROM:
rkdeveloptool db rk3576_spl_loader.bin
rkdeveloptool wl 64 TaishanPi3M-spl-<ver>.bin
rkdeveloptool rd
Firmware to the card:
dd if=TaishanPi3M-sdcard-edk2-<ver>.img of=/dev/sdX bs=1M status=progress conv=fsync
MaskROM is in the BootROM, which nothing here writes, so a board can always be written again. If the board starts but the settings are wrong, use “Reset All Settings” on the front page or F9 during the boot countdown (firmware menus).