Subject: port-sparc64/30493: NetBSD cannot complete boot-strap on a Blade150
To: None <port-sparc64-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <franceschini_a@tiscali.it>
List: netbsd-bugs
Date: 06/10/2005 20:12:00
>Number:         30493
>Category:       port-sparc64
>Synopsis:       NetBSD cannot complete boot-strap on a Blade150
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-sparc64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 10 20:12:00 +0000 2005
>Originator:     Andrea Franceschini
>Release:        NetBSD 3.0_BETA
>Organization:
>Environment:
N/A
>Description:
After the kernel has booted  ( or net-booted) it can't mount root fs neither via network-nfs (gem0) nor via disk (ide).Like it can see its own peripherals.

 Attached is data from PROM, and dmseg;
ok devalias
screen                   /pci@1f,0/SUNW,m64B@13
net                      /pci@1f,0/network@c,1
cdrom2                   /pci@1f,0/ide@d/cdrom@2,0:f
cdrom1                   /pci@1f,0/ide@d/cdrom@1,0:f
cdrom                    /pci@1f,0/ide@d/cdrom@1,0:f
disk                     /pci@1f,0/ide@d/disk@0,0
disk3                    /pci@1f,0/ide@d/disk@3,0
disk2                    /pci@1f,0/ide@d/disk@2,0
disk1                    /pci@1f,0/ide@d/disk@1,0
disk0                    /pci@1f,0/ide@d/disk@0,0
ide                      /pci@1f,0/ide@d
floppy                   /pci@1f,0/isa@7/dma/floppy
ttyb                     /pci@1f,0/isa@7/serial@0,2e8
ttya                     /pci@1f,0/isa@7/serial@0,3f8
name                     aliases

ok cd /pci@1f,0/network@c,1
ok .properties
assigned-addresses       82006110 00000000 00400000 00000000 00020000
                         82006130 00000000 00800000 00000000 00400000
shared-pins              mii
interrupts               00000002
model                    SUNW,pci-eri
version                  1.11
compatible               pci108e,1101.1
                         pci108e,1101
                         pciclass,020000
                         pciclass,0200
device_type              network
address-bits             00000030
max-frame-size           00004000
reg                      00006100 00000000 00000000 00000000 00000000
                         02006110 00000000 00000000 00000000 00008000
name                     network
fast-back-to-back
devsel-speed             00000001
class-code               00020000
latency-timer            00000040
cache-line-size          00000010
max-latency              00000005
min-grant
                         0000000a
revision-id
                         00000001
device-id                00001101
vendor-id                0000108e

ok cd /pci@1f,0/ide@d
ok .properties
assigned-addresses       81006810 00000000 00000a00 00000000 00000008
                         81006814 00000000 00000a18 00000000 00000008
                         81006818 00000000 00000a10 00000000 00000008
                         8100681c 00000000 00000a08 00000000 00000008
                         81006820 00000000 00000a20 00000000 00000010
reg                      00006800 00000000 00000000 00000000 00000000
                         01006810 00000000 00000000 00000000 00000008
                         01006814 00000000 00000000 00000000 00000004
                         01006818 00000000 00000000 00000000 00000008
                         0100681c 00000000 00000000 00000000 00000004
                         01006820 00000000 00000000 00000000 00000010
compatible               pci10b9,5229.c3
                         pci10b9,5229
                         pciclass,0101ff
                         pciclass,0101
#address-cells           00000002
device_type              ide
name                     ide
fast-back-to-back
devsel-speed             00000001
class-code               000101ff
interrupts               00000001
latency-timer            00000040
cache-line-size          00000000
max-latency              00000004
min-grant                00000002
revision-id              000000c3
device-id                00005229
vendor-id                000010b9

ok .version
Release 4.17.1  created 2005/04/11 14:31
OBP 4.17.1 2005/04/11 14:31
POST 2.0.1 2001/08/23 17:13
OBDIAG 4.10.6 2003/06/06 12:32   
ok

ok boot net
Resetting ...



Sun Blade 150 (UltraSPARC-IIe 650MHz), No Keyboard
Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.17.1, 512 MB memory installed, Serial #57170437.
Ethernet address 0:3:ba:68:5a:5, Host ID: 83685a05.



Rebooting with command: boot net
Boot device: /pci@1f,0/network@c,1  File and args:
Requesting Internet Address for 0:3:ba:68:5a:5
Requesting Internet Address for 0:3:ba:68:5a:5
>> NetBSD/sparc64 OpenFirmware Boot, Revision 1.8
>> (martin@sunny-weather.duskware.de, Sun Dec  5 07:40:30 CET 2004)
net_open: client addr: 192.168.144.250
net_open: subnet mask: 255.255.255.0
net_open: server addr: 192.168.144.251
net_open: server path: /mnt2
Using BOOTP protocol: ip address: 192.168.144.250, netmask: 255.255.255.0
root addr=192.168.144.251 path=/mnt2
loadfile: reading header
elf64_exec: Booting /pci@1f,0/network@c,1/netbsd
5241304@0x1000000+169560@0x1800000+4024744@0x1829658
symbols @ 0xfed4e500 227+410160+249413 start=0x1000000
chain: calling OF_chain(800000, cb68, 1000000, fff53a40, 18)
console is /pci@1f,0/isa@7/serial@0,3f8
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    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 3.0_BETA (GENERIC) #1: Tue May 10 00:35:37 CEST 2005
        ptijo@bagheera.tumfatig.net:/usr/obj/sys/arch/sparc64/compile/GENERIC
