Skip to content

Instantly share code, notes, and snippets.

@tsutsui
Created May 30, 2024 15:50
Show Gist options
  • Save tsutsui/f1f81e194eb2ff1eda6fda4b1bb84d25 to your computer and use it in GitHub Desktop.
Save tsutsui/f1f81e194eb2ff1eda6fda4b1bb84d25 to your computer and use it in GitHub Desktop.
MacOS 8 and NetBSD/macppc 10.0 dual boot using Apple Partition Map partitioning on Apus 2000/200 (OpenFirmware 2.0)
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.14 (Thu Mar 28 08:33:33 UTC 2024)
>> Open Firmware version 2.x
>> Open Firmware running in virtual-mode.
Cannot use bootpath
Using boot-device instead
11800060+167172 [463008+446635]=0xc481e4
start=0x100000
[ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
[ 1.0000000] 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
[ 1.0000000] 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
[ 1.0000000] 2024
[ 1.0000000] The NetBSD Foundation, Inc. All rights reserved.
[ 1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[ 1.0000000] The Regents of the University of California. All rights reserved.
[ 1.0000000] NetBSD 10.0 (GENERIC) #0: Thu Mar 28 08:33:33 UTC 2024
[ 1.0000000] mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/macppc/compile/GENERIC
[ 1.0000000] total memory = 144 MB
[ 1.0000000] avail memory = 125 MB
[ 1.0000000] found ohare PIC at f3000000
[ 1.0000000] bootpath: ata/ATA-Disk@0/netbsd
[ 1.0000000] mainbus0 (root)
[ 1.0000000] valkyriefb0 at mainbus0 address 0xf1000000
[ 1.0000000] memory0 at mainbus0
[ 1.0000000] bandit0 at mainbus0
[ 1.0000000] pci0 at bandit0 bus 0
[ 1.0000000] pchb0 at pci0 dev 11 function 0
[ 1.0000000] pchb0: Apple Computer Bandit Host-PCI Bridge (rev. 0x02)
[ 1.0000000] ex0 at pci0 dev 13 function 0: 3Com 3c905B-TX 10/100 Ethernet (rev. 0x30)
[ 1.0000000] ex0: interrupting at irq 23
[ 1.0000000] ex0: MAC address 00:50:04:65:51:1a
[ 1.0000000] exphy0 at ex0 phy 24: 3Com internal media interface
[ 1.0000000] exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
[ 1.0000000] VIA Technologies VT83C572 USB Controller (USB serial bus, UHCI, revision 0x04) at pci0 dev 14 function 0 not configured
[ 1.0000000] obio0 at pci0 dev 16 function 0: addr 0xf3000000
[ 1.0000000] mesh0 at obio0 offset 0x10000 irq 12: 50MHz, SCSI ID 7
[ 1.0000000] scsibus0 at mesh0: 8 targets, 8 luns per target
[ 1.0000000] zsc0 at obio0 irq 15,16
[ 1.0000000] zstty0 at zsc0 channel 0 (console i/o)
[ 1.0000000] zstty1 at zsc0 channel 1
[ 1.0000000] awacs0 at obio0 offset 0x14000: irq 17,8,9
[ 1.0000000] awacs0: headphones
[ 1.0000000] audio0 at awacs0: playback, capture, full duplex
[ 1.0000000] audio0: slinear_be:16 2ch 44100Hz, blk 4096 bytes (23.2ms) for playback
[ 1.0000000] audio0: slinear_be:16 2ch 44100Hz, blk 4096 bytes (23.2ms) for recording
[ 1.0000000] spkr0 at audio0: PC Speaker (synthesized)
[ 1.0000000] wsbell at spkr0 not configured
[ 1.0000000] swim3 at obio0 offset 0x15000 not configured
[ 1.0000000] nvram0 at obio0 offset 0x60000
[ 1.0000000] cuda0 at obio0 offset 0x16000 irq 18
[ 1.0000000] nadb0 at cuda0: Apple Desktop Bus
[ 1.0000000] iic0 at cuda0: I2C bus
[ 1.0000000] videopll0 at iic0 addr 0x50: Apple onboard video PLL
[ 1.0000000] wdc0 at obio0 offset 0x20000 irq property not found; using 13: DMA transfer
[ 1.0000000] atabus0 at wdc0 channel 0
[ 1.0000000] vmmask 7cc00000 schedmask 7fc00000 highmask 7fc00000
[ 1.0001106] scsibus0: waiting 2 seconds for devices to settle...
[ 1.0300216] WARNING: system needs entropy for security; see entropy(7)
[ 1.3399108] adbkbd0 at nadb0 addr 2: extended keyboard
[ 1.3799159] wskbd0 at adbkbd0 mux 1
[ 1.3799159] wsmouse0 at adbkbd0 mux 0
[ 4.3400657] wd0 at atabus0 drive 0
[ 4.3400657] wd0: <DOGFISH SSD 64GB>
[ 4.3400657] wd0: 61057 MB, 124053 cyl, 16 head, 63 sec, 512 bytes/sect x 125045424 sectors
[ 4.7301114] cd0 at scsibus0 target 3 lun 0: <MATSHITA, CD-ROM CR-8024, 2.0e> cdrom removable
[ 6.4901018] swwdog0: software watchdog initialized
[ 6.5401256] valkyriefb0: switched to 800 x 600 in 8 bit colour
[ 6.5901143] wsdisplay1 at valkyriefb0 kbdmux 1
[ 6.6101603] valkyriefb0: switched to 800 x 600 in 8 bit colour
[ 6.6601060] wsdisplay2 at valkyriefb0 kbdmux 1
[ 6.6601060] boot device: wd0
[ 6.6901729] root on wd0a dumps on wd0b
[ 6.7101825] root file system type: ffs
[ 6.7101825] kern.module.path=/stand/macppc/10.0/modules
[ 6.9101701] entropy: best effort
/etc/rc.conf is not configured. Multiuser boot aborted.
Enter pathname of shell or RETURN for /bin/sh:
# disklabel wd0
# /dev/rwd0:
type: ESDI
disk: wd0
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 124053
total sectors: 125045424
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
4 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 115343360 8388608 4.2BSD 0 0 0 # (Cyl. 8322*- 122749*)
b: 1313456 123731968 swap # (Cyl. 122749*- 124052)
c: 125045424 0 unused 0 0 # (Cyl. 0 - 124052)
d: 8388032 64 HFS # (Cyl. 0*- 8321*)
disklabel: boot block size 0
disklabel: super block size 0
# pdisk /dev/rwd0c
Edit /dev/rwd0c -
Command (? for help): P
Partition map (with 512 byte blocks) on '/dev/rwd0c'
#: type name length base ( size )
1: Apple_partition_map Apple 63 @ 1
2: Apple_HFS MacOS 8388032 @ 64 ( 4.0G)
3: Apple_Driver_ATA*Macintosh_Bs 512 @ 8388096
4: Apple_UNIX_SVR2 NetBSD_root 115343360 @ 8388608 ( 55.0G) S0 RUFS k0 /
5: Apple_UNIX_SVR2 NetBSD_swap 1313456 @ 123731968 (641.3M) S1 SFS k0 (swap)
Device block size=512, Number of Blocks=125045424 (59.6G)
DeviceType=0x0, DeviceId=0x0
Drivers-
1: 11 @ 8388096, type=0x701
Command (? for help): q
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment