Forked from FrankSpierings/qemu-system-raspberry.sh
Created
December 8, 2016 11:01
-
-
Save seyyah/90f2317cbda31e04e4c45014fa709c76 to your computer and use it in GitHub Desktop.
Run Raspberry Pi in qemu-system-arm using versatilepb 'hardware'
This file contains hidden or 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
#!/bin/sh | |
#https://github.com/dhruvvyas90/qemu-rpi-kernel/raw/master/kernel-qemu-4.4.13-jessie | |
KERNEL=kernel-qemu-4.4.13-jessie | |
#https://downloads.raspberrypi.org/raspbian_lite_latest + https://github.com/dhruvvyas90/qemu-rpi-kernel/wiki/Emulating-Jessie-image-with-4.x.xx-kernel | |
IMAGE=2016-05-27-raspbian-jessie-lite.img | |
export QEMU_AUDIO_DRV="none" | |
qemu-system-arm -kernel ${KERNEL} \ | |
-cpu arm1176 \ | |
-m 256 \ | |
-M versatilepb \ | |
-append "root=/dev/sda2 console=ttyAMA0,115200 rootfstype=ext4 rw" \ | |
-drive "file=${IMAGE},format=raw" \ | |
-nographic -serial stdio -monitor none |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment