Skip to content

Instantly share code, notes, and snippets.

@tsutsui
Created July 1, 2015 16:17
Show Gist options
  • Save tsutsui/aed5be3f3e63c8e1bc48 to your computer and use it in GitHub Desktop.
Save tsutsui/aed5be3f3e63c8e1bc48 to your computer and use it in GitHub Desktop.
NetBSD/macppc 7.0_RC1 ofwboot debug
Open Firmware, 2.0
To continue booting the MacOS type:
BYE<return>
To continue booting from the default boot device type:
BOOT<return>
ok
0 > boot scsi/sd@3:0 -a
OF_open bootpath=
read stage 2 blocks: 0. done!
starting stage 2...
>> NetBSD/macppc OpenFirmware Boot, Revision 1.12 (Thu Jul 2 01:02:29 JST 2015)
Cannot use bootpath
Using boot-device instead
Boot: ata/ATA-Disk@0/netbsd -s
devopen
EXIT called ok
0 > reset-all
Open Firmware, 2.0
To continue booting the MacOS type:
BYE<return>
To continue booting from the default boot device type:
BOOT<return>
ok
0 > boot scsi/sd@3:0 -a
OF_open bootpath=scsi/sd@3
read stage 2 blocks: 0. done!
starting stage 2...
>> NetBSD/macppc OpenFirmware Boot, Revision 1.12
Boot: ata/ATA-Disk@0/netbsd -s
9150916+173176 [384336+378682]=0x99f024
start=0x100000
mem region 0 start=0 size=4000000
avail region 0 start=0x4800 size=0x800
avail region 1 start=0x16000 size=0x3eea000
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 7.0_RC1 (GENERIC.201506190427Z)
total memory = 65536 KB
avail memory = 52680 KB
kern.module.path=/stand/macppc/7.0/modules
found ohare PIC at f3000000
bootpath: ata/ATA-Disk@0/netbsd
mainbus0 (root)
cpu0 at mainbus0: 603ev (Revision 2.1), ID 0 (primary)
cpu0: HID0 0x90c001<DOZE,DPM,ICE,DCE,NOPTI>, powersave: 1
cpu0: ohare L2 cache enabled
memory0 at mainbus0
bandit0 at mainbus0
pci0 at bandit0 bus 0
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer Bandit Host-PCI Bridge (rev. 0x02)
ex0 at pci0 dev 13 function 0: 3Com 3c905B-TX 10/100 Ethernet (rev. 0x30)
ex0: interrupting at irq 23
ex0: MAC address 00:50:04:65:51:1a
exphy0 at ex0 phy 24: 3Com internal media interface
exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
VIA Technologies VT83C572 USB Controller (USB serial bus, UHCI, revision 0x04) at pci0 dev 14 function 0 not configured
obio0 at pci0 dev 16 function 0: addr 0xf3000000
mesh0 at obio0 offset 0x10000 irq 12: 50MHz, SCSI ID 7
scsibus0 at mesh0: 8 targets, 8 luns per target
mesh0: couldn't establish power handler
zsc0 at obio0 irq 15,16
zstty0 at zsc0 channel 0 (console i/o)
zstty1 at zsc0 channel 1
awacs at obio0 offset 0x14000 not configured
swim3 at obio0 offset 0x15000 not configured
nvram0 at obio0 offset 0x60000
cuda0 at obio0 offset 0x16000 irq 18
nadb0 at cuda0: Apple Desktop Bus
iic0 at cuda0: I2C bus
wdc0 at obio0 offset 0x20000 irq property not found; using 13: DMA transfer
atabus0 at wdc0 channel 0
vmmask 7e000000 schedmask 7e000000 highmask 7e000000
scsibus0: waiting 2 seconds for devices to settle...
adbkbd0 at nadb0 addr 2: extended keyboard
wskbd0 at adbkbd0 mux 1
wsmouse0 at adbkbd0 mux 0
adbms0 at nadb0 addr 3: 1-button, 100 dpi mouse
wsmouse1 at adbms0 mux 0
cd0 at scsibus0 target 3 lun 0: <MATSHITA, CD-ROM CR-506, 8S05> cdrom removable
wd0 at atabus0 drive 0
wd0: <ST320011A>
wd0: 19092 MB, 38792 cyl, 16 head, 63 sec, 512 bytes/sect x 39102336 sectors
swwdog0: software watchdog initialized
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
Enter pathname of shell or RETURN for /bin/sh:
Terminal type? [unknown] kterm
Terminal type is kterm.
We recommend creating a non-root account and using su(1) for root access.
# mount /
# ifconfig ex0 192.168.20.4
# mount_nfs -T 192.168.20.1:/r /r
# cp /r/work/netbsd-7/src/sys/arch/macppc/stand/ofwboot/obj.macppc/ofwboot /
# installboot -v /dev/rwd0c /usr/mdec/bootxx /ofwboot
File system: /dev/rwd0c
File system type: ffs (blocksize 16384, needswap 0)
Primary bootstrap: /usr/mdec/bootxx
Secondary bootstrap: /ofwboot
Bootstrap start sector: 4
Bootstrap byte count: 1748
Bootstrap block table: 118 entries of 16384 bytes available, 5 used: 6048 6080 6112 6144 32404
Writing bootstrap
# reboot
reboot: rebooted by root
syncing disks... done
unmounting file systems...
unmounting done
rebooting
Open Firmware, 2.0
To continue booting the MacOS type:
BYE<return>
To continue booting from the default boot device type:
BOOT<return>
ok
0 > boot
OF_open bootpath=ata/ATA-Disk@0
read stage 2 blocks: 01234. done!
starting stage 2...
>> NetBSD/macppc OpenFirmware Boot, Revision 1.12 (Thu Jul 2 01:08:32 JST 2015)
Cannot use bootpath
Using boot-device instead
alloc(424)=5010 (new chunk size 4096)
alloc(8192)=6010 (new chunk size 12288)
dealloc(0, 8192) (origsize 2160003080)
DEFAULT CATCH!, code=FFF00300 at %SRR0: 00E01F98 %SRR1: 00003070
ok
0 >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment