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

Internet connection ? #134

Open
Iuliean opened this issue Jul 30, 2021 · 4 comments
Open

Internet connection ? #134

Iuliean opened this issue Jul 30, 2021 · 4 comments

Comments

@Iuliean
Copy link

Iuliean commented Jul 30, 2021

How do you set that up ?

I am using native-emulation

@ptrsr
Copy link

ptrsr commented Aug 1, 2021

This is unfortunately difficult to achieve. It is possible for QEMU to add a virtual USB ethernet adapter to the Raspi VM. However, to use this virtual ethernet adapter, the virtual raspi requires two kernel modules: USB_ETH and USB_DWC2. These have to be compiled WITH the kernel (to ensure both are the same version), and installed in the root partition.

Recently I've published a Docker image that includes QEMU, RaspiOS Lite and has internet access. In the dockerfile you can find step by step how to achieve the process described above.

@nateww
Copy link

nateww commented Dec 10, 2021

If you are on a MAC, I created a PR for the native emulation that sync's up the kernel version with the release of RaspiOS to match, so that usb networking works.

See faf0/macos-qemu-rpi#5

@fgenoese
Copy link

@ptrsr Would you mind publishing a recent kernel (buster, bullseye) in your repository that includes the two modules needed (USB_ETH and USB_DWC2)?

@ptrsr
Copy link

ptrsr commented Dec 26, 2021

@fgenoese here you go.
I'm planning to create a separate repo in which the image, kernel and device tree blob are automatically build and shared. For now you can use the files provided above.

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

4 participants