Skip to content

Instantly share code, notes, and snippets.

@aisouard
Created April 6, 2017 07:23
Show Gist options
  • Save aisouard/5471c62e08c204d92ea45fee5e3546f0 to your computer and use it in GitHub Desktop.
Save aisouard/5471c62e08c204d92ea45fee5e3546f0 to your computer and use it in GitHub Desktop.
Raspbian + QEMU
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