2014-03-26 16:36:03 +01:00
|
|
|
#!/usr/bin/expect -f
|
|
|
|
|
|
|
|
set timeout -1
|
|
|
|
|
2015-10-09 17:43:00 +02:00
|
|
|
spawn qemu-system-arm -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb \
|
2014-03-27 18:57:00 +01:00
|
|
|
-append "root=/dev/sdc2 panic=1 rootfstype=ext4 ro console=ttyAMA0 console=ttyS0" \
|
2014-03-26 16:36:03 +01:00
|
|
|
-drive file=[lindex $argv 1],index=0,media=disk \
|
|
|
|
-drive file=[lindex $argv 2],index=1,media=disk \
|
|
|
|
-drive file=[lindex $argv 0],index=2,media=disk \
|
2016-04-26 13:45:47 +02:00
|
|
|
-monitor none -soundhw all -nographic -serial pty \
|
2014-03-26 16:36:03 +01:00
|
|
|
-chardev stdio,id=mon0 -mon chardev=mon0,mode=readline \
|
|
|
|
-chardev socket,id=mon1,host=localhost,port=4444,server,nowait \
|
2014-07-30 21:50:42 +02:00
|
|
|
-mon chardev=mon1,mode=control,pretty=on \
|
|
|
|
-vnc 0.0.0.0:1
|
2014-03-26 16:36:03 +01:00
|
|
|
|
2015-10-09 18:22:55 +02:00
|
|
|
expect "System halted."
|
2014-03-26 16:36:03 +01:00
|
|
|
|
|
|
|
send "quit\n"
|