Skip to content

Commit 722fa63

Browse files
committed
QEMU with Pi 4 support
Switch to using QEMU branch with rpi4 support https://github.com/mcribbs/qemu-patch-raspberry4z
1 parent f3695da commit 722fa63

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ LDFLAGS = -nostdlib -nostartfiles
77

88
# Machine and emulator targets
99
CPU = cortex-a53
10-
QEMU_COMMAND = qemu-system-aarch64
11-
QEMU_MACHINE = raspi3b
12-
QEMU_RAM = 1024
10+
QEMU_COMMAND = ~/Code/ThirdParty/qemu-patch-raspberry4/build/qemu-system-aarch64
11+
QEMU_MACHINE = raspi4b2g
12+
QEMU_RAM = 2048
1313

1414
# Source directories (add additional subdirectories here)
1515
SRC_DIRS = src/bootstrapper

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ An OS for Raspberry Pi
55
- ~~brew: `gcc-arm-embedded`~~ This is 32 bit only, 64bit not available on brew
66
- Extract this [pre-built cross-compiler toolchain](https://github.com/thinkski/osx-arm-linux-toolchains/releases/download/8.3.0/aarch64-unknown-linux-gnu.tar.xz) into the build folder (should be located at `$PROJECT/build/aarch64-unkown-linux-gnu`)
77
2. [QEMU](https://www.qemu.org/download/)
8-
- brew: `qemu`
8+
3. - ~~brew: `qemu`~~ Version on brew does not support the Raspberry Pi 4
9+
- Checkout this [patched fork](https://github.com/mcribbs/qemu-patch-raspberry4) and compile.
10+
- Update QEMU_COMMAND in the Makefile with the location of your built binary
911
## Resources
1012
- https://jsandler18.github.io/ - This is old and targets 32bit machines
1113
- https://github.com/s-matyukevich/raspberry-pi-os

0 commit comments

Comments
 (0)