cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
336 Views
Registered: ‎10-27-2020

How can I use vitis xsct to create app in terminal shell?

hi,

 

I use the xsct from http://petalinux.xilinx.com/sswreleases/rel-v2020/xsct-trim/, and export bin to PATH.

then I can use xsct command, but can't find any apps as follow:

$ xsct
Display is :157
rlwrap: warning: your $TERM is 'xterm-256color' but rlwrap couldn't find it in the terminfo database. Expect some problems.

****** Xilinx Software Commandline Tool (XSCT) v2020.1
**** SW Build 2900408 on Mon May 25 09:52:14 MDT 2020
** Copyright 1986-2020 Xilinx, Inc. All Rights Reserved.


xsct% app create -name test -hw ./test.xsa -proc psu_cortexa53_0 -os standalone -template {Empty Application}
Empty Application is not valid application template name
use repo -apps to get the available templates
xsct% repo -apps
================================================================================
APPLICATION SUPPORTED PROCESSOR SUPPORTED OS
================================================================================

xsct%

 

please help me to check it , env is same as xsct2019, but xsct2019 shows every apps.

 

 

0 Kudos
7 Replies
Highlighted
Moderator
Moderator
297 Views
Registered: ‎05-08-2012

Hi @junote 

Are you possibly using a custom repository that is overwriting the templates from the installation repository? Do you see the same with the IDE open? The full list of commands used would also allow the community to help further.

---------------------------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
---------------------------------------------------------------------------------------------
0 Kudos
Highlighted
Visitor
Visitor
281 Views
Registered: ‎10-27-2020

right, If setup vivado and vitis, I can use the command in vitis xsct terminal.

but I want to include the boot.bin generation in shell script, so I only need xsct.

 

xsct% repo -apps
================================================================================
APPLICATION SUPPORTED PROCESSOR SUPPORTED OS
================================================================================
versal PLM psu_pmc standalone
psv_pmc
--------------------------------------------------------------------------------
Zynq DRAM tests ps7_cortexa9 standalone
--------------------------------------------------------------------------------
lwIP Echo Server psv_cortexa72 standalone
psv_cortexr5
psu_cortexa53
psu_cortexr5
ps7_cortexa9
microblaze

0 Kudos
Highlighted
Moderator
Moderator
233 Views
Registered: ‎05-08-2012

Hi @junote 

The description still isn't clear. Are you indicating that you only installed XSCT? The below post might help if that is the case.There is no current option to do so, and XSCT requires Vitis and Vivado. 

https://forums.xilinx.com/t5/Embedded-Development-Tools/XSCT-standalone-download-install/m-p/1131112

---------------------------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
---------------------------------------------------------------------------------------------
0 Kudos
Highlighted
Visitor
Visitor
212 Views
Registered: ‎10-27-2020

thanks, I am clear now.

The result is xsct2020  isn't standalone, it is different from the xsct 2019.1

0 Kudos
Highlighted
Moderator
Moderator
161 Views
Registered: ‎09-12-2007

You can use a TCL script similar to below:

 

This uses the HSI to find the first processor in your XSA

 

setws vitis_workspace
platform create -name [file tail [file rootname $xsa]]_platform_0 -hw $xsa
set proc [lindex [hsi::get_cells -filter {IP_TYPE==PROCESSOR}] 0]
puts "Targeting Processor: $proc"
domain create -name "app_domain" -os standalone -proc $proc
app create -name hello_world -domain app_domain -template "Hello World"
app config -name hello_world build-config release
app build -name hello_world

Highlighted
Visitor
Visitor
101 Views
Registered: ‎10-27-2020

here is the result of your script.

 

xsct% setws ws
xsct% platform create -name zynqmp_plat -hw zynqmp.xsa
Opening the hardware design, this may take few seconds.
INFO: [Hsi 55-2053] elapsed time for repository (/home/jcai/chm1r/zynqmp_os_image/sources/Vitis/2020.1/data/embeddedsw) loading 0 seconds
Could not create zynqmp_fsbl application for the given hw design
Details: zynqmp_fsbl doesn't exist in the repositories
xsct% set proc [lindex [hsi::get_cells -filter {IP_TYPE==PROCESSOR}] 0]
psu_cortexa53_0
xsct% puts "Targeting Processor: $proc"
Targeting Processor: psu_cortexa53_0
xsct% domain create -name "app_domain" -os standalone -proc $proc

ERROR:The given OS "standalone" does not exist in the Software repository
valid OS are "linux"

0 Kudos
Highlighted
Moderator
Moderator
81 Views
Registered: ‎09-12-2007

Did you set the project design intent to embedded accel when exporting to Vitis from Vivado?

 

Can you share the XSA?

0 Kudos