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
7,234 Views
Registered: ‎10-11-2011

Cannot build BSP in XSCT (bug?), Ubuntu LTS

Jump to solution

I've run into an issue with the new XSCT tools (Vivado 2015.1) in Ubuntu 14.04 LTS.  I'm running XSCT with a script using the -s switch.  XSCT is able to build the hardware design, but fails during BSP generation.  This is the SDK.log file that's generated:

 

10:51:12 ERROR :  [Hsi 55-1545] Problem running tcl command ::sw_standalone_v5_0::post_generate : couldn't execute "mb-ar": no such file or directory
    while executing
"exec $archiver -d $libgloss_a _interrupt_handler.o"
    (procedure "::sw_standalone_v5_0::post_generate" line 18)
    invoked from within
"::sw_standalone_v5_0::post_generate standalone"
 [Hsi 55-1443] Error(s) while running TCL procedure post_generate()
10:51:12 ERROR : Error generating bsp sources: Failed to generate BSP.

So, though my Xilinx tools are sourced, "mb-ar" cannot be found.  "which mb-ar" from the terminal command line returns "/opt/Xilinx/SDK/2015.1/gnu/microblaze/lin/bin/mb-ar", and XSCT appears to be looking in the right place:

 

xsct% mb-ar                                                                                                                                                                                                                                                             
couldn't execute "/opt/Xilinx/SDK/2015.1/gnu/microblaze/lin/bin/mb-ar": no such file or directory

mb-ar does exist at that location on my machine, but as a symbolic link.  Could this be a permissions problem?

 

This all works in Fedora 22.

 

Here's the XSCT script:

 

set SDK_WORKSPACE sw
set HW_DEF hw/hw.runs/run_1/bd_wrapper.hdf
set HW_PROJ bd_wrapper_hw
set SA_BSP_PROJ standalone_bsp
set APP_PROJ app_standalone

# set the SDK workspace
sdk set_workspace $SDK_WORKSPACE
# create the hardware outputs in SDK
sdk create_hw_project -name $HW_PROJ -hwspec $HW_DEF
# create the standalone BSP
sdk create_bsp_project -name $SA_BSP_PROJ -hwproject $HW_PROJ -proc microblaze_0 -os standalone
# create application
sdk create_app_project -name $APP_PROJ -hwproject $HW_PROJ -proc microblaze_0 -bsp $SA_BSP_PROJ
# build the application
sdk build_project
exit

 

0 Kudos
1 Solution

Accepted Solutions
Scholar sampatd
Scholar
12,805 Views
Registered: ‎09-05-2011

Re: Cannot build BSP in XSCT (bug?), Ubuntu LTS

Jump to solution
0 Kudos
3 Replies
Xilinx Employee
Xilinx Employee
6,976 Views
Registered: ‎08-02-2007

Re: Cannot build BSP in XSCT (bug?), Ubuntu LTS

Jump to solution

hi,

 

can you confirm if you are able to compile BSP using GUI?

 

--hem

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
Scholar sampatd
Scholar
12,806 Views
Registered: ‎09-05-2011

Re: Cannot build BSP in XSCT (bug?), Ubuntu LTS

Jump to solution
0 Kudos
Highlighted
Adventurer
Adventurer
6,892 Views
Registered: ‎10-11-2011

Re: Cannot build BSP in XSCT (bug?), Ubuntu LTS

Jump to solution

That was the problem.  Thank you!

0 Kudos