Using the Built-in USB Port on Milk-V Duo as a Host for a Modem

Hello everyone,

I want to connect a modem to the USB port on my Milk-V Duo. However, I want to use the built-in soldered USB port, not the one on the IO board.

I came across a post on another forum mentioning that it’s possible to change a setting from usbmode=2 (device mode) to usbmode=1 (host mode), allowing the OTG port to connect a USB flash drive or modem directly to the built-in USB.

This raises two questions:

  1. Where is this option located? Or is there another way to enable USB host mode?
  2. Powering the USB device: If I power the board through an external source via VSYS, will the USB port receive power? It seems unlikely. Should I manually supply +5V to VBUS instead?

Any guidance would be appreciated! Thanks in advance.

3 Likes

The script to change USB mode from device to host can be found in /mnt/system/usb-host.sh. I have no idea if and how that works exactly, so you need to try that out yourself.

1 Like