Samor140 Posted 7 hours ago Posted 7 hours ago (edited) Hi, Board: BPI‑M4 Zero OS: Armbian (Bookworm), kernel 6.12.35 (current) This board has two USB‑C ports: one fixed HOST and one OTG. I’d like the OTG port (USB0) to operate as a host as well. I can’t find any Armbian overlay in armbian-config or on the forums that flips USB0 to host. If anyone has this working, it would be cool to let me know . Thanks! Edited 7 hours ago by Samor140 0 Quote
Werner Posted 6 hours ago Posted 6 hours ago If there is no overlay available you may need to write one by yourself. I'd start by modifying the device tree itself and set the port in question to host and see if this actually works. I think armbian-config comes with a device tree editor. Make sure to make a backup beforehand. 0 Quote
Samor140 Posted 5 hours ago Author Posted 5 hours ago Device tree it is. I will follow up if i have any success. Thanks ! 0 Quote
Solution c0rnelius Posted 4 hours ago Solution Posted 4 hours ago HOST /dts-v1/; /plugin/; / { fragment@0 { target = <&usbotg>; __overlay__ { dr_mode = "host"; }; }; }; OTG /dts-v1/; /plugin/; / { fragment@0 { target = <&usbotg>; __overlay__ { dr_mode = "otg"; }; }; }; By default it is set to peripheral. 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.