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

Raspberry Pi emulation is broken #4827

Open
Rastafabisch opened this issue Dec 20, 2022 · 14 comments
Open

Raspberry Pi emulation is broken #4827

Rastafabisch opened this issue Dec 20, 2022 · 14 comments

Comments

@Rastafabisch
Copy link

Raspberry images do not boot, as there is no suitable raspberry output device.
No PCI on raspberry to emulate display adapter. Neither vertigo based adapters work.

Configuration

  • UTM Version: 4.0.9
  • macOS Version: 13.1
  • Mac Chip (Intel, M1, ...): M1 Pro
Bildschirm­foto 2022-12-20 um 15 54 51 Bildschirm­foto 2022-12-20 um 15 56 44
@freebrowser1
Copy link

Weird.
A Raspberry Pi is native ARM64 (aka M1) architecture, so any Ubuntu / Debian ARM should run Raspberry PI OS.

@Rastafabisch
Copy link
Author

Rastafabisch commented Dec 21, 2022

Of course any arm64 system runs on M1s. The issue is when specifically emulating a raspberry, that you don't even get to boot as the environment emulated doesn't have an adequate graphics output.

@LostInCompilation
Copy link
Contributor

Can confirm. I never got it working, tested all available display adapters.

A Raspberry Pi is native ARM64 (aka M1) architecture, so any Ubuntu / Debian ARM should run Raspberry PI OS.

UTM only has options up to Pi 3. Those are 32 bit (ARMhf) devices. A 64 bit image probably won't work with Pi 3 selected.
Would be nice to have a Pi 4 option added.

@rannof
Copy link

rannof commented Jan 24, 2023

Same here, Trying to emulate RPI 3B 32bit with error:
QEMU exited from an error: qemu-arm-softmmu: -device e1000e,mac=D2:FC:44:5E:D3:79,netdev=net0: No 'PCI' bus found for device 'e1000e'
Are there any workable configurations?

@flatsiedatsie
Copy link

flatsiedatsie commented Feb 1, 2023

I ran into this too. I was following this guide (from 2022), which made me believe that it was theoretically possible. I now understand it's not possible to emulate a Raspberry Pi?

@LostInCompilation
Copy link
Contributor

QEMU by itself definitely supports Raspberry Pi images. But somehow UTM seems to have some issues.
You can use QEMU by itself until UTM works: https://azeria-labs.com/emulate-raspberry-pi-with-qemu/

@markst
Copy link

markst commented Mar 30, 2023

Am able to use QEMU on Mac OS Ventura using the following params for network:

-netdev user,id=net0,hostfwd=tcp::5022-:22 \
-device usb-net,netdev=net0 \

Seems UTM insists on using PCI device on which Raspberry Pi with no PCI bus.

#153 (comment)

@ivazin
Copy link

ivazin commented Dec 2, 2023

Is there already any working way to run Raspberry Pi OS (64-bit) on UTM with Apple Silicon?

@NickJLange
Copy link

Is there already any working way to run Raspberry Pi OS (64-bit) on UTM with Apple Silicon?

No, but it is not that far away.
See this Guide

What's missing seems to be getting the UTM Qemu backend updated to version 8... but qemu does work.

@fgenoese
Copy link

One of the issues seems to be that 'ich9-usb-ehci1' is automatically added with no possibility to prevent it from GUI.

See here:
#2505 (comment)

@aaronlippold
Copy link

Is there an active PR to update the backend already?

@DanLipsitt
Copy link

Updating QEMU to version 8 is #5622, although that ticket points out that QEMU 9 is out now.

@aaronlippold
Copy link

aaronlippold commented Jun 7, 2024 via email

@daza85
Copy link

daza85 commented Nov 1, 2024

Any updates I have been trying to run my existing RPI4 .img in UTM for hours but never seem to get an image to display or see it's MAC appear in my router device table!

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