取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
lucien-wang
Visitor
Visitor
424 次查看
注册日期: ‎02-23-2021

petalinux-build去掉vivado中的usb选项,依然失败

下边是build报错的日志,附件也有

make -f /mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/scripts/Makefile.build obj=examples
make -f /mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/scripts/Makefile.build obj=examples/standalone
aarch64-xilinx-linux-gcc --sysroot=/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/recipe-sysroot -Wp,-MD,examples/standalone/.hello_world.o.d -nostdinc -isystem /mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux/../../lib/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/9.2.0/include -Iinclude -I/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/include -I/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/arch/arm/include -include /mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/include/linux/kconfig.h -I/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/examples/standalone -Iexamples/standalone -D__KERNEL__ -D__UBOOT__ -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE -Os -fno-stack-protector -fno-delete-null-pointer-checks -fmacro-prefix-map=/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/= -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -fno-toplevel-reorder -D__ARM__ -fno-pic -mstrict-align -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -fno-common -ffixed-x18 -pipe -march=armv8-a -D__LINUX_ARM_ARCH__=8 -I/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/arch/arm/mach-zynqmp/include -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(hello_world)" -D"KBUILD_MODNAME=KBUILD_STR(hello_world)" -c -o examples/standalone/hello_world.o /mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/examples/standalone/hello_world.c
aarch64-xilinx-linux-gcc --sysroot=/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/recipe-sysroot -Wp,-MD,examples/standalone/.stubs.o.d -nostdinc -isystem /mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux/../../lib/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/9.2.0/include -Iinclude -I/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/include -I/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/arch/arm/include -include /mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/include/linux/kconfig.h -I/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/examples/standalone -Iexamples/standalone -D__KERNEL__ -D__UBOOT__ -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE -Os -fno-stack-protector -fno-delete-null-pointer-checks -fmacro-prefix-map=/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/= -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -fno-toplevel-reorder -D__ARM__ -fno-pic -mstrict-align -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -fno-common -ffixed-x18 -pipe -march=armv8-a -D__LINUX_ARM_ARCH__=8 -I/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/arch/arm/mach-zynqmp/include -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(stubs)" -D"KBUILD_MODNAME=KBUILD_STR(stubs)" -c -o examples/standalone/stubs.o /mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/examples/standalone/stubs.c
aarch64-xilinx-linux-ld.bfd -r -o examples/standalone/libstubs.o examples/standalone/stubs.o
aarch64-xilinx-linux-ld.bfd -Ttext 0xc100000 -g -o examples/standalone/hello_world -e hello_world examples/standalone/hello_world.o examples/standalone/libstubs.o -L /mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/recipe-sysroot/usr/lib/aarch64-xilinx-linux/9.2.0 -lgcc
aarch64-xilinx-linux-objcopy -j .text -j .secure_text -j .secure_data -j .rodata -j .data -j .u_boot_list -j .rela.dyn -j .got -j .got.plt -j .binman_sym_table -j .text_rest -j .dtb.init.rodata -O srec examples/standalone/hello_world examples/standalone/hello_world.srec
aarch64-xilinx-linux-objcopy -j .text -j .secure_text -j .secure_data -j .rodata -j .data -j .u_boot_list -j .rela.dyn -j .got -j .got.plt -j .binman_sym_table -j .text_rest -j .dtb.init.rodata -O binary examples/standalone/hello_world examples/standalone/hello_world.bin
aarch64-xilinx-linux-ld.bfd -pie --gc-sections -Bstatic --no-dynamic-linker -Ttext 0x8000000 -o u-boot -T u-boot.lds arch/arm/cpu/armv8/start.o --start-group arch/arm/cpu/built-in.o arch/arm/cpu/armv8/built-in.o arch/arm/lib/built-in.o arch/arm/mach-zynqmp/built-in.o board/xilinx/zynqmp/built-in.o cmd/built-in.o common/built-in.o disk/built-in.o drivers/built-in.o drivers/dma/built-in.o drivers/gpio/built-in.o drivers/i2c/built-in.o drivers/net/built-in.o drivers/net/phy/built-in.o drivers/power/built-in.o drivers/power/battery/built-in.o drivers/power/domain/built-in.o drivers/power/fuel_gauge/built-in.o drivers/power/mfd/built-in.o drivers/power/pmic/built-in.o drivers/power/regulator/built-in.o drivers/serial/built-in.o drivers/spi/built-in.o drivers/usb/cdns3/built-in.o drivers/usb/common/built-in.o drivers/usb/dwc3/built-in.o drivers/usb/emul/built-in.o drivers/usb/eth/built-in.o drivers/usb/gadget/built-in.o drivers/usb/gadget/udc/built-in.o drivers/usb/host/built-in.o drivers/usb/musb-new/built-in.o drivers/usb/musb/built-in.o drivers/usb/phy/built-in.o drivers/usb/ulpi/built-in.o env/built-in.o fs/built-in.o lib/built-in.o net/built-in.o --end-group -L /mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/recipe-sysroot/usr/lib/aarch64-xilinx-linux/9.2.0 -lgcc -Map u-boot.map; true
aarch64-xilinx-linux-ld.bfd: drivers/gpio/built-in.o: in function `pca953x_write_single':
/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/drivers/gpio/pca953x_gpio.c:83: undefined reference to `dm_i2c_write'
aarch64-xilinx-linux-ld.bfd: drivers/gpio/built-in.o: in function `pca953x_read_regs':
/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/drivers/gpio/pca953x_gpio.c:123: undefined reference to `dm_i2c_read'
aarch64-xilinx-linux-ld.bfd: drivers/gpio/built-in.o: in function `pca953x_write_regs':
/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/drivers/gpio/pca953x_gpio.c:144: undefined reference to `dm_i2c_write'
aarch64-xilinx-linux-ld.bfd: drivers/gpio/built-in.o: in function `pca953x_read_single':
/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/drivers/gpio/pca953x_gpio.c:101: undefined reference to `dm_i2c_read'
aarch64-xilinx-linux-ld.bfd: drivers/usb/eth/built-in.o: in function `usb_host_eth_scan':
/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/drivers/usb/eth/usb_ether.c:264: undefined reference to `eth_unregister'
aarch64-xilinx-linux-ld.bfd: drivers/usb/eth/built-in.o: in function `probe_valid_drivers':
/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/drivers/usb/eth/usb_ether.c:239: undefined reference to `eth_register'
aarch64-xilinx-linux-ld.bfd: /mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/drivers/usb/eth/usb_ether.c:240: undefined reference to `eth_write_hwaddr'
aarch64-xilinx-linux-ld.bfd: drivers/usb/eth/built-in.o: in function `asix_recv':
/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/drivers/usb/eth/asix.c:565: undefined reference to `net_process_received_packet'
/bin/sh: line 1: 19349 Segmentation fault (core dumped) aarch64-xilinx-linux-ld.bfd -pie --gc-sections -Bstatic --no-dynamic-linker -Ttext 0x8000000 -o u-boot -T u-boot.lds arch/arm/cpu/armv8/start.o --start-group arch/arm/cpu/built-in.o arch/arm/cpu/armv8/built-in.o arch/arm/lib/built-in.o arch/arm/mach-zynqmp/built-in.o board/xilinx/zynqmp/built-in.o cmd/built-in.o common/built-in.o disk/built-in.o drivers/built-in.o drivers/dma/built-in.o drivers/gpio/built-in.o drivers/i2c/built-in.o drivers/net/built-in.o drivers/net/phy/built-in.o drivers/power/built-in.o drivers/power/battery/built-in.o drivers/power/domain/built-in.o drivers/power/fuel_gauge/built-in.o drivers/power/mfd/built-in.o drivers/power/pmic/built-in.o drivers/power/regulator/built-in.o drivers/serial/built-in.o drivers/spi/built-in.o drivers/usb/cdns3/built-in.o drivers/usb/common/built-in.o drivers/usb/dwc3/built-in.o drivers/usb/emul/built-in.o drivers/usb/eth/built-in.o drivers/usb/gadget/built-in.o drivers/usb/gadget/udc/built-in.o drivers/usb/host/built-in.o drivers/usb/musb-new/built-in.o drivers/usb/musb/built-in.o drivers/usb/phy/built-in.o drivers/usb/ulpi/built-in.o env/built-in.o fs/built-in.o lib/built-in.o net/built-in.o --end-group -L /mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/recipe-sysroot/usr/lib/aarch64-xilinx-linux/9.2.0 -lgcc -Map u-boot.map
make[1]: *** [/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/Makefile:1671: u-boot] Error 139
make[1]: *** Deleting file 'u-boot'
make[1]: Leaving directory '/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/build'
make: *** [Makefile:167: sub-make] Error 2
make: Leaving directory '/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git'
WARNING: /mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/temp/run.do_compile.8051:1 exit 1 from 'exit 1'

我参考过这个下边这个帖子,去掉了vivado中的usb,还是会报错

https://forums.xilinx.com/t5/%E5%B5%8C%E5%85%A5%E5%BC%8F-%E5%B7%A5%E5%85%B7-%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/PETALINUX-BUILD%E5%A4%B1%E8%B4%A5/m-p/1188645#M6996

我试过在vivado中添加或者删减些硬件,每次报错都有这句:

/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/drivers/usb/eth/usb_ether.c:264: undefined reference to `eth_unregister'

