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:在 U-boot 中启用 USB

Guru**** 2582405 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/632130/am3352-usb-enable-in-u-boot

器件型号:AM3352

大家好、

我们设计了一个具有 AM3352 处理器和1 GB DDR3和512 MB NAND 闪存的定制板。 我们有两个 USB 端口。 我们正在尝试在 U-Boot 本身中启用和测试。 我们使用的是 AM335x-EVM-Linux-RT-SDK-src-04.00.00.04.tar.xz。 当我们在 U-Boot 中启用 SPL/TPL -->支持 USB 小工具驱动程序时,我们在 U-Boot 编译中会遇到以下问题:

LD     u-boot
common/built-in.o:在函数`run_USB_dln_gadget'中:
/home/cornet123/u-boot/common/dfu.c:74:未定义对`USB_gadget_handle_interrupts"的引用
/home/cornet123/u-boot/common/dfu.c:84:未定义对`USB_gadget_handle_interrupts"的引用
drivers/USB/gadget/built-in.o:在函数`USB_compose_register"中:
/home/cornet123/u-boot/drivers/usb/gadget/composite.c:1089:未定义对`USB_gadget_register_driver'的引用
drivers/USB/gadget/built-in.o:在函数中`USB_compose_unregister':
/home/cornet123/u-boot/drivers/usb/gadget/composite.c:1107:未定义对`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断言失败/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断言失败/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断言失败/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:目标'u-boot'的配方失败
make:***[u-boot]错误1.

此致、

Avinash N

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    软件团队已收到通知。 他们将在这里作出回应。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    [引用 user="Avinash Neethi1"]当我们启用 SPL/TPL -->支持 U-Boot 中的 USB 小工具驱动程序时,U-Boot 编译中会出现以下问题,

    您是否对 uboot 源代码进行了任何更改?

    执行命令"make AM335x_EVM_config"后、应已在 SPL 中启用 USB 小工具驱动程序支持、您不必专门启用此选项。

    顺便 说一下、我尝试在 AM335x-EVM-Linux-RT-SDK-src-04.00.00.04.tar.xz 中构建 uboot、但未看到此类错误。