Subject: Re: 1.3_ALPHA problems..
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: Chris Csanady <ccsanady@bob.scl.ameslab.gov>
List: port-alpha
Date: 10/29/1997 13:54:20
>It would REALLY help if you send the error messages... along with
>dmesg output, etc.  I have 2 AlphaStations with "de" interfaces in
>them, and they use the network a _lot_, and both work fine.

Copyright (c) 1996, 1997 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.3_ALPHA (GENERIC) #1: Sun Oct 26 20:00:11 PST 1997
    cjs@academic.cynic.net:/usr1/netbsd/co/src/sys/arch/alpha/compile/GENERIC
EB164, 531MHz
8192 byte page size, 1 processor.
real mem = 268435456 (1941504 reserved for PROM, 266493952 used by NetBSD)
avail mem = 227852288
using 3253 buffers containing 26648576 bytes of memory
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21164A (pass 2)
cia0 at mainbus0: DECchip 21171/21172 Core Logic chipset rev. 257
cia0: EV56 BWX enabled
pci0 at cia0 bus 0
de0 at pci0 dev 5 function 0 at eb164 irq 2
de0: DEC DE500-AA 21140A [10-100Mb/s] pass 2.0
de0: address 00:00:f8:06:c7:f2
de0: enabling 10baseT port
vga0 at pci0 dev 7 function 0: Trident Microsystems TGUI 9660 (rev. 0xd3)
wscons0 at vga0: console
sio0 at pci0 dev 8 function 0: Intel 82378ZB System I/O (SIO) (rev. 0x43)
Symbios Logic product 0x0702 (ethernet network, revision 0x01) at pci0 dev 9 
function 0 not configured
CMD Technology 646 (IDE mass storage, interface 0x80, revision 0x01) at pci0 
dev 11 function 0 not configured
isa0 at sio0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
lpt0 at isa0 port 0x3bc-0x3bf irq 7
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
wd0 at wdc0 drive 0: <WDC AC34000L>
wd0: 3815MB, 7752 cyl, 16 head, 63 sec, 512 bytes/sec
wd0: using 16-sector 16-bit pio transfers, lba addressing
wd1 at wdc0 drive 1: <ST32140A>
wd1: 2015MB, 4095 cyl, 16 head, 63 sec, 512 bytes/sec
wd1: using 16-sector 16-bit pio transfers, lba addressing
pcppi0 at isa0 port 0x60-0x64
pckbd0 at pcppi0
pms0 at pcppi0
mcclock0 at isa0 port 0x70-0x71: mc146818 or compatible
nfs_boot: trying BOOTP/DHCP
nfs_boot: my_addr=0x939b890e
nfs_boot: my_mask=0xfffffe00
root on bob.scl.ameslab.gov:/scratch/netbsd
WARNING: clock gained 2 days -- CHECK AND RESET THE DATE!
root file system type: nfs
wd0: no disk label
de0: receive: 00:20:af:75:70:bc: alignment error
de0: receive: 00:20:af:75:70:bc: alignment error
de0: receive: 00:20:af:75:70:bc: alignment error
de0: receive: 00:20:af:75:70:bc: bad crc
de0: receive: 00:20:af:75:70:bc: alignment error
de0: receive: 00:20:af:75:70:bc: alignment error
de0: receive: 00:20:af:75:70:bc: alignment error
de0: receive: 00:20:af:75:70:bc: alignment error
de0: link down: cable problem?

For what its worth, the link was never actually down.. in fact, networking
still appears to work fine.  Also, I noticed that it is at irq 2.  Is this
a good thing? :\

> > IDE disks still do not appear to work.

As I mentioned earlier, I can disklabel, newfs, mount and even use file
systems on IDE disks.  However, if I try to fsck them or installboot,
the machine crashes.  Hmm..  upon attempting to crash it, it appears that
today it works--so I can not report the exact error message. :\  Can't
complain though.  In fact, the alignment errors went away too after I
booted off the IDE disk instead of the network.

>Again, more detailed messages.  I think Ross Harvey is using IDE disks on
>his eb164s?  At least, he sent me a change that made them work for him.
>
> > And last, I am still unable to build a kernel.  With sources 
> > supped today, the generic one will not build.  Also, with my
> > config file, I get the thousands of lines of errors as usual.
> > (my last mail)  What am I doing wrong here?  I assume that
> > this did work if someone actually got the snap to build..
>
>Can you resend these?  That is totally bizarre... I mean, I built a kernel
>just today...

Perhaps this is due to incorrect installation of the toolchain.  I noticed
that sometimes I get eval: "/usr/libexec/cpp: not found"  I can understand
that this may break things, and is probably the source of all my problems.
I presume that this is why I have not been able to build the entire tree
as well.  Any help here, would really be appreciated. :)

cpp -traditional -D_LOCORE -I. -I../../../../arch -I../../../.. -nostdinc 
-DEXEC_ECOFF -DEXEC_ELF64 -DEXEC_SCRIPT -DKTRACE -DDIAGNOSTIC -DFFS -DMFS 
-DCD9660 -DMSDOSFS -DNFS -DFIFO -DNFSSERVER -DINET -DCOMPAT_43 -DCOMPAT_10 
-DCOMPAT_11 -DCOMPAT_12 -DSYSVSHM -DLKM -DMAXUSERS=64 -D_KERNEL  -Dalpha 
../../../../arch/alpha/alpha/locore.s | sed -e 's,^#.*,,' | as -o locore.o
eval: /usr/libexec/cpp: not found

It still goes on after this however.  Anyways this is what happens at link
time.  My config file follows..

ld -N -Ttext fffffc0000230000 -e __start -G 4 -X -o netbsd ${SYSTEM_OBJ} vers.o
ld: warning: cannot find entry symbol __start; defaulting to fffffc0000230000
com.o: In function `comopen':
/sys/arch/alpha/compile/BUNNY/machine/intr.h:62: undefined reference to 
`alpha_pal_rdps'
/sys/arch/alpha/compile/BUNNY/machine/intr.h:62: undefined reference to 
`alpha_pal_rdps'
/sys/arch/alpha/compile/BUNNY/machine/intr.h:63: undefined reference to 
`alpha_pal_swpipl'
/sys/arch/alpha/compile/BUNNY/machine/intr.h:63: undefined reference to 
`alpha_pal_swpipl'
/sys/arch/alpha/compile/BUNNY/machine/intr.h:62: undefined reference to 
`alpha_pal_rdps'
/sys/arch/alpha/compile/BUNNY/machine/intr.h:62: undefined reference to 
`alpha_pal_rdps'
/sys/arch/alpha/compile/BUNNY/machine/intr.h:63: undefined reference to 
`alpha_pal_swpipl'
/sys/arch/alpha/compile/BUNNY/machine/intr.h:63: undefined reference to 
`alpha_pal_swpipl'
com.o: In function `comopen':
/sys/arch/alpha/compile/BUNNY/../../../../dev/ic/com.c:622: undefined 
reference to `alpha_pal_swpipl'
/sys/arch/alpha/compile/BUNNY/../../../../dev/ic/com.c:622: undefined 
reference to `alpha_pal_swpipl'
/sys/arch/alpha/compile/BUNNY/../../../../dev/ic/com.c:648: undefined 
reference to `alpha_pal_swpipl'
com.o:/sys/arch/alpha/compile/BUNNY/../../../../dev/ic/com.c:648: more 
undefined references to `alpha_pal_swpipl' follow
com.o: In function `comclose':
/sys/arch/alpha/compile/BUNNY/machine/intr.h:62: undefined reference to 
`alpha_pal_rdps'
/sys/arch/alpha/compile/BUNNY/machine/intr.h:62: undefined reference to 
`alpha_pal_rdps'
/sys/arch/alpha/compile/BUNNY/machine/intr.h:63: undefined reference to 
`alpha_pal_swpipl'
/sys/arch/alpha/compile/BUNNY/machine/intr.h:63: undefined reference to 
`alpha_pal_swpipl'
com.o: In function `comclose':
/sys/arch/alpha/compile/BUNNY/../../../../dev/ic/com.c:696: undefined 
reference to `alpha_pal_swpipl'
/sys/arch/alpha/compile/BUNNY/../../../../dev/ic/com.c:696: undefined 
reference to `alpha_pal_swpipl'
com.o: In function `com_break':
/sys/arch/alpha/compile/BUNNY/machine/intr.h:62: undefined reference to 
`alpha_pal_rdps'
/sys/arch/alpha/compile/BUNNY/machine/intr.h:62: undefined reference to 
`alpha_pal_rdps'
/sys/arch/alpha/compile/BUNNY/machine/intr.h:63: undefined reference to 
`alpha_pal_swpipl'
/sys/arch/alpha/compile/BUNNY/machine/intr.h:63: undefined reference to 
`alpha_pal_swpipl'
com.o: In function `com_break':
/sys/arch/alpha/compile/BUNNY/../../../../dev/ic/com.c:889: undefined 
reference to `alpha_pal_swpipl'
/sys/arch/alpha/compile/BUNNY/../../../../dev/ic/com.c:889: undefined 
reference to `alpha_pal_swpipl'
com.o: In function `com_modem':
/sys/arch/alpha/compile/BUNNY/machine/intr.h:62: undefined reference to 
`alpha_pal_rdps'
/sys/arch/alpha/compile/BUNNY/machine/intr.h:62: undefined reference to 
`alpha_pal_rdps'
/sys/arch/alpha/compile/BUNNY/machine/intr.h:63: undefined reference to 
`alpha_pal_swpipl'
/sys/arch/alpha/compile/BUNNY/machine/intr.h:63: undefined reference to 
`alpha_pal_swpipl'
. . .


swiss# cat SWISS 
# $NetBSD: GENERIC,v 1.69 1997/10/20 18:47:08 explorer Exp $
#
# Generic Alpha kernel.  Enough to get booted, etc., but not much more.

include "arch/alpha/conf/std.alpha"

maxusers 64

# set kernel load address a bit higher to allow kernel to be netbooted.
# if not netbooting, the "makeoptions LOADADDRESS" line can be commented
# out to save a fair chunk (~850k) of RAM.
makeoptions     LOADADDRESS="fffffc0000300000"

# CPU Support
options         DEC_EB164       # EB164:        AlphaPC 164

# Standard system options
options         KTRACE                  # System call tracing support

# Diagnostic/debugging support options
options         DIAGNOSTIC              # Cheap kernel consistency checks

# File systems
file-system     FFS             # Fast file system
file-system     MFS             # Memory-based file system
file-system     CD9660          # ISO-9660 CD-ROM FS (w/RockRidge extensions)
file-system     MSDOSFS         # MS-DOS-compatible file system
file-system     NFS             # Sun NFS-compatible file system client

# File system options
options         FIFO            # POSIX fifo support (in all file systems)
options         NFSSERVER       # Sun NFS-compatible file system server

# Networking options
options         INET            # Internet protocol suite

# 4.3BSD compatibility.  Should be optional, but necessary for now.
options         COMPAT_43

# Binary compatibility with previous versions of NetBSD.
#options        COMPAT_09
options         COMPAT_10
options         COMPAT_11
options         COMPAT_12

# System V-like shared memory
options         SYSVSHM
#options        SHMMAXPGS=1024          # 1024 pages is the default

# Loadable Kernel Modules
options         LKM

# Disable kernel security.
#options        INSECURE

# Misc. options
options         EISAVERBOSE             # recognize "unknown" EISA devices
options         PCIVERBOSE              # recognize "unknown" PCI devices
#options        SCSIVERBOSE             # Verbose SCSI errors
options         TCVERBOSE               # recognize "unknown" TC devices
options         UCONSOLE                # users can use TIOCCONS (for xconsole)

config          netbsd  root on ? type ?
#config         netbsd  root on sd0 type ffs
#config         netbsd  root on ? type nfs

mainbus0 at     root
cpu*    at      mainbus0

# PCI host bus adapter support
cia*    at      mainbus?

# PCI bus support
pci*    at      cia?

# PCI devices
de*     at      pci? dev ? function ?           # 21x4x-based Ethernet
sio*    at      pci? dev ? function ?           # Intel PCI-ISA Bridges
vga*   at      pci? dev ? function ?           # PCI VGA Graphics

# ISA/EISA bus support
isa*    at      sio?

# ISA devices
mcclock* at     isa? port 0x70
pcppi*  at      isa?                            # PC prog. periph. interface
pckbd*  at      pcppi?                          # PC keyboard (kbd port)
pms*    at      pcppi?                          # PS/2-style mouse (aux port)
com*    at      isa? port 0x3f8 irq 4           # standard serial ports
com*    at      isa? port 0x2f8 irq 3
lpt*    at      isa? port 0x3bc irq 7           # standard parallel port
awdc0   at      isa? port 0x1f0 irq 14          # ST506/ESDI/IDE controllers
awdc1   at      isa? port 0x170 irq 15

# ST506/ESDI/IDE devices
awd*    at      awdc? drive ?

# Workstation Console attachments
wscons*        at      vga?

pseudo-device   bpfilter        16
pseudo-device   loop            1
pseudo-device   md              1
pseudo-device   pty             64
pseudo-device   vnd             4

# rnd is EXPERIMENTAL
#pseudo-device  rnd                     # /dev/random and in-kernel generator
#options        RND_COM                 # use "com" randomness too