Skip to content

Instantly share code, notes, and snippets.

@orangecms
Created March 26, 2025 11:23
Show Gist options
  • Save orangecms/c092f96b0e397b32ac4ce48d4b64f49b to your computer and use it in GitHub Desktop.
Save orangecms/c092f96b0e397b32ac4ce48d4b64f49b to your computer and use it in GitHub Desktop.
RK3566 mask ROM
#!/bin/sh
# have rkbin and xrock in the same directory
# https://github.com/rockchip-linux/rkbin
# https://github.com/xboot/xrock
# Run this in the xboot directory.
# Have rkbin in the same parent directory.
_BDIR=../rkbin/bin/rk35
# DRAM init binary
_DRAM=$_BDIR/rk3566_ddr_528MHz_ultra_v1.10.bin
# USB protocol with extra functionality
_USBP=$_BDIR/rk356x_usbplug_v1.17.bin
# In mask ROM mode, load both binaries.
./xrock maskrom $_DRAM $_USBP --rc4-off
# Wait for the binaries to run...
sleep 2
# Now the `version` command should be available.
./xrock version
# Should get the following:
# RK3568(3568): 0x33353638 0xffffffff 0xffffffff 0xffffffff
# Attempt to dump mask ROM errors/hangs :(
# Per the TRM, it is probably remapped / unavailable.
# ./xrock dump 0xffff0000 0x40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment