############################################################## # Script: installer_launch # Purpose: Boot the Slackware ARM installer inside QEMU # Author: Stuart Winter # Date: 28-May-2020 # Version: 1.03 ############################################################## # Change log ############################################################## # 30-Nov-2013, v1.02 # 28-May-2020, v1.03 # * Tested with QEMU-4.1.0 # * Uses machine type: vexpress-a9 # * Switch from 'sdcard' hard disk type to 'virtual' media ############################################################## # You'll see the console output in the terminal window from which # you run qemu. VISUALOUTPUT="-nographic" KAPPEND="console=ttyAMA0,115200n8" # Select your keyboard - this gets overridden by the OS when you # choose your keymap, so it's not prudent to change it unless you # have a non-standard keyboard such as a Mac (according to qemu(1)). # If you're using the installer as a rescue environment, it may also # be worth setting your keyboard. # # The best advise is that if you find that your keyboard is going # crazy in QEMU, please set it to one in the list below ;-) # # The available keyboard options are: # # ar de-ch es fo fr-ca hu ja mk no pt-br sv # da en-gb et fr fr-ch is lt nl pl ru th # de en-us fi fr-be hr it lv nl-be pt sl tr # KEYBOARD="en-gb" # Load the 'tunnel' interface module: modprobe tun # Use NAT for networking as this is the most simple option to setup: NETTYPE="-net nic -net user,restrict=n" qemu-system-arm $VISUALOUTPUT $NETTYPE \ -m 1024 \ -M vexpress-a9 \ -smp $( nproc ) \ -k $KEYBOARD \ -rtc base=localtime \ -no-reboot \ -drive if=none,file=hda.qcow2,format=qcow2,id=hd \ -device virtio-blk-device,drive=hd \ -initrd initrd-armv7.img \ -kernel zImage-armv7 \ -dtb dtb/vexpress-v2p-ca9.dtb \ -append "TERM=xterm vmalloc=256MB $KAPPEND nofont nic=auto:eth0:dhcp root=/dev/ram rw"