Page 1 of 1

USB device mode / USB gadget support

Posted: Wed Dec 03, 2014 8:05 pm
by GothAck
I was under the impression VoCore would support usb device mode, will we be able to use the usb gadget drivers within the kernel? These are currently disabled for the VoCore profile :/

Re: USB device mode / USB gadget support

Posted: Thu Dec 04, 2014 2:31 am
by Vonger
I think it is able to support many USB small things. I have tried USBHID, USBHDD.
That all depends on your USB driver.

Re: USB device mode / USB gadget support

Posted: Thu Dec 04, 2014 11:06 am
by GothAck
Right, but I want to set the usb into device mode, and have the VoCore show up as a usb device to a usb host (my computer, etc) with a filesystem I can write to. This requires the usb gadget driver in the kernel, which seems to be limited to other targets. Does the VoCore support usb device mode? I was under the impression it did.

From the config:

Symbol: USB_GADGET_SUPPORT [=n]
Type : boolean
Selected by: TARGET_brcm2708 [=n] && <choice> || TARGET_cns3xxx [=n] && <choice> || TARGET_imx6 [=n] && <choice> || TARGET_mxs [=n] && <choice> || TARGET_oxnas [=n] && <choice> || TARGET_omap24xx [=n] && <choice> && BROKEN [=n] || TARGET_omap [=n] && <choice> || TARGET_brcm63xx_generic [=n] && <choice> && TARGET_brcm63xx [=n] || TARGET_brcm63xx_smp [=n] && <choice> && TARGET_brcm63xx [=n]

Re: USB device mode / USB gadget support

Posted: Thu Dec 04, 2014 11:16 am
by GothAck
I believe https://dev.openwrt.org/browser/trunk/t ... ?rev=37058 should have brought in the required changes, strange that this was 18m ago. I will have to dig though the git history later on.

Re: USB device mode / USB gadget support

Posted: Thu Dec 04, 2014 4:39 pm
by GothAck
Okay, that patch was against a previous kernel ver. Gonna see if I can port it to 3.10 / 3.14 over the next week or so.

Re: USB device mode / USB gadget support

Posted: Tue Sep 22, 2015 10:04 pm
by franz86
Hi!

@GothAck: Did you already managed to get the usb gadget mode working on the VoCore? Or has anyone already managed it?

As far as I know the rt5350 is using the Designware USB controller. In the kernel_menuconfig there is also a setting USB_DWC2_PERIPHERAL which seems to me that this is the right setting for using the Linux USB Gadgets.

However I am not sure if it really works, also I don't know if it is necessary to tie some pin to VCC or GND so that the VoCore is used as USB Client device.

Any suggestions to this?

Thanks,
Franz