cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Adventurer
Adventurer
428 Views
Registered: ‎10-18-2019

Booting petalinux from virtual machine –not working

Hi,

I have problem in booting petalinux from virtual machine. It shows two ports at which the board is connected. 

peter@peter:~$ dmesg | grep -i FTDI
[  217.579044] usbcore: registered new interface driver ftdi_sio
[  217.579052] usbserial: USB Serial support registered for FTDI USB Serial Device
[  217.579073] ftdi_sio 1-1:1.0: FTDI USB Serial Device converter detected
[  217.614060] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB0
[  217.614126] ftdi_sio 1-1:1.1: FTDI USB Serial Device converter detected
[  217.654584] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB1

Not sure at which port ZYBO is connected. I have tried both ttyUSB0 and ttyUSB1 but not able to see the response from ZYBO.

Here is what I see on the Ubuntu terminal.

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.WNR7uiQyxv" 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

Here are all the image files in pre-built folder

peter@peter:~/opt/xilinx/petalinux/projects/zybo-7z-20-project-1/zynq-os/pre-built/linux/images$ ls
BOOT.BIN  system.bit  system.dtb  System.map.linux  u-boot.elf  zImage  zynq_fsbl.elf

 

0 Kudos
Reply
8 Replies
Teacher
Teacher
414 Views
Registered: ‎01-28-2008

Hi @peterjohn 

  I've heard about this issue before from a colleague, but have not verified it. You may want to test your setup using a lower level tool, the xsct command line tool.

  You can generate a Tcl script from petalinux-boot by adding the switch -tcl <output.tcl>. It will write to file the xsct commands petalinux-boot uses under the hood. You'll see the connect and targets commands that will verify if your connection to the target is working. You can find more info about xsct in ug1400 section 4.

 

Thanks,

-Pat

 

Give kudos if helpful. Accept as solution if it solves your problem.
https://tuxengineering.com/blog

0 Kudos
Reply
Teacher
Teacher
389 Views
Registered: ‎06-16-2013

Hi @peterjohn 

 

What kind of virtual machine and version are you using ?

Also, which USB version are you enabled on VM ? 1.1 or 2.0 or 3.x ?

 

Best regards,

0 Kudos
Reply
Adventurer
Adventurer
345 Views
Registered: ‎10-18-2019

@watari 

Yes, I have enabled USB 2.0 in virtual machine where I have Ubuntu 16.04.4 installed. I am using Petalinux v2018.3. 

0 Kudos
Reply
Teacher
Teacher
327 Views
Registered: ‎06-16-2013

Hi @peterjohn 

 

What kind of VM and this version are you using ? VMware ? Virtual Box ? Or other ?

 

Best regards,

0 Kudos
Reply
Adventurer
Adventurer
322 Views
Registered: ‎10-18-2019

@watari 

I am using Oracle VirtualBox 6.1.16 which is installed in Windows 10 host operating system. 

0 Kudos
Reply
Teacher
Teacher
222 Views
Registered: ‎06-16-2013

Hi @peterjohn 

 

It's little oddy.

Would you try peeping into the USB protocol to investigate the route cause by USBcap on Wireshark on Host and Guest OS ?

 

Best regards,

0 Kudos
Reply
Adventurer
Adventurer
198 Views
Registered: ‎10-18-2019

@watari 

I am not sure about USBcap on Wireshark on Host and Guest OS. Can you please explain little more ? 

0 Kudos
Reply
Teacher
Teacher
169 Views
Registered: ‎06-16-2013

Hi @peterjohn 

 

Sorry for my late reply.

 

Refer the followings to understand my previous explanation.

I suggest you to sniffer USB protocol via ex. USBPcap on ex. Windows.

Would you try it ? 

 

Host OS : Windows10 

Guest OS : Linux on virtual machine

Wireshark : https://www.wireshark.org/download.html

USBPcap : sniffer tool for USB protocol (USB protocol analyzer)

https://desowin.org/usbpcap/

https://wiki.wireshark.org/CaptureSetup/USB

 

Best regards,

0 Kudos
Reply