############################################################## # Script: installer_launch # Purpose: Boot the Slackware ARM installer inside QEMU # Author: Stuart Winter # Date: 24-Apr-2009 # Version: 1.01 ############################################################## # If you want a VNC server instead of displaying to your # vconsole/X, uncomment this - but note that the setting below # offers no security - not even a password! VISUALOUTPUT="-vnc :1" ## Uncomment this if you want a VNC Server # # If you'd like to output the boot process to your terminal window # on the host machine, uncomment the two lines below: #VISUALOUTPUT="-serial /dev/tty -nographic" #KAPPEND="console=ttyAMA0" # 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 # Start the system using NAT through your localhost: # # * Note: with the NAT option, you will not get a response from a ping # request inside the guest OS. * # qemu-system-arm $VISUALOUTPUT \ -M versatilepb \ -m 256 \ -kernel zImage-versatile \ -net nic,vlan=0 \ -net user,vlan=0 \ -localtime \ -k $KEYBOARD \ -usb \ -hda harddisk.img \ -no-reboot \ -initrd initrd-versatile.img \ -append "nofont nic=auto:eth0:dhcp root=/dev/ram rw $KAPPEND" # If you don't want to use DHCP, you should use this line instead of # the one above. # -append "nodhcp root=/dev/ram rw" \ # Flattened Device Tree: # You need qemu to be built with --enable-fdt # which also requires the 'device-tree-compiler' package # to be installed. # -dtb dtb/versatile-pb.dtb \ # EOF