Created
April 6, 2017 07:23
-
-
Save aisouard/5471c62e08c204d92ea45fee5e3546f0 to your computer and use it in GitHub Desktop.
Raspbian + QEMU
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
mount 2017-03-02-raspbian-jessie-lite.img -o offset=$((137216 * 512)) /mnt/rpi/ | |
emacs /mnt/rpi/etc/fstab # Comment the two lines under the first one | |
touch /mnt/rpi/etc/ld.so.preload | |
umount /mnt/rpi | |
qemu-system-arm -M versatilepb -cpu arm1176 -kernel kernel-qemu -hda 2017-03-02-raspbian-jessie-lite.img -serial stdio -no-reboot -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw" | |
mount 2017-03-02-raspbian-jessie-lite.img -o offset=$((137216 * 512)) /mnt/rpi/ | |
emacs /mnt/rpi/etc/ld.so.preload # Comment the first line | |
umount /mnt/rpi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment