README.rockusb 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. Rockusb (Rockchip USB protocol)
  2. =====================================================
  3. Overview
  4. --------
  5. Rockusb protocol is widely used by Rockchip SoC based devices. It can
  6. read/write info, image to/from devices. This document briefly describes how to
  7. use Rockusb for upgrading firmware (e.g. kernel, u-boot, rootfs, etc.).
  8. Tools
  9. --------
  10. There are many tools can support Rockusb protocol. rkdeveloptool
  11. (https://github.com/rockchip-linux/rkdeveloptool) is open source,
  12. It is maintained by Rockchip. People don't want to build from source
  13. can download from here
  14. (https://github.com/rockchip-linux/rkbin/blob/master/tools/rkdeveloptool)
  15. Usage
  16. --------
  17. The Usage of Rockusb command is:
  18. rockusb <USB_controller> <devtype> <dev[:part]>
  19. e.g. rockusb 0 mmc 0
  20. On your U-Boot console, type this command to enter rockusb mode.
  21. On your host PC. use lsusb command. you should see a usb device
  22. using 0x2207 as its USB verdor id.
  23. for more detail about the rkdeveloptool. please read the usage.
  24. rkdeveloptool -h
  25. use rkdeveloptool wl command to write lba. BeginSec is the lba on device
  26. you want to write.
  27. sudo rkdeveloptool wl <BeginSec> <File>
  28. to flash U-Boot image use below command. U-Boot binary is made by mkimage.
  29. see doc/README.rockchip for more detail about how to get U-Boot binary.
  30. sudo rkdeveloptool wl 64 <U-Boot binary>
  31. There are plenty of Rockusb command. but wl(write lba) and
  32. rd(reboot) command. These two command can let people flash
  33. image to device.
  34. To do
  35. -----
  36. * Fully support Rockusb protocol