Subject: port-alpha/8808: DS10 doesn't find rootdev correctly
To: None <gnats-bugs@gnats.netbsd.org>
From: Luke Mewburn <lukem@karybdis.cs.rmit.edu.au>
List: netbsd-bugs
Date: 11/15/1999 19:55:52
>Number:         8808
>Category:       port-alpha
>Synopsis:       DS10 doesn't find rootdev correctly
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-alpha-maintainer (NetBSD/alpha Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 15 19:54:02 1999
>Last-Modified:
>Originator:     Luke Mewburn
>Organization:
TNFi
>Release:        Tue Nov 16 14:45:21 EST 1999
>Environment:
System: NetBSD karybdis.cs.rmit.edu.au 1.4N NetBSD 1.4N (LUKEM_ALPHA) #12: Sat Nov 13 21:32:29 EST 1999 lukem@karybdis.cs.rmit.edu.au:/nfs/netbsd/current/src/sys/arch/alpha/compile/LUKEM_ALPHA alpha

>Description:
	on a DS10 (options DEC_6600) configured with devices as:

COMPAQ AlphaServer DS10 466 MHz Console V5.5-5, Sep  1 1999 09:05:08
>How-To-Repeat:
	see above.

>Fix:
	not exactly sure.
	in sys/arch/alpha/alpha/dec_6600.c::dec_6600_device_register()
	it seems to match the cd first. we think it's ignoring the ide
	channel.

	here's the dmesg with
		#define DR_VERBOSE(f) f
	and the #if 0's in autoconf.c changed to #if 1:

Entering netbsd at 0xfffffc00003011a0...
[ preserving 263208 bytes of netbsd ELF symbol table ]
Copyright (c) 1996, 1997, 1998, 1999
    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.4O (LUKEM_ALPHA) #16: Mon Nov 15 19:25:37 PST 1999
    root@alpha.netbsd.cs.rmit.edu.au:/nfs/netbsd/current/src/sys/arch/alpha/compile/LUKEM_ALPHA
COMPAQ AlphaServer DS10 466 MHz
8192 byte page size, 1 processor.
total memory = 128 MB
(2528 KB reserved for PROM, 125 MB used by NetBSD)
avail memory = 89688 KB
using 4017 buffers containing 32136 KB of memory
parse_prom_bootdev: boot dev = "IDE 0 13 1 0 0 0 0"
i = 8, done = 1
7 = 0
6 = 0
5 = 0
4 = 0
3 = 1
2 = 13
1 = 0
0 = IDE
parsed: proto = IDE, bus = 0, slot = 13, channel = 1,
        remote = 0, unit = 0, dev_type = 0, ctrl_type = 0
mainbus0 (root)scsiboot = 0, ideboot = 1, netboot = 0

cpu0 at mainbus0: ID 0 (primary), 21264-4 (pass 3)
tsc0 at mainbus0: 21272 Core Logic Chipset, Cchip rev 0
tsc0: 2 Dchips, 1 memory bus of 16 bytes
tsc0: arrays present: 128MB, 0MB, 0MB, 0MB, Dchip 0 rev 1
tsp0 at tsc0
primarydev = tsp0

pci0 at tsp0 bus 0
pcidev = pci0

pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
ohci0 at pci0 dev 1 function 0: Acer Labs M5237 USB Host Controller (rev. 0x03)
intr_map: line=0xea, no mapping for 0/1/0
ohci0: couldn't map interrupt
sio0 at pci0 dev 7 function 0: Acer Labs M1543 PCI-ISA Bridge (rev. 0xc3)
de0 at pci0 dev 9 function 0
de0: interrupting at dec_6600 irq 29
de0: DEC 21143 [10-100Mb/s] pass 4.1
de0: address 08:00:2b:86:2f:dd
de0: enabling 10baseT port
de0: supplying EUI64: 08:00:2b:ff:fe:86:2f:dd
de1 at pci0 dev 11 function 0
de1: interrupting at dec_6600 irq 30
de1: DEC 21143 [10-100Mb/s] pass 4.1
de1: address 08:00:2b:86:2f:dc
de1: enabling 10baseT port
pciide0 at pci0 dev 13 function 0
scsipidev = pciide0
: Acer Labs M5229 UDMA IDE Controller
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
atapibus0 at pciide0 channel 0
cd0 at atapibus0 drive 0: <COMPAQ  CDR-8435, , 0013> type 5 cdrom removable
booted_device = cd0

cd0: 32-bits data port
cd0: drive supports PIO mode 4, DMA mode 2
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
wd0 at pciide0 channel 1 drive 0: <FUJITSU MPD3108AT>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 9541MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 19541088 sectors
wd0: 32-bits data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
wd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
ex0 at pci0 dev 16 function 0: 3Com 3c905-TX 10/100 Ethernet
ex0: interrupting at dec_6600 irq 43
ex0: MAC address 00:60:08:be:2c:96
exphy0 at ex0 phy 24: 3Com internal media interface
exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0 at sio0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
lpt0 at isa0 port 0x3bc-0x3bf irq 7
pckbc0 at isa0 port 0x60-0x64
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
isabeep0 at pcppi0
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
mcclock0 at isa0 port 0x70-0x71: mc146818 or compatible
IPsec: Initialized Security Association Processing.
root on cd0a dumps on cd0b
no file system for cd0 (dev 0x300)
cannot mount root, error = 79
root device (default cd0a):
>Audit-Trail:
>Unformatted:
>>>show dev
dqa0.0.0.13.0              DQA0                COMPAQ CDR-8435  0013    
dqb0.0.1.13.0              DQB0              FUJITSU MPD3108AT  DD-25-04
dva0.0.0.0.0               DVA0                               
ewa0.0.0.9.0               EWA0              08-00-2B-86-2F-DD
ewb0.0.0.11.0              EWB0              08-00-2B-86-2F-DC

	[note that the hard disk is dqb0 not dqa0; that's how Digital
	shipped it to us]

	the kernel finds cd0a as the booted dev, not wd0a