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: 
Highlighted
Visitor ayazdi
Visitor
2,142 Views
Registered: ‎11-15-2017

PetaLinux 2017.3 build problem for Kintex 5

I'm trying to build a PetaLinux for a Kintex5 system (KC705) with DDR3 and UART Lite.  After sucessfully compiling the bitstream file in Vivado, I create and configure a petalinux project using the generated hardware by Vivado. But every time I try to build the Petalinux, I get and error when the system tries to generate mba_fs_boot. Any ideas what's going on?

 

Please see the error below:

 

DEBUG: Executing python function sysroot_cleansstate
DEBUG: Python function sysroot_cleansstate finished
DEBUG: Executing shell function do_configure
MISC_ARG is -yamlconf /home/alireza/codes/2017/Vivado/Ethernet/uBlaze/penta_linux/PentaLinux4uBlaze/build/tmp/work/plnx_microblaze-xilinx-linux/fs-boot/2017.3+gitAUTOINC+3c9f0cfde9-r0/fsboot.yaml -yamlconf /home/alireza/codes/2017/Vivado/Ethernet/uBlaze/penta_linux/PentaLinux4uBlaze/build/tmp/work/plnx_microblaze-xilinx-linux/fs-boot/2017.3+gitAUTOINC+3c9f0cfde9-r0/fsboot.yaml
APP_ARG is -app "mba_fs_boot"
cmd is: xsct /home/alireza/codes/2017/Vivado/Ethernet/uBlaze/penta_linux/PentaLinux4uBlaze/build/tmp/work/plnx_microblaze-xilinx-linux/fs-boot/2017.3+gitAUTOINC+3c9f0cfde9-r0/fsboot.tcl -ws /home/alireza/codes/2017/Vivado/Ethernet/uBlaze/penta_linux/PentaLinux4uBlaze/build/../components/plnx_workspace/fsboot -pname fs-boot -rp /opt/Xilinx/PentaLinux/tools/hsm/data/embeddedsw -processor microblaze_0 -hdf /home/alireza/codes/2017/Vivado/Ethernet/uBlaze/penta_linux/PentaLinux4uBlaze/build/tmp/deploy/images/plnx_microblaze/Xilinx-plnx_microblaze.hdf -arch 32 -app "mba_fs_boot" -yamlconf /home/alireza/codes/2017/Vivado/Ethernet/uBlaze/penta_linux/PentaLinux4uBlaze/build/tmp/work/plnx_microblaze-xilinx-linux/fs-boot/2017.3+gitAUTOINC+3c9f0cfde9-r0/fsboot.yaml -yamlconf /home/alireza/codes/2017/Vivado/Ethernet/uBlaze/penta_linux/PentaLinux4uBlaze/build/tmp/work/plnx_microblaze-xilinx-linux/fs-boot/2017.3+gitAUTOINC+3c9f0cfde9-r0/fsboot.yaml
WARNING: [Hsi 55-1434] Error /opt/Xilinx/PentaLinux/tools/hsm/data/embeddedsw/XilinxProcessorIPLib/drivers/rfdc_v2_1/data/rfdc.mdd:49 Unrecognized Option name. List of possible Option names are : DRC, DESC, COPYFILES, DEPENDS, SUPPORTED_PERIPHERALS, DRIVER_STATE, DEFAULT_OS, NAME, VERSION

INFO: [Hsi 55-1698] elapsed time for repository loading 0 seconds
WARNING: [Hsi 55-1434] Error /opt/Xilinx/PentaLinux/tools/hsm/data/embeddedsw/XilinxProcessorIPLib/drivers/rfdc_v2_1/data/rfdc.mdd:49 Unrecognized Option name. List of possible Option names are : DRC, DESC, COPYFILES, DEPENDS, SUPPORTED_PERIPHERALS, DRIVER_STATE, DEFAULT_OS, NAME, VERSION

