-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- run che system, get a shell, shutdown, quit qemu nicely - add kernel config to build a working kernel for qemu
- Loading branch information
Showing
6 changed files
with
2,193 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.