qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 0/7] Raspberry Pi 2 support


From: Andrew Baumann
Subject: Re: [Qemu-devel] [PATCH v2 0/7] Raspberry Pi 2 support
Date: Thu, 7 Jan 2016 00:14:44 +0000

> From: Piotr Król [mailto:address@hidden
> Sent: Wednesday, 6 January 2016 16:10
[...]
> I tried v2 with qemu 38a762fec63f using:
> 
> $ qemu-system-arm -M raspi2 -kernel raspbian-boot/kernel7.img -sd 2015-
> 11-21-raspbian-jessie.img -append "rw earlyprintk loglevel=8
> console=ttyAMA0,115200 dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2" -
> dtb raspbian-boot/bcm2709-rpi-2-b.dtb -usbdevice mouse -usbdevice
> keyboard -serial stdio

Try dropping the -dtb parameter. I think the DTB file tells Linux to use the 
non-existent DMA controller. If that doesn't work, check the command I included 
in the initial email of the patch series ("patch" 0/7) -- I tested that at 
least once :)

> > BTW, the biggest roadblock in my plan above is the USB host controller
> > emulation (by Gregory), which is obviously incomplete/hacky, but still
> > works well enough for Linux keyboard/mouse that it's useful to people.
> > If someone wants to pick that up, I would be very happy :)
> 
> What you mean by 'pick that up' ? Is Gregory's USB code available
> somewhere and have to be cleaned and upstreamed ? Please point me to
> this pice and I would check what I can do.

It's here:
https://github.com/0xabu/qemu/blob/raspi/hw/usb/bcm2835_usb.c

I have not attempted to understand the code, or the controller it emulates but 
the first comment says a lot:
        /* This is wrong at so many levels, but well, I'm releasing it anyway */

Cheers,
Andrew



reply via email to

[Prev in Thread] Current Thread [Next in Thread]