amazingfate / armbian-xiaomi-elish

19 stars 6 forks source link

请问如何切换usb的模式 #2

Closed CodeChenL closed 1 year ago

CodeChenL commented 1 year ago

默认为usb网卡模式,但是不能识别U盘键鼠等设备

amazingfate commented 1 year ago

设备树里写死的device模式,可以尝试修改设备树为otg

CodeChenL commented 1 year ago

好的,谢谢,如果有用户空间就能操作的方法就好了

CodeChenL commented 1 year ago

我尝试修改成这样但是没用

&usb_1_dwc3 {
    dr_mode = "otg";
    maximum-speed = "high-speed";
    /* Remove USB3 phy */
    phys = <&usb_1_hsphy>;
    phy-names = "usb2-phy";
};
amazingfate commented 1 year ago

主线应该还不支持

amazingfate commented 1 year ago

未来会在6.7内核开始支持:https://github.com/armbian/build/pull/5974

CodeChenL commented 1 year ago

非常感谢