* [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found
@ 2018-05-19 13:34 George
2018-05-19 13:43 ` [Qemu-devel] [Bug 1772165] " Peter Maydell
` (27 more replies)
0 siblings, 28 replies; 35+ messages in thread
From: George @ 2018-05-19 13:34 UTC (permalink / raw)
To: qemu-devel
Public bug reported:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
** Affects: qemu
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
qemu-system-arm: -device usb-
host,bus=001,vendorid=0x04f2,productid=0x0111: Bus '001' not found
Status in QEMU:
New
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Qemu-devel] [Bug 1772165] Re: qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
@ 2018-05-19 13:43 ` Peter Maydell
2018-05-19 13:53 ` George
` (26 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: Peter Maydell @ 2018-05-19 13:43 UTC (permalink / raw)
To: qemu-devel
Can you give the full QEMU command line you're using? (I suspect the
reason for this error is that the board model you're using does not have
a USB controller.)
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
qemu-system-arm: -device usb-
host,bus=001,vendorid=0x04f2,productid=0x0111: Bus '001' not found
Status in QEMU:
New
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Qemu-devel] [Bug 1772165] Re: qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
2018-05-19 13:43 ` [Qemu-devel] [Bug 1772165] " Peter Maydell
@ 2018-05-19 13:53 ` George
2018-05-19 16:15 ` Peter Maydell
` (25 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: George @ 2018-05-19 13:53 UTC (permalink / raw)
To: qemu-devel
qemu-system-arm -M raspi2 -append "rw earlyprintk loglevel=8
dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2" -cpu arm1176 -dtb
bcm2709-rpi-2-b.dtb -hda DietPi_v6.8_RPi-ARMv6-Stretch.img -kernel
kernel7.img -m 1G -smp 4 -serial stdio -usb -device usb-
host,bus=001,vendorid=0x1d6b,productid=0x0002
** Tags added: usb
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
qemu-system-arm: -device usb-
host,bus=001,vendorid=0x04f2,productid=0x0111: Bus '001' not found
Status in QEMU:
New
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Qemu-devel] [Bug 1772165] Re: qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
2018-05-19 13:43 ` [Qemu-devel] [Bug 1772165] " Peter Maydell
2018-05-19 13:53 ` George
@ 2018-05-19 16:15 ` Peter Maydell
2018-05-19 17:04 ` George
` (24 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: Peter Maydell @ 2018-05-19 16:15 UTC (permalink / raw)
To: qemu-devel
Thanks. The USB controller for the raspi2/raspi3 boards is not currently
modelled, so it's expected that USB devices won't work.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
qemu-system-arm: -device usb-
host,bus=001,vendorid=0x04f2,productid=0x0111: Bus '001' not found
Status in QEMU:
New
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Qemu-devel] [Bug 1772165] Re: qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (2 preceding siblings ...)
2018-05-19 16:15 ` Peter Maydell
@ 2018-05-19 17:04 ` George
2018-05-19 17:49 ` Peter Maydell
` (23 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: George @ 2018-05-19 17:04 UTC (permalink / raw)
To: qemu-devel
How then should I be able to actually use the vm when there is no input?
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
qemu-system-arm: -device usb-
host,bus=001,vendorid=0x04f2,productid=0x0111: Bus '001' not found
Status in QEMU:
New
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Qemu-devel] [Bug 1772165] Re: qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (3 preceding siblings ...)
2018-05-19 17:04 ` George
@ 2018-05-19 17:49 ` Peter Maydell
2018-05-19 19:07 ` George
` (22 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: Peter Maydell @ 2018-05-19 17:49 UTC (permalink / raw)
To: qemu-devel
Serial terminal is how I've used the raspi3 board before.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
qemu-system-arm: -device usb-
host,bus=001,vendorid=0x04f2,productid=0x0111: Bus '001' not found
Status in QEMU:
New
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Qemu-devel] [Bug 1772165] Re: qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (4 preceding siblings ...)
2018-05-19 17:49 ` Peter Maydell
@ 2018-05-19 19:07 ` George
2018-05-19 19:33 ` Peter Maydell
` (21 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: George @ 2018-05-19 19:07 UTC (permalink / raw)
To: qemu-devel
Serial terminal doesn't work with this options. Would you provide
options with which i'll be able to access and login into the terminal.
SSH is also a good solution.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
qemu-system-arm: -device usb-
host,bus=001,vendorid=0x04f2,productid=0x0111: Bus '001' not found
Status in QEMU:
New
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Qemu-devel] [Bug 1772165] Re: qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (5 preceding siblings ...)
2018-05-19 19:07 ` George
@ 2018-05-19 19:33 ` Peter Maydell
2018-05-19 19:58 ` George
` (20 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: Peter Maydell @ 2018-05-19 19:33 UTC (permalink / raw)
To: qemu-devel
This is for raspi3 but may be a useful reference:
https://translatedcode.wordpress.com/2018/04/25/debian-on-qemus-raspberry-pi-3-model/
Probably what you're hitting is that the kernel/dtb default to the
second serial terminal, so you can try adding 'console=ttyAMA0' to the
-append options, or alternatively maybe using -serial null -serial stdio
to drop the 1st serial output and send the second to the terminal.
Since the raspi networking sits behind USB, QEMU doesn't support that,
so no ssh option, I'm afraid.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
qemu-system-arm: -device usb-
host,bus=001,vendorid=0x04f2,productid=0x0111: Bus '001' not found
Status in QEMU:
New
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Qemu-devel] [Bug 1772165] Re: qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (6 preceding siblings ...)
2018-05-19 19:33 ` Peter Maydell
@ 2018-05-19 19:58 ` George
2018-05-22 7:43 ` Gerd Hoffmann
` (19 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: George @ 2018-05-19 19:58 UTC (permalink / raw)
To: qemu-devel
Whenever I append `console=ttyAMA0` I get kernel panic `Division by zero
in kernel` and -serial stdio doen't seem to work.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
qemu-system-arm: -device usb-
host,bus=001,vendorid=0x04f2,productid=0x0111: Bus '001' not found
Status in QEMU:
New
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Qemu-devel] [Bug 1772165] Re: qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (7 preceding siblings ...)
2018-05-19 19:58 ` George
@ 2018-05-22 7:43 ` Gerd Hoffmann
2018-06-01 16:05 ` Peter Maydell
` (18 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: Gerd Hoffmann @ 2018-05-22 7:43 UTC (permalink / raw)
To: qemu-devel
Beside rpi3 usb emulation not being there you are using the wrong
argument. bus= specifies the *guest* bus. hostbus= can be used to
specify the host bus number. When passing through devices using
vendorid and productid this should not be needed though. Oh, and you
can't pass through usb hubs, only individual devices.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
qemu-system-arm: -device usb-
host,bus=001,vendorid=0x04f2,productid=0x0111: Bus '001' not found
Status in QEMU:
New
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Qemu-devel] [Bug 1772165] Re: qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (8 preceding siblings ...)
2018-05-22 7:43 ` Gerd Hoffmann
@ 2018-06-01 16:05 ` Peter Maydell
2018-07-06 13:10 ` [Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support Peter Maydell
` (17 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: Peter Maydell @ 2018-06-01 16:05 UTC (permalink / raw)
To: qemu-devel
** Tags added: arm
** Summary changed:
- qemu-system-arm: -device usb-host,bus=001,vendorid=0x04f2,productid=0x0111: Bus '001' not found
+ arm raspi2/raspi3 emulation has no USB support
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
arm raspi2/raspi3 emulation has no USB support
Status in QEMU:
New
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (9 preceding siblings ...)
2018-06-01 16:05 ` Peter Maydell
@ 2018-07-06 13:10 ` Peter Maydell
2019-07-22 20:19 ` Aditya Govardhan
` (16 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: Peter Maydell @ 2018-07-06 13:10 UTC (permalink / raw)
To: qemu-devel
** Changed in: qemu
Importance: Undecided => Wishlist
** Changed in: qemu
Status: New => Confirmed
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
arm raspi2/raspi3 emulation has no USB support
Status in QEMU:
Confirmed
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (10 preceding siblings ...)
2018-07-06 13:10 ` [Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support Peter Maydell
@ 2019-07-22 20:19 ` Aditya Govardhan
2019-07-23 8:52 ` Peter Maydell
` (15 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: Aditya Govardhan @ 2019-07-22 20:19 UTC (permalink / raw)
To: qemu-devel
After reading change logs, I believe USB support for raspi2/raspi3 is
not added yet. Which means host internet network can't be accessed by
emulated machine.
I would be glad to help in documentation of differences between real
Raspberry Pi devices and QEMU emulated raspi2/raspi3 since I have seen a
lot of tutorials on internet trying to use QEMU for emulating raspberry
pi. These tutorials most of the times are just hacks, like using
versatilepb or using custom kernel instead of the Raspbian OS.
I have gathered as much info as possible over the last week through
these tutorials, QEMU raspi code and change logs, and believe a good
documentation of this info could help future users trying to emulate
raspi.
Finally, I am able to run latest Raspbian OS (2019-07-10) lite version
on raspi2 using the following command where I have extracted kernel
image and dtb file from second partition:
qemu-system-arm -M raspi2 -kernel bootpart/kernel7l.img -dtb
bootpart/bcm2709-rpi-2-b.dtb -drive file=2019-07-10-raspbian-buster-
lite.img,format=raw,if=sd -append "rw console=ttyAMA0 loglevel=8
root=/dev/mmcblk0p2 fsck.repair=yes rootwait memtest=1" -serial stdio
I am not able to connect network devices, not able to use images other
than lite image (https://bugs.launchpad.net/qemu/+bug/1837347) and
unsure why this command is showing Hardware name as BCM2835 when the
QEMU raspi code has BCM2836 associated with raspi2
(https://github.com/qemu/qemu/blob/59c58f96b270f5edd4ad10954c3a96556cb3a728/hw/arm/bcm2836.c#L31).
I highly appreciate the support provided for raspi2 and raspi3 till now.
Thank you.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
arm raspi2/raspi3 emulation has no USB support
Status in QEMU:
Confirmed
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (11 preceding siblings ...)
2019-07-22 20:19 ` Aditya Govardhan
@ 2019-07-23 8:52 ` Peter Maydell
2019-08-19 2:56 ` Weber Kai via Qemu-devel
` (14 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: Peter Maydell @ 2019-07-23 8:52 UTC (permalink / raw)
To: qemu-devel
I think the two main things we would need would be:
(1) a proper data sheet for the pi2/pi3 USB controller. Last time I looked there wasn't one available; it's pretty hard to model the controller properly without it. (Perhaps one has been released since I last looked.)
(2) somebody who cares about the pi2/pi3 models and has the time to invest in writing a device model for them
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
arm raspi2/raspi3 emulation has no USB support
Status in QEMU:
Confirmed
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (12 preceding siblings ...)
2019-07-23 8:52 ` Peter Maydell
@ 2019-08-19 2:56 ` Weber Kai via Qemu-devel
2019-08-19 9:16 ` Peter Maydell
` (13 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: Weber Kai via Qemu-devel @ 2019-08-19 2:56 UTC (permalink / raw)
To: qemu-devel; +Cc: Weber Kai
Hi!
I've googled: "usb" "designware" "otg" "datasheet"
I think this is the kernel driver for this device:
https://github.com/torvalds/linux/tree/master/drivers/usb/dwc3
Maybe it should be possible to use this as a reference? Maybe try to
redirect the proprietary drivers system calls? I don't know...
I've also found theses docs, which explains the device a little bit:
http://www.infradead.org/~mchehab/kernel_docs_pdf/driver-api.pdf
https://media.digikey.com/pdf/Data%20Sheets/Austriamicrosystems%20PDFs/AS3524.pdf
https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/arria-10/a10_54018.pdf
Thanks.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
arm raspi2/raspi3 emulation has no USB support
Status in QEMU:
Confirmed
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (13 preceding siblings ...)
2019-08-19 2:56 ` Weber Kai via Qemu-devel
@ 2019-08-19 9:16 ` Peter Maydell
2019-08-19 12:44 ` Clement Deschamps
2019-08-19 14:47 ` Clement Deschamps
` (12 subsequent siblings)
27 siblings, 1 reply; 35+ messages in thread
From: Peter Maydell @ 2019-08-19 9:16 UTC (permalink / raw)
To: qemu-devel
Thanks for digging those up. Unfortunately just the driver sources
aren't really enough information for a good device model, and the other
docs are just overviews without the level of detail we need.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
arm raspi2/raspi3 emulation has no USB support
Status in QEMU:
Confirmed
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2019-08-19 9:16 ` Peter Maydell
@ 2019-08-19 12:44 ` Clement Deschamps
0 siblings, 0 replies; 35+ messages in thread
From: Clement Deschamps @ 2019-08-19 12:44 UTC (permalink / raw)
To: Bug 1772165; +Cc: qemu-devel
It looks like the same USB controller is part of a TI SoC:
http://www.ti.com/lit/ug/spruhj7a/spruhj7a.pdf
Clement
On 8/19/19 11:16 AM, Peter Maydell wrote:
> Thanks for digging those up. Unfortunately just the driver sources
> aren't really enough information for a good device model, and the other
> docs are just overviews without the level of detail we need.
>
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (14 preceding siblings ...)
2019-08-19 9:16 ` Peter Maydell
@ 2019-08-19 14:47 ` Clement Deschamps
2019-08-20 12:59 ` Davide Bacilieri
` (11 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: Clement Deschamps @ 2019-08-19 14:47 UTC (permalink / raw)
To: qemu-devel
It looks like a similar USB controller is part of a TI SoC:
http://www.ti.com/lit/ug/spruhj7a/spruhj7a.pdf
Clement
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
arm raspi2/raspi3 emulation has no USB support
Status in QEMU:
Confirmed
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (15 preceding siblings ...)
2019-08-19 14:47 ` Clement Deschamps
@ 2019-08-20 12:59 ` Davide Bacilieri
2020-05-16 15:35 ` Doug Rabson
` (10 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: Davide Bacilieri @ 2019-08-20 12:59 UTC (permalink / raw)
To: qemu-devel
Right now with
`qemu-system-arm -kernel kernel7.img -dtb bcm2709-rpi-2-b.dtb -cpu arm1176 -M raspi2 -hda 2018-11-13-raspbian-stretch-full.img`
I can access the serial console using `Ctrl+Alt+3` in the QEMU window.
Using raspbian via this serial console is (as far as I can see) the same as using the Lite version.
The main display doesn't accept any mouse/ keyboard input, and `-device usb-mouse` generates a `qemu-system-arm: -device usb-mouse: No 'usb-bus' bus found for device 'usb-mouse` error, even after the `-machine usb=on` command
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
arm raspi2/raspi3 emulation has no USB support
Status in QEMU:
Confirmed
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (16 preceding siblings ...)
2019-08-20 12:59 ` Davide Bacilieri
@ 2020-05-16 15:35 ` Doug Rabson
2020-05-17 20:36 ` Paul Zimmerman
` (9 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: Doug Rabson @ 2020-05-16 15:35 UTC (permalink / raw)
To: qemu-devel
I think this PDF describes the same OTC controller as the rpi one:
http://rockchip.fr/RK312X%20TRM/chapter-26-usb-otg-2-0.pdf
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
arm raspi2/raspi3 emulation has no USB support
Status in QEMU:
Confirmed
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (17 preceding siblings ...)
2020-05-16 15:35 ` Doug Rabson
@ 2020-05-17 20:36 ` Paul Zimmerman
2020-10-05 15:10 ` Dims
` (8 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: Paul Zimmerman @ 2020-05-17 20:36 UTC (permalink / raw)
To: qemu-devel
Have you seen the patch series I have posted on the qemu-devel mailing
list? "[PATCH v5 0/7] dwc-hsotg (aka dwc2) USB host controller emulation."
If you could test that and give your 'tested-by', it could help get the
patch series accepted. That would require you to download the latest Qemu
source code, apply the patches, and build it yourself.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
arm raspi2/raspi3 emulation has no USB support
Status in QEMU:
Confirmed
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (18 preceding siblings ...)
2020-05-17 20:36 ` Paul Zimmerman
@ 2020-10-05 15:10 ` Dims
2020-10-05 20:11 ` mcandre
2020-10-05 21:46 ` Paul Zimmerman
` (7 subsequent siblings)
27 siblings, 1 reply; 35+ messages in thread
From: Dims @ 2020-10-05 15:10 UTC (permalink / raw)
To: qemu-devel
So, is it still true, that QEMU doesn't support USB on Raspberry Pi?
In other words I can't emulate Raspberry Pi actually?
What about documentation and QEMU helps? They reports usb for raspi2,
for example:
$qemu-system-arm -machine raspi2 -device help | grep usb-host
name "usb-host", bus usb-bus
Is this incorrect information?
Also, when I was truing to configure USB passthrough, I was getting
permission errors on /dev/usb/* probably indicating it was doing
something.
If it doesn't support usb, then why isn't it write error message?
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
arm raspi2/raspi3 emulation has no USB support
Status in QEMU:
Confirmed
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2020-10-05 15:10 ` Dims
@ 2020-10-05 20:11 ` mcandre
2020-10-06 10:35 ` Peter Maydell
0 siblings, 1 reply; 35+ messages in thread
From: mcandre @ 2020-10-05 20:11 UTC (permalink / raw)
To: qemu-devel
Which Beagle boards, Jetson Nano, other devices have rich support from
qemu? ARM is critical going forward.
On Mon, Oct 5, 2020, 10:20 AM Dims <1772165@bugs.launchpad.net> wrote:
> So, is it still true, that QEMU doesn't support USB on Raspberry Pi?
>
> In other words I can't emulate Raspberry Pi actually?
>
> What about documentation and QEMU helps? They reports usb for raspi2,
> for example:
>
> $qemu-system-arm -machine raspi2 -device help | grep usb-host
> name "usb-host", bus usb-bus
>
> Is this incorrect information?
>
> Also, when I was truing to configure USB passthrough, I was getting
> permission errors on /dev/usb/* probably indicating it was doing
> something.
>
> If it doesn't support usb, then why isn't it write error message?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1772165
>
> Title:
> arm raspi2/raspi3 emulation has no USB support
>
> Status in QEMU:
> Confirmed
>
> Bug description:
> Using Qemu 2.12.0 on ArchLinux.
>
> Trying to emulate arm device with `qemu-system-arm` and attach usb
> device for unput using
>
> ` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
>
> # lsusb returns
>
> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 001 Device 014: ID 13d3:3487 IMC Networks
> Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
> Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
> Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129
> Card Reader Controller
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>
> # qemu returns
> qemu-system-arm: -device
> usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
>
>
> Tried with connecting external usb keyboard but that didn't seem to work
> either.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
>
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
arm raspi2/raspi3 emulation has no USB support
Status in QEMU:
Confirmed
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (19 preceding siblings ...)
2020-10-05 15:10 ` Dims
@ 2020-10-05 21:46 ` Paul Zimmerman
2020-10-05 22:10 ` Paul Zimmerman
` (6 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: Paul Zimmerman @ 2020-10-05 21:46 UTC (permalink / raw)
To: qemu-devel
As of version 5.1, Qemu now supports USB on Raspberry PI 2 and 3. There
are a few caveats:
- If you are running a Raspbian image, you must add "dwc_otg.fiq_fsm_enable=0"
to the '-kernel' command-line parameters.
- Raspbian images 2016-05-27-raspbian-jessie and earlier don't work, see
Bug 1892604.
- It has only been tested with Raspbian and with mainline Linux kernels, so
e.g. BSD kernels probably won't work
I guess this bug should be closed, I'll look into how to do that.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
arm raspi2/raspi3 emulation has no USB support
Status in QEMU:
Confirmed
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (20 preceding siblings ...)
2020-10-05 21:46 ` Paul Zimmerman
@ 2020-10-05 22:10 ` Paul Zimmerman
2020-10-06 7:36 ` Dims
` (5 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: Paul Zimmerman @ 2020-10-05 22:10 UTC (permalink / raw)
To: qemu-devel
I misspoke in my last comment, that first bullet should have said
- If you are running a Raspbian image, you must add "dwc_otg.fiq_fsm_enable=0"
to the '-append' command-line parameters.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
arm raspi2/raspi3 emulation has no USB support
Status in QEMU:
Confirmed
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (21 preceding siblings ...)
2020-10-05 22:10 ` Paul Zimmerman
@ 2020-10-06 7:36 ` Dims
2020-10-06 7:38 ` Dims
` (4 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: Dims @ 2020-10-06 7:36 UTC (permalink / raw)
To: qemu-devel
I did this, but still can't access USB device, connected to host, from
guest.
Also I have
$ lsusb
unable to initalize libusb: -99
on guest.
Playing with usb options gave nothing.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
arm raspi2/raspi3 emulation has no USB support
Status in QEMU:
Confirmed
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (22 preceding siblings ...)
2020-10-06 7:36 ` Dims
@ 2020-10-06 7:38 ` Dims
2020-10-06 8:27 ` Paul Zimmerman
` (3 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: Dims @ 2020-10-06 7:38 UTC (permalink / raw)
To: qemu-devel
Command lines I use are like following
$QEMU_EXE \
-kernel qemu-rpi-kernel/kernel-qemu-4.4.34-jessie \
-cpu arm1176 \
-m 256 \
-M versatilepb \
-append "dwc_otg.lpm_enable=0 root=/dev/sda2 panic=1" \
-hda 2017-07-05-raspbian-jessie.img \
-usb \
-nic user \
-serial stdio \
-no-reboot \
# -device usb-dwc2 \
# -device usb-host,hostbus=1,hostport=3 \
# -usb \
# -device qemu-xhci,id=xhci \
# -device usb-net,netdev=mynet0 \
# -netdev user,id=mynet0,net=192.168.10.0/24,dhcpstart=192.168.10.1 \
#-usb \
# -device qemu-xhci \
# -device usb-ehci,id=ehci \
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
arm raspi2/raspi3 emulation has no USB support
Status in QEMU:
Confirmed
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (23 preceding siblings ...)
2020-10-06 7:38 ` Dims
@ 2020-10-06 8:27 ` Paul Zimmerman
2020-10-06 8:34 ` Paul Zimmerman
` (2 subsequent siblings)
27 siblings, 0 replies; 35+ messages in thread
From: Paul Zimmerman @ 2020-10-06 8:27 UTC (permalink / raw)
To: qemu-devel
You need to use -M raspi2 (or -M raspi3 for 64-bit kernels) to enable
the Raspberry Pi emulation. And you need version 5.1 or newer of Qemu to
get the dwc2 USB emulation. I don't think any Linux distributions
provide that new of a Qemu, so you might have to build it yourself.
Here is the command line I use to run the Raspbian image 2019-09-26
-raspbian-buster.img. I extracted bcm2709-rpi-2-b.dtb and kernel7.img
from the FAT partition inside the image file.
qemu-system-arm -M raspi2 -drive file=2019-09-26-raspbian-
buster.img,format=raw,if=sd -dtb bcm2709-rpi-2-b.dtb -kernel kernel7.img
-append 'rw earlycon=pl011,0x3f201000 console=ttyAMA0 loglevel=8
root=/dev/mmcblk0p2 fsck.repair=yes net.ifnames=0 rootwait memtest=1
dwc_otg.fiq_fsm_enable=0' -serial stdio -no-reboot -netdev user,id=net0
-usb -device usb-kbd -device usb-tablet -device usb-net,netdev=net0
That should give you a graphical emulation with working keyboard, mouse
and networking. Mass-storage also works, but I left that out for
simplicity.
But note that if you absolutely must pass-through a USB device from the
host, it probably won't work. That's because the dwc2 controller
emulation is connected through a full-speed hub emulation, so unless
your USB device is connected at full-speed on the host, it probably
won't work.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
arm raspi2/raspi3 emulation has no USB support
Status in QEMU:
Confirmed
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (24 preceding siblings ...)
2020-10-06 8:27 ` Paul Zimmerman
@ 2020-10-06 8:34 ` Paul Zimmerman
2020-11-17 9:47 ` Thomas Huth
2022-02-22 13:56 ` Carlo Bramini
27 siblings, 0 replies; 35+ messages in thread
From: Paul Zimmerman @ 2020-10-06 8:34 UTC (permalink / raw)
To: qemu-devel
Here is that command line again, hopefully readable this time:
qemu-system-arm -M raspi2 \
-drive file=2019-09-26-raspbian-buster.img,format=raw,if=sd \
-dtb bcm2709-rpi-2-b.dtb \
-kernel kernel7.img \
-append 'rw earlycon=pl011,0x3f201000 console=ttyAMA0 \
loglevel=8 root=/dev/mmcblk0p2 fsck.repair=yes \
net.ifnames=0 rootwait memtest=1 \
dwc_otg.fiq_fsm_enable=0' \
-serial stdio -no-reboot \
-netdev user,id=net0 \
-usb -device usb-kbd -device usb-tablet \
-device usb-net,netdev=net0
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
arm raspi2/raspi3 emulation has no USB support
Status in QEMU:
Confirmed
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2020-10-05 20:11 ` mcandre
@ 2020-10-06 10:35 ` Peter Maydell
2020-10-06 10:35 ` Peter Maydell
0 siblings, 1 reply; 35+ messages in thread
From: Peter Maydell @ 2020-10-06 10:35 UTC (permalink / raw)
To: Bug 1772165; +Cc: QEMU Developers
On Mon, 5 Oct 2020 at 21:38, mcandre <1772165@bugs.launchpad.net> wrote:
> Which Beagle boards, Jetson Nano, other devices have rich support from
> qemu? ARM is critical going forward.
If you just want to be able to run a Linux kernel and Arm
userspace code and you don't have a strong preference
for which board to use, we recommend using the 'virt'
board. See the notes on choosing a board model in the docs:
https://www.qemu.org/docs/master/system/target-arm.html#choosing-a-board-model
thanks
-- PMM
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2020-10-06 10:35 ` Peter Maydell
@ 2020-10-06 10:35 ` Peter Maydell
0 siblings, 0 replies; 35+ messages in thread
From: Peter Maydell @ 2020-10-06 10:35 UTC (permalink / raw)
To: qemu-devel
On Mon, 5 Oct 2020 at 21:38, mcandre <1772165@bugs.launchpad.net> wrote:
> Which Beagle boards, Jetson Nano, other devices have rich support from
> qemu? ARM is critical going forward.
If you just want to be able to run a Linux kernel and Arm
userspace code and you don't have a strong preference
for which board to use, we recommend using the 'virt'
board. See the notes on choosing a board model in the docs:
https://www.qemu.org/docs/master/system/target-arm.html#choosing-a-board-model
thanks
-- PMM
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
arm raspi2/raspi3 emulation has no USB support
Status in QEMU:
Confirmed
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (25 preceding siblings ...)
2020-10-06 8:34 ` Paul Zimmerman
@ 2020-11-17 9:47 ` Thomas Huth
2022-02-22 13:56 ` Carlo Bramini
27 siblings, 0 replies; 35+ messages in thread
From: Thomas Huth @ 2020-11-17 9:47 UTC (permalink / raw)
To: qemu-devel
Since USB emulation has been added in QEMU 5.1, I'm marking this feature
request as done now. If there are still issues, please open a new ticket
instead.
** Changed in: qemu
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
arm raspi2/raspi3 emulation has no USB support
Status in QEMU:
Fix Released
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
` (26 preceding siblings ...)
2020-11-17 9:47 ` Thomas Huth
@ 2022-02-22 13:56 ` Carlo Bramini
2022-09-18 11:07 ` Philippe Mathieu-Daudé via
27 siblings, 1 reply; 35+ messages in thread
From: Carlo Bramini @ 2022-02-22 13:56 UTC (permalink / raw)
To: qemu-devel
I'm also trying to run QEMU for emulating Raspberry PI, but I'm still unable to make working external USB devices like keyboard and mouse.
Unlike previous users, I'm not using a linux distro but Microsoft Windows 10 instead.
I'm using the precompiled 64bit executables downloaded from https://qemu.weilnetz.de/w64/ as suggested from the download page at qemu.org for Windows targets.
The version printed by the emulator is:
> QEMU emulator version 6.2.0 (v6.2.0-11889-g5b72bf03f5-dirty)
> Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
I'm launching the emulator with this command as administrator:
qemu-system-arm -M raspi2b -drive file=2020-12-02-raspios-buster-
armhf.img,format=raw,if=sd -dtb qemu-rpi-kernel\native-
emuation\dtbs\bcm2709-rpi-2-b.dtb -kernel qemu-rpi-kernel\native-
emuation\kernels\kernel7.img -append "rw earlycon=pl011,0x3f201000
console=ttyAMA0 loglevel=8 root=/dev/mmcblk0p2 fsck.repair=yes
net.ifnames=0 rootwait memtest=1 dwc_otg.fiq_fsm_enable=0" -serial stdio
-no-reboot -netdev user,id=net0 -usb -device usb-kbd -device usb-tablet
-device usb-net,netdev=net0
Besides few obvious changes, like the separator character for
directories (\ instead of /) and quotes (" instead of '), the command is
the same as the one described above.
The emulator starts, the desktop of the OS appears, but still no keyboard and no mouse support.
However, I can still login by using the terminal provided by the emulated serial terminal.
Is the feature expected to work also on the port of QEMU for Windows?
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
arm raspi2/raspi3 emulation has no USB support
Status in QEMU:
Fix Released
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2022-02-22 13:56 ` Carlo Bramini
@ 2022-09-18 11:07 ` Philippe Mathieu-Daudé via
2022-09-18 11:07 ` Philippe Mathieu-Daudé
0 siblings, 1 reply; 35+ messages in thread
From: Philippe Mathieu-Daudé via @ 2022-09-18 11:07 UTC (permalink / raw)
To: Bug 1772165; +Cc: qemu-devel@nongnu.org Developers
On Tue, Feb 22, 2022 at 3:15 PM Carlo Bramini
<1772165@bugs.launchpad.net> wrote:
>
> I'm also trying to run QEMU for emulating Raspberry PI, but I'm still unable to make working external USB devices like keyboard and mouse.
> Unlike previous users, I'm not using a linux distro but Microsoft Windows 10 instead.
> I'm using the precompiled 64bit executables downloaded from https://qemu.weilnetz.de/w64/ as suggested from the download page at qemu.org for Windows targets.
> The emulator starts, the desktop of the OS appears, but still no keyboard and no mouse support.
> However, I can still login by using the terminal provided by the emulated serial terminal.
>
> Is the feature expected to work also on the port of QEMU for Windows?
Yes.
However upstream QEMU bugs are now tracked on https://gitlab.com/qemu-
project/qemu/-/issues - so if you can reproduce it with the latest
version from upstream QEMU, please report it there.
Regards,
Phil.
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
2022-09-18 11:07 ` Philippe Mathieu-Daudé via
@ 2022-09-18 11:07 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 35+ messages in thread
From: Philippe Mathieu-Daudé @ 2022-09-18 11:07 UTC (permalink / raw)
To: qemu-devel
On Tue, Feb 22, 2022 at 3:15 PM Carlo Bramini
<1772165@bugs.launchpad.net> wrote:
>
> I'm also trying to run QEMU for emulating Raspberry PI, but I'm still unable to make working external USB devices like keyboard and mouse.
> Unlike previous users, I'm not using a linux distro but Microsoft Windows 10 instead.
> I'm using the precompiled 64bit executables downloaded from https://qemu.weilnetz.de/w64/ as suggested from the download page at qemu.org for Windows targets.
> The emulator starts, the desktop of the OS appears, but still no keyboard and no mouse support.
> However, I can still login by using the terminal provided by the emulated serial terminal.
>
> Is the feature expected to work also on the port of QEMU for Windows?
Yes.
However upstream QEMU bugs are now tracked on https://gitlab.com/qemu-
project/qemu/-/issues - so if you can reproduce it with the latest
version from upstream QEMU, please report it there.
Regards,
Phil.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165
Title:
arm raspi2/raspi3 emulation has no USB support
Status in QEMU:
Fix Released
Bug description:
Using Qemu 2.12.0 on ArchLinux.
Trying to emulate arm device with `qemu-system-arm` and attach usb
device for unput using
` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `
# lsusb returns
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 014: ID 13d3:3487 IMC Networks
Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp.
Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# qemu returns
qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: Bus '001' not found
Tried with connecting external usb keyboard but that didn't seem to work either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions
^ permalink raw reply [flat|nested] 35+ messages in thread
end of thread, other threads:[~2022-09-18 11:17 UTC | newest]
Thread overview: 35+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-19 13:34 [Qemu-devel] [Bug 1772165] [NEW] qemu-system-arm: -device usb-host, bus=001, vendorid=0x04f2, productid=0x0111: Bus '001' not found George
2018-05-19 13:43 ` [Qemu-devel] [Bug 1772165] " Peter Maydell
2018-05-19 13:53 ` George
2018-05-19 16:15 ` Peter Maydell
2018-05-19 17:04 ` George
2018-05-19 17:49 ` Peter Maydell
2018-05-19 19:07 ` George
2018-05-19 19:33 ` Peter Maydell
2018-05-19 19:58 ` George
2018-05-22 7:43 ` Gerd Hoffmann
2018-06-01 16:05 ` Peter Maydell
2018-07-06 13:10 ` [Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support Peter Maydell
2019-07-22 20:19 ` Aditya Govardhan
2019-07-23 8:52 ` Peter Maydell
2019-08-19 2:56 ` Weber Kai via Qemu-devel
2019-08-19 9:16 ` Peter Maydell
2019-08-19 12:44 ` Clement Deschamps
2019-08-19 14:47 ` Clement Deschamps
2019-08-20 12:59 ` Davide Bacilieri
2020-05-16 15:35 ` Doug Rabson
2020-05-17 20:36 ` Paul Zimmerman
2020-10-05 15:10 ` Dims
2020-10-05 20:11 ` mcandre
2020-10-06 10:35 ` Peter Maydell
2020-10-06 10:35 ` Peter Maydell
2020-10-05 21:46 ` Paul Zimmerman
2020-10-05 22:10 ` Paul Zimmerman
2020-10-06 7:36 ` Dims
2020-10-06 7:38 ` Dims
2020-10-06 8:27 ` Paul Zimmerman
2020-10-06 8:34 ` Paul Zimmerman
2020-11-17 9:47 ` Thomas Huth
2022-02-22 13:56 ` Carlo Bramini
2022-09-18 11:07 ` Philippe Mathieu-Daudé via
2022-09-18 11:07 ` Philippe Mathieu-Daudé
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).