Created
July 22, 2021 19:19
-
-
Save orangecms/e93af942790c8551531781e97943c3ba to your computer and use it in GitHub Desktop.
9legacy boot
This file contains hidden or 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
spawn qemu-system-x86_64 -machine accel=kvm -nographic -m 1024 -vga none -net user -net nic,model=virtio -device virtio-scsi-pci,id=scsi -cdrom plan9-gce.iso -boot d | |
c[?7l[2J[0mSeaBIOS (version ArchLinux 1.14.0-1) | |
iPXE (http://ipxe.org) 00:02.0 C000 PCI2.10 PnP PMM+3FF914D0+3FEF14D0 C000 | |
Press Ctrl-B to configure iPXE (PCI 00:02.0)... | |
Booting from DVD/CD... | |
PBSR...0000 F3D3 0000 00B2 | |
Plan 9 from Bell Labpcirouting: BIOS workaround: PCI.0.1.3 at pin 1 link 96 irq 10 -> 9 | |
no vga; serial console only | |
disk loader | |
cpu0: 3488MHz AuthenticAMD AMD-Athlon (cpuid: AX 0x0663 DX 0x78BFBFD) | |
ELCR: 0C00 | |
497M memory: 497M kernel data, 0M user, 18M swap | |
found partition #S/sdD0/data 0 220,437 | |
found partition #S/sdD0/data!9fat; 127117+2949120 | |
disks: sdD0 | |
trying sdD0.... | |
Plan 9 Startup Menu: | |
==================== | |
1. Install Plan 9 from this CD | |
2. Boot Plan 9 from this CD | |
Selection: 1 | |
found 9pcflop.gz | |
.gz...........................................................................................................................................................1249679 => 796503+1061872+391820=2250195 | |
entry: 0xf0100020 | |
Plan 9 | |
E820: 00000000 0009fc00 memory | |
E820: 0009fc00 000a0000 reserved | |
E820: 000f0000 00100000 reserved | |
E820: 00100000 3ffe0000 memory | |
E820: 3ffe0000 40000000 reserved | |
E820: feffc000 ff000000 reserved | |
E820: fffc0000 100000000 reserved | |
cpu0: 3501MHz AuthenticAMD AMD-Athlon (cpuid: AX 0x0663 DX 0x78BFBFD) | |
ELCR: 0C00 | |
#l0: virtio: 1Gbps port 0xC040 irq 10: 525400123456 | |
1024M memory: 256M kernel data, 767M user, 1392M swap | |
pickmethod...read #e/nobootprompt...pickmethod done | |
bind #æ...bind #S...partinit...auth...mount usbd...boot: can't open /srv/usb: '/srv/usb' file does not exist | |
kfs...version...time... | |
can't stat /srv/partfs.sdXX: '/srv/partfs.sdXX' file does not exist | |
init: starting /bin/rc | |
/bin/dossrv: serving #s/dos | |
use DMA for ide drives[yes]: | |
mouseport is (ps2, ps2intellimouse, 0, 1, 2)[ps2]: ps2intellimouse | |
vgasize [640x480x8]: 1280x1024x32 | |
monitor is [xga]: vesa | |
dbvesa: VBE error 0x0100 | |
/bin/aux/vga: controller not in /lib/vgadb, not vesa | |
0xC0000 55 AA 07 E9 A2 00 09 00 00 00 00 00 00 00 00 00 U............... | |
0xC0010 9C 00 00 00 00 00 84 00 1C 00 40 00 50 43 49 52 [email protected] | |
0xC0020 F4 1A 00 10 BF 04 1C 00 03 00 00 02 87 00 01 00 ................ | |
0xC0030 00 00 07 00 00 00 00 00 8D B4 00 00 8D BD 00 00 ................ | |
0xC0040 24 50 6E 50 01 02 00 00 00 7D 00 00 00 00 60 00 $PnP.....}....`. | |
0xC0050 70 00 02 00 00 F4 00 00 00 00 85 03 00 00 00 00 p............... | |
0xC0060 68 74 74 70 3A 2F 2F 69 70 78 65 2E 6F 72 67 00 http://ipxe.org. | |
0xC0070 69 50 58 45 20 28 50 43 49 20 30 30 3A 30 32 2E iPXE (PCI 00:02. | |
0xC0080 30 29 00 90 55 4E 44 49 16 BF 00 00 01 02 A4 04 0)..UNDI........ | |
0xC0090 E0 2C E0 2C 02 08 50 43 49 52 66 90 69 50 58 45 .,.,..PCIRf.iPXE | |
0xC00A0 0C 4A 07 00 57 D8 BE 60 60 1E 06 0F A0 0F A8 FC .J..W..``....... | |
0xC00B0 0E 1F BE 27 03 31 FF E8 4C 04 8E EB 31 FF E8 3D ...'.1..L...1..= | |
0xC00C0 04 A3 79 03 E8 74 04 BF 7A 00 E8 6E 04 C6 06 74 ..y..t..z..n...t | |
0xC00D0 00 20 31 FF E8 27 04 8C C8 E8 42 04 66 53 66 52 . 1..'....B.fSfR | |
0xC00E0 66 57 F9 B8 01 B1 CD 1A 72 56 66 81 FA 50 43 49 fW......rVf..PCI | |
0xC00F0 20 75 4D 84 E4 75 49 BE 40 03 31 FF E8 07 04 88 [email protected]..... | |
/bin/aux/vga: vgactlw: <type vga>: bad VGA control message "type vga" | |
rio: can't open display: initdisplay: /dev/draw/new: no frame buffer | |
failed to start rio. you can start a text-based installation by running | |
inst/textonly | |
init: starting /bin/rc | |
% fshalt | |
fshalt: '/bin/fshalt' file does not exist | |
% Done. |
This file contains hidden or 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
#!/bin/sh | |
# Copyright 2015 The Go Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style | |
# license that can be found in the LICENSE file. | |
set -e | |
# Download Plan 9 | |
# curl --fail -O http://9legacy.org/download/go/2018-11-30/plan9-gce.iso.bz2 | |
#bunzip2 plan9-gce.iso.bz2 | |
#-drive if=none,id=hd,file=disk.raw \ | |
#-device scsi-hd,drive=hd \ | |
# Run the installer to create the disk image. | |
expect <<EOF | |
spawn qemu-system-x86_64 \ | |
-machine accel=kvm -nographic \ | |
-m 1024 -vga none \ | |
-net user -net nic,model=virtio \ | |
-device virtio-scsi-pci,id=scsi \ | |
-cdrom plan9-gce.iso -boot d | |
expect -exact "Selection:" | |
send "1\n" | |
expect -exact "Plan 9" | |
sleep 5 | |
# Need to wait for the kernel to boot. | |
expect -timeout 600 -exact "use DMA for ide drives\[yes\]:" | |
send "\n" | |
expect -exact "mouseport is (ps2, ps2intellimouse, 0, 1, 2)\[ps2\]:" | |
send "ps2intellimouse\n" | |
expect -exact "vgasize \[640x480x8\]:" | |
send "1280x1024x32\n" | |
expect -exact "monitor is \[xga\]:" | |
send "vesa\n" | |
expect -exact "term% " | |
send "fshalt\n" | |
expect -exact "done halting" | |
EOF | |
echo "Done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment