mirror of https://github.com/CIRCL/Circlean
- run che system, get a shell, shutdown, quit qemu nicely - add kernel config to build a working kernel for qemupull/10/head 1.0
parent
e5cd809325
commit
9b08b1dd8f
6 changed files with 2193 additions and 14 deletions
@ -1,5 +1,5 @@ |
||||
proc /proc proc defaults 0 0 |
||||
/dev/mmcblk0p1 /boot vfat rw,defaults 0 0 |
||||
/dev/mmcblk0p2 / ext4 rw,defaults,noatime 0 0 |
||||
/dev/sda1 /boot vfat rw,defaults 0 1 |
||||
/dev/sda2 / ext4 rw,defaults,noatime 0 1 |
||||
tmpfs /tmp tmpfs rw,size=64M,noexec,nodev,nosuid,mode=1777 0 0 |
||||
# a swapfile is not a swap partition, so no using swapon|off from here on, use dphys-swapfile swap[on|off] for that |
||||
|
@ -0,0 +1,19 @@ |
||||
#!/usr/bin/expect -f |
||||
|
||||
set timeout -1 |
||||
|
||||
spawn qemu-system-arm -kernel tests/140509-kernel -cpu arm1176 -m 256 -M versatilepb \ |
||||
-append "root=/dev/sda2 panic=1 rootfstype=ext4 rw console=ttyAMA0 console=ttyS0" \ |
||||
-drive file=[lindex $argv 0],index=0,media=disk \ |
||||
-monitor telnet:localhost:4444,server,nowait \ |
||||
-nographic |
||||
|
||||
expect "root@raspberrypi:/#" |
||||
|
||||
interact +++ return |
||||
|
||||
send "\r" |
||||
|
||||
expect "reboot: System halted" |
||||
|
||||
send "echo quit | telnet localhost 4444" |
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue