cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dhchen
Visitor
Visitor
202 Views
Registered: ‎12-22-2020

PETALINUX BUILD报错

PETALINUX在build工程时如下错误:

| /home/dhchen/alinx/cdh_1222/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/include/linux/usb/gadget.h:972: undefined reference to `board_usb_init'
| aarch64-xilinx-linux-ld.bfd: drivers/gpio/built-in.o: in function `pca953x_write_single':
| /home/dhchen/alinx/cdh_1222/petalinux/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':
| /home/dhchen/alinx/cdh_1222/petalinux/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':
| /home/dhchen/alinx/cdh_1222/petalinux/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':
| /home/dhchen/alinx/cdh_1222/petalinux/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'
| /bin/sh: line 1: 66702 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/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 /home/dhchen/alinx/cdh_1222/petalinux/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]: *** [/home/dhchen/alinx/cdh_1222/petalinux/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 '/home/dhchen/alinx/cdh_1222/petalinux/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 '/home/dhchen/alinx/cdh_1222/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git'
| WARNING: /home/dhchen/alinx/cdh_1222/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/temp/run.do_compile.59710:1 exit 1 from 'exit 1'
|
ERROR: Task (/home/dhchen/alinx/cdh_1222/petalinux/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-xlnx_2020.1.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3418 tasks of which 2687 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/dhchen/alinx/cdh_1222/petalinux/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-xlnx_2020.1.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project

重新清除编译错误后重新编译依旧如下,请问各位该问题该如何解决,是什么问题?

0 Kudos
1 Reply
sandrao
Community Manager
Community Manager
192 Views
Registered: ‎08-08-2007

Hi again @dhchen 

FYI : https://forums.xilinx.com/t5/Announcements/Did-you-know-that-we-have-a-Chinese-Language-Forums/td-p/1172814

Thanks,

Sandy


------------------------------------------------------------------------------------------------

Don’t forget to reply, kudo, and accept as solution.

If starting with Versal take a look at our Versal Design Process Hub , Versal Blogs and the Versal Useful Resources .

------------------------------------------------------------------------------------------------
0 Kudos