How to enable USB host mode? #107

Open
opened 2025-12-11 21:51:51 -05:00 by Pairman · 0 comments
Pairman commented 2025-12-11 21:51:51 -05:00 (Migrated from github.com)

Hello. I'm currently using a LicheeRV Nano 70418A board. I'd like to use a small USB-C hub (with 1 power input port and 1 data port) to power the board, while being able to use a USB storage or a USB CDC-ETH CAT.1 dongle (I have compiled the needed kernel modules) on the hub's data port.

I have removed /boot/usb.dev & /boot/usb.rndis, created /boot/usb.host, and set /proc/cviusb/otg_role to host. However, lsusb only shows Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub, which is the same like the USB slave mode, meaning it doesn't even recognize the USB-C hub.

I have searched through the wiki and github issues, and I have two questions:

    1. Do I need to desolder the resistor or diode (I don't know what is it exactly) between VBUS and VSYS on the board?
    1. And can I provide power with the USB-C port? Or must I provide 5V power with VSYS & GND pins instead of the USB-C port?

Image

Hello. I'm currently using a LicheeRV Nano 70418A board. I'd like to use a small USB-C hub (with 1 power input port and 1 data port) to power the board, while being able to use a USB storage or a USB CDC-ETH CAT.1 dongle (I have compiled the needed kernel modules) on the hub's data port. I have removed ```/boot/usb.dev``` & ```/boot/usb.rndis```, created ```/boot/usb.host```, and set ```/proc/cviusb/otg_role``` to ```host```. However, ```lsusb``` only shows ```Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub```, which is the same like the USB slave mode, meaning it doesn't even recognize the USB-C hub. I have searched through the wiki and github issues, and I have two questions: - 1. Do I need to desolder the resistor or diode (I don't know what is it exactly) between VBUS and VSYS on the board? - 2. And can I provide power with the USB-C port? Or must I provide 5V power with VSYS & GND pins instead of the USB-C port? ![Image](https://github.com/user-attachments/assets/01183a53-de82-4e36-ba88-d71211623250)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
maxpeterkaya/LicheeRV-Nano-Build#107
No description provided.