README.rockusb 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. Current set of rkdeveloptool commands supported:
  32. - rci: Read Chip Info
  33. - rfi: Read Flash Id
  34. - rd : Reset Device
  35. - td : Test Device Ready
  36. - rl : Read blocks using LBA
  37. - wl : Write blocks using LBA
  38. - wlx: Write partition
  39. To do
  40. -----
  41. * Fully support Rockusb protocol