This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3352: USB enable in U-boot

Part Number: AM3352


Hi All,

We have designed a customized board with AM3352 processor with 1 GB DDR3 and 512 MB NAND Flash. We have TWO USB ports. We are trying to Enable and test in U-Boot itself. We are using am335x-evm-linux-rt-sdk-src-04.00.00.04.tar.xz. When we enable the SPL/TPL --> Support USB Gadget drivers in U-Boot we are getting the following issue in U-Boot compilation,

LD      u-boot
common/built-in.o: In function `run_usb_dnl_gadget':
/home/cornet123/u-boot/common/dfu.c:74: undefined reference to `usb_gadget_handle_interrupts'
/home/cornet123/u-boot/common/dfu.c:84: undefined reference to `usb_gadget_handle_interrupts'
drivers/usb/gadget/built-in.o: In function `usb_composite_register':
/home/cornet123/u-boot/drivers/usb/gadget/composite.c:1089: undefined reference to `usb_gadget_register_driver'
drivers/usb/gadget/built-in.o: In function `usb_composite_unregister':
/home/cornet123/u-boot/drivers/usb/gadget/composite.c:1107: undefined reference to `usb_gadget_unregister_driver'
/home/cornet123/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld.bfd: BFD (Linaro_Binutils-2017.05) 2.27.0.20161019 assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabihf/snapshots/binutils-gdb.git~linaro-local~linaro_binutils-2_27-branch/bfd/elf32-arm.c:8784
/home/cornet123/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld.bfd: BFD (Linaro_Binutils-2017.05) 2.27.0.20161019 assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabihf/snapshots/binutils-gdb.git~linaro-local~linaro_binutils-2_27-branch/bfd/elf32-arm.c:8784
/home/cornet123/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld.bfd: BFD (Linaro_Binutils-2017.05) 2.27.0.20161019 assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabihf/snapshots/binutils-gdb.git~linaro-local~linaro_binutils-2_27-branch/bfd/elf32-arm.c:8784
Makefile:1242: recipe for target 'u-boot' failed
make: *** [u-boot] Error 1

Regards,

Avinash N

  • The software team have been notified. They will respond here.
  • Avinash Neethi1 said:
    When we enable the SPL/TPL --> Support USB Gadget drivers in U-Boot we are getting the following issue in U-Boot compilation,

    Have you done any change in the uboot source code?

    After command "make am335x_evm_config", the USB gadget driver support should be already enabled in SPL, you don't have to enable this option specifically.

    By the way, I tried to build the uboot in am335x-evm-linux-rt-sdk-src-04.00.00.04.tar.xz, but don't see such error.