Skip to content

Commit ef586af

Browse files
committed
chore: added ARM64 run script for quick QEMU boot
1 parent ba42003 commit ef586af

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

run_arm.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
cargo build --bin axiom_os_arm --target aarch64-axiom.json -Z build-std=core,alloc --release 2>&1 | tail -2
3+
aarch64-linux-gnu-objcopy -O binary \
4+
target/aarch64-axiom/release/axiom_os_arm \
5+
target/aarch64-axiom/release/axiom_os_arm.bin
6+
qemu-system-aarch64 \
7+
-machine virt \
8+
-cpu cortex-a57 \
9+
-nographic \
10+
-device loader,file=target/aarch64-axiom/release/axiom_os_arm.bin,addr=0x41000000,cpu-num=0 \
11+
-device loader,addr=0x41000000,cpu-num=0 \
12+
-m 256M

0 commit comments

Comments
 (0)