Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Nov 1999 21:51:07 +0100
From:      "Julian Stacey" <jhs@jhs.muc.de>
To:        freebsd-isdn@freebsd.org
Subject:   options TEL_S0_8 broken on FreeBSD-3.3 / i4b-70
Message-ID:  <199911102051.UAA05860@jhs.muc.de>
In-Reply-To: Your message of "Wed, 27 Oct 1999 01:41:29 %2B0200." <199910262341.XAA16746@jhs.muc.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
TEL_S0_8 on i4b (isdnd -v 00.70.0) with FreeBSD-3.3 seems broken !
Try this to prove it (or Please tell me what I've done wrong :-)

Please note you can try this on any system,  you don't need an ISDN card,
in fact it'll be easiest to test on systems with No ISDN card in !

Apply this diff to src/sys/i386/conf/
=========
*** GENERIC	Tue Nov  9 17:30:17 1999
--- GENI4B	Wed Nov 10 18:20:23 1999
***************
*** 22,28 ****
  cpu		"I486_CPU"
  cpu		"I586_CPU"
  cpu		"I686_CPU"
! ident		GENERIC
  maxusers	32
  
  options 	MATH_EMULATE		#Support for x87 emulation
--- 22,28 ----
  cpu		"I486_CPU"
  cpu		"I586_CPU"
  cpu		"I686_CPU"
! ident		"GENI4B"
  maxusers	32
  
  options 	MATH_EMULATE		#Support for x87 emulation
***************
*** 211,213 ****
--- 211,229 ----
  # The number of devices determines the maximum number of
  # simultaneous BPF clients programs runnable.
  pseudo-device	bpfilter 1	#Berkeley packet filter
+ 
+ 
+ options "TEL_S0_8"
+ device	isic0 at isa? iomem 0xd0000 net irq 5 flags 1
+ pseudo-device   "i4bq921"
+ pseudo-device   "i4bq931"
+ pseudo-device   "i4b"
+ pseudo-device   "i4btrc"        4
+ pseudo-device   "i4bctl"
+ pseudo-device   "i4brbch"       4
+ pseudo-device   "i4btel"        2
+ pseudo-device   "i4bipr"        4
+ options         IPR_VJ
+ pseudo-device   "i4bisppp"      4
+ pseudo-device	ppp	1	# Kernel PPP
+ pseudo-device	sppp		2
=========

Boot the kernel & get from dmesg (with no isdn card in):
	isic0 at irq 5 maddr 0xd0000 msize 4096 flags 0x1 on isa
        isic0: Error, HSCX version 15 unknown!
        isic0: irq with no handler
        aha0 not probed due to I/O address conflict with isic0 at 0xffffffff

or with an 8 bit card in:
	isic0 at irq 5 maddr 0xd0000 msize 4096 flags 0x1 on isa
	isic0: Teles S0/8 or Niccy 1008
	isic0: ISAC 2085 Version V2.3 (B3) (IOM-1) (Addr=0xc00d0100)
	isic0: HSCX 82525 Version A3 (AddrA=0xc00d0180, AddrB=0xc00d01c0)
	adv0 not probed due to I/O address conflict with isic0 at 0xffffffff
	bt0 not probed due to I/O address conflict with isic0 at 0xffffffff
	aha0 not probed due to I/O address conflict with isic0 at 0xffffffff

So what's this 0xffffffff collision ?  (I'll look at newer source after 
fetching, but this looks like a failure needing to be reported ).
Note manual says: "Notice that this cards must not have a port value in 
the config line."

I later got the revelatory "aha0 not probed" messages on an IDE-only box.
No wonder I was earlier getting panics on a scsi-only box,

PS for commiters,
man isic (& i4b-00.82.00-beta-140799.tar.gz man/isic.4) show 
     options "TEL_S0_8"
     device isic0 at isa? iomem 0xd0000 net irq 5 flags 1 vector isicintr
     options "TEL_S0_16"
     device isic0 at isa? port 0xd80 iomem 0xd0000 net irq 5 flags 2 vector
but at least for FreeBSD the "vector isicintr" is obsolete, & should be removed
(but maybe it's left there for Open & NetBSD ?)

I have appended my previous post re. panics, 
(for which I got zero response, I guess everyone was busy :-)
------------
From owner-freebsd-isdn@FreeBSD.ORG Wed Oct 27 14:52:47 1999
Date: Wed, 27 Oct 1999 01:41:29 +0200
Message-Id: <199910262341.XAA16746@jhs.muc.de>
To: freebsd-isdn@FreeBSD.ORG
Subject: options TEL_S0_8 - changing root device to da0a - panic
Sender: owner-freebsd-isdn@FreeBSD.ORG

On hardware that previously ran fine with a 16 bit creatix card +
	FreeBSD 3.2-RELEASE + TEL_S0_16 + isdnd 00.70.0,
I now see panics on boot with
	FreeBSD 3.3-RELEASE + TEL_S0_8 + isdnd 00.70.0
like this
	Considering FFS root f/s.
	changing root device to da0s1a
        changing root device to da0a
        error 6: panic: cannot mount root (2)
        sc0: sc_switch_scr() 1
Whether the 8 bit card is in the box or not makes no difference!
  (the 16 bit card went to a faster box, the old box with 8bit is reserve box)

To isolate fault, I've also removed
	mult-io (sio + flop + ide + lpt)
	mitsumi-cd controller
all that is left in is the unchanged ed0 ether, 1542 aha0 scsi, & svga.

It boots properly if configured with TEL_S0_16 !
	Considering FFS root f/s.
        changing root device to da0s1a
        [ da0s1: type 0xa5, start 0, end = 832526, size 832527 : OK]
(yes, note the absence of 2nd line "changing root device to da0a" ? )

I may have some bad combo of rootdev/curdev in /boot/* & config file
("config kernel root on wd0" or da0 etc), but that's not the real point,
something in config'ing with TEL_S0_8 rather than TEL_S0_16 triggers the
panic on boot !

First I'm going to try & repeat this on another just built machine,
(TEL_S0_8 with & without card in) & see if that panics too,
Maybe later on more modern i4b & also try to boot kernel from gdb (gulp!).

I tweaked my config a lot till I figured what was triggering the panic,
including using some silly configs, but I'm sure it is the TEL_S0_8
that's tickling it. FYI here's my config

----
options INCLUDE_CONFIG_FILE
machine		"i386"
cpu	"I486_CPU"
ident		JHS_Phil
maxusers	32
options		INET
options		FFS
options		FFS_ROOT
options		MFS
options		MFS_ROOT
options		NFS
options		NFS_ROOT
options		MSDOSFS
options		"CD9660"
options		"CD9660_ROOT"
options		PROCFS
options		"COMPAT_43"
options		SCSI_DELAY=15000
options		UCONSOLE
options		FAILSAFE
options		USERCONFIG
options		VISUAL_USERCONFIG
options		KTRACE
options		SYSVSHM
options		SYSVMSG
options		SYSVSEM
options		"TCP_COMPAT_42"
options		IPFIREWALL
options		IPFIREWALL_VERBOSE
config		kernel	root on da0
controller	isa0
controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2
disk		fd0	at fdc0 drive 0
controller	aha0	at isa? port ? cam irq ?
controller	scbus0
device		da0
device		sa0
device		cd0
device		pass0
device		mcd0	at isa? port 0x300 bio irq 10
controller	atkbdc0 at isa? port IO_KBD tty
device		atkbd0	at isa? tty irq 1
device		vga0	at isa? port ? conflicts
device		sc0	at isa? tty
device		npx0	at isa? port IO_NPX irq 13
device		sio0	at isa? port "IO_COM1" flags 0x10 tty irq 4
device		sio1	at isa? port "IO_COM2" tty irq 3
device		ppc0	at isa? port? flags 0x40 net irq 7
controller	ppbus0
device		lpt0	at ppbus?
device		plip0	at ppbus?
device		ppi0	at ppbus?
device ed0 at isa? port 0x280 net irq 12 iomem 0xc8000 iosiz 16384
pseudo-device	loop
pseudo-device	ether
pseudo-device	sl	1
pseudo-device	ppp	1
pseudo-device	vn
pseudo-device	tun	1
pseudo-device	pty	32
pseudo-device	gzip
pseudo-device	bpfilter 4
# Boots OK:
#	options "TEL_S0_16"
# with any one of:
#	device isic0 at isa? port 0xF80 iomem 0xd6000 net irq 12 flags 2
#	device isic0 at isa? port 0xF80 iomem 0xd6000 net irq 12 flags 1
#	device isic0 at isa?            iomem 0xd6000 net irq 12 flags 1
#	device isic0 at isa?            iomem 0xd6000 net irq 5 flags 1
# Panics:
#	options "TEL_S0_8"
# plus:
#	device isic0 at isa?            iomem 0xd6000 net irq 5 flags 1
#	(with or without vector isicintr)(note discrepancy between man
#	isic with vector, & LINT without)
pseudo-device	"i4bq921"
pseudo-device	"i4bq931"
pseudo-device	"i4b"
pseudo-device	"i4btrc" 4
pseudo-device	"i4bctl"
pseudo-device	"i4brbch" 4
pseudo-device	"i4btel" 2
pseudo-device	"i4bipr" 6
options IPR_VJ
pseudo-device	"i4bisppp" 4
pseudo-device	sppp		2
----

Julian H. Stacey   www.jhs.muc.de  www.freebsd.org/~jhs/  bim.bsn.com/~jhs/
   FreeBSD: Free system software with 2500 free packages, Linux compatible.
   Free encryption software from http://www.ifi.uio.no/pgp/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isdn" in the body of the message
------------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isdn" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911102051.UAA05860>