Skip to content

Instantly share code, notes, and snippets.

@zeldin
Created March 7, 2025 12:13
Show Gist options
  • Save zeldin/c6a09b12a4ef8b2e654a08963bc55e36 to your computer and use it in GitHub Desktop.
Save zeldin/c6a09b12a4ef8b2e654a08963bc55e36 to your computer and use it in GitHub Desktop.
aarch64_be guest script
#!/bin/sh
KERNEL="$(dirname "$0")"/Image
CMDLINE="earlycon console=ttyAMA0 quiet $@"
exec taskset 0x39 qemu-system-aarch64 -machine virt -cpu host -enable-kvm -nographic -smp 1 -m 2048 -virtfs local,path=/usr/aarch64_be-unknown-linux-gnu,mount_tag=root9p,security_model=passthrough,id=root9p -virtfs local,path=/home,mount_tag=home9p,security_model=passthrough,id=home9p -kernel "$KERNEL" -append "$CMDLINE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment