[U-Boot] Starting u-boot in USB otg mode

2017-09-06 Thread rivael_il
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

Re: [U-Boot] Starting u-boot in USB otg mode

2017-09-07 Thread rivael_il
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 conseque

Re: [U-Boot] Starting u-boot in USB otg mode

2017-09-07 Thread rivael_il
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

Re: [U-Boot] Starting u-boot in USB otg mode

2017-09-08 Thread rivael_il
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 `ehci_

Re: [U-Boot] Starting u-boot in USB otg mode

2017-09-08 Thread rivael_il
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 1