cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
242 Views
Registered: ‎06-21-2019

Cannot see hardware (usb) on VM (Linux), but can on Windows.

Trying to connect to a VCU128 devel board.  Can connect fine in Windows OS, but when I run the Linux VM (via Hyper V-manager), I cannot connect to the board.  This is both through Petalinux commands or if Vivado Hardware Manager is open in VM.  

Note, I always ensure only one app is running that is trying to connect with hardware to ensure no contention.  

Need to Petalinux (VM) environment to program the microblaze.

Any help or pointers are greatly appreciated -- Thx, Joe

0 Kudos
5 Replies
Highlighted
Mentor
Mentor
175 Views
Registered: ‎06-16-2013

Re: Cannot see hardware (usb) on VM (Linux), but can on Windows.

Hi @joseph.grigonis 

 

What kind of VM are you using ?

If you use Virtual Box, you must configure usb setting to connect between VM and host.

 

Best regards,

0 Kudos
Highlighted
163 Views
Registered: ‎06-21-2019

Re: Cannot see hardware (usb) on VM (Linux), but can on Windows.

We are using Hyper V-Manager aka HyperVM. We are going to try to gen2 version and see if that works since we are currently using gen1.
Thanks!
0 Kudos
Highlighted
Mentor
Mentor
154 Views
Registered: ‎06-16-2013

Re: Cannot see hardware (usb) on VM (Linux), but can on Windows.

Hi @joseph.grigonis 

 

You must use extend session mode to access USB device from host to guest.

 

Refer the following URL.

 

https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/learn-more/use-local-resources-on-hyper-v-virtual-machine-with-vmconnect

 

Best regards,

0 Kudos
Highlighted
92 Views
Registered: ‎06-21-2019

Re: Cannot see hardware (usb) on VM (Linux), but can on Windows.

This was already verified as properly setup (as shown in the link). We also tried the gen 2 Hyper-V VM and that too did not see the HW on the usb.

I have concerns now that this might not be possible.

Has anyone ever loaded an FPGA (or SoC) via a Linux Virtual Machine?

0 Kudos
Highlighted
Explorer
Explorer
78 Views
Registered: ‎08-02-2019

Re: Cannot see hardware (usb) on VM (Linux), but can on Windows.

Hi @joseph.grigonis ,

I'm updating my ZC702's Boot.bin(it contains also fpga) and image.ub lots of time daily.

My host machien is Win10.

I'm working always with Ubuntu 16.04 VM for Petalinux(CPU0) and Bare Metal(CPU1) development. I am using Virtual Box.

I'm debugging my softwares via jtag cable and also in Vivado debug window we are using this connection.

I'm making ssh connection to my board and updating image files in SD Card.

I hope, it answers your question.

Screenshot shows, how  we are enabling jtag cable(usb). Similiarly to this, whenever we connect a USB, we select it in same list and it is activated on Linux VM.

To enable jtag cable on Linux, there are some steps. This link wonderfully describes it.

Saban

 

<--- If reply is helpful, please feel free to give Kudos, and close if it answers your question --->
Enable_Jtag_Cable_On_VM.png
0 Kudos