[U-Boot] Starting u-boot in USB otg mode
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 ___ 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
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 consequences here? 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
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
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_usb_probe': /home/pi/otg/mikboot/u-boot/drivers/usb/host/ehci-sunxi.c:69: undefined reference to `ehci_register' drivers/usb/host/built-in.o:(.u_boot_list_2_driver_2_ehci_sunxi+0x3c): undefined reference to `ehci_usb_ops' arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Raspbian) 2.25 assertion fail ../../bfd/elf32-arm.c:7827 arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Raspbian) 2.25 assertion fail ../../bfd/elf32-arm.c:7827 arm-linux-gnueabihf-ld.bfd: error: required section '.rel.plt' not found in the linker script arm-linux-gnueabihf-ld.bfd: final link failed: Invalid operation Makefile:1255: recipe for target 'u-boot' failed make: *** [u-boot] Error 1 Here is my .config USB reference: - CONFIG_INITIAL_USB_SCAN_DELAY=0 CONFIG_USB0_VBUS_PIN="" CONFIG_USB0_VBUS_DET="" CONFIG_USB0_ID_DET="" CONFIG_USB1_VBUS_PIN="" CONFIG_USB2_VBUS_PIN="" CONFIG_USB3_VBUS_PIN="" # CONFIG_SPL_MUSB_NEW_SUPPORT is not set # CONFIG_SPL_USB_HOST_SUPPORT is not set # CONFIG_SPL_USB_GADGET_SUPPORT is not set CONFIG_CMD_USB=y # CONFIG_CMD_USB_MASS_STORAGE is not set CONFIG_USB=y CONFIG_DM_USB=y # USB Host Controller Drivers # CONFIG_USB_XHCI_HCD is not set # CONFIG_USB_EHCI_HCD is not set # CONFIG_USB_OHCI_HCD is not set # CONFIG_USB_UHCI_HCD is not set # CONFIG_USB_DWC2 is not set # CONFIG_USB_DWC3 is not set # MUSB Controller Driver # CONFIG_USB_MUSB_HOST is not set CONFIG_USB_MUSB_GADGET=y # CONFIG_USB_MUSB_TI is not set CONFIG_USB_MUSB_SUNXI=y # USB peripherals CONFIG_USB_STORAGE=y CONFIG_USB_KEYBOARD=y CONFIG_USB_GADGET=y # CONFIG_USB_GADGET_ATMEL_USBA is not set # CONFIG_USB_GADGET_BCM_UDC_OTG_PHY is not set # CONFIG_USB_GADGET_DWC2_OTG is not set CONFIG_USB_GADGET_VBUS_DRAW=2 CONFIG_USB_GADGET_DUALSPEED=y # CONFIG_USB_GADGET_DOWNLOAD is not set # USB to Ethernet Controller Drivers # CONFIG_USB_ETHER_LAN75XX is not set # CONFIG_USB_ETHER_LAN78XX is not set Can you tell me how to fix this? 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
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.00 USB1: USB OHCI 1.0 USB2: USB EHCI 1.00 USB3: USB OHCI 1.0 scanning bus 0 for devices... 1 USB Device(s) found scanning bus 2 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found => usb tree USB device tree: 1 Hub (480 Mb/s, 0mA) u-boot EHCI Host Controller 1 Hub (480 Mb/s, 0mA) u-boot EHCI Host Controller => U-Boot SPL 2017.09-rc2-00168-g90ae53c-dirty (Sep 08 2017 - 11:26:35) DRAM: 1024 MiB ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot