Subject: Mounting root device
To: None <port-powerpc@NetBSD.ORG>
From: SUNAGAWA Keiki <kei_sun@ba2.so-net.or.jp>
List: port-powerpc
Date: 01/25/1998 22:48:29
Hi all,

I've been playing with the source of ofwboot hacked by Dan
Jacobowitz, (Thanks Dan!) and successfully booted up ELF
kernel which is attached with ofwboot from floppy disk.

The problem is that it doesn't find root partition when it
boots.  It seems that NetBSD/powerpc doesn't recognize Apple
partition map which is used NetBSD/mac68k, dosen't it?

Also, though I'm using Winbond's NE2000 compatible PCI
Ethernet card under MacOS since the machine has no on-board
Ethernet, it has no OpenFirmware support.  So NFS booting
will be hard.

Info of my system:

Power Macintosh clone, 604e, 32MB memory.No ATA devices.

SCSI #0: internel IBM 2GB HDD
part of "pdisk -l /dev/sda" in linux.
 1: Apple_partition_map	Apple
 2: Apple_Driver	FWB Disk Driver
 3: Apple_HFS		MacOS
 4: Apple_UNIX_SVR2	A/UX Root (Linux)       500.5M
 5: Apple_UNIX_SVR2	NetBSD Usr              128.0M
 6: Apple_UNIX_SVR2	Swap (Linux)            128.0M
 7: Apple_UNIX_SVR2	Usr file system (Linux) 128.0M
 8: Apple_UNIX_SVR2	Usr file system         400.0M
 9: Apple_UNIX_SVR2	Usr file system (Linux) 378.0M

SCSI #1: internel Rodime 200MB HDD
part of "pdisk -l /dev/sdb"
 1: Apple_partition_map	Apple
 2: Apple_Driver43	Macintosh
 3: Apple_UNIX_SVR2	A/UX Root (NetBSD)      199.0M
 4: Apple_Free		Extra

SCSI #4: external 230MB MO drive
part of "pdisk -l /dev/sdc"
 1: Apple_partition_map	Apple
 2: Apple_Drivre43	FWB Disk Driver
 3: Apple_UNIX_SVR2	NetBSD Root             156.2M
 4: Apple_UNIX_SVR2	NetBSD Swap             61.2M

SCSI #6: external CD-ROM

Here's boot record I tracked down by hand.

0 > setenv real-mode? true ok
0 > setenv load-base 10000

<< I reset the machine phisically to enable the changes. >>

0 > boot fd:netbsd.xcf loading XCOFF

<< Scrolled up screen and couldn't be seen. >>

860084@0x100000+67180@0x1d1fb4
 start=0x100000
Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1996, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.3 (GENERIC) #7: Sun Jan 25 19:30:56 JST 1998
    kei@azarin:/work/NetBSD/sys/arch/powerpc/compile/GENERIC
CPU: 604ev (Revesion 204)
real mem = 33554432
avail mem = 29003776
using 409 buffers containing 1675264 bytes of memory
soft_machvec completed @@@ kei @@@
ofroot0 (root) (device-tree)
ofbus0 at ofroot0 (PowerPC,604e)
l2-cache at ofbus0 not configured
memory at ofroot0 not configured
AAPL,ROM at ofroot0 not configured
ofbus1 at ofroot0 (bandit)
ofbus2 at ofbus1 (ohare)
ofbus3 at ofbus2 (mesh)
ofdisk0 at ofbus3 (sd)
st at ofbus3 not configured
ofbus4 at ofbus2 (escc)
ch-a at ofbus4 not configured
ch-b at ofbus4 not configured
awacs at ofbus2 not configured
ofdisk1 at ofbus2 (swim3)
nvram at ofbus2 not configured
ata at ofbus2 not configured
ata at ofbus2 not configured
ofbus5 at ofbus2 (via-cuda)
ofbus6 at ofbus5 (adb)
ofcons0 at ofbus6 (keyboard)
mouse at ofbus6 not configured
pram at ofbus5 not configured
ofrtc0 at ofbus5 (rtc): rtc
power-mgt at ofbus5 not configured
ofbus7 at ofbus1 (pci-bridge)
ofcons1 at ofbus1 (ATY,264VT)
configure() completed @@@ kei @@@
boot device: <unknown>
boot device: _

I tried ofdisk0[a-p], ofdisk1[a-p] and got no success.  It
doesn't recognize my MO drive.

What's I'm missing?  Any ideas?

--
SUNAGAWA Keiki <kei_sun@ba2.so-net.or.jp>
Happy Hacking!