radxa-pkg / radxa-otgutils

Enable USB gadget on OTG port
GNU General Public License v3.0
9 stars 8 forks source link

代码重构 #11

Open RadxaYuntian opened 1 month ago

RadxaYuntian commented 1 month ago

目前的以太网服务是ECM,需要添加USB NCM的支持

RadxaYuntian commented 3 weeks ago

@RadxaNaoki confirmed that only the GADGET needs to be changed to support NCM: https://github.com/RadxaNaoki/radxa-otgutils/commit/b8872bc4e8c343a91e7e40f514dd9012cab307e0

RadxaNaoki commented 3 weeks ago

and CONFIG_USB_CONFIGFS_NCM=y https://github.com/RadxaNaoki/bsp/commit/1f50848cbd0c0c0690db1e7adfefc7d490b38520

RadxaYuntian commented 3 weeks ago

Done in https://github.com/radxa-repo/bsp/commit/32995a18f53dae3f41e4bb354e301ba4ecb69471

CodeChenL commented 3 weeks ago

task1是否可以理解为,$1添加udc选项,如下:

Usage: $0 <adbd|usbnet|udc> <start|stop|restart>
RadxaYuntian commented 3 weeks ago

差不多,所以之后就是先是adbd和usbnet的服务单独处理完start,再来udc start 另外模块看了下可能不一定有必要

CodeChenL commented 2 weeks ago

添加ECM支持,还需要保留NCM功能吗

RadxaYuntian commented 2 weeks ago

添加NCM,并且保留ECM