MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.85k stars 495 forks source link

Rock Pi S - USB C OTG as Host #6611

Open starsoccer opened 1 year ago

starsoccer commented 1 year ago

I am trying to figure out how to use my rock pi s with the USB C OTG port as host instead of OTG. This forum post more or less summarizes what I am trying to do but does not seem to be work/be applicable for dietpi, https://forum.radxa.com/t/rock-pi-s-otg-in-host-mode/3572

Version: G_DIETPI_VERSION_CORE=8 G_DIETPI_VERSION_SUB=21 G_DIETPI_VERSION_RC=1 G_GITBRANCH='master' G_GITOWNER='MichaIng'

MichaIng commented 1 year ago

OTG should btw switch between host and gadget mode automatically. However, sometimes this does not work. Can you test this overlay:

G_CONFIG_INJECT 'overlays=' 'overlays=dwc3-0-host' /boot/dietpiEnv.txt
reboot
starsoccer commented 1 year ago

Just tried that command and confirmed it was set in dietpiEnv.txt but still no luck

image

MichaIng commented 1 year ago

Ah, this overlay has a different prefix:

G_CONFIG_INJECT 'overlay_prefix=' 'overlay_prefix=rockchip' /boot/dietpiEnv.txt
reboot
starsoccer commented 1 year ago

Sadly no dice either. Any other suggestions?

For context, I am running lsusb to determine if there are any new devices. I am expecting to see 2 Serial

image

starsoccer commented 1 year ago

Some more info in case its useful image

starsoccer commented 1 year ago

@MichaIng Any guidance you can provide on things to try? Or any logs or information I can provide to further debug?