帮忙看看!

0 项奖励
7 回复数
chaoz
Xilinx Employee
Xilinx Employee
366 次查看
注册日期: ‎09-14-2018

你的u-boot部分source code有做过改动吗?看起来都是源码compile时报的引用未定义

----------------------------------------------------------------------------------------------
如果帖子有帮助,别忘“接受为解决方案”或“奖励”。谢谢!
Don't forget to "Accept as solution" or "Kudo" if it helps. Thanks!
----------------------------------------------------------------------------------------------

lucien-wang
Visitor
Visitor
325 次查看
注册日期: ‎02-23-2021

没有改动过,整个过程是用petalinux的命令进入配置界面配置的

0 项奖励
lucien-wang
Visitor
Visitor
324 次查看
注册日期: ‎02-23-2021

我也看到了引用未定义,也试着勾选或者删除了vivado中的外设,并再次编译,都是类似的错误,说是未定义,而且每一次都会有这个未定义

/mnt/p2/zu3eg-test/3eg/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/drivers/usb/eth/usb_ether.c:264: undefined reference to `eth_unregister'

0 项奖励
chaoz
Xilinx Employee
Xilinx Employee
294 次查看
注册日期: ‎09-14-2018

有试着在petalinux-config -c kernel中把usb ethernet相关的选项去掉吗?比如USB下Ethernet gadget.

----------------------------------------------------------------------------------------------
如果帖子有帮助,别忘“接受为解决方案”或“奖励”。谢谢!
Don't forget to "Accept as solution" or "Kudo" if it helps. Thanks!
----------------------------------------------------------------------------------------------

 

lucien-wang
Visitor
Visitor
284 次查看
注册日期: ‎02-23-2021

我试试

0 项奖励
lucien-wang
Visitor
Visitor
168 次查看
注册日期: ‎02-23-2021

我试了把uboot和kernel中的driver中的usb选项都去掉,还是会报错
但是运行petalinux-config把autoconfig uboot去掉后,编译就成功了,是不是2020.1这个版本在3eg上有bug

3eg之前适用的版本是哪个?比如百度的edge开发板,他们用的是哪个版本的petalinux和vivado开发的,我想试试?

0 项奖励
chaoz
Xilinx Employee
Xilinx Employee
153 次查看
注册日期: ‎09-14-2018

Hi @lucien-wang 不太清楚百度的edge开发板。方便的话你导出BSP,我有空时测下看看?

----------------------------------------------------------------------------------------------
如果帖子有帮助,别忘“接受为解决方案”或“奖励”。谢谢!
Don't forget to "Accept as solution" or "Kudo" if it helps. Thanks!
----------------------------------------------------------------------------------------------

0 项奖励