Re: [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2022-09-18 Thread Philippe Mathieu-Daudé via
On Tue, Feb 22, 2022 at 3:15 PM Carlo Bramini <1772...@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 Win

[Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2022-02-22 Thread Carlo Bramini
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://qem

[Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2020-11-17 Thread Thomas Huth
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

Re: [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2020-10-06 Thread Peter Maydell
On Mon, 5 Oct 2020 at 21:38, mcandre <1772...@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 f

[Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2020-10-06 Thread Paul Zimmerman
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=

[Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2020-10-06 Thread Paul Zimmerman
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 l

[Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2020-10-06 Thread Dims
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 \ -seri

[Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2020-10-06 Thread Dims
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. htt

[Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2020-10-05 Thread Paul Zimmerman
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 QE

[Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2020-10-05 Thread Paul Zimmerman
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 18926

Re: [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2020-10-05 Thread mcandre
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 <1772...@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

[Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2020-10-05 Thread Dims
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

[Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2020-05-17 Thread Paul Zimmerman
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

[Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2020-05-16 Thread Doug Rabson
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 raspi

[Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2019-08-20 Thread Davide Bacilieri
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

[Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2019-08-19 Thread Clement Deschamps
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

Re: [Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2019-08-19 Thread Clement Deschamps
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 othe

[Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2019-08-19 Thread Peter Maydell
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 subscr

[Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2019-08-18 Thread Weber Kai via Qemu-devel
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 kno

[Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2019-07-23 Thread Peter Maydell
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 ab

[Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2019-07-22 Thread Aditya Govardhan
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

Re: [Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2019-03-25 Thread Peter Maydell
On Sun, 24 Mar 2019 at 17:34, mcandre wrote: > Out of curiousity, does the raspi2 machine support a PCI bus? No. There is no PCI bus on the raspi2 hardware and so there is no PCI bus in QEMU's model of it. > I am > trying to boot Debian arm64 with qemu-system-aarch64, and am running > into all m

[Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2019-03-24 Thread mcandre
Out of curiousity, does the raspi2 machine support a PCI bus? I am trying to boot Debian arm64 with qemu-system-aarch64, and am running into all manner of complaints from qemu about missing devices. Is there another machine like virt, but that offers support for boot devices? -- You received this

[Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support

2018-07-06 Thread Peter Maydell
** 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 emulatio