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
3,641 Views
Registered: ‎08-07-2016

Zync Soc xilfss library

Dear Sir/Madam,

                               I am using the SDK (WEB WDITION 2014.4). In SDK under New--->File---> Appliction Project i have created a prohect named zynq_fsbl_0. Now in this project i am trying to add Xilinx templete Zync FSBL and it is showing the following error:-

          "This application requires xilffs library in the Board Support Package".

When i looking the library in mine existing BSP, there is only file which is named libxil.a. Please tell me how to add this xilfss library in mine exixsting BSP. 

 

Regards

Aditya

0 Kudos
1 Reply
Xilinx Employee
Xilinx Employee
3,635 Views
Registered: ‎08-01-2008

Re: Zync Soc xilfss library

To launch batch mode, run the command below in an SDK shell:
xsdk -batch
 
To create a Hardware Platform:
create_project -type hw -name hw_0 -hwspec system.hdf
 
To create a Base System Platform (BSP):
create_project -type bsp -name bsp_0 -hwproject hw_0 -proc microblaze_0 -os standalone
Where, OS can be standalone, or xilkernel
 
To create an Application:
create_project -type app -name helloworld -hwproject hw_0 -proc microblaze_0 -os standalone -lang C -app {Hello World} -bsp bsp_0
Below are the available template applications:
 
Standalone/Baremetal and Xilkernel OS Application Templates for Language C:
 
        {Hello World}
        {Empty Application}
        {Peripheral Tests}
        {Memory Tests}
        {Zynq FSBL}
        {Zynq DRAM tests}
        {Dhrystone}
        {lwIP Echo Server}
        {RSA Authentication App}
        {SREC Bootloader}
        {Xilkernel POSIX Threads Demo}
 
Standalone/Bare metal and Xilkernel OS Application Templates for Language C++:
 
        {Empty Application}
 
Linux OS Application Templates for Language C:
 
        {Linux Hello World}
        {Linux Empty Application}
        {OpenCV Example Application}
 
Linux OS Application Templates for Language C++:
 
        {Linux Empty Application}

 

Below is an example for a Typical MicroBlaze design exported from Vivado. 

This creates a Hardware Platform, BSP, and a Hello World Application:

xsdk -batch -source test.tcl
#Example test.tcl
#!/usr/bin/tclsh
set_workspace workspace
create_project -type hw -name hw_0 -hwspec <path the HDF file>.hdf
create_project -type bsp -name bsp_0 -hwproject hw_0 -proc microblaze_0 -os standalone
create_project -type app -name helloworld -hwproject hw_0 -proc microblaze_0 -os standalone -lang C -app {Hello World} -bsp bsp_0
build -type bsp -name bsp_0
build -type app  -name helloworld
clean -type all
build -type all
exit
 Below is an example for a typical design exported from Vivado.

This uses the HSI to find the processor, creates a Hardware Platform, BSP and a Custom Application and copies the sources files and builds:
 
xsdk -batch -source test.tcl
#Example test.tcl
#!/usr/bin/tclsh
set_workspace workspace
create_project -type hw -name hw_0 -hwspec <path the HDF file>.hdf
open_hw_design workspace/hw_0/system.hdf
set proc [::hsm::utils::get_procs]
set proc [lindex $proc 0]
if {$proc != ""} {
   create_project -type bsp -name bsp_0 -hwproject hw_0 -proc $proc -os standalone
} else {
   puts "No Processor found in design"
   exit
}
create_project -type app -name myapp -hwproject hw_0 -proc $proc -os standalone -lang C -app {Empty Application} -bsp bsp_0
file copy -force <path to source file>  workspace/myapp/src
build -type bsp  -name bsp_0
build -type app -name myapp 
clean -type all
build -type all
exit
 
Below is an example for a typical Zynq design exported from Vivado.

This creates a Hardware Platform, BSP, and an FSBL application:
xsdk -batch -source test.tcl
 
#Example test.tcl
#!/usr/bin/tclsh
set_workspace workspace
create_project -type hw -name hw -hwspec <path the HDF file>.hdf
cd workspace/hw
open_hw_design system.hdf
set bsp [create_sw_design bsp -proc ps7_cortexa9_0 -os standalone]
add_library xilffs
generate_bsp -sw $bsp -dir ../bsp -compile
cd ../..
create_project -type app -name fsbl -hwproject hw -proc ps7_cortexa9_0 -os standalone -lang C -app {Zynq FSBL} -bsp $bsp
build -type bsp  -name $bsp
build -type app -name fsbl 
clean -type all
build -type all
 
For more information, see (UG1138)
Thanks and Regards
Balkrishan
--------------------------------------------------------------------------------------------
Please mark the post as an answer "Accept as solution" in case it helped resolve your query.
Give kudos in case a post in case it guided to the solution.
0 Kudos