<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>USB pass through in QEMU command line for ARM machines</title><link>https://community.arm.com/developer/ip-products/system/f/embedded-forum/48031/usb-pass-through-in-qemu-command-line-for-arm-machines</link><description> Hi All, 
 I want boot the QEMU ARM machine with USB emulation, initially i launched the QEMU ARM machine but i cant able to see the usb devices using lsusb command. 
 
 so thought to pass the Host USB to QEMU for that i passed the below configuration</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: USB pass through in QEMU command line for ARM machines</title><link>https://community.arm.com/thread/168778?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2020 08:57:03 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:bc754655-44b7-473f-8c75-578a0a669df5</guid><dc:creator>Srinuvasan</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Thanks for the reference, Only ARM i can able to see the &amp;quot;&lt;strong&gt;No usb bus found for usb-devices&amp;quot; error&amp;nbsp; when we pass through the USB to QEMU.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;the same&amp;nbsp; &amp;quot;&lt;span&gt;&amp;nbsp;-usb -device usb-host, vendorid&amp;lt;xxxxx&amp;gt;, productid&amp;lt;xxxxx&amp;gt;&amp;quot; command working fine for QEMU amd64 machines, here am not facing any bus issue&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;Any idea?&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;And one more thing when we boot QEMU amd64 i can able to see the USB controller register information&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;[ 0.828829] sky2: driver version 1.30&lt;br /&gt;[ 0.829216] ehci_hcd: USB 2.0 &amp;#39;Enhanced&amp;#39; Host Controller (EHCI) Driver&lt;br /&gt;[ 0.829743] ehci-pci: EHCI PCI platform driver&lt;br /&gt;[ 0.830536] ehci-pci 0000:00:1d.7: EHCI Host Controller&lt;br /&gt;[ 0.830997] ehci-pci 0000:00:1d.7: new USB bus registered, assigned bus number 1&lt;br /&gt;[ 0.831700] ehci-pci 0000:00:1d.7: irq 19, io mem 0xfebd2000&lt;br /&gt;[ 0.838488] ehci-pci 0000:00:1d.7: USB 2.0 started, EHCI 1.00&lt;br /&gt;[ 0.838958] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19&lt;br /&gt;[ 0.839616] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1&lt;br /&gt;[ 0.840175] usb usb1: Product: EHCI Host Controller&lt;br /&gt;[ 0.840600] usb usb1: Manufacturer: Linux 4.19.124-cip27 ehci_hcd&lt;br /&gt;[ 0.841071] usb usb1: SerialNumber: 0000:00:1d.7&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;But when we boot QEMU ARM am not able to see the USB controller&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;registration&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;&lt;br /&gt;[ 1.747101] CAN device driver interface&lt;br /&gt;[ 1.750460] ehci_hcd: USB 2.0 &amp;#39;Enhanced&amp;#39; Host Controller (EHCI) Driver&lt;br /&gt;[ 1.750689] ehci-pci: EHCI PCI platform driver&lt;br /&gt;[ 1.751014] ohci_hcd: USB 1.1 &amp;#39;Open&amp;#39; Host Controller (OHCI) Driver&lt;br /&gt;[ 1.751235] ohci-pci: OHCI PCI platform driver&lt;br /&gt;[ 1.751493] uhci_hcd: USB Universal Host Controller Interface driver&lt;br /&gt;[ 1.751859] usbcore: registered new interface driver usblp&lt;br /&gt;[ 1.752131] usbcore: registered new interface driver usb-storage&lt;br /&gt;[ 1.753986] mousedev: PS/2 mouse device common for all mice&lt;br /&gt;[ 1.754694] i2c /dev entries driver&lt;br /&gt;[ 1.757415] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel@redhat.com&lt;br /&gt;[ 1.758167] Synopsys Designware Multimedia Card Interface Driver&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;Please provide your thoughts if any?&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;Thnaks,&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;Srinuvasan.A&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB pass through in QEMU command line for ARM machines</title><link>https://community.arm.com/thread/168764?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 12:35:17 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ead0e7b5-1a2e-4d8d-aa6e-ecff0da43f62</guid><dc:creator>Jerome Decamps - 杜尚杰</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;this is a known problem, you will need to apply a patch to activate your usb bus.&lt;/p&gt;
&lt;p&gt;I think you can maybe find this one at :&lt;br /&gt;&lt;a href="https://patchwork.ozlabs.org/project/qemu-devel/list/"&gt;patchwork.ozlabs.org/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After that will depend on your board&lt;br /&gt;&lt;br /&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>