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: 
Adventurer
Adventurer
1,553 Views
Registered: ‎06-30-2016

PetaLinux System Image build error

Jump to solution

Hi all,

I'm trying to build a Petalinux system image to hopefully get my custom board booting linux with sd card.

I have Vivado 2017.2 and Petalinux 2017.4, is that OK?

I'm following the UG1144 and I've managed to do all the steps up to page 21 but when I run petalinux-build I get the following errors on the terminal:

p4.png

p5.png

 

And this is what is in the log file mentioned on the terminal (log.do_configure.27420):

 

DEBUG: Executing python function sysroot_cleansstate
DEBUG: Python function sysroot_cleansstate finished
DEBUG: Executing shell function do_configure
MISC_ARG is  -yamlconf /opt/pkg/petalinux-v2017.4/sdproj/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/device-tree-generation.yaml
APP_ARG is  -app "device-tree"
cmd is: xsct /opt/pkg/petalinux-v2017.4/sdproj/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/dtgen.tcl -ws /opt/pkg/petalinux-v2017.4/sdproj/build/../components/plnx_workspace/device-tree -pname device-tree-generation -rp /opt/pkg/petalinux-v2017.4/sdproj/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/git -processor ps7_cortexa9_0 -hdf /opt/pkg/petalinux-v2017.4/sdproj/build/tmp/deploy/images/plnx_arm/Xilinx-plnx_arm.hdf -arch 32  -app "device-tree"  -yamlconf /opt/pkg/petalinux-v2017.4/sdproj/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/device-tree-generation.yaml
INFO: [Hsi 55-1698] elapsed time for repository loading 9 seconds
hsi::open_hw_design: Time (s): cpu = 00:00:02 ; elapsed = 00:00:14 . Memory (MB): peak = 358.441 ; gain = 79.199 ; free physical = 193 ; free virtual = 6074
WARNING: ps7_i2c_0: No reset found
WARNING: ps7_usb_0: No reset found
Trying to assign a console::none which doesn't exists !!!
ERROR: [Hsi 55-1545] Problem running tcl command ::sw_device_tree::post_generate : Trying to assign a console::none which doesn't exists !!!
    while executing
"error "Trying to assign a console::$console_ip which doesn't exists !!!""
    (procedure "update_alias" line 27)
    invoked from within
"update_alias $os_handle"
    (procedure "::sw_device_tree::post_generate" line 3)
    invoked from within
"::sw_device_tree::post_generate device_tree"
ERROR: [Hsi 55-1443] Error(s) while running TCL procedure post_generate()
generate_target failed
    while executing
"error "generate_target failed""
    invoked from within
"if {[catch {hsi generate_target -dir $project} res]} {
    error "generate_target failed"
}"
    (file "/opt/pkg/petalinux-v2017.4/sdproj/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/dtgen.tcl" line 33)
WARNING: /opt/pkg/petalinux-v2017.4/sdproj/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/temp/run.do_configure.27420:1 exit 1 from 'eval xsct /opt/pkg/petalinux-v2017.4/sdproj/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/dtgen.tcl -ws /opt/pkg/petalinux-v2017.4/sdproj/build/../components/plnx_workspace/device-tree -pname device-tree-generation -rp /opt/pkg/petalinux-v2017.4/sdproj/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/git -processor ps7_cortexa9_0 -hdf /opt/pkg/petalinux-v2017.4/sdproj/build/tmp/deploy/images/plnx_arm/Xilinx-plnx_arm.hdf -arch 32 ${APP_ARG} ${MISC_ARG}'
ERROR: Function failed: do_configure (log file is located at /opt/pkg/petalinux-v2017.4/sdproj/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/temp/log.do_configure.27420)

 

 

Does anyone know why the building is failing? As mentioned before, it's a custom pcb and the SoC is a XC7Z020-1CLG400C.

Thank you in advance!

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
1,991 Views
Registered: ‎04-24-2017

Re: PetaLinux System Image build error

Jump to solution

Hi @alex83uk,

 

Looks like UART is missing in your design. Refer UG1144 page 17 and 18.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
6 Replies
Moderator
Moderator
1,992 Views
Registered: ‎04-24-2017

Re: PetaLinux System Image build error

Jump to solution

Hi @alex83uk,

 

Looks like UART is missing in your design. Refer UG1144 page 17 and 18.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
Adventurer
Adventurer
1,479 Views
Registered: ‎06-30-2016

Re: PetaLinux System Image build error

Jump to solution

Thank you Sandeep. I've added UART and it's now working.

0 Kudos
Adventurer
Adventurer
911 Views
Registered: ‎08-22-2018

Re: PetaLinux System Image build error

Jump to solution

Hallo,

 

I have same issue --------error "generate_target failed"

But after I tried to enable UART in my design, this issue appears again. What should I do now? Thanks

 

Holzmann

0 Kudos
Adventurer
Adventurer
884 Views
Registered: ‎06-30-2016

Re: PetaLinux System Image build error

Jump to solution
Hello Holzmann,
I'm sorry but I don't know. Adding the UART solved my problem.
Good luck.
0 Kudos
Adventurer
Adventurer
870 Views
Registered: ‎08-22-2018

Re: PetaLinux System Image build error

Jump to solution

Hallo,

 

thanks for reply, I solved it

0 Kudos
269 Views
Registered: ‎04-10-2019

Re: PetaLinux System Image build error

Jump to solution
can I know how did you solve this issue ?
Mohamed Taher
0 Kudos