Skip to content
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

Open
endinferno opened this issue Dec 16, 2023 · 5 comments
Open

Does uspi support qemu? #37

endinferno opened this issue Dec 16, 2023 · 5 comments

Comments

@endinferno
Copy link

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?

@rsta2
Copy link
Owner

rsta2 commented Dec 16, 2023 via email

@endinferno
Copy link
Author

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?
And I'll keep you in touch as soon as I make any progress.

@rsta2
Copy link
Owner

rsta2 commented Dec 17, 2023 via email

@endinferno
Copy link
Author

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 USPiInitialize.

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".
On my raspi3B+ board, I also have another device name "ven424-7800" which is a lan7800 network device.
So I think there still exists some problems.

As for mailbox, I find that in my code which has been updated for a little, the mailbox operation is little including SetPowerOn and GetMacAddress and QEMU logs correctly. So I think maybe there will be no problem for MailBox?

And I launch QEMU with -netdev user,id=net0 -device usb-net,netdev=net0, it is the same as the script which I used for testing the sample of Circle. So I think the script is correct.

@rsta2
Copy link
Owner

rsta2 commented Dec 18, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants