Skip to content

Instantly share code, notes, and snippets.

View jiak94's full-sized avatar
🏠
Working from home

Jiakuan Li jiak94

🏠
Working from home
View GitHub Profile
@jiak94
jiak94 / start.sh
Created February 24, 2016 00:00
Start QEMU Debian ARM
qemu-system-arm -M versatileab -kernel ./boot/vmlinuz-3.2.0-4-versatile -initrd ./boot/initrd.img-3.2.0-4-versatile -hda debian.img -m 1024 -append "root=/dev/sda1" -redir tcp:2222::22
@jiak94
jiak94 / mount.sh
Last active March 22, 2016 07:21
Copy kernel and initrd
sudo mount -o loop,offset=$((512*2048)) debian.img /mnt
mkdir boot
cp /mnt/boot/* boot/ -rv
@jiak94
jiak94 / setup.sh
Created February 23, 2016 23:56
Download QEMU and Debian ARM
sudo apt-get install qemu-system-arm
mkdir qemu_debian && cd qemu_debian
wget http://ftp.debian.org/debian/dists/Debian7.9/main/installer-armel/20130430/images/versatile/netboot/initrd.gz
wget http://ftp.debian.org/debian/dists/Debian7.9/main/installer-armel/20130430/images/versatile/netboot/vmlinuz-3.2.0-4-versatile
wget http://get.debian.org/cdimage/archive/7.9.0/armel/iso-cd/debian-7.9.0-armel-netinst.iso
qemu-img create debian.img 20G