Skip to content

Instantly share code, notes, and snippets.

@CaledoniaProject
Created September 25, 2020 07:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CaledoniaProject/63de05140a96b595cee02b1ce03f24e2 to your computer and use it in GitHub Desktop.
Save CaledoniaProject/63de05140a96b595cee02b1ce03f24e2 to your computer and use it in GitHub Desktop.
emumipsel
#!/bin/bash
if [ ! -f "vmlinux-3.2.0-4-4kc-malta" ]; then
wget https://people.debian.org/~aurel32/qemu/mipsel/vmlinux-3.2.0-4-4kc-malta
fi
if [ ! -f "debian_wheezy_mipsel_standard.qcow2" ]; then
wget https://people.debian.org/~aurel32/qemu/mipsel/debian_wheezy_mipsel_standard.qcow2
fi
sudo qemu-system-mipsel -m 1024M -M malta \
-nographic \
-kernel vmlinux-3.2.0-4-4kc-malta \
-hda debian_wheezy_mipsel_standard.qcow2 \
-append "root=/dev/sda1 console=tty0" \
-device VGA \
-net user,hostfwd=tcp::80-:80,hostfwd=tcp::443-:443,hostfwd=tcp::2222-:22,hostfwd=tcp::8080-:8080,hostfwd=tcp::9999-:9999 \
-net nic -no-reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment