revyos / thead-u-boot

6 stars 15 forks source link

fix: fix and add ums gadget(usb mass storage gadget) #3

Closed chainsx closed 1 year ago

chainsx commented 1 year ago

修复和增加对于 USB Mass Storage (UMS) Gadget 的支持

UMS 直观的来讲就是将设备的 EMMC 通过 USB Gadget “映射”为 USB Mass Storage 设备,

可以作为刷写系统时 fastboot 的等效替代,使用方式:

ums 0 mmc 0

可能方便之后正式版的 SD 卡镜像和 EMMC 镜像的统一?

具体介绍可以看这里: https://linux-sunxi.org/U-Boot/USB_Mass_Storage

但是如果直接勾选该选项会出现编译错误,本次提交解决了编译错误问题并默认开启该选项。

测试图如下:

 image1

chainsx commented 1 year ago

太好了,板子上的 REC 按钮有用处啦(x

Icenowy commented 1 year ago

This changes the flashing process, maybe it should be discussed with T-Head.