Port-macppc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Boot NetBSD/macppc from MBR disk APM disk on OpenFirmware 2.0
Just FYI,
--- 1) boot from a disk with fdisk parition of FAT16 and NetBSD disklabel ---
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,\
OFWBOOT .XCF 021 AFF9 6E040 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
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@localhost:/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] 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.0001113] scsibus0: waiting 2 seconds for devices to settle...
[ 1.0300201] WARNING: system needs entropy for security; see entropy(7)
[ 1.3799451] adbkbd0 at nadb0 addr 2: extended keyboard
[ 1.4099187] wskbd0 at adbkbd0 mux 1
[ 1.4099187] wsmouse0 at adbkbd0 mux 0
[ 1.4099187] adbms0 at nadb0 addr 3: 1-button, 100 dpi mouse
[ 1.4699242] wsmouse1 at adbms0 mux 0
[ 4.3400677] wd0 at atabus0 drive 0
[ 4.3400677] wd0: <SPCC Solid State DiskB28>
[ 4.3400677] wd0: 30533 MB, 62037 cyl, 16 head, 63 sec, 512 bytes/sect x 62533296 sectors
[ 4.7301047] cd0 at scsibus0 target 3 lun 0: <MATSHITA, CD-ROM CR-8024, 2.0e> cdrom removable
[ 6.4900943] swwdog0: software watchdog initialized
[ 6.4900943] valkyriefb0: switched to 800 x 600 in 8 bit colour
[ 6.5701002] wsdisplay2 at valkyriefb0 kbdmux 1
[ 6.6001332] valkyriefb0: switched to 800 x 600 in 8 bit colour
[ 6.6501154] wsdisplay3 at valkyriefb0 kbdmux 1
[ 6.6501154] boot device: wd0
[ 6.6801647] root on wd0a dumps on wd0b
[ 6.7001683] root file system type: ffs
[ 6.7001683] kern.module.path=/stand/macppc/10.0/modules
[ 6.9101654] 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: 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*)
# 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)
#
---
--- 2) boot from a disk with Apple partition map (no native disklabel) ---
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@localhost:/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] 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.0001126] scsibus0: waiting 2 seconds for devices to settle...
[ 1.0300182] WARNING: system needs entropy for security; see entropy(7)
[ 1.3799466] adbkbd0 at nadb0 addr 2: extended keyboard
[ 1.3999610] wskbd0 at adbkbd0 mux 1
[ 1.3999610] wsmouse0 at adbkbd0 mux 0
[ 1.3999610] adbms0 at nadb0 addr 3: wd0 at atabus0 drive 0
[ 4.3601070] wd0: <DOGFISH SSD 64GB>
[ 4.3601070] wd0: 61057 MB, 124053 cyl, 16 head, 63 sec, 512 bytes/sect x 125045424 sectors
[ 4.4501030] 1-button, 100 dpi mouse
[ 4.4501030] wsmouse1 at adbms0 mux 0
[ 4.7301094] cd0 at scsibus0 target 3 lun 0: <MATSHITA, CD-ROM CR-8024, 2.0e> cdrom removable
[ 6.4901043] swwdog0: software watchdog initialized
[ 6.5701256] valkyriefb0: switched to 800 x 600 in 8 bit colour
[ 6.6201058] wsdisplay2 at valkyriefb0 kbdmux 1
[ 6.6401673] valkyriefb0: switched to 800 x 600 in 8 bit colour
[ 6.6901107] wsdisplay3 at valkyriefb0 kbdmux 1
[ 6.6901107] boot device: wd0
[ 6.7201941] root on wd0a dumps on wd0b
[ 6.7501591] root file system type: ffs
[ 6.7501591] kern.module.path=/stand/macppc/10.0/modules
[ 6.9201665] 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
#
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index