cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
1,522 Views
Registered: ‎10-13-2018

failed build petalinux

Jump to solution

hi all

hi

i take error while build petalinux.  i don't understand from this error. would you help me.

$ petalinux-build -x mrproper

$ petalinux-build

 

| arm-xilinx-linux-gnueabi-gcc --sysroot=/opt/pkg/petalinux/2019.1/plate_dem/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/recipe-sysroot -E -Wp,-MD,./.u-boot.lds.d -D__KERNEL__ -D__UBOOT__ -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -mword-relocations -fno-pic -mno-unaligned-access -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float -pipe -march=armv7-a -D__LINUX_ARM_ARCH__=7 -mtune=generic-armv7-a -I/opt/pkg/petalinux/2019.1/plate_dem/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/git/arch/arm/mach-zynq/include -Iinclude -I/opt/pkg/petalinux/2019.1/plate_dem/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/git/include -I/opt/pkg/petalinux/2019.1/plate_dem/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/git/arch/arm/include -include /opt/pkg/petalinux/2019.1/plate_dem/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/git/include/linux/kconfig.h -nostdinc -isystem /opt/pkg/petalinux/2019.1/plate_dem/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/recipe-sysroot-native/usr/bin/arm-xilinx-linux-gnueabi/../../lib/arm-xilinx-linux-gnueabi/gcc/arm-xilinx-linux-gnueabi/8.2.0/include -ansi -include /opt/pkg/petalinux/2019.1/plate_dem/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/git/include/u-boot/u-boot.lds.h -DCPUDIR=arch/arm/cpu/armv7 -D__ASSEMBLY__ -x assembler-with-cpp -std=c99 -P -o u-boot.lds /opt/pkg/petalinux/2019.1/plate_dem/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/git/arch/arm/mach-zynq/u-boot.lds
| arm-xilinx-linux-gnueabi-ld.bfd -pie --gc-sections -Bstatic --no-dynamic-linker -Ttext 0x00400000 -o u-boot -T u-boot.lds arch/arm/cpu/armv7/start.o --start-group arch/arm/cpu/built-in.o arch/arm/cpu/armv7/built-in.o arch/arm/lib/built-in.o arch/arm/mach-zynq/built-in.o board/xilinx/zynq/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/mtd/built-in.o drivers/mtd/onenand/built-in.o drivers/mtd/spi/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/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 arch/arm/lib/eabi_compat.o arch/arm/lib/lib.a -Map u-boot.map; true
| arm-xilinx-linux-gnueabi-ld.bfd: drivers/built-in.o: in function `mmc_block_op':
| /opt/pkg/petalinux/2019.1/plate_dem/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/git/drivers/dfu/dfu_mmc.c:29: undefined reference to `find_mmc_device'
| arm-xilinx-linux-gnueabi-ld.bfd: /opt/pkg/petalinux/2019.1/plate_dem/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/git/drivers/dfu/dfu_mmc.c:51: undefined reference to `mmc_get_blk_desc'
| arm-xilinx-linux-gnueabi-ld.bfd: /opt/pkg/petalinux/2019.1/plate_dem/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/git/drivers/dfu/dfu_mmc.c:64: undefined reference to `mmc_get_blk_desc'
| arm-xilinx-linux-gnueabi-ld.bfd: /opt/pkg/petalinux/2019.1/plate_dem/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/git/drivers/dfu/dfu_mmc.c:67: undefined reference to `mmc_get_blk_desc'
| arm-xilinx-linux-gnueabi-ld.bfd: drivers/built-in.o: in function `dfu_fill_entity_mmc':
| /opt/pkg/petalinux/2019.1/plate_dem/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/git/drivers/dfu/dfu_mmc.c:327: undefined reference to `find_mmc_device'
| arm-xilinx-linux-gnueabi-ld.bfd: /opt/pkg/petalinux/2019.1/plate_dem/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/git/drivers/dfu/dfu_mmc.c:334: undefined reference to `mmc_init'
| arm-xilinx-linux-gnueabi-ld.bfd: /opt/pkg/petalinux/2019.1/plate_dem/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/git/drivers/dfu/dfu_mmc.c:357: undefined reference to `mmc_get_blk_desc'
| ERROR: oe_runmake failed
| make[1]: *** [/opt/pkg/petalinux/2019.1/plate_dem/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/git/Makefile:1495: u-boot] Error 1
| make[1]: Leaving directory '/opt/pkg/petalinux/2019.1/plate_dem/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/build'
| make: *** [Makefile:148: sub-make] Error 2
| make: Leaving directory '/opt/pkg/petalinux/2019.1/plate_dem/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/git'
| WARNING: /opt/pkg/petalinux/2019.1/plate_dem/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/temp/run.do_compile.23229:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /opt/pkg/petalinux/2019.1/plate_dem/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/temp/log.do_compile.23229)
ERROR: Task (/opt/pkg/petalinux/2019.1/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-xlnx_2019.1.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4500 tasks of which 3421 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/opt/pkg/petalinux/2019.1/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-xlnx_2019.1.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project
alp_xilinx@alpxilinx-VirtualBox:/opt/pkg/petalinux/2019.1/plate_dem$

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Adventurer
Adventurer
1,395 Views
Registered: ‎12-26-2016

Re: failed build petalinux

Jump to solution

Great to hear! Have fun debugging

Please close the thread ;)

View solution in original post

0 Kudos
12 Replies
Highlighted
Moderator
Moderator
1,487 Views
Registered: ‎12-04-2016

Re: failed build petalinux

Jump to solution

Hi @mspalpsahan 

Try disabling DFU support in uboot and rebuild to see if these errors disappears:

petalinux-config -c u-boot
Device Drivers --->[] USB support ---> un select

2. Command line interface --> Device access commands --> [ ] usb -- Un select

                                                                                           ---> [ ] dfu --- > un select

 

0 Kudos
Highlighted
Adventurer
Adventurer
1,477 Views
Registered: ‎12-26-2016

Re: failed build petalinux

Jump to solution

hi @mspalpsahan 

do you have a zynq device? If yes: Did you configured an SD card on your MIO within the PS?

Could you provide a bit more information about your system?

Cheers
Thomas

0 Kudos
Highlighted
Contributor
Contributor
1,457 Views
Registered: ‎10-13-2018

Re: failed build petalinux

Jump to solution

hi

thank you for interested

its not working. please help me about petalinux compile

do you have a zynq device? yes i have two device ZYBO-z7-20. and custom pcb board with Z702 but i am use zybo-z7 -20 device

If yes: Did you configured an SD card on your MIO within the PS? yes configured

Could you provide a bit more information about your system? yes i provide a bit

I'm doing the following steps

Macine device name `zc702`

$ source settings.sh

$ echo $PETALINUX
output:
/opt/pkg/petalinux/2019.1

$ petalinux-create --type project --template zynq --name /plate_test

$ cd /plate_test

$ petalinux-config --get-hw-description=/home/alp_xilinx/public/Xilinx_peta/zybo_petalinux-master_usbcamera/zybo_petalinux-master/zybo_petalinux_webcam/zybo_petalinux_webcam.sdk/block_design_wrapper_hw_platform_1/

$ petalinux-config -c kernel

$ petalinux-config -c rootfs

$ petalinux-build

 

thank you

Alpaslan sahan

0 Kudos
Highlighted
Adventurer
Adventurer
1,445 Views
Registered: ‎12-26-2016

Re: failed build petalinux

Jump to solution

Your commands seem to be okay.

Which Ubuntu Version do you use? Do you have also Vivado 2019.1? Where does the build process fail?

0 Kudos
Highlighted
Contributor
Contributor
1,436 Views
Registered: ‎10-13-2018

Re: failed build petalinux

Jump to solution

hi

first, i use ubuntu 16.04 LTS in the virtual box. due to other problems i am use ubuntu 18.04.3 LTS now.
yes have vivado 2019.1


$ petalinux-build
output:
[INFO] building project
[INFO] sourcing bitbake
[INFO] generating user layers
INFO: bitbake petalinux-user-image
Loading cache: 100% |############################################| Time: 0:00:04
Loaded 3811 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:00:13
Parsing of 2777 .bb files complete (2776 cached, 1 parsed). 3812 targets, 163 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#######################################| Time: 0:00:16
Checking sstate mirror object availability: 100% |###############| Time: 0:01:09
Sstate summary: Wanted 194 Found 16 Missed 356 Current 1124 (8% match, 86% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: u-boot-xlnx-v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0 do_compile: oe_runmake failed
ERROR: u-boot-xlnx-v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0 do_compile: Function failed: do_compile (log file is located at /opt/pkg/petalinux/2019.1/plate_test/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/temp/log.do_compile.3185)
ERROR: Logfile of failure stored in: /opt/pkg/petalinux/2019.1/plate_test/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/temp/log.do_compile.3185

 

thank you very much

Alpaslan sahan

0 Kudos
Highlighted
Adventurer
Adventurer
1,433 Views
Registered: ‎12-26-2016

Re: failed build petalinux

Jump to solution
whats inside /opt/pkg/petalinux/2019.1/plate_test/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/temp/log.do_compile.3185 ?

could you provide your uboot bbappend recipies?
0 Kudos
Highlighted
Contributor
Contributor
1,431 Views
Registered: ‎10-13-2018

Re: failed build petalinux

Jump to solution

hi

ok

file attachment.

thank you

Alpaslan sahan

0 Kudos
Highlighted
Adventurer
Adventurer
1,419 Views
Registered: ‎12-26-2016

Re: failed build petalinux

Jump to solution
please include the mmc command in the u-boot.
you can search for this by pressing "/" and type "mmc"
0 Kudos
Highlighted
Contributor
Contributor
1,415 Views
Registered: ‎10-13-2018

Re: failed build petalinux

Jump to solution

hi

i am sorry. i did not understand. could you send detail about mmc command

best regards

0 Kudos
Highlighted
Contributor
Contributor
1,397 Views
Registered: ‎10-13-2018

Re: failed build petalinux

Jump to solution

hi

ok. i did find mmc command. I can make build.

thank you very much

Alpalsan sahan

0 Kudos
Highlighted
Adventurer
Adventurer
1,396 Views
Registered: ‎12-26-2016

Re: failed build petalinux

Jump to solution

Great to hear! Have fun debugging

Please close the thread ;)

View solution in original post

0 Kudos
Highlighted
Observer
Observer
1,005 Views
Registered: ‎01-03-2019

Re: failed build petalinux

Jump to solution
this problem occur due to some package that not fit for the board. if you build project default configuration then you found it's working.
0 Kudos