11-24-2020 09:36 AM
Hi,
I am not able to run Petalinux application. There is no bit file in pre-built directory. I run the command "petalinux-package --prebuilt --force" but still there is no bit file in pre-built directory.
peter@peter:~/opt/xilinx/petalinux/projects/zybo-7z-20-project-1/zynq-os$ petalinux-boot --jtag --prebuilt 3
WARNING: Will not program bitstream on the target. If you want to program bitstream,
WARNING: please run petalinux-package --prebuilt to put the bitstream to the prebuitl directory,
WARNING: or use --fpga --bitstream option to specify a bitstream.
INFO: Append dtb - /home/peter/opt/xilinx/petalinux/projects/zybo-7z-20-project-1/zynq-os/pre-built/linux/images/system.dtb and other options to boot zImage
INFO: Launching XSDB for file download and boot.
INFO: This may take a few minutes, depending on the size of your image.
rlwrap: warning: your $TERM is 'xterm-256color' but rlwrap couldn't find it in the terminfo database. Expect some problems.: Inappropriate ioctl for device
no targets found with "name =~ "arm*#0"". available targets: none
while executing
"error "no targets found with \"$params(filter)\". available targets:$target_list""
(procedure "targets" line 177)
invoked from within
"targets -set -nocase -filter {name =~ "arm*#0"}"
(file "/tmp/tmp.1CVGfXfHAu" line 3)
INFO: The XSDB log is as follows
attempting to launch hw_server
****** Xilinx hw_server v2018.3
**** Build date : Nov 15 2018-19:35:59
** Copyright 1986-2018 Xilinx, Inc. All Rights Reserved.
INFO: hw_server application started
INFO: Use Ctrl-C to exit hw_server application
INFO: To connect to this hw_server instance use url: TCP:127.0.0.1:3121
I also get multiple replies for "dmesg" command. Not sure if it is "/dev/ttyUSB0" or "/dev/ttyUSB1" to use PuTTY serial line.
peter@peter:/dev$ dmesg | grep -i FTDI
[ 8.611518] usbcore: registered new interface driver ftdi_sio
[ 8.611525] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 8.611543] ftdi_sio 1-1:1.0: FTDI USB Serial Device converter detected
[ 8.626064] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB0
[ 8.626131] ftdi_sio 1-1:1.1: FTDI USB Serial Device converter detected
[ 8.668068] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB1
[ 297.051290] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[ 297.051394] ftdi_sio 1-1:1.0: device disconnected
[ 297.057477] ftdi_sio ttyUSB1: FTDI USB Serial Device converter now disconnected from ttyUSB1
[ 297.057521] ftdi_sio 1-1:1.1: device disconnected
[ 299.523183] ftdi_sio 1-1:1.0: FTDI USB Serial Device converter detected
[ 299.530155] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB0
[ 299.536698] ftdi_sio 1-1:1.1: FTDI USB Serial Device converter detected
[ 299.545030] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB1
[ 364.464348] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[ 364.464373] ftdi_sio 1-1:1.0: device disconnected
[ 364.465974] ftdi_sio ttyUSB1: FTDI USB Serial Device converter now disconnected from ttyUSB1
[ 364.465995] ftdi_sio 1-1:1.1: device disconnected
[ 370.163224] ftdi_sio 1-1:1.0: FTDI USB Serial Device converter detected
[ 370.171561] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB0
[ 370.178205] ftdi_sio 1-1:1.1: FTDI USB Serial Device converter detected
[ 370.186599] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB1
Is it possible to boot the petalinux image using JTAG from XSCT in Vivado SDK installed in Windows 10 ?
11-24-2020 06:57 PM
HI @peterjohn
Please run this below commands from xsct or xsdb console when you use the JTAG boot mode.
connect
targets
targets 2
dow zynq_fsbl.elf
con
dow u-boot.elf
fpga -f system.bit
con
stop
dow -data image.ub 0x10000000
con
Note: Please Make sure copy these images in xsct path before running any commands.
Thanks & Regards
Aravind
----------------------------------------------------------------------------------------------
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.
----------------------------------------------------------------------------------------------
11-26-2020 01:50 AM - edited 11-26-2020 01:52 AM
I have transferred the files (system.bit, u-boot-elf, zynq_elf.elf) from virtual machine to the Windows 10 host machine.
I run the script in XSCT to load the files but "u-boot-elf" ask for original path of the project from virtual machine.
How to boot petalinux from XSCT ?
I am also not able to copy command replies from XSCT Console.
11-26-2020 02:00 AM
If you use the --tcl command in petalinux-boot --jtag, then this will create a tcl script wit h the xsct commands.
For example:
petalinux-boot --jtag --prebuild 3 --tcl script.tcl
From your original message, it looks like there is no bitstream in the prebuilt folder. So, this is why this is failing.
11-28-2020 05:41 AM
There is already bit file located in the directory. I am still having issue to run Petalinux on ZYBO. I have created another post regarding the issue but not get any helpful reply.
https://forums.xilinx.com/t5/Embedded-Linux/Issue-to-run-Petalinux-application-2/td-p/1178917