Skip to content

Improve rockusb support in U-Boot

Alberto Panizzo u-boot 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest9 patches 0 repliesNew
  2. v28 patches 0 repliesSuperseded
  3. v17 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Removed magic block size of 512 bytes for all implemented commands original behavior of re-probing a non present block device (like a non plugged SD-Card) is kept

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9usb: rockchip: fix command failed on host side due to missing datadrivers/usb/gadget/f_rockusb.c+20 -21 reply
2/9usb: rockchip: implement skeleton for K_FW_GET_CHIP_VER commanddoc/README.rockusb drivers/usb/gadget/f_rockusb.c+49 -41 reply
3/9rockchip: rk3288: implement reading chip version from bootrom codearch/arm/mach-rockchip/rk3288/Makefile arch/arm/mach-rockchip/rk3288/rockusb_rk3288.c+31 -02 replies
4/9usb: rockchip: implement K_FW_LBA_READ_10 commandarch/arm/include/asm/arch-rockchip/f_rockusb.h doc/README.rockusb drivers/usb/gadget/f_rockusb.c+107 -12 replies
5/9usb: rockchip: implement K_FW_LBA_ERASE_10 commandarch/arm/include/asm/arch-rockchip/f_rockusb.h doc/README.rockusb drivers/usb/gadget/f_rockusb.c+50 -02 replies
6/9usb: rockchip: be quiet on serial port while transferring datadrivers/usb/gadget/f_rockusb.c+2 -21 reply
7/9usb: rockchip: boost up write speed from 4MB/s to 15MB/sarch/arm/include/asm/arch-rockchip/f_rockusb.h+1 -11 reply
8/9usb: rockchip: fix printing csw debug infodrivers/usb/gadget/f_rockusb.c+1 -11 reply
9/9usb: rockchip: on K_FW_LBA_WRITE_10 remove magic block size of 512 bytesdrivers/usb/gadget/f_rockusb.c+21 -180 replies

Reviews trailers per patch

6 of 9 patches have a Reviewed-by or Acked-by.

PatchSimon GlassPhilipp Tomsich
1/9
2/9R-b
3/9R-b R-b
4/9R-b R-b
5/9R-b R-b
6/9R-b
7/9R-b
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [U-Boot] [PATCH v3 0/9] Improve rockusb support in U-Boot

rockusb protocol has been introduced by Eddie Cai in U-Boot mainline allowing to write internal eMMC of RK3288 based boards (and potentially all other Rockchip's CPUs).

On workstation side the open source project rkdeveloptool do implement the rockusb protocol. You can find it on GitHub here:
https://github.com/rockchip-linux/rkdeveloptool

This patchset increase the supported functionalities on target side allowing developers to:
- Read flash: rl command of rkdeveloptool
- Read chip version: rci command of rkdeveloptool
- Complete the write cycle implementing block erase
- Improve read/write speed

Changes in v2:
- Reworked patch 1/8 to obtain simpler and more logical code
- Rewrote some patch messages
- Updated documentation in README.rockusb patch by patch
- Added patch 8/8 to fix debug prints of original code

Changes in v3:
- Removed magic block size of 512 bytes for all implemented commands original behavior of re-probing a non present block device (like a non plugged SD-Card) is kept

Alberto Panizzo (9):
usb: rockchip: fix command failed on host side due to missing data
usb: rockchip: implement skeleton for K_FW_GET_CHIP_VER command
rockchip: rk3288: implement reading chip version from bootrom code
usb: rockchip: implement K_FW_LBA_READ_10 command
usb: rockchip: implement K_FW_LBA_ERASE_10 command
usb: rockchip: be quiet on serial port while transferring data
usb: rockchip: boost up write speed from 4MB/s to 15MB/s
usb: rockchip: fix printing csw debug info
usb: rockchip: on K_FW_LBA_WRITE_10 remove magic block size of 512
bytes

 arch/arm/include/asm/arch-rockchip/f_rockusb.h |   6 +-
 arch/arm/mach-rockchip/rk3288/Makefile         |   1 +
 arch/arm/mach-rockchip/rk3288/rockusb_rk3288.c |  30 +++
 doc/README.rockusb                             |  11 +-
 drivers/usb/gadget/f_rockusb.c                 | 261 ++++++++++++++++++++++---
 5 files changed, 281 insertions(+), 28 deletions(-)
 create mode 100644 arch/arm/mach-rockchip/rk3288/rockusb_rk3288.c
Signature · 1 line
2.7.4