hsi::set_repo_path: Time (s): cpu = 00:00:00.06 ; elapsed = 00:00:05 . Memory (MB): peak = 330.285 ; gain = 1.035 ; free physical = 273 ; free virtual = 31490
/opt/Xilinx/PentaLinux/tools/hsm/gnu/microblaze/lin
ERROR: [Common 17-55] 'get_property' expects at least one object.
Resolution: If [get_<value>] was used to populate the object, check to make sure this command returns at least one valid object.
ERROR: [Hsi 55-1545] Problem running tcl command swapp_mba_fs_boot::swapp_generate : ERROR: [Common 17-55] 'get_property' expects at least one object.
Resolution: If [get_<value>] was used to populate the object, check to make sure this command returns at least one valid object.

while executing
"common::get_property IP_NAME [get_cells $instance]"
(procedure "get_ipname" line 2)
invoked from within
"get_ipname $flash"
(procedure "get_flash_config" line 5)
invoked from within
"get_flash_config $fid"
(procedure "swapp_mba_fs_boot::swapp_generate" line 7)
invoked from within
"swapp_mba_fs_boot::swapp_generate"
ERROR: [Hsi 55-1438] Error running generate_app.
Failed to generate app mba_fs_boot
while executing
"error "Failed to generate app $params(app)""
invoked from within
"if { [catch {hsi generate_app -dir $project} res] } {
error "Failed to generate app $params(app)"
}"
(file "/home/alireza/codes/2017/Vivado/Ethernet/uBlaze/penta_linux/PentaLinux4uBlaze/build/tmp/work/plnx_microblaze-xilinx-linux/fs-boot/2017.3+gitAUTOINC+3c..." line 35)
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_configure (log file is located at  .... )

 

 

 

0 Kudos
9 Replies
Visitor tiantianxch
Visitor
2,118 Views
Registered: ‎12-11-2017

Re: PetaLinux 2017.3 build problem for Kintex 5

the same to vcu118: see below:

~/project/vcu118$ petalinux-build -c u-boot
[INFO] building u-boot
[INFO] sourcing bitbake
INFO: bitbake virtual/bootloader
Loading cache: 100% |##########################################################################################################################################################################################################################################| Time: 0:00:01
Loaded 3257 entries from dependency cache.
Parsing recipes: 100% |########################################################################################################################################################################################################################################| Time: 0:00:02
Parsing of 2466 .bb files complete (2432 cached, 34 parsed). 3259 targets, 553 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#####################################################################################################################################################################################################################################| Time: 0:00:08
Checking sstate mirror object availability: 100% |#############################################################################################################################################################################################################| Time: 0:00:09
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: fs-boot-2017.3+gitAUTOINC+3c9f0cfde9-r0 do_configure: Function failed: do_configure (log file is located at /home/user/project/vcu118/build/tmp/work/plnx_microblaze-xilinx-linux/fs-boot/2017.3+gitAUTOINC+3c9f0cfde9-r0/temp/log.do_configure.8780)
ERROR: Logfile of failure stored in: /home/user/project/vcu118/build/tmp/work/plnx_microblaze-xilinx-linux/fs-boot/2017.3+gitAUTOINC+3c9f0cfde9-r0/temp/log.do_configure.8780

the log is:

 

DEBUG: Executing python function sysroot_cleansstate
DEBUG: Python function sysroot_cleansstate finished
DEBUG: Executing shell function do_configure
MISC_ARG is -yamlconf /home/user/project/vcu118/build/tmp/work/plnx_microblaze-xilinx-linux/fs-boot/2017.3+gitAUTOINC+3c9f0cfde9-r0/fsboot.yaml -yamlconf /home/user/project/vcu118/build/tmp/work/plnx_microblaze-xilinx-linux/fs-boot/2017.3+gitAUTOINC+3c9f0cfde9-r0/fsboot.yaml
APP_ARG is -app "mba_fs_boot"
cmd is: xsct /home/user/project/vcu118/build/tmp/work/plnx_microblaze-xilinx-linux/fs-boot/2017.3+gitAUTOINC+3c9f0cfde9-r0/fsboot.tcl -ws /home/user/project/vcu118/build/../components/plnx_workspace/fsboot -pname fs-boot -rp /home/user/eda/xilinx/petalinux-v2017.3-final/tools/hsm/data/embeddedsw -processor microblaze_0 -hdf /home/user/project/vcu118/build/tmp/deploy/images/plnx_microblaze/Xilinx-plnx_microblaze.hdf -arch 32 -app "mba_fs_boot" -yamlconf /home/user/project/vcu118/build/tmp/work/plnx_microblaze-xilinx-linux/fs-boot/2017.3+gitAUTOINC+3c9f0cfde9-r0/fsboot.yaml -yamlconf /home/user/project/vcu118/build/tmp/work/plnx_microblaze-xilinx-linux/fs-boot/2017.3+gitAUTOINC+3c9f0cfde9-r0/fsboot.yaml
WARNING: [Hsi 55-1434] Error /home/user/eda/xilinx/petalinux-v2017.3-final/tools/hsm/data/embeddedsw/XilinxProcessorIPLib/drivers/rfdc_v2_1/data/rfdc.mdd:49 Unrecognized Option name. List of possible Option names are : DRC, DESC, COPYFILES, DEPENDS, SUPPORTED_PERIPHERALS, DRIVER_STATE, DEFAULT_OS, NAME, VERSION

INFO: [Hsi 55-1698] elapsed time for repository loading 1 seconds
WARNING: [Hsi 55-1434] Error /home/user/eda/xilinx/petalinux-v2017.3-final/tools/hsm/data/embeddedsw/XilinxProcessorIPLib/drivers/rfdc_v2_1/data/rfdc.mdd:49 Unrecognized Option name. List of possible Option names are : DRC, DESC, COPYFILES, DEPENDS, SUPPORTED_PERIPHERALS, DRIVER_STATE, DEFAULT_OS, NAME, VERSION

/home/user/eda/xilinx/petalinux-v2017.3-final/tools/hsm/gnu/microblaze/lin
ERROR: [Common 17-55] 'get_property' expects at least one object.
Resolution: If [get_<value>] was used to populate the object, check to make sure this command returns at least one valid object.
ERROR: [Hsi 55-1545] Problem running tcl command swapp_mba_fs_boot::swapp_generate : ERROR: [Common 17-55] 'get_property' expects at least one object.
Resolution: If [get_<value>] was used to populate the object, check to make sure this command returns at least one valid object.

while executing
"common::get_property IP_NAME [get_cells $instance]"
(procedure "get_ipname" line 2)
invoked from within
"get_ipname $flash"
(procedure "get_flash_config" line 5)
invoked from within
"get_flash_config $fid"
(procedure "swapp_mba_fs_boot::swapp_generate" line 7)
invoked from within
"swapp_mba_fs_boot::swapp_generate"
ERROR: [Hsi 55-1438] Error running generate_app.
Failed to generate app mba_fs_boot
while executing
"error "Failed to generate app $params(app)""
invoked from within
"if { [catch {hsi generate_app -dir $project} res] } {
error "Failed to generate app $params(app)"
}"
(file "/home/user/project/vcu118/build/tmp/work/plnx_microblaze-xilinx-linux/fs-boot/2017.3+gitAUTOINC+3c9f0cfde9-r0/fsboot.tcl" line 35)
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_configure (log file is located at /home/user/project/vcu118/build/tmp/work/plnx_microblaze-xilinx-linux/fs-boot/2017.3+gitAUTOINC+3c9f0cfde9-r0/temp/log.do_configure.8780)

 

 

 

0 Kudos
Moderator
Moderator
2,098 Views
Registered: ‎09-12-2007

Re: PetaLinux 2017.3 build problem for Kintex 5

Looks like the build is failing while creating the app. Have you the flash added?
0 Kudos
Moderator
Moderator
2,095 Views
Registered: ‎09-12-2007

Re: PetaLinux 2017.3 build problem for Kintex 5

Looks like the build is failing while creating the app. Have you the flash added?

Can you post the HDF?
0 Kudos
Visitor tiantianxch
Visitor
2,082 Views
Registered: ‎12-11-2017

Re: PetaLinux 2017.3 build problem for Kintex 5

We had post the HDF,but we have no flash.

Tags (1)
0 Kudos
Moderator
Moderator
2,071 Views
Registered: ‎09-12-2007

Re: PetaLinux 2017.3 build problem for Kintex 5

Can you add the linear flash to your HW and try again? If you are using the KC705, there should be a board tab in the vivado, you can click and drop this into your BD, and re-export to SDK

0 Kudos
Adventurer
Adventurer
2,061 Views
Registered: ‎09-05-2007

Re: PetaLinux 2017.3 build problem for Kintex 5

Dear all,

same issue here, even with linear or spi flash...

 

hw : kc705

vivado 17.3

 

petatlinux-build -c fs-boot hang on "Failed to generate app"

 

'get_property' expects at least one object.
| Resolution: If [get_<value>] was used to populate the object, check to make sure this command returns at least one valid object.
| ERROR: [Hsi 55-1545] Problem running tcl command swapp_mba_fs_boot::swapp_generate : ERROR: [Common 17-55] 'get_property' expects at least one object.
| Resolution: If [get_<value>] was used to populate the object, check to make sure this command returns at least one valid object.
|
|     while executing
| "common::get_property IP_NAME [get_cells $instance]"
|     (procedure "get_ipname" line 2)
|     invoked from within
| "get_ipname $flash"
0 Kudos
Moderator
Moderator
2,054 Views
Registered: ‎09-12-2007

Re: PetaLinux 2017.3 build problem for Kintex 5

So, some background. The meta-xilinx-tools layers (which is used in Petalinux), will call the recipes-bsp/fsboot. Here there is an app.tcl to create the app. The app is created via mba_fs_boot.tcl. The offending piece of code is seen here:

 

proc get_flash_config { fp } {
set ipname "";
set flash [get_flash_mem];
if {$flash ne ""} {
set ipname [get_ipname $flash];
}

 

What your error message is saying is "get_property expects at least one object". There is a trace dump of where this occurs in the tcl code. If we look at the get_ipname. it indeed points to the get_property. 

 

proc get_ipname { instance } {
set ipname [common::get_property IP_NAME [get_cells $instance]];
return $ipname;
}

 

So, it is here that it is failing. So, the get_cells $instance is blank, hense this will fail. So, we would need to investigate why.

 

Can you send me your HDF, and I can test this real quick?

0 Kudos
Adventurer
Adventurer
2,045 Views
Registered: ‎09-05-2007

Re: PetaLinux 2017.3 build problem for Kintex 5

thank you for your commitment, here is my hdf

flash is kc705 emc

0 Kudos
Moderator
Moderator
2,031 Views
Registered: ‎09-12-2007

Re: PetaLinux 2017.3 build problem for Kintex 5

I took your HDF. I noticed your instruction memory is located at 0x4000. However, the Base Vector of the Microblaze is set to 0x0. The MB will expect instructions at the base vector (0x0) upon coming out of reset. So, this is wrong. I have fixed this. I also noticed some floating ports (spi). I removed these, and re-generated the output products, and re-exported to SDK to create the HDF. I used this HDF in petalinux 2017.3 to create the project. This work for me:

mb_peta.PNG

You can build the BD using the attached TCL

 

Also, there is a KC705 BSP that you can use in Petalinux. You can get this from below

https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools.html

0 Kudos