All pastes #2124788 Raw Edit

Miscellany

public text v1 · immutable
#2124788 ·published 2012-03-06 07:54 UTC
rendered paste body
# Debian
HDA=debian6-17-02-2012/debian6-17-02-2012.img
# Boots in QEMU, but has no modules to support the USB devices
# KERNEL=zImage_3.1.9
# vmlinuz-3.2.0-1-versatile has modules but won't boot, fails with unrecgnoized processor type
KERNEL=vmlinuz-3.2.0-1-versatile
# ARMCORE=arm11mpcore
ARMCORE=arm926
# USB Thermometers (TEMPerHID)
USBDEVICES="-usbdevice host:0403:6001 -usbdevice host:0c45:7402"

# QEMU built from Git/Trunk on March 6, 2012 to get past arp network fault crashes
QEMU=$(pwd)/qemu/arm-softmmu/qemu-system-arm

sudo echo # escalate privliedges with sudo before attempting to background our process
# This command spits a couple of warnings/errors about audio devices, etc, and 2x pts devices the QEMU Monitor and the QEMU Serial Console (use screen to connect to them)
sudo ${QEMU} -M versatilepb -cpu ${ARMCORE} \
     -m 256 -hda ${HDA} \
     -kernel ${KERNEL} -append "root=/dev/sda2 console=ttyAMA0" \
     -vnc :2 -serial pty -monitor pty \
     -usb ${USBDEVICES} \
     -redir tcp:2222::22 &  
# sudo screen /dev/pts/1 # This is the QEMU monitor console
# sudo screen /dev/pts/3 # This is the Serial line ttyAMA0, where the kernel debug stuff will go