en:bpi-r2:otg
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:bpi-r2:otg [2020/11/29 16:18] – created frank | en:bpi-r2:otg [2023/06/08 17:06] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== OTG ====== | ||
+ | OTG is not yet working, page only created to save debug-steps with musb-driver merged in 5.7 | ||
+ | |||
+ | https:// | ||
+ | |||
+ | kernel-options: | ||
+ | |||
+ | CONFIG_CONFIGFS_FS=y | ||
+ | #OTG | ||
+ | CONFIG_USB_CONN_GPIO=y | ||
+ | CONFIG_USB_MUSB_HDRC=y | ||
+ | CONFIG_USB_MUSB_MEDIATEK=y | ||
+ | CONFIG_NOP_USB_XCEIV=y | ||
+ | CONFIG_USB_CONFIGFS=y | ||
+ | # | ||
+ | # | ||
+ | CONFIG_USB_GADGET=y | ||
+ | CONFIG_USB_MUSB_DUAL_ROLE=y | ||
+ | CONFIG_USB_INVENTRA_DMA=y | ||
+ | |||
+ | for dma-error i enabled | ||
+ | |||
+ | CONFIG_USB_INVENTRA_DMA=y | ||
+ | |||
+ | and additional for role-switch | ||
+ | |||
+ | CONFIG_USB_GADGET=y | ||
+ | CONFIG_USB_MUSB_DUAL_ROLE=y | ||
+ | |||
+ | < | ||
+ | mount -t configfs none / | ||
+ | cd / | ||
+ | mkdir g1 | ||
+ | cd g1 | ||
+ | echo " | ||
+ | echo " | ||
+ | mkdir strings/ | ||
+ | echo " | ||
+ | echo " | ||
+ | echo " | ||
+ | mkdir functions/ | ||
+ | mkdir configs/c.1 | ||
+ | mkdir configs/ | ||
+ | ln -s functions/ | ||
+ | ls / | ||
+ | echo xxx > UDC | ||
+ | </ |