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: 
Visitor jh1130.lee
Visitor
282 Views
Registered: ‎11-11-2018

multiple jtag for petalinux-boot

I am using petalinux 2017.4 and 2018.2 and ultrascale board.

I successed to upload bit files into board using jtag.

But I have one additional vertex 7 board.

Also I have one more xillix jtag cable.

So I hope to use multiple jtag at one PC.

In the petalinux-boot help, there are options related jtag control.

 

JTAG available options:
--load-addr <LOADADDR> address to load the image
--regdata <REGDATA> register data
--before-connect <CMD> extra command to run before XSCD connect
command.can be used multiple times
--after-connect <CMD> extra commands to run after XSDB connect
command.can be used multiple times
E.g. --after-connect "jtag targets 1"
--xsdb-conn <CONNECT_CMD> customised XSDB connect command
--hw_server-url <URL> specify the URL of the hw_server to connect to.
This argument is optional and defaults to blank (local).
An example URL is: "TCP:localhost:3121"
--tcl TCL_OUTPUT dump XSDB commands to the specified file
--targetcpu <TARGET_CPU> specify target CPUID (0 to N-1)
--fpga Programs the hardware with the specified
bitstream. If not specified, it will use
the bitstream found in images/linux/.
--bitstream <BITSTREAM> Programs the hardware with the specified
bitstream.

 

I don't know how to override XSDB options at below page into petalinux option.

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2014_3/SDK_Doc/reference/sdk_u_xsd_xsdb_jtag.htm

 

I used like below, and it was fail.

Bus 001 Device 005: ID 03fd:0008 Xilinx, Inc. Platform Cable USB II

Bus 006 Device 004: ID 03fd:0008 Xilinx, Inc. Platform Cable USB II

petalinux-boot --jtag --kernel --bitstream bitfile.bit --before connect "jtag targets 1"

0 Kudos
1 Reply
Highlighted
Xilinx Employee
Xilinx Employee
253 Views
Registered: ‎03-25-2019

Re: multiple jtag for petalinux-boot

Hi @jh1130.lee 

In order to connect to more than one target from to the same host, you could run different hw_server lisening to different port for each target. Then you just need to link each hw_server to a specific target. To do so, you can refer to the following Answer Record.

After doing so, you can connect to any of these targets using the "petalinux-boot" option "--hw_server-url", e.g. :

    petalinux-boot --jtag --prebuilt 3 --hw_server-url <hostname:3121>

More details about this option, could be found on this document.

Best regards,
Abdallah
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution