Subject: Re: can't find boot device on U5 (Re: CVS commit: src/sys/arch/sparc64)
To: None <martin@duskware.de>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-sparc64
Date: 10/09/2006 17:20:16
martin@duskware.de wrote:

> I added some more ACDB_BOOTDEV debug output, could you please mail me the
> new dmesg?

Here it is:
---

Resetting ... 


Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 270MHz), No Keyboard
OpenBoot 3.11, 128 MB memory installed, Serial #9689285.
Ethernet address 8:0:20:93:d8:c5, Host ID: 8093d8c5.



Initializing Memory
Rebooting with command: boot
Boot device: disk:a  File and args: 
NetBSD IEEE 1275 Bootblock
..>> NetBSD/sparc64 OpenFirmware Boot, Revision 1.9
>> (tsutsui@mirage, Thu Jun 29 04:38:56 JST 2006)
=0x856e50
Loading netbsd: 6105288+355856+308376 [459840+289899]=0x959998
sparc64_init(0xf0066d08, 0xfffa9e28, 0x20, 0xf0066d08, 0xf0066d08)
sparc64_init: bmagic=44444230, bi=0x19599a0
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) #2: Mon Oct  9 16:59:00 JST 2006
	tsutsui@mirage:/usr/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 [device cpu0 has node f006cbc4] : 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 [device psycho0 has node f005f31c] 
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 [device ppb0 has node f005fb10] : 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 [device ebus0 has node f0060e60] 
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
clock0 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 [device hme0 has node f006d5d8] : 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 [device machfb0 has node f00755e0] : 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 [device cmdide0 has node f0079e44] 
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 [device ppb1 has node f00600f8] : 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 269843968 Hz quality 100
timecounter: selected timecounter "tick-counter" frequency 269843968 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: 

---

BTW, don't these cause "empty if body" warnings?
---
	if (ofboottarget)
		DPRINTF(ACDB_BOOTDEV, ("boot target: %s\n", ofboottarget));
	if (ofbootpartition)
		DPRINTF(ACDB_BOOTDEV, ("boot partition: %s\n",
		    ofbootpartition));
---
or
	DPRINTF(ACDB_BOOTDEV ,("boot target: %s\n",
	    ofboottarget ? ofboottarget : "<NULL>"));
is better?
---
Izumi Tsutsui