[U-Boot] USB: ci_udc fails to link in SPL when DM is active
Sven Schwermer
sven at svenschwermer.de
Mon Nov 12 07:31:08 UTC 2018
Hi,
I’m trying to build an SPL image for an iMX7 platform with the following options active:
CONFIG_SPL=y
CONFIG_SPL_USB_GADGET_SUPPORT=y
CONFIG_SPL_USB_SDP_SUPPORT=y
CONFIG_CMD_USB=y
CONFIG_USB=y
CONFIG_DM_USB=y
CONFIG_CI_UDC=y
CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_USB_FUNCTION_SDP=y
This leads to the SPL failing to link:
LD spl/u-boot-spl
drivers/built-in.o: In function `usb_gadget_register_driver':
/root/u-boot/drivers/usb/gadget/ci_udc.c:1019: undefined reference to `usb_setup_ehci_gadget'
scripts/Makefile.spl:364: recipe for target 'spl/u-boot-spl' failed
make[1]: *** [spl/u-boot-spl] Error 1
Makefile:1539: recipe for target 'spl/u-boot-spl' failed
make: *** [spl/u-boot-spl] Error 2
Is DM_USB in SPL with this driver not supported or should I have configured something else? I’m using the current mainline master branch.
Thanks,
Sven
More information about the U-Boot
mailing list