Subject: Problems with EtherH driver and 1.3_Alpha
To: RiscBSD Mailing List <port-arm32@NetBSD.ORG>
From: Kjetil B. Thomassen <kjetil@thomassen.priv.no>
List: port-arm32
Date: 12/11/1997 20:48:45
I am having some problems with my EtherH that I didn't have on 1.2(G).
My card is not affected by the bug that ehbug fixes.

The problem is that I get a device timeout with irregular intervals,
and this again means that the Ethernet connection is dead.

The strange thing is that it sometimes works fine.

The card probe correctly, but after it is probed, something
obscure occurs in the dmesg output (attached). Also, the
ifconfig proceeds normally.

I tried to compile my own kernel from the 1.3_Alpha CD-ROM sources,
but the new kernel just gives the same problem.

This kernel (KJETIL) is compiled with full debugging information,
so I can easily do some debugging if that is desirable (how do
I do that?)

I have attached a copy of my kernel config file in case that
matters.

Has anyone else seen this?

This is actually a bit frustrating since I would like to use this
box to fetch the changes with SUP, but since the Ethernet is not
working, I cannot do that.

Anyway, if someone can solve this problem, then I will be happy.
If it takes some time, then I probably should use my PC for SUP
after I have ugraded it to 1.3_Beta.

Kjetil B.
mailto:kjetil@thomassen.priv.no

------- dmesg output

NetBSD 1.3_ALPHA (KJETIL) #0: Thu Dec 11 18:09:42 CET 1997
    root@pc010.oslo.geco-prakla.slb.com:/usr/src/sys/arch/arm32/compile/KJETIL
real mem = 67108864 (16384 pages)
cpu_startup: buffer VM size = 8388608
avail mem = 62554112 (15272 pages)
using 128 buffers containing 524288 bytes of memory
mainbus0 (root)
cpu0 at mainbus0: ARM610 rev 5 IDC enabled WB enabled EABT
fpe0 at cpu0: Advanced Risc Machines floating point emulator 1.07M
fpe0: no hardware found
pioc0 at mainbus0 base 0xf6210000-0xf6212fff
pioc0: SMC FDC37C665GT peripheral controller rev 2
wdc0 at pioc0 offset 0x1f0-0x1f7 irq 9
atapibus0 at wdc0
wd0 at wdc0 drive 0: <Conner Peripherals 210MB - CFS210A>
wd0: 203MB, 685 cyl, 16 head, 38 sec, 512 bytes/sec
wd0: using 16-sector 16-bit pio transfers, chs addressing
wd1 at wdc0 drive 1: <Conner Peripherals 60MB - CP30061>
wd1: 58MB, 762 cyl, 4 head, 39 sec, 512 bytes/sec
wd1: using 16-sector 16-bit pio transfers, chs addressing
fdc0 at pioc0 offset 0x3f0-0x3f1 irq 12 drq 0x00002000
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
com0 at pioc0 offset 0x3f8-0x3f9 irq 10: ns16550a, working fifo
lpt0 at pioc0 offset 0x278-0x278 irq 0
lpt0: out of paper
iomd0 at mainbus0: RPC IOMD 
iomd0: DRAM refresh=16us
clock0 at iomd0
kbd0 at iomd0
iic0 at iomd0
rtc0 at iic0 addr 0xa0: PCF8583 clock base 32.768KHz
todclock0 at rtc0
qms0 at iomd0
vidc0 at mainbus0: vidc20
beep0 at vidc0
vidcaudio0 at vidc0
audio0 at vidcaudio0
vidcvideo0 at vidc0: refclk=24MHz 2048KB VRAM
rpc0 at vidc0: console driver [V203E] using vt100 VIDC
rpc1 at vidc0: console driver [V203E] using vt100 VIDC
rpc2 at vidc0: console driver [V203E] using vt100 VIDC
rpc3 at vidc0: console driver [V203E] using vt100 VIDC
rpc4 at vidc0: console driver [V203E] using vt100 VIDC
rpc5 at vidc0: console driver [V203E] using vt100 VIDC
podulebus0 (root)
podule0  at podulebus0 : Alsystems : SCSI II host adapter : Power-tec (Alsystems) Generic SCSI with ATAPI & CDFS
netslot0 at podulebus0 : I-Cubed : etherlan 600 network slot interface : i-cubed ltd, EtherLan 600 interface (00:c0:32:00:30:EA)
ptsc0 at podulebus0 [ podule 0 ]: dmabuf V0xf2a4c000 P0x10483000 host=7
scsibus0 at ptsc0: 8 targets
sd0 at scsibus0 targ 0 lun 0: <HP, C3325A, 4299> SCSI2 0/direct fixed
sd0: 2069MB, 3703 cyl, 9 head, 127 sec, 512 bytes/sect x 4238836 sectors
sd1 at scsibus0 targ 2 lun 0: <CDC, 94221-5, 5978> SCSI1 0/direct fixed
sd1: 170MB, 1544 cyl, 5 head, 45 sec, 512 bytes/sect x 349770 sectors
sd2 at scsibus0 targ 3 lun 0: <CDC, 94221-5, 5978> SCSI1 0/direct fixed
sd2: 170MB, 1544 cyl, 5 head, 45 sec, 512 bytes/sect x 349770 sectors
cd0 at scsibus0 targ 6 lun 0: <PHILIPS, CDD2600, 1.07> SCSI2 5/cdrom removable
eh0 at podulebus0 [ netslot 0 ]:1.2.3.4.5. address 00:00:a4:10:69:3a pio mode
ipl_bio=00108c09 ipl_net=00100000 ipl_tty=00100000 ipl_clock=00100000
ipl_imp=00100000 ipl_none=00000000
spl0=ffffffff splsoft=ffffff7d splbio=00108c09 splnet=00100000
spltty=00100000 splclock=00100000 splimp=00100000 splhigh=00000000
clock: hz=100 stathz = 0 profhz = 0
md0: allocated 0K (0 blocks)
boot device: sd0
root on sd0a dumps on sd0b
inittodr: 17:27:39.2900 11/12/1997
Clock has gained 0 days 0 hours 3 minutes 36 secs
root file system type: ffs

eh0: device timeout

---------- KJETIL kernel configuration file
#
#	GENERIC -- everything that's currently supported
#

include	"arch/arm32/conf/std.arm32"

# estimated number of users

maxusers	64

# Standard system options

options 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
options 	SWAPPAGER	# paging; REQUIRED
options 	VNODEPAGER	# mmap() of files
options 	DEVPAGER	# mmap() of devices
#options 	NTP		# NTP phase/frequency locked loop

# CPU options

# For standard RiscPC's
options 	CPU_SA110	# Support the SA110 core
options 	CPU_ARM6	# Support the ARM6 core
options 	CPU_ARM7	# Support the ARM7 core
options 	CPU_ARM8	# Support the ARM8 core
#options 	ARM6_LATE_ABORT	# ARM6XX late abort support

# For A7000, Stork and other ARM7500 machines
#options 	CPU_ARM7	# Support the ARM7 core
#options 	CPU_ARM7500	# We are actually an ARM7500

# Architecture options
options 	IOMD		# We have an IOMD
options 	RISCPC		# We are a RiscPC
#options 	RC7500		# We are a RC7500

# FPA options

options 	ARMFPE		# ARM Ltd FPE

# File systems

file-system	FFS		# UFS
#file-system	LFS		# log-structured file system
file-system	MFS		# memory file system
file-system	NFS		# Network file system
#file-system 	ADOSFS		# AmigaDOS-compatible file system
file-system 	EXT2FS		# second extended file system (linux)
file-system	CD9660		# ISO 9660 + Rock Ridge file system
file-system	MSDOSFS		# MS-DOS file system
file-system	FDESC		# /dev/fd
file-system	KERNFS		# /kern
file-system	NULLFS		# loopback file system
file-system	PORTAL		# portal filesystem (still experimental)
file-system	PROCFS		# /proc
file-system	UMAPFS		# NULLFS + uid and gid remapping
file-system	UNION		# union file system

# File system options
options 	QUOTA		# UFS quotas
options 	FIFO		# FIFOs; RECOMMENDED
options 	NFSSERVER

# Networking options

options 	GATEWAY		# packet forwarding
options 	INET		# IP + ICMP + TCP + UDP
#options 	MROUTING	# IP multicast routing
#options 	NS		# XNS
#options 	NSIP		# XNS tunneling over IP
options 	ISO,TPIP	# OSI
options 	EON		# OSI tunneling over IP
#options 	CCITT,LLC,HDLC	# X.25
#options 	NETATALK	# AppleTalk networking
#options 	PFIL_HOOKS	# pfil(9) packet filter hooks
#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
#options 	PPP_DEFLATE	# Deflate compression support for PPP
#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)

# Compatibility options

options 	COMPAT_43	# 4.3BSD compatibility.
options 	COMPAT_12	# NetBSD 1.2 compatibility.
#options 	COMPAT_11	# NetBSD 1.1 compatibility.
#options 	COMPAT_10	# NetBSD 1.0 compatibility.
#options 	COMPAT_09	# NetBSD 0.9 compatibility.
#options 	TCP_COMPAT_42   # TCP bug compatibility with 4.2BSD

# Shared memory options

options		SYSVMSG		# System V-like message queues
options		SYSVSEM		# System V-like semaphores
options		SYSVSHM		# System V-like memory sharing
options 	SHMMAXPGS=1024	# 1024 pages is the default

# Device options

options 	MEMORY_DISK_HOOKS	# boottime setup of ramdisk
#options 	MEMORY_DISK_SIZE=0	# Size in blocks
#options 	MINIROOT_SIZE=2880	# Size in blocks
#options 	MEMORY_DISK_IS_ROOT	# use memory disk as root

# Miscellaneous kernel options
options 	KTRACE		# system call tracing, a la ktrace(1)
options 	IRQSTATS	# manage IRQ statistics
options 	LKM		# loadable kernel modules
options 	KMEMSTATS	# kernel memory statistics
options 	SCSIVERBOSE	# Verbose SCSI errors

# Development and Debugging options

options 	MOUSE_IOC_ACK	# acknowledge state change ioctls
#options 	ARM700BUGTRACK	# track the ARM700 swi bug
#options 	PORTMASTER	# Enable PortMaster only options
options 	DIAGNOSTIC	# internally consistency checks
options  	PMAP_DEBUG	# Enable pmap_debug_level code
options 	POSTMORTEM	# perform postmortem on panic
#options 	IPKDB		# remote kernel debugging
options 	DDB		# in-kernel debugger
makeoptions	DEBUG="-g"	# compile full symbol table

config		netbsd	root on ? type ?
#options 	COMCONSOLE=0,CONADDR=0x3f8,CONUNIT=0,CONSPEED=9600

# The main bus device
mainbus0 at root

# The boot cpu
cpu0 at mainbus?

# The IOMD
iomd0	at mainbus?

# system clock via IOMD
clock*	at iomd?

# kbd via IOMD
kbd*	at iomd?

# quadrature mouse via IOMD
qms*	at iomd?

# PS2 mouse via IOMD
pms*	at iomd?

# IIC bus device
iic*	at iomd?

# RTC device via IIC bus
rtc*	at iic? addr 0xa0

# time-of-day device via rtc device
todclock0	at rtc?

# VIDC device
vidc0		at mainbus?

# The vidc
vidcvideo0	at vidc?

# generic VT console device
vt0     at vidc?
vt1     at vidc?
vt2     at vidc?
vt3     at vidc?
vt4     at vidc?
vt5     at vidc?

# Peripheral IO Controller
pioc0	at mainbus? base 0x00210000

# IDE disk controller
wdc0	at pioc? offset 0x01f0 irq 9
#wdc*	at pioc? offset 0x0170 irq -1
wd*	at wdc? drive ?
atapibus* at wdc?
cd*	at atapibus? drive ?

# Floppy disk controller
fdc*    at pioc? offset 0x03f0 irq 12 dack 0x2000
fdc*    at pioc? offset 0x0370 irq -1 dack 0x2000
fd0     at fdc? drive ?

# Serial ports
com*    at pioc? offset 0x03f8 irq 10
#com*    at pioc? offset 0x02f8 irq -1
#com*    at pioc? offset 0x0338 irq -1
#com*    at pioc? offset 0x0238 irq -1

# Parallel ports
lpt*    at pioc? offset 0x0278 irq 0
#lpt*    at pioc? offset 0x0378 irq -1
#lpt*    at pioc? offset 0x03bc irq -1

# Crude sound device
beep0	at vidc?

# Audio device
vidcaudio0	at vidc?
audio*		at vidcaudio0

# Podule bus device
podulebus0	at root

asc*	at podulebus?			# Acorn SCSI card
scsibus* at asc?

#cosc*	at podulebus?			# MCS Connect32 SCSI II card
#scsibus* at cosc?

ptsc*	at podulebus?			# Power-Tec SCSI II card
scsibus* at ptsc?

#oak*	at podulebus?			# Oak SCSI I card
#scsibus* at oak?

sd*	at scsibus? target ? lun ?	# SCSI disk drives
st*	at scsibus? target ? lun ?	# SCSI tape drives
cd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives
ch*	at scsibus? target ? lun ?	# SCSI auto-changers
uk*	at scsibus? target ? lun ?	# SCSI unknown device
ss*	at scsibus? target ? lun ?	# SCSI scanner

#icside*	at podulebus?			# ICS IDE card
#wdc*	at icside?

#rapide*	at podulebus?			# Yellowstone RapIDE card
#wdc*	at rapide?

#simide*	at podulebus?			# Simtec IDE card
#wdc*	at simide?

#ie*	at podulebus?			# Ether1 podules
ea*	at podulebus?			# Ether3 podules
#eb0	at podulebus?			# EtherB network slot cards
eh0	at podulebus?			# EtherH network slot cards
#em0	at podulebus?			# EtherM network slot cards

pseudo-device	loop	1               # network loopback
pseudo-device	bpfilter 8              # packet filter
pseudo-device	sl	2               # CSLIP
pseudo-device	ppp	2		# PPP
pseudo-device	tun	2		# network tunneling over tty
#pseudo-device	ipfilter 1		# ip filter
#pseudo-device	strip	4		# STRIP 
pseudo-device	pty     32              # pseudo-terminals
pseudo-device	tb	1		# tablet line discipline
pseudo-device	vnd     4               # paging to files
pseudo-device	ccd	2		# concatenated disk devices
pseudo-device	md	1		# Ramdisk driver

makeoptions MONITOR="Taxan875+LR"
#makeoptions MONITOR="AKF60"
makeoptions MODES="1024,768,60 1024,768,70 800,600,60 640,480,60 1280,1024 1152,900"