Skip to content

Instantly share code, notes, and snippets.

@tsutsui
Created June 6, 2024 16:30
Show Gist options
  • Save tsutsui/1ec7334422c092aadbb1c1bc34faa08a to your computer and use it in GitHub Desktop.
Save tsutsui/1ec7334422c092aadbb1c1bc34faa08a to your computer and use it in GitHub Desktop.
NetBSD/macppc 10.0 boot using FDISK partitioning and FAT16 partition 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 > dir ata/ATA-Disk@0:1,\
Aofwb.o 00F 0 -10000
OFWBOOT .XCF 021 B9CB 15000 ok
1 > boot ata/ATA-Disk@0:1,\ofwboot.xcf ata/ATA-Disk@0/netbsd loading XCOFF
tsize=10280 dsize=23C bsize=28F5 entry=E00000
SECTIONS:
.text 00E00000 00E00000 00010280 00001000
.pad 00E10274 00E10274 00000D80 00011280
.data 00E11000 00E11000 0000023C 00012000
.bss 00E11240 00E11240 000028F5 00000000
.debug_l 00000000 00000000 00011AC7 0001223C
.debug_s 00000000 00000000 00004F0C 00023D03
.gnu.att 00000000 00000000 00000010 00028C0F
.ident 00000000 00000000 000000AD 00028C1F
.debug_i 00000000 00000000 00022214 00028CCC
.debug_a 00000000 00000000 00007673 0004AEE0
.debug_l 00000000 00000000 000143FC 00052553
.debug_a 00000000 00000000 000008E8 0006694F
.debug_r 00000000 00000000 00001049 00067237
.debug_f 00000000 00000000 000027A0 00068280
loading .text, done..
loading .data, done..
clearing .bss, done..
>> 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
11832108+164812 [487632+464653]=0xc59c38
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.99.10 (GENERIC) #0: Sun Jun 2 06:26:38 JST 2024
[ 1.0000000] tsutsui@mirage:/s/tsutsui/netbsd-src/sys/arch/macppc/compile/obj.macppc/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] cpu0 at mainbus0: 603ev (Revision 2.1), ID 0 (primary)
[ 1.0000000] cpu0: HID0 0x90c001<DOZE,DPM,ICE,DCE,NOPTI>, powersave: 1
[ 1.0000000] cpu0: ohare L2 cache enabled
[ 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] machfb0 at pci0 dev 13 function 0: ATI Technologies Mach64 GX (rev. 0x02)
[ 1.0000000] machfb0: 16 MB aperture at 0x81000000, 0 KB registers at 0x00000000
[ 1.0000000] machfb0: 64 KB ROM at 0x00000000
[ 1.0000000] machfb0: 2048 KB VRAM 0.0 MHz, maximum RAMDAC clock 135 MHz
[ 1.0000000] machfb0: found composite sync disabled
[ 1.0000000] machfb0: initial resolution 1024x768 at 8 bpp
[ 1.0000000] wsdisplay1 at machfb0 kbdmux 1
[ 1.0000000] direct rendering for machfb0 unsupported
[ 1.0000000] ex0 at pci0 dev 14 function 0: 3Com 3c905B-TX 10/100 Ethernet (rev. 0x30)
[ 1.0000000] ex0: interrupting at irq 25
[ 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] 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.0001000] scsibus0: waiting 2 seconds for devices to settle...
[ 1.0001000] WARNING: system needs entropy for security; see entropy(7)
[ 1.3599149] adbkbd0 at nadb0 addr 2: extended keyboard
[ 1.3899174] wskbd0 at adbkbd0 mux 1
[ 1.3899174] wsmouse0 at adbkbd0 mux 0
[ 1.3899174] adbms0 at nadb0 addr 3: 1-button, 100 dpi mouse
[ 1.4499176] wsmouse1 at adbms0 mux 0
[ 4.3299345] wd0 at atabus0 drive 0
[ 4.3299345] wd0: <SPCC Solid State DiskB28>
[ 4.3299345] wd0: 30533 MB, 62037 cyl, 16 head, 63 sec, 512 bytes/sect x 62533296 sectors
[ 4.7299480] cd0 at scsibus0 target 3 lun 0: <MATSHITA, CD-ROM CR-8024, 2.0e> cdrom removable
[ 6.4899680] swwdog0: software watchdog initialized
[ 6.5199657] valkyriefb0: switched to 800 x 600 in 8 bit colour
[ 6.5599497] wsdisplay2 at valkyriefb0 kbdmux 1
[ 6.5599497] valkyriefb0: switched to 800 x 600 in 8 bit colour
[ 6.6199503] wsdisplay3 at valkyriefb0 kbdmux 1
[ 6.6199503] boot device: wd0
[ 6.6199503] root on wd0a dumps on wd0b
[ 6.6700172] root file system type: ffs
[ 6.6700172] kern.module.path=/stand/macppc/10.99.10/modules
[ 6.9500033] entropy: best effort
/etc/rc.conf is not configured. Multiuser boot aborted.
Enter pathname of shell or RETURN for /bin/sh:
# fdisk wd0
Disk: /dev/rwd0
NetBSD disklabel disk geometry:
cylinders: 62037, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 62533296, bytes/sector: 512
BIOS disk geometry:
cylinders: 1024, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 62533296
Partitions aligned to 2048 sector boundaries, offset 2048
Partition table:
0: Primary DOS with 32 bit FAT - LBA (sysid 12)
start 2048, size 260096 (127 MB, Cyls 0-16/81/1)
1: NetBSD (sysid 169)
start 262144, size 62271152 (30406 MB, Cyls 16/81/2-3892/131/63)
PBR is not bootable: All bytes are identical (0x00)
2: <UNUSED>
3: <UNUSED>
No active partition.
Drive serial number: 265649028 (0x0fd57b84)
# disklabel wd0
# /dev/rwd0:
type: ESDI
disk: wd0
label: default label
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 62037
total sectors: 62533296
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 62009008 262144 4.2BSD 0 0 0 # (Cyl. 260*- 61776*)
b: 262144 62271152 swap # (Cyl. 61776*- 62036)
c: 62533296 0 unused 0 0 # (Cyl. 0 - 62036)
d: 260096 2048 MSDOS # (Cyl. 2*- 260*)
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment