Subject: failing to get mac clone to boot
To: None <port-macppc@netbsd.org>
From: Joel N. Weber II <devnull@gnu.org>
List: port-macppc
Date: 08/10/2003 12:49:02
I have a mac clone of some sort; it doesn't have any external labeling
to give me a model number. It is suspected that it is some sort of
Motorola Starmax.
The most progress I've been able to make at getting it to boot is this:
ok boot net
Boot device: /pci/ethernet File and args:
-
>> NetBSD/macppc OpenFirmware Boot, Revision 1.7
>> (autobuild@tgm.daemon.org, Tue Apr 8 14:55:46 UTC 2003)
net_open: client addr: 199.232.39.39
net_open: subnet mask: 255.255.255.240
net_open: net gateway: 199.232.39.33
net_open: server addr: 199.232.39.42
net_open: server path: /wombat/nautilus
net_open: file name: ofwboot.elf
Using IP address: 199.232.39.39
root addr=199.232.39.42 path=/wombat/nautilus
5952584+219184=0x5e2e8c
start=0x800000
[ netbsd ELF symbol table not valid ]
[ no symbol table formats found ]
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
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 1.6.1 (GENERIC_MD) #0: Tue Apr 8 15:16:10 UTC 2003
autobuild@tgm.daemon.org:/autobuild/netbsd-1-6/macppc/OBJ/autobuild/netbsd-1-6/src/sys/arch/macppc/compile/GENERIC_MD
total memory = 65536 KB
avail memory = 50840 KB
using 844 buffers containing 3376 KB of memory
mainbus0 (root)
cpu0 at mainbus0: 750 (Revision 2.1), ID 0 (primary)
cpu0: HID0 8290c0a4<EMCP,ECLK,DOZE,DPM,ICE,DCE,SGE,BTIC,BHT>
cpu0: 266.67 MHz
cpu0: 512KB backside cache
md0: internal 2048 KB image area
boot device: <unknown>
root on md0a dumps on md0b
root file system type: ffs
[and at this point, it just hangs.]
This is the first time I've tried installing netbsd on a macppc
system, so I'm not sure exactly what the boot messages are supposed to
look like, but it seems a little bit odd to me that none of my PCI
devices are detected before it decides on the root filesystem type, vs
what I expect on a netbsd/i386 system (or a netbsd/sparc system, for
that matter).
I don't know if this gives any useful clues or not, but here it is:
ok dev /pci@80000000
ok .properties
interrupt-map 00 00 58 00 00 00 00 00 00 00 00 00 00 00 00 01
clock-frequency 01fc1e20
8259-interrupt-acknowledge fef00000
ranges 01000000 00000000 00000000 fe000000 00000000 00c00000
02000000 00000000 80000000 80000000 00000000 7d000000
02000000 00000000 00000000 fd000000 00000000 01000000
initial-memory-aliases
slot-names 00 00 c0 00 53 31 00 53 32 00
bus-master-capable 0000c000
used-by-rtas
reg 80000000 7f000000
interrupt-map-mask 00 00 f8 00 00 00 00 00 00 00 00 00 00 00 00 07
#interrupt-cells 00000001
compatible MOT,MPC105
bus-range 00 00 00 00 00 00 00 01
#size-cells 00000002
#address-cells 00000003
device_type pci
scsi-initiator-id 00000007
name pci
ok
The random kernel source tree I have (probably somewhere between 1.6
and 1.6.1, but I'm not really too sure) has a
/sys/arch/macppc/pci/pchb.c that contains this block of code:
case PCI_VENDOR_MOT:
switch (PCI_PRODUCT(pa->pa_id)) {
case PCI_PRODUCT_MOT_MPC106:
return 1;
}
break;
}
And no mention of MOT_MPC105 which seems to be what my openfirmware
says I have.
Now, the things I don't know:
1) what's the numeric constant that goes with PCI_PRODUCT_MOT_MPC105?
2) Is this a grackle bus, or something else?
I don't have any NetBSD/macppc machines already running NetBSD, so I
can't easily compile a kernel. (The other Mac I have is a 7200.)
I'd be happy to run more openfirmware commands on this machine if
someone can give me a clue about what would be useful.