total memory = 512 MB
avail memory = 489 MB
bootpath: /pci@1f,0/network@c,1
mainbus0 (root): SUNW,Sun-Blade-100: hostid 83685a05
cpu0 at mainbus0: SUNW,UltraSPARC-IIe @ 650 MHz, version 0 FPU
cpu0: 32K instruction (32 b/l), 16K data (32 b/l), 2048K external (64 b/l)
psycho0 at mainbus0
pci108e,a001: impl 0, version 0: ign 7c0 bus range 0 to 1; PCI bus 0
DVMA map: c0000000 to e0000000
IOTSB: 860000 to 8e0000
pci0 at psycho0
pci0: i/o space, memory space enabled
ebus0 at pci0 dev 12 function 0
ebus0: Sun Microsystems PCIO Ebus2 (US III), revision 0x01
flashprom at ebus0 addr 0-fffff not configured
clock0 at ebus0 addr 0-1fff: mk48t59
ebus_attach: idprom: incomplete
ebus1 at pci0 dev 7 function 0
ebus1: Acer Labs M1543 PCI-ISA Bridge, revision 0x00
dma at ebus1 addr 0-ffff ipl 42 not configured
power at ebus1 addr 800-82f ipl 32 not configured
com0 at ebus1 addr 3f8-3ff ipl 43: ns16550a, working fifo
com0: console
com1 at ebus1 addr 2e8-2ef ipl 43: ns16550a, working fifo
Acer Labs M7101 Power Management Controller (miscellaneous prehistoric) at pci0 dev 3 function 0 not configured
gem0 at pci0 dev 12 function 1: Sun Microsystems ERI Ethernet (rev. 0x01)
gem0: interrupting at ivec 3006
gem0: Ethernet address 00:03:ba:68:5a:05, 2KB RX fifo, 2KB TX fifo
ukphy0 at gem0 phy 1: Generic IEEE 802.3u media interface
ukphy0: BCM5221 10/100 media interface (OUI 0x000818, model 0x001e), rev. 4
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fwohci0 at pci0 dev 12 function 2: Sun Microsystems FireWire controller (rev. 0x01)
fwohci0: interrupting at ivec 1c
fwohci0: OHCI 1.0, 00:03:ba:ff:fe:68:5a:05, 400Mb/s, 2048 max_rec, 4 ir_ctx, 4 it_ctx
ohci0 at pci0 dev 12 function 3: Sun Microsystems USB controller (rev. 0x01)
ohci0: interrupting at ivec 24
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Sun Microsystem OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
autri0 at pci0 dev 8 function 0: Acer Labs M5451 AC-Link Controller Audio Device (rev. 0x01)
autri0: interrupting at ivec 23
autri0: ac97: Analog Devices AD1881A codec; headphone, Analog Devices Phat Stereo
audio0 at autri0: full duplex, mmap, independent
aceride0 at pci0 dev 13 function 0
aceride0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc3)
aceride0: bus-master DMA support present
aceride0: primary channel configured to native-PCI mode
aceride0: using ivec 180c for native-PCI interrupt
atabus0 at aceride0 channel 0
aceride0: secondary channel configured to native-PCI mode
atabus1 at aceride0 channel 1
ppb0 at pci0 dev 5 function 0: Intel S21152BB PCI-PCI Bridge (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
machfb0 at pci0 dev 19 function 0: ATI Technologies Rage XL (rev. 0x27)
machfb0: 16 MB aperture at 0x03000000, 4 KB registers at 0x00426000
memctl: 10a57a3b
ref_freq=29.498MHz
machfb0: 8188 KB SDRAM 114.992 MHz, maximum RAMDAC clock 230 MHz
machfb0: initial resolution 1152x864 at 8 bpp
wsdisplay0 at machfb0
pcons at mainbus0 not configured
No counter-timer -- using %tick at 650MHz as system clock.
Kernelized RAIDframe activated
fw0 at fwohci0: 00:03:ba:ff:fe:68:5a:05:0a:02:ff:ff:f0:01:00:00
atapibus0 at atabus0: 2 targets
aceride0:0:1: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
cd0 at atapibus0 drive 1: <MATSHITADVD-ROM SR-8589, , 8Z14> cdrom removable
aceride0:0:1: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
aceride0:0:1: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
aceride0:0:1: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
cd0: drive supports PIO mode 4aceride0:0:1: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
, DMA mode 2aceride0:0:1: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
, Ultra-DMA mode 4 (Ultra/66)
wd0 at atabus0 drive 0aceride0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
: <ST380011A>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
aceride0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
aceride0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
aceride0:0:0: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
wd0: drive supports PIO mode 4aceride0:0:0: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
, DMA mode 2aceride0:0:0: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
, Ultra-DMA mode 5 (Ultra/100)aceride0:0:0: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0

wd0(aceride0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA)
cd0(aceride0:0:1): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA)
aceride0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
aceride0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
aceride0:0:0: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
root on gem0
nfs_boot: trying DHCP/BOOTP
gem0: device timeout
nfs_boot: timeout...
gem0: device timeout
nfs_boot: timeout...
gem0: device timeout
nfs_boot: timeout...
gem0: device timeout
nfs_boot: trying RARP (and RPC/bootparam)
revarp failed, error=51
no file system for gem0
cannot mount root, error = 79
root device (default gem0):

>How-To-Repeat:
Simply boot with a Blade 150 and any version of NetBSD from 1.6 to 3.0.
>Fix: