On 30.6.2016 20:21, Michal Suchanek wrote: > On 30 June 2016 at 20:06, Michal Suchanek <[email protected]> wrote: >> Hello, >> >> On 30 June 2016 at 16:44, Ondřej Jirman <[email protected]> wrote: >>> Hi, >>> >>> hopefuly, it was the NPE that I fixed. It was specifically in the H3 usb >>> phy code path for phy0. So I believe it was untested, >>> because I didn't find any dts file that would use phy0. >>> >> >> This WorksForMe(TM). > > There is still small problem left. When I boot with the USB cable > connected I have to disconnect and reconnect the cable to get the > gadget working. >
Good to know, I'll test this case. It will probably be something around the iddet handling during phy0 initialization, which leads to the connected cable being treated as OTG, which would turn the usb port into host mode. You can verify that by looking into sysfs where there's an attribute that tells the current mode (peripheral / host). I don't rember where exactly it could be found. Or you can force the mode to peripheral in the dts. That may be a workaround for now. regards, o. >> >>> >>> On 30.6.2016 07:17, [email protected] wrote: >>>> Nice work. >>>> Sure i will try your path, last time i tried otg i had kernel exception >>>> when loading musb driver. >>>> I would like setup usb otg in device mode as g_ether or cdrom drive >>>> emulation to loading bootable iso with gpio sw for iso selection yes i >>>> dream :) > > Actually, the cdrom drive emulation is not out of question. You will > need to tune the linux mass storage gadget to identify as CD-rom > rather than USB stick. I wanted this for IDE CD-rom. The systems that > boot from USB CD-rom usually can do USB stick too. > > Thanks > > Michal > -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature
