UTM icon indicating copy to clipboard operation
UTM copied to clipboard

Raspberry Pi emulation is broken

Open Rastafabisch opened this issue 2 years ago • 13 comments

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

Rastafabisch avatar Dec 20 '22 15:12 Rastafabisch

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

freebrowser1 avatar Dec 21 '22 19:12 freebrowser1

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.

Rastafabisch avatar Dec 21 '22 21:12 Rastafabisch

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.

LostInCompilation avatar Dec 23 '22 15:12 LostInCompilation

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?

rannof avatar Jan 24 '23 08:01 rannof

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?

flatsiedatsie avatar Feb 01 '23 12:02 flatsiedatsie

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/

LostInCompilation avatar Feb 01 '23 15:02 LostInCompilation

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.

https://github.com/utmapp/UTM/issues/153#issuecomment-1489738042

markst avatar Mar 30 '23 06:03 markst

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

ivazin avatar Dec 02 '23 23:12 ivazin

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.

NickJLange avatar Feb 03 '24 23:02 NickJLange

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

See here: https://github.com/utmapp/UTM/issues/2505#issuecomment-1000906457

fgenoese avatar Feb 10 '24 19:02 fgenoese

Is there an active PR to update the backend already?

aaronlippold avatar Feb 15 '24 00:02 aaronlippold

Updating QEMU to version 8 is https://github.com/utmapp/UTM/issues/5622, although that ticket points out that QEMU 9 is out now.

DanLipsitt avatar Jun 07 '24 14:06 DanLipsitt

Cool. So does that mean this work would shift over to the version nine branch


Aaron Lippold

@.***

260-255-4779

twitter/aim/yahoo,etc. 'aaronlippold'

On Fri, Jun 7, 2024 at 10:39 Dan Lipsitt @.***> wrote:

Updating QEMU to version 8 is #5622 https://github.com/utmapp/UTM/issues/5622, although that ticket points out that QEMU 9 is out now.

— Reply to this email directly, view it on GitHub https://github.com/utmapp/UTM/issues/4827#issuecomment-2154984649, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALK42DQSQFDD2ASEQNNFQDZGHA3LAVCNFSM6AAAAAATETFC66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJUHE4DINRUHE . You are receiving this because you commented.Message ID: @.***>

aaronlippold avatar Jun 07 '24 16:06 aaronlippold