Skip to main content

Erase eMMC or SPI Flash via Maskrom.

Enter Maskrom Mode

What is Maskrom mode

Maskrom mode, also known as Loader mode, is a special boot mode generally used to restore or repair malfunctioning devices. This mode enables users to interact directly with the device's hardware without going through the operating system. In Maskrom mode, users can communicate with the device via a computer or other devices and execute a series of commands to resolve the device's issues.

MacOS:

The results after executing "lsusb" Output:Bus 000 Device 004: ID 2207:350b Fuzhou Rockchip Electronics Co., Ltd. Composite Device

Linux:

The results after executing "lsusb" Output:Bus 001 Device 030: ID 2207:350b Fuzhou Rockchip Electronics Company

Windows:

Open the RKDevTool, and you will see that the device is in the "Found One MASKROM Device" state.

How to enter Maskrom mode

MaskRom

  1. Prepare a USB-A to MicroUSB cable

  2. Insert the USB-A to MicroUSB cable into the OTG port (Micro USB port) of the Raspberry Pi Compute Module 4 IO Board, and plug the other end into the computer.

MaskRom Key

  1. Then press and hold the eMMC Button (if this is the first time flashing, the button does not need to be pressed).

MaskRom Key

  1. Power on.

MaskRom Key

  1. At this point, under normal circumstances, it will enter Maskrom mode, and the RKdevTool will detect a Maskrom device.

MaskRom Key

Erase eMMC

  1. Generate zero.img

    dd if=/dev/zero of=./zero.img bs=1M count=64
  2. Make sure the PC recognizes Maskrom

    sudo rkdeveloptool ld
    DevNo=1 Vid=0x2207,Pid=0x350a,LocationID=109 Maskrom
  3. Flash the Loader

    sudo rkdeveloptool db rk356x_spl_loader_ddr1056_v1.12.109_no_check_todly.bin

  4. Erase eMMC

    sudo rkdeveloptool wl 0 zero.img
  5. Restart the device

    sudo rkdeveloptool rd

Erase SPI Flash

  1. Generate zero.img

    dd if=/dev/zero of=./zero.img bs=1M count=64
  2. Make sure the PC recognizes Maskrom

    sudo rkdeveloptool ld
    DevNo=1 Vid=0x2207,Pid=0x350a,LocationID=109 Maskrom
  3. Flash the Loader

    sudo rkdeveloptool db rk356x_spl_loader_ddr1056_v1.12.109_no_check_todly.bin

  4. Erase SPI Flash

    sudo rkdeveloptool ef
  5. Restart the device

    sudo rkdeveloptool rd