Maxime Ripard wrote
> On Thu, Sep 07, 2017 at 01:23:32PM +0300, rivael_il wrote:
>>
>> Hello Maxime!
>>
>> Thank you for your answer.
>> How can I set "peripheral" mode on the USB in u-boot?
>
> Enable CONFIG_USB_MUSB_GADGET instead of HOST.
>
> Maxime
In which file should this be done?
I
Maxime Ripard wrote
> Both are peripheral-only features, not OTG. OTG is about switching
> from peripheral to host based on the ID-pin, and this what is not
> supported in U-Boot.
>
> However, peripheral is, and it's already supported for the Allwinner
> SoCs. We use it for things like fastboot.
On Fri, Sep 08, 2017 at 04:45:31PM +0300, rivael_il wrote:
> It got compiled. But the u-boot-sunxi-with-spl.bin still generate HOST
> controller rather than Peripheral USB.
> I can't see it in lsusb.
>
> Here is the u-boot console:
>
> => usb stop
> stopping USB..
> => usb tree
> USB is stopped.
It got compiled. But the u-boot-sunxi-with-spl.bin still generate HOST
controller rather than Peripheral USB.
I can't see it in lsusb.
Here is the u-boot console:
=> usb stop
stopping USB..
=> usb tree
USB is stopped. Please issue 'usb start' first.
=> usb start
starting USB...
USB0: USB EHCI
On Fri, Sep 08, 2017 at 03:38:42PM +0300, rivael_il wrote:
> Thank you Maxime!
>
> I have removed the USB_HOST configuration. Now I get:
>
> LD u-boot
> drivers/usb/host/built-in.o: In function `ehci_usb_remove':
> /home/pi/otg/mikboot/u-boot/drivers/usb/host/ehci-sunxi.c:78: undefined
>
Thank you Maxime!
I have removed the USB_HOST configuration. Now I get:
LD u-boot
drivers/usb/host/built-in.o: In function `ehci_usb_remove':
/home/pi/otg/mikboot/u-boot/drivers/usb/host/ehci-sunxi.c:78: undefined
reference to `ehci_deregister'
drivers/usb/host/built-in.o: In function
On Thu, Sep 07, 2017 at 01:23:32PM +0300, rivael_il wrote:
>
> Hello Maxime!
>
> Thank you for your answer.
> How can I set "peripheral" mode on the USB in u-boot?
Enable CONFIG_USB_MUSB_GADGET instead of HOST.
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
Hello Maxime!
Thank you for your answer.
How can I set "peripheral" mode on the USB in u-boot?
Thank you,
Michael
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot
Hi,
On Thu, Sep 07, 2017 at 12:05:20PM +0300, rivael_il wrote:
> Hello Kever Yang,
>
> Thank you for your prompt response.
>
> This is an important feature, as 'otg' mode allow the board to stay
> responsive to the computer driving it. Especially sunxi-fel and
> ttyusb.
Both are
Hello Kever Yang,
Thank you for your prompt response.
This is an important feature, as 'otg' mode allow the board to stay responsive
to the computer driving it. Especially sunxi-fel and ttyusb.
I might be interested in implementing it in u-boot.
How can I do that? What is the code size
Hi Michael,
There is no 'otg_mode' in U-Boot, the driver framework is different
with kernel.
If you want to use usb device, you can use cmd like this:
ums 0 mmc 0
If you want to use usb host, you can use:
usb start
this command will enumerate all the device connect to the host port.
Hello u-booters!
I want to load u-boot-sunxi-with-spl.bin and make it operate the USB in otg
mode.
(Where the host can still be connected to the board).
How can I achieve this?
(I have attempted to use: "usb0:dr_mode=otg,phy_type=utmi\0" without success).
Thank you,
Michael
12 matches
Mail list logo