Subject: can't find boot device on U5 (Re: CVS commit: src/sys/arch/sparc64)
To: None <martin@NetBSD.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-sparc64
Date: 10/09/2006 15:32:18
In article <20060926094557.AEA78211CA@cvs.netbsd.org> on source-changes
martin@NetBSD.org wrote:

> Module Name:	src
> Committed By:	martin
> Date:		Tue Sep 26 09:45:57 UTC 2006
> 
> Modified Files:
> 	src/sys/arch/sparc64/include: autoconf.h
> 	src/sys/arch/sparc64/sparc64: autoconf.c
> 
> Log Message:
> Rework boot device matching to get rid of lots of special case code
> and tables to map fimware names to driver names. Based on a suggestion
> from Eduardo (quite some time ago).
> Each device (on busses we can handle and care about) gets a device property
> storing the devices OpenFirmware package handle. To match the boot device,
> the phandle of the chosen bootpath is compared against this property,
> plus some additional string matching for disk/cd devices (where OF only
> provides a node for the device class, not each instance).

Now kernel on my Ultra-5 can't find boot device:
(doesn't handle devices over pci bridges?)

---
sparc64_init(0xf0066d08, 0xfffa9e28, 0x20, 0xf0066d08, 0xf0066d08)
sparc64_init: bmagic=44444230, bi=0x195a040
console is /pci@1f,0/pci@1,1/ebus@1/se@14,400000:a
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
    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 4.99.3 (GENERIC) #1: Mon Oct  9 14:56:40 JST 2006
	tsutsui@mirage:/amd/eclipse/r/cvs/netbsd/src/sys/arch/sparc64/compile/GENERIC
total memory = 128 MB
avail memory = 112 MB
timecounter: Timecounters tick every 10.000 msec
bootpath: /pci@1f,0/pci@1,1/ide@3/disk@0,0:a
bootpath phandle: 0xf007c504
boot target: @0,0
boot partition: a
mainbus0 (root): SUNW,Ultra-5_10: hostid 8093d8c5
cpu0 at mainbus0: SUNW,UltraSPARC-IIi @ 269.843 MHz, version 0 FPU
cpu0: 32K instruction (32 b/l), 16K data (32 b/l), 256K external (64 b/l)
cpu0: upa id 0
Node: f002ca28 name packages
Node: f002ca98 name chosen
Node: f002cb04 name openprom
Node: f002cc3c name options
Node: f002ccac name aliases
Node: f004ce88 name memory
Node: f004d468 name virtual-memory
Node: f005f31c name pci
 reg 1fe00000000.00010000
 interrupts 000007f0
 address fffc4000
psycho0 at mainbus0 addr 0xfffc4000
SUNW,sabre: impl 0, version 0: ign 7c0 bus range 0 to 2; PCI bus 0
DVMA map: c0000000 to e0000000
IOTSB: 208000 to 288000
pci0 at psycho0
pci0: i/o space, memory space enabled
ppb0 at pci0 dev 1 function 1: Sun Microsystems Simba PCI bridge (rev. 0x11)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
ebus0 at pci1 dev 1 function 0
ebus0: Sun Microsystems PCIO Ebus2, revision 0x01
auxio0 at ebus0 addr 726000-726003, 728000-728003, 72a000-72a003, 72c000-72c003, 72f000-72f003
power at ebus0 addr 724000-724003 ipl 37 not configured
SUNW,pll at ebus0 addr 504000-504002 not configured
sab0 at ebus0 addr 400000-40007f ipl 43: rev 3.2
sabtty0 at sab0 port 0: console i/o
sabtty1 at sab0 port 1
com0 at ebus0 addr 3083f8-3083ff ipl 41: ns16550a, working fifo
kbd0 at com0
com1 at ebus0 addr 3062f8-3062ff ipl 42: ns16550a, working fifo
ms0 at com1
wsmouse0 at ms0 mux 0
lpt0 at ebus0 addr 3043bc-3043cb, 30015c-30015d, 700000-70000f ipl 34
fdthree at ebus0 addr 3023f0-3023f7, 706000-70600f, 720000-720003 ipl 39 not configured
mkclock0 at ebus0 addr 0-1fff: mk48t59
flashprom at ebus0 addr 0-fffff not configured
audiocs0 at ebus0 addr 200000-2000ff, 702000-70200f, 704000-70400f, 722000-722003 ipl 35 ipl 36: CS4231A
audio0 at audiocs0: full duplex
hme0 at pci1 dev 1 function 1: Sun Happy Meal Ethernet, rev. 1
hme0: interrupting at ivec 3021
hme0: Ethernet address 08:00:20:93:d8:c5
nsphy0 at hme0 phy 1: DP83840 10/100 media interface, rev. 1
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
machfb0 at pci1 dev 2 function 0: ATI Technologies 3D Rage I/II (rev. 0x9a)
machfb0: 16 MB aperture at 0xe1000000, 4 KB registers at 0x00000000
machfb0: 2048 KB SGRAM 62.999 MHz, maximum RAMDAC clock 170 MHz
mach64_get_mode: 1152 5304 5432 1528 900 902 938 937
machfb0: initial resolution 1152x864 at 8 bpp
machfb0: attached to /dev/fb0
machfb0: initializing the DSP
wsdisplay1 at machfb0 kbdmux 1
wsmux1: connecting to wsdisplay1
wsdisplay1: screen 0-3 added (default)
cmdide0 at pci1 dev 3 function 0
cmdide0: CMD Technology PCI0646 (rev. 0x03)
cmdide0: bus-master DMA support present
cmdide0: primary channel configured to native-PCI mode
cmdide0: using ivec 1820 for native-PCI interrupt
atabus0 at cmdide0 channel 0
cmdide0: secondary channel configured to native-PCI mode
atabus1 at cmdide0 channel 1
ppb1 at pci0 dev 1 function 0: Sun Microsystems Simba PCI bridge (rev. 0x11)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
Node: f006cbc4pcons at mainbus0 not configured
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: selected timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "tick-counter" frequency 269843843 Hz quality 100
timecounter: selected timecounter "tick-counter" frequency 269843843 Hz quality 100
No counter-timer -- using %tick at 269MHz as system clock.
wskbd0 at kbd0 mux 1
kbd0: reset failed
wskbd0: connecting to wsdisplay1
Kernelized RAIDframe activated
wd0 at atabus0 drive 0: <FUJITSU MPB3043ATU>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 4125 MB, 8940 cyl, 15 head, 63 sec, 512 bytes/sect x 8448300 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd0(cmdide0:0:0): using PIO mode 4, DMA mode 2 (using DMA)
FATAL: boot device not found, check your firmware settings!
root device: 

---
Izumi Tsutsui