Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hollychen503/3032512cb1b5bfa8515125155edea6cb to your computer and use it in GitHub Desktop.
Save hollychen503/3032512cb1b5bfa8515125155edea6cb to your computer and use it in GitHub Desktop.
Qemu with ARM on Mac OSX
# QEmu
brew install qemu
# Home for out tests
mkdir ~/arm-emu
cd ~/arm-emu
# Download initrd and kernel
wget http://ftp.de.debian.org/debian/dists/jessie/main/installer-armel/current/images/versatile/netboot/initrd.gz
wget http://ftp.de.debian.org/debian/dists/jessie/main/installer-armel/current/images/versatile/netboot/vmlinuz-3.16.0-6-versatile
# 404
wget http://ftp.de.debian.org/debian/dists/jessie/main/installer-armel/current/images/versatile/netboot/vmlinuz-3.16.0-4-versatile
# Creating disk
qemu-img create -f qcow2 armdisk.img 4G
# Running
qemu-system-arm -M versatilepb -kernel \
vmlinuz-3.16.0-6-versatile \
-initrd initrd.gz \
-hda armdisk.img \
-append "root=/dev/ram" \
-m 512
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment