Skip to content

Instantly share code, notes, and snippets.

@thefinn93
Last active December 21, 2015 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thefinn93/6290064 to your computer and use it in GitHub Desktop.
Save thefinn93/6290064 to your computer and use it in GitHub Desktop.
If ran from an openwrt buildroot, will rebuild openwrt and launch it in qemu. Don't forget to Target System → MIPS Malta CoreLV board (qemu). And of course change the paths in lines 2 and 3
#!/bin/bash
disk="/home/finn/openwrt/bin/malta/openwrt-malta-be-vmlinux-initramfs.elf"
cd ~/openwrt
git pull
scripts/feeds update
scripts/feeds install -a
make -j3 V=s || exit 1
sudo qemu-system-mips -kernel $disk -nographic -m 256 -append "init=/sbin/init" -net nic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment