From mboxrd@z Thu Jan 1 00:00:00 1970 From: rivael_il Date: Fri, 8 Sep 2017 15:38:42 +0300 Subject: [U-Boot] Starting u-boot in USB otg mode In-Reply-To: <20170907111557.6dbjojrmz2adfbta@flea.lan> References: <003701d326f6$710e28c0$532a7a40$@com> <7b71a5b8-48de-8568-8abf-c081da93ec78@rock-chips.com> <006e01d327b8$70f92c00$52eb8400$@com> <20170907094346.4akmy3krur3mhrmm@flea.lan> <008101d327c3$5dbed5d0$193c8170$@com> <20170907111557.6dbjojrmz2adfbta@flea.lan> Message-ID: <00ff01d3289f$6ca8f6c0$45fae440$@com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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