Rock 5B enable OTG usb Mass Storage

Hi,

Can anyone could help me provide working instruction on how to enable OTG on Rock 5B debian?

I have tried enable host mode/ peripheral mode in rsetup but not working. Currently there is no wiki to explain on how to do it.

Thanks

i tried this switching default OTG port for 5a and it didn’t change anything.

on 5a the otg port is already designated on the upper of the usb3 ports but i want to swap it to use for peripherals.

" 1. 3.0 USB upper port defaults to OTG port,Can be modified to host using adb
adb root
adb shell ‘echo host > /sys/kernel/debug/usb/fc000000.usb/mode’"

above did not work