-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does uspi support qemu? #37
Comments
No, USPi and the USPi Environment does not support QEMU. There have been many
modifications applied to Circle, after its USB driver had been ported for USPi.
Some of these modifications are necessary for QEMU support and are not
available in USPi.
|
I'm trying to get uspi to support qemu, although I don't know how long it will take. Will this work take a long time? |
OK. I don't think there are many changes necessary. The good thing is, that
you can debug it using GDB. What I have seen in a quick debug is, that you
have to remove the following block for QEMU:
https://github.com/rsta2/uspi/blob/master/lib/dwhcidevice.c#L907-L920
Also the firmware mailbox call, used to create the frame buffer, seems to be not
functional with QEMU:
https://github.com/rsta2/uspi/blob/master/env/lib/bcmframebuffer.c#L115
You have to port the property mailbox calls, which are used by Circle here.
|
Thanks for your help! That's an important hint for me. I remove the code in https://github.com/rsta2/uspi/blob/master/lib/dwhcidevice.c#L907-L920 as you told me. Now it can pass the function It can not detect the device, I print the device names in the QEMU which are "ven409-55aa, dev9-0-0", "ven525-a4a2, dev2-0-0". As for mailbox, I find that in my code which has been updated for a little, the mailbox operation is little including And I launch QEMU with |
QEMU does not support the LAN7800 device (ven424-7800). For network access it
uses a USB CDC Ethernet device (int2-6-0), which is not supported by USPi, but
by Circle (lib/usb/usbcdcethernet.cpp). If you need network access with USPi
in QEMU, you have to port it.
|
In the overview, it is said that "USPi was "mechanically" ported from the Circle USB library which is written in C++. That's why the source code may look a little bit strange. But it was faster to do so."
As far as I know, circle supports Qemu. So does uspi support qemu as well?
The text was updated successfully, but these errors were encountered: