Subject: Re: ES40, ES45, etc. support?
To: Michael L. Hitch <mhitch@lightning.msu.montana.edu>
From: Greg A. Woods <woods@weird.com>
List: port-alpha
Date: 09/19/2004 13:39:04
[ On Wednesday, June 30, 2004 at 22:59:51 (-0600), Michael L. Hitch wro=
te: ]
> Subject: Re: ES40, ES45, etc. support=3F
>

Attached is the console from a 2.0 kernel, as well as my failed 1.6.x
boot with the additional allocsys() and pmap=5Fbootstrap() debugging.

Unfortunately in the middle of testing yesterday my hacked together
home-made BN24H cable slipped out of the MMJ port (as I'm using a
modified RJ-12 connector and we forgot to glue it into place) and I've
been unable to access the system since.

BTW, It looks like the tsc/tsp probe is done "backwards" in 2.0 (though=

strictly speaking it's the SRM that's working backwards by seeing hose =
1
first and then hose 0).  That or something similar is causing the tlp
driver to get the wrong interrupt vector, since NetBSD sees the boot
device as "tlp0" while the SRM sees it as EWB0.  So as a result I can't=

get past the root mount on a netboot....

Is there a way to see how the PCI interrupts are routed from SRM, or
will I have to resort to PCI=5FCONFIG=5FDUMP=3F

I'll try a -current kernel as soon as the console cable is fixed again.=


[[ ... ]]
probe I/O subsystem
probing hose 1, PCI
bus 0, slot 1 -- ewa -- DE500-BA Network Controller
bus 0, slot 4 -- pka -- NCR 53C895
bus 0, slot 6 -- ega -- DEGXA-TA Gigabit Ethernet
probing hose 0, PCI
probing PCI-to-ISA bridge, bus 1
bus 0, slot 2, function 0 -- pkb -- Adaptec AIC-7899
bus 0, slot 2, function 1 -- pkc -- Adaptec AIC-7899
bus 0, slot 4 -- ewb -- DE500-BA Network Controller
bus 0, slot 15 -- dqa -- Acer Labs M1543C IDE
bus 0, slot 15 -- dqb -- Acer Labs M1543C IDE
[[ ... ]]
AlphaServer ES40 Console V6.7-1, built on Apr 23 2004 at 08:45:14
P00>>>show dev
dkb0.0.0.2.0               DKB0              COMPAQ BF01864663  3B07
dkb100.1.0.2.0             DKB100            COMPAQ BF01864663  3B07
dqa0.0.0.15.0              DQA0                COMPAQ CDR-8435  0013   =
=20
dva0.0.0.1000.0            DVA0                              =20
ega0.0.0.6.1               EGA0              00-08-02-91-89-AE
ewa0.0.0.1.1               EWA0              08-00-2B-C4-7A-70
ewb0.0.0.4.0               EWB0              08-00-2B-C4-B5-26
pka0.7.0.4.1               PKA0                  SCSI Bus ID 7
pkb0.7.0.2.0               PKB0                  SCSI Bus ID 7
pkc0.7.0.102.0             PKC0                  SCSI Bus ID 7
P00>>>boot ewb0
(boot ewb0.0.0.4.0 -flags A)

Trying BOOTP boot.

Broadcasting BOOTP Request...
Received BOOTP Packet File Name is: netbsd-netboot-alpha
local inet address: 192.168.0.248
remote inet address: 192.168.0.254
TFTP Read File Name: netbsd-netboot-alpha
netmask =3D 255.255.255.0
Server is on same subnet as client.
block number=3D 0 port=5Fnumber=3D 40349
=2E
bootstrap code read in
base =3D 200000, image=5Fstart =3D 0, image=5Fbytes =3D fa30(64048)
initializing HWRPB at 2000
initializing page table at 3fb54000
initializing machine state
setting affinity to the primary CPU
jumping to bootstrap code

NetBSD/alpha 1.6.2=5FSTABLE Network Bootstrap, Revision 1.9
(woods@building, Tue Sep  7 17:10:14 EDT 2004)

VMS PAL rev: 0x4006800010162
OSF PAL rev: 0x400690002015c
Switch to OSF PAL code succeeded.

Boot flags: A
boot: ethernet address: 08:00:2b:c4:b5:26
net=5Fopen: client addr: 192.168.0.248
net=5Fopen: subnet mask: 255.255.255.0
net=5Fopen: net gateway: 192.168.0.1
net=5Fopen: server addr: 192.168.0.254
net=5Fopen: server path: /raid/export/netbsd-alpha-newpub
net=5Fopen: file name: netbsd-netboot-alpha
boot: client addr: 192.168.0.248
boot: client name: newpub
boot: subnet mask: 255.255.255.0
boot: net gateway: 192.168.0.1
boot: server addr: 192.168.0.254
boot: server path: /raid/export/netbsd-alpha-newpub
6927936+491768 [410352+261135]=3D0x7b7ab8

Entering netbsd at 0xfffffc0000301460...
consinit: not using prom console
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    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 2.0=5FBETA (GENERIC.MP) #0: Thu Sep 16 13:28:23 UTC 2004
        autobuild@tgm.netbsd.org:/autobuild/netbsd-2-0/alpha/OBJ/autobu=
ild/netbsd-2-0/src/sys/arch/alpha/compile/GENERIC.MP
AlphaServer ES40, 666MHz, s/n NI94900217
8192 byte page size, 4 processors.
total memory =3D 16384 MB
(7080 KB reserved for PROM, 16377 MB used by NetBSD)
avail memory =3D 16084 MB
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21264A-14
cpu0: Architecture extensions: 307<PAT,MVI,CIX,FIX,BWX>
cpu1 at mainbus0: ID 1, 21264A-14
cpu1: Architecture extensions: 307<PAT,MVI,CIX,FIX,BWX>
cpu2 at mainbus0: ID 2, 21264A-14
cpu2: Architecture extensions: 307<PAT,MVI,CIX,FIX,BWX>
cpu3 at mainbus0: ID 3, 21264A-14
cpu3: Architecture extensions: 307<PAT,MVI,CIX,FIX,BWX>
tsc0 at mainbus0: 21272 Core Logic Chipset, Cchip rev 0
tsc0: 8 Dchips, 2 memory buses of 32 bytes
tsc0: arrays present: 4096MB (split), 4096MB (split), 4096MB (split), 4=
096MB (split), Dchip 0 rev 1
tsp0 at tsc0
tsp0: window 2: 0/base 3ff00000/mask 5300000 reinitialized
tsp0: window 3: 0/base fff00000/mask 5800000 reinitialized
pci0 at tsp0 bus 0
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
ahc0 at pci0 dev 2 function 0: Adaptec 3960D Ultra160 SCSI adapter
ahc0: interrupting at dec 6600 irq 12
ahc0: aic7899: Ultra160 Wide Channel A, SCSI Id=3D7, 32/253 SCBs
scsibus0 at ahc0: 16 targets, 8 luns per target
ahc1 at pci0 dev 2 function 1: Adaptec 3960D Ultra160 SCSI adapter
ahc1: interrupting at dec 6600 irq 13
ahc1: aic7899: Ultra160 Wide Channel B, SCSI Id=3D7, 32/253 SCBs
scsibus1 at ahc1: 16 targets, 8 luns per target
isp0 at pci0 dev 3 function 0: QLogic Dual Port FC-AL and 2Gbps Fabric =
HBA
isp0: interrupting at dec 6600 irq 16
isp0: bad execution throttle of 0- using 16
scsibus2 at isp0: 256 targets, 8 luns per target
tlp0 at pci0 dev 4 function 0: DECchip 21143 Ethernet, pass 3.0
tlp0: interrupting at dec 6600 irq 20
tlp0: DEC DE500-BA, Ethernet address 08:00:2b:c4:b5:26
tlp0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sio0 at pci0 dev 7 function 0: Acer Labs M1543 PCI-ISA Bridge (rev. 0xc=
3)
aceride0 at pci0 dev 15 function 0
aceride0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc1)
aceride0: bus-master DMA support present
aceride0: primary channel configured to compatibility mode
aceride0: primary channel interrupting at isa irq 14
atabus0 at aceride0 channel 0
aceride0: secondary channel configured to compatibility mode
aceride0: secondary channel interrupting at isa irq 15
atabus1 at aceride0 channel 1
ohci0 at pci0 dev 19 function 0: Acer Labs M5237 USB Host Controller (r=
ev. 0x03)
ohci0: interrupting at isa irq 10
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
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
pckbc0 at isa0 port 0x60-0x64
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
isabeep0 at pcppi0
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
mcclock0 at isa0 port 0x70-0x71: mc146818 or compatible
tsp1 at tsc0
tsp1: window 2: 0/base 3ff00000/mask 5200000 reinitialized
tsp1: window 3: 0/base fff00000/mask 5400000 reinitialized
pci1 at tsp1 bus 0
pci1: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
tlp1 at pci1 dev 1 function 0: DECchip 21143 Ethernet, pass 3.0
tlp1: interrupting at dec 6600 irq 24
tlp1: DEC DE500-BA, Ethernet address 08:00:2b:c4:7a:70
tlp1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isp1 at pci1 dev 2 function 0: QLogic Dual Port FC-AL and 2Gbps Fabric =
HBA
isp1: interrupting at dec 6600 irq 28
isp1: bad execution throttle of 0- using 16
scsibus3 at isp1: 256 targets, 8 luns per target
esiop0 at pci1 dev 4 function 0: Symbios Logic 53c895 (ultra2-wide scsi=
)
esiop0: using on-board RAM
esiop0: interrupting at dec 6600 irq 36
scsibus4 at esiop0: 16 targets, 8 luns per target
Broadcom Corporation BCM5703X 10/100/1000 Ethernet (ethernet network, r=
evision 0x02) at pci1 dev 6 function 0 not configured
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
scsibus2: waiting 2 seconds for devices to settle...
stray isa irq 14
stray isa irq 14
scsibus3: waiting 2 seconds for devices to settle...
scsibus4: waiting 2 seconds for devices to settle...
stray isa irq 10
stray isa irq 10
stray isa irq 10
stray isa irq 10
stray isa irq 10; stopped logging
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <COMPAQ  CDR-8435, , 0013> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
cd0(aceride0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfe=
rs)
uhub0: port 3, device disappeared after reset
sd0 at scsibus0 target 0 lun 0: <COMPAQ, BF01864663, 3B07> disk fixed
sd0: 17365 MB, 7001 cyl, 20 head, 254 sec, 512 bytes/sect x 35565080 se=
ctors
sd0: sync (25.00ns offset 63), 16-bit (80.000MB/s) transfers, tagged qu=
eueing
sd1 at scsibus0 target 1 lun 0: <COMPAQ, BF01864663, 3B07> disk fixed
sd1: 17365 MB, 7001 cyl, 20 head, 254 sec, 512 bytes/sect x 35565080 se=
ctors
sd1: sync (25.00ns offset 63), 16-bit (80.000MB/s) transfers, tagged qu=
eueing
sd1: no disk label
root on tlp0
nfs=5Fboot: trying DHCP/BOOTP
nfs=5Fboot: timeout...
nfs=5Fboot: timeout...
tlp0: transmit process failed to idle: state RUNNING - WAIT
tlp0: transmit timeout
nfs=5Fboot: timeout...
no file system for tlp0
cannot mount root, error =3D 79
root device (default tlp0): =3F
use one of: raid0[a-h] raid1[a-h] raid2[a-h] raid3[a-h] raid4[a-h] raid=
5[a-h] raid6[a-h] raid7[a-h] tlp0 tlp1 fd0[a-h] cd0[a-h] sd0[a-h] sd1[a=
-h] ddb halt reboot
root device (default tlp0): halt
syncing disks... done
halted.


halted CPU 0
CPU 1 is not halted
CPU 2 is not halted
CPU 3 is not halted

halt code =3D 5
HALT instruction executed
PC =3D fffffc0000300128
resetting all I/O buses
P00>>>


and here's the latest 1.6.x attempt:

P00>>>boot ewb0
(boot ewb0.0.0.4.0 -flags A)

Trying BOOTP boot.

Broadcasting BOOTP Request...
Received BOOTP Packet File Name is: netbsd-netboot-alpha
local inet address: 192.168.0.248
remote inet address: 192.168.0.254
TFTP Read File Name: netbsd-netboot-alpha
netmask =3D 255.255.255.0
Server is on same subnet as client.
block number=3D 0 port=5Fnumber=3D 40349
=2E
bootstrap code read in
base =3D 200000, image=5Fstart =3D 0, image=5Fbytes =3D fa30(64048)
initializing HWRPB at 2000
initializing page table at 3fb54000
initializing machine state
setting affinity to the primary CPU
jumping to bootstrap code

NetBSD/alpha 1.6.2=5FSTABLE Network Bootstrap, Revision 1.9
(woods@building, Tue Sep  7 17:10:14 EDT 2004)

VMS PAL rev: 0x4006800010162
OSF PAL rev: 0x400690002015c
Switch to OSF PAL code succeeded.

Boot flags: A
boot: ethernet address: 08:00:2b:c4:b5:26
net=5Fopen: client addr: 192.168.0.248
net=5Fopen: subnet mask: 255.255.255.0
net=5Fopen: net gateway: 192.168.0.1
net=5Fopen: server addr: 192.168.0.254
net=5Fopen: server path: /raid/export/netbsd-alpha-newpub
net=5Fopen: file name: netbsd-netboot-alpha
boot: client addr: 192.168.0.248
boot: client name: newpub
boot: subnet mask: 255.255.255.0
boot: net gateway: 192.168.0.1
boot: server addr: 192.168.0.254
boot: server path: /raid/export/netbsd-alpha-newpub
3509752+1788624 [210240+120807]=3D0x55e9b0

Entering netbsd at 0xfffffc0000301290...
calculating 16384 units of callwheel of type (struct callout=5Fqueue) a=
t 24 bytes each
calculating 128 units of shmsegs of type (struct shmid=5Fds) at 72 byte=
s each
calculating 10 units of sema of type (struct semid=5Fds) at 56 bytes ea=
ch
calculating 60 units of sem of type (struct =5F=5Fsem) at 12 bytes each=

calculating 840 units of semu of type (int) at 4 bytes each
calculating 16384 units of msgpool of type (char) at 1 bytes each
calculating 2048 units of msgmaps of type (struct msgmap) at 2 bytes ea=
ch
calculating 40 units of msghdrs of type (struct =5F=5Fmsg) at 24 bytes =
each
calculating 40 units of msqids of type (struct msqid=5Fds) at 96 bytes =
each
using 256 buffer headers for swap (maximum 256)
calculating 104826 units of buf of type (struct buf) at 192 bytes each
allocating 16384 units of callwheel of type (struct callout=5Fqueue) at=
 24 bytes each
allocating 128 units of shmsegs of type (struct shmid=5Fds) at 72 bytes=
 each
allocating 10 units of sema of type (struct semid=5Fds) at 56 bytes eac=
h
allocating 60 units of sem of type (struct =5F=5Fsem) at 12 bytes each
allocating 840 units of semu of type (int) at 4 bytes each
allocating 16384 units of msgpool of type (char) at 1 bytes each
allocating 2048 units of msgmaps of type (struct msgmap) at 2 bytes eac=
h
allocating 40 units of msghdrs of type (struct =5F=5Fmsg) at 24 bytes e=
ach
allocating 40 units of msqids of type (struct msqid=5Fds) at 96 bytes e=
ach
allocating 104826 units of buf of type (struct buf) at 192 bytes each
pmap=5Fbootstrap(0xfffffc003fb54000, 255)
avail=5Fstart =3D 0x204000
avail=5Fend =3D 0x3fffbc000
virtual=5Fend =3D 0xfffffdffac000000

RMC>halt in

Returning to COM port


--=20
=09=09=09=09=09=09Greg A. Woods

+1 416 218-0098                  VE3TCP            RoboHack <woods@robo=
hack.ca>
Planix, Inc. <woods@planix.com>          Secrets of the Weird <woods@we=
ird.com>