1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
# rkdeveloptool
rkdeveloptool is a fastboot-like CLI tool for flashing rockchip devices. This fork is actively maintained to support the PineNote and Quartz64 as well as other Pine64 RK devices.
## Install instructions
### Deps
* libusb-1.0
### Build and install
```bash
meson build
meson compile -C build
```
To install:
```bash
meson install -C build
```
This will use PAM to elevate privileges where necessary.
## Usage
```
Usage: rkdeveloptool command [args]...
Reads or writes the storage of a rockchip device booted into the rockusb bootloader mode
-h, --help print this help text
-v, --version print the version of this tool
list List the detected devices in rockusb mode
list-partitions List the GPT partition table on the storage
read Read sectors from the internal storage
read-partition Read a partition from the internal storage
write Write sectors from to internal storage
write-partition Write an image to a specific partition
write-partition-table Write an image to a specific partition
write-parameter Not sure what this does
erase-flash Wipe the internal storage
boot Download an image to ram and start it
test-device Tests the device
upgrade-loader Write a new rockusb loader
reset Send a reset command
reboot Send a reboot command, alias of reset
reboot-maskrom Trigger reboot into maskrom mode
shutdown Reset without rebooting
read-flash-id Read the flash chip serial number
read-flash-info Show information about the internal storage
read-chip-info Show information about the SoC
read-capability Show the bootloader permissions
pack Pack bootloader
unpack Unpack bootloader
tag-spl Tag U-Boot SPL
```
Some of these commands are legacy and probably not useful to us, but they're here anyway :>
Use `rkdeveloptool command -h` for command specific help.
|