rkdeveloptool(1)

๐ŸŒธ rkdeveloptool(1) โ€” the rockusb bootloader utility, bestie edition ๐Ÿ’…

okay so like, this is a General Commands Manual page for rkdeveloptool(1), and if you've ever got a Rockchip device chillin' in rockusb bootloader mode, this is your girl. she reads and writes storage. that's the whole vibe. โœจ


โœจ NAME โœจ

rkdeveloptool โ€” rockusb bootloader utility ๐Ÿฆ‹


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

rkdeveloptool [OPTIONS] COMMAND [ARGS]...

COMMAND := {list | list-partitions | read | read-partition | write |
write-partition | write-partition-table | write-parameter | erase-flash
| boot | test-device | upgrade-loader | reset | reboot | reboot-maskrom
| shutdown | read-flash-id | read-flash-info | read-chip-info | read-
capability | pack | unpack | tag-spl }

OPTIONS := { -h | -v }

like... that's a LOT of commands, and she ate every single one ๐Ÿ’–


๐Ÿ’œ DESCRIPTION ๐Ÿ’œ

Reads or writes the storage of a rockchip device booted into the rockusb bootloader mode. that's it, that's the whole job description. no cap. ๐Ÿ”ฅ


โœจ OPTIONS โœจ

  • -h, --help โ€” shows you the help message and then dips out ๐Ÿ‘‹
  • -v, --version โ€” shows you the version number and also dips out. iconic behavior, honestly ๐Ÿซถ

๐Ÿ‘‘ COMMANDS ๐Ÿ‘‘

okay bestie, buckle up, this is the main character section ๐ŸŒˆ

  • list โ€” shows all the connected devices. the vibe check of commands. ๐Ÿ”
  • list-partitions โ€” shows the GPT partition table entries... but only if a GPT table actually exists on the flash. no GPT, no entries, that's just how it is ๐Ÿ’€
  • read START-SECTOR NUM-BYTES FILENAME โ€” reads the specified number of bytes starting from the sector offset, and drops them into the specified file. ๐Ÿ“–
  • read-partition PARTITION FILENAME โ€” reads the contents of a named partition into a file. so cute, so simple ๐ŸŽ€
  • write START-SECTOR FILENAME โ€” writes the contents of the file to the eMMC, starting at a specific sector. โœ๏ธ
  • write-partition PARTITION FILENAME โ€” writes the contents of the file into a named partition.
  • write-partition-table DEFINITION-FILE โ€” writes a whole new GPT partition table block, with the partitions defined in a file. โœจ
  • write-parameter ? โ€” not sure what this does ๐Ÿ™ˆ literally the manpage says so, don't come for me
  • erase-flash โ€” wipes the internal flash storage. gone. deleted. bye. โš ๏ธ
  • boot FILENAME โ€” loads an image into ram and boots it. main character energy fr fr ๐Ÿš€
  • test-device โ€” checks if there's a device attached in the ready state. are you there bestie? ๐Ÿ‘€
  • upgrade-loader FILENAME โ€” writes a brand new rockusb bootloader to the flash. glow-up time ๐Ÿ’…
  • reset [SUBCODE] โ€” resets the device. optionally you can pass a subcode, which is a number between 0 and 5. ๐Ÿ”„
  • reboot โ€” reboots the device. this is literally just an alias for reset 0, iykyk
  • reboot-maskrom โ€” resets the device and triggers maskrom mode. secret menu unlocked ๐Ÿ•ต๏ธ
  • shutdown โ€” resets the device without triggering a reboot. night night ๐Ÿ˜ด
  • read-flash-id โ€” reads the eMMC flash id. ๐Ÿ†”
  • read-flash-info โ€” reads the flash chip specifications. the spec sheet moment ๐Ÿ“‹
  • read-chip-info โ€” reads the SoC info bytes. ๐Ÿง 
  • read-capability โ€” reads the permissions of the rockusb bootloader. what are you allowed to do, bestie? ๐Ÿ”
  • pack โ€” merges a boot image. ๐Ÿงณ
  • unpack [FILENAME] โ€” unpacks a boot image into the separate files. reverse uno card ๐Ÿƒ
  • tag-spl [TAG] [SPL-FILE] โ€” prepends the tag to the SPL-FILE and saves it as filename.tag. ๐Ÿท๏ธ

๐ŸŒธ EXAMPLES ๐ŸŒธ

Backup a partition of the device ๐Ÿ’พ

rkdeveloptool read-partition uboot uboot.img

Restore a partition of the device โ™ป๏ธ

rkdeveloptool write-partition uboot uboot.img

Read the bootloader magic block from sector 64 ๐Ÿ”ฎ

rkdeveloptool read 64 512 bootloader-magic.bin

lowkey reminder bestie: erase-flash does NOT play. it wipes your internal flash storage. no takebacks. ๐Ÿšจ

and that's the whole page, slay! this was rkdeveloptool, version dated 2024-06-19, from your friendly neighborhood rkdeveloptool manual. go forth and flash responsibly ๐Ÿ’–โœจ๐ŸŽ€๐Ÿฆ‹๐ŸŒธ๐Ÿ’…๐Ÿซถ

๐Ÿ“ฆ where this page comes from