UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer umer.sabeen
Observer
12,403 Views
Registered: ‎11-26-2015

petalinux failed to build linux error in making u-boot

Jump to solution

 

 

Hello

I am just moving from windows 7 to ubuntu 14.04, I installed petalinux 2015.2 and vivado 2015.5.2 and petalinux version 2015.2

I created the project $petalinux-create -t project -s ~/Avnet-Digilent-ZedBoard-v2015.2.1-final.bsp

then

$petalinux-build    it generate all the images/files

After that I added hardware description file in this project

$petalinux-config --get-hw-description=~/my_project/my_project.sdk/

petalinux-config (i set for sd card)

again run the petalinux-build command 

INFO: Checking component...
INFO: Generating make files and build linux
INFO: Generating make files for the subcomponents of linux
INFO: Building linux
[INFO ] pre-build linux/rootfs/fwupgrade
[INFO ] pre-build linux/rootfs/peekpoke
[INFO ] pre-build linux/rootfs/uWeb
[INFO ] build system.dtb
[ERROR] Error: /home/sana/my_program/gpio_spi/petalinux/zed_bsp_proj/Avnet-Digilent-ZedBoard-2015.2/subsystems/linux/configs/device-tree/system-top.dts:21.2-3 label or path, 'flash0', not found
[ERROR] make[1]: *** [system.dtb] Error 255
ERROR: Failed to build linux

then i disabled the followng lines

&flash0 {
compatible = "spansion,s25fl256s1";
};

again  petalinux-build

INFO: Checking component...
INFO: Generating make files and build linux
INFO: Generating make files for the subcomponents of linux
INFO: Building linux
[INFO ] pre-build linux/rootfs/fwupgrade
[INFO ] pre-build linux/rootfs/myapp
[INFO ] pre-build linux/rootfs/peekpoke
[INFO ] pre-build linux/rootfs/uWeb
[INFO ] build system.dtb
[INFO ] build linux/kernel
[INFO ] update linux/u-boot source
[INFO ] generate linux/u-boot configuration files
[INFO ] build linux/u-boot
[ERROR] make[4]: *** [lib/asm-offsets.s] Error 1
[ERROR] make[4]: *** [arch/arm/lib/asm-offsets.s] Error 1
[ERROR] make[3]: *** [prepare0] Error 2
[ERROR] make[2]: *** [sub-make] Error 2
[ERROR] make[1]: *** [petalinux/Avnet-Digilent-ZedBoard-2015.2/build/linux/u-boot/u-boot-plnx/u-boot] Error 2
ERROR: Failed to build linux

 

I found the some thread here but no solution

https://forums.xilinx.com/t5/Embedded-Linux/Petalinux-2014-2-build-error-u-boot/td-p/542299

https://forums.xilinx.com/t5/Embedded-Linux/Petalinux-fails-to-build-for-new-board-configuration/td-p/644918

 

If this is the solution how can i remove QsPI or any other solution???

thanks

 

 

0 Kudos
1 Solution

Accepted Solutions
Observer umer.sabeen
Observer
23,599 Views
Registered: ‎11-26-2015

Re: petalinux failed to build linux error in making u-boot

Jump to solution

Hello again

probem Solved :)

the error was in .hdf file. I dsabled the pin M_AXI_GP0_ACLK

Now i enabled it and connect to FCLK_CLK0

Works perfect

Sana

0 Kudos
2 Replies
Visitor kg.calrec
Visitor
12,345 Views
Registered: ‎11-09-2015

Re: petalinux failed to build linux error in making u-boot

Jump to solution

If I read you right, you did petalinux-build THEN imported the HDF? You need to do it the other way round.

 

So now do this:

 

Clean the build

petalinux-build -x mrproper

Import hardware description

petalinux-config --get-hw-description=/path/to/folder/containing/hdf

Make sure all the configurations are as desired

petalinux-config

petalinux-config -c kernel

petalinux-config -c rootfs

Build the system

petalinux-build

 

petalinux-build is really bad at passing on build error messages, and will often just carry on silently. If a certain component isn't building properly, change directory to the root of that component (u-boot for example) then runthe following to build it directly and get the error messages.

make clean

make all

Hope that helps.

0 Kudos
Observer umer.sabeen
Observer
23,600 Views
Registered: ‎11-26-2015

Re: petalinux failed to build linux error in making u-boot

Jump to solution

Hello again

probem Solved :)

the error was in .hdf file. I dsabled the pin M_AXI_GP0_ACLK

Now i enabled it and connect to FCLK_CLK0

Works perfect

Sana

0 Kudos