Forked from sosnovskyas/gist:f9a7e93280ee33312a52e17d3b81db79
Last active
May 8, 2019 17:24
-
-
Save yangm97/603f9bf00dd521159b4379e16ca97543 to your computer and use it in GitHub Desktop.
Qemu with ARM on Mac OSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/20150422/images/versatile/netboot/initrd.gz | |
wget http://ftp.de.debian.org/debian/dists/jessie/main/installer-armel/20150422/images/versatile/netboot/vmlinuz-3.16.0-4-versatile | |
# Creating disk | |
qemu-img create -f qcow2 armdisk.img 1G | |
# Running | |
qemu-system-arm -M versatilepb -kernel \ | |
vmlinuz-3.16.0-4-versatile \ | |
-initrd initrd.gz \ | |
-hda armdisk.img \ | |
-append "root=/dev/ram" \ | |
-m 256 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment