Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Sep 1995 00:07:01 -0500 (CDT)
From:      Kent Hamilton <kenth@HNS.St-Louis.Mo.US>
To:        freebsd-current@freebsd.org
Subject:   ATAPI CDROM problem.
Message-ID:  <199509290507.AAA06262@gwydion.HNS.St-Louis.Mo.US>

next in thread | raw e-mail | index | archive | help
I just joined this list and moved to 2.2-current this weekend.  The
main reason I did so was because I had a desperate need to get the
ATAPI cdrom stuff working.  

I reconfigured my kernal to use it and rebuilt (make bootstrap, make
world, etc, etc) and when I boot on it, I get to the wcd0 and get a
panic.  The wording on the error is "drive attached twice".  And it
cycles through the re-boot.  This is on a NEC P100 PCI with an 
embedded two channel [E]IDE controller, with the CDROM as the only
device on the second channel.  Below is the output of 'dmesg' and
the relevent bits from my config file.

Anyone got this working care to offer suggestions?  I get this compile
warning in atapi.c:

../../i386/isa/atapi.c:  In function 'atapi_attach':
../../i386/isa/atapi.c:263: warning: nested extern declaration of 'wcdattach'

I haven't had time to look at the code yet.  Our NT server at work
died on Monday....  

---- Config file bits ----

options		ATAPI	#Enable ATAPI support for IDE bus devices (CDROM)
controller	wdc1	at isa? port "IO_WD2" bio irq 15 vector wdintr
#disk		wd2	at wdc1 drive 0
#disk		wd3	at wdc1 drive 1
device		wcd0

I've also tried both of these:

Doesn't panic on this but also doesn't find the CD.

options		ATAPI	#Enable ATAPI support for IDE bus devices (CDROM)
controller	wdc1	at isa? port "IO_WD2" bio irq 15 vector wdintr
disk		wd2	at wdc1 drive 0
disk		wd3	at wdc1 drive 1
device		wcd0

Still panics on this one.

options		ATAPI	#Enable ATAPI support for IDE bus devices (CDROM)
controller	wdc1	at isa? port "IO_WD2" bio irq 15 vector wdintr
#disk		wd2	at wdc1 drive 0
#disk		wd3	at wdc1 drive 1
device		wcd0 at wdc1

---- dmesg output ----

Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: VGA color <16 virtual consoles, flags=0x0>
ed0 at 0x300-0x31f irq 10 maddr 0xcc000 msize 16384 on isa
ed0: address 00:00:c0:aa:ec:58, type WD8013EPC (16 bit) 
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
sio2 not found at 0x3e8
lpt0 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
psm0 at 0x60-0x63 irq 12 on motherboard
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: NEC 72065B
fd0: 1.44MB 3.5in
wdc0 at 0x1f0-0x1f7 irq 14 on isa
wdc0: unit 0 (wd0): <Maxtor 71626 AP>
wd0: 1554MB (3183264 sectors), 3158 cyls, 16 heads, 63 S/T, 512 B/S
wdc1: disabled, not probed.
bt0: Bt54xC/ 0-ISA(24bit) bus
bt0: This driver is designed for using 32 bit addressing
bt0: mode firmware and EISA/PCI/VLB bus architectures
bt0: Bounce-buffering will be used (and is necessary)
bt0: if you have more than 16MBytes memory.
bt0: reading board settings, dma=5, int=11
bt0: version 4.21, sync, parity, 32 mbxs, 32 ccbs
bt0: targ 1 sync rate=10.00MB/s(100ns), offset=15
bt0: Using Strict Round robin scheme
bt0 at 0x230 irq 11 drq 5 on isa
bt0 waiting for scsi devices to settle
(bt0:0:0): "MICROP 1588-15MB1057403 HSP4" type 0 fixed SCSI 1
sd0(bt0:0:0): Direct-Access 636MB (1304052 512 byte sectors)
sd0(bt0:0:0): with 1632 cyls, 15 heads, and an average 53 sectors/track
(bt0:1:0): "SEAGATE ST42100 8224" type 0 fixed SCSI 2
sd1(bt0:1:0): Direct-Access 1812MB (3711990 512 byte sectors)
sd1(bt0:1:0): with 2574 cyls, 15 heads, and an average 96 sectors/track
npx0 on motherboard
npx0: INT 16 interface
Probing for devices on the PCI bus:
chip0 <Intel 82437 (Triton)> rev 1 on pci0:0
chip1 <Intel 82371 (Triton)> rev 2 on pci0:7
vga0 <VGA-compatible display device> rev 2 on pci0:8

-- 
 Kent Hamilton                             Work:  KHamilton@Hunter.COM
 URL: http://www.icon-stl.net/~khamilto    Play:  KentH@HNS.St-Louis.Mo.US


controller	ncr0
controller	ahc0

#controller	bt0	at isa? port "IO_BT0" bio irq ? vector btintr
controller	bt0	at isa? port 0x230 bio irq ? vector btintr
controller	uha0	at isa? port "IO_UHA0" bio irq ? drq 5 vector uhaintr
controller	ahc1	at isa? bio irq ? vector ahcintr
controller	ahb0	at isa? bio irq ? vector ahbintr
controller	aha0	at isa? port "IO_AHA0" bio irq ? drq 5 vector ahaintr
controller	aic0    at isa? port 0x340 bio irq 11 vector aicintr
controller	nca0	at isa? port 0x1f88 bio irq 10 vector ncaintr
controller	nca1	at isa? port 0x350 bio irq 5 vector ncaintr
controller	sea0	at isa? bio irq 5 iomem 0xc8000 iosiz 0x2000 vector seaintr

controller	scbus0

device		sd0

device		st0

device		cd0	#Only need one of these, the code dynamically grows

device		wt0	at isa? port 0x300 bio irq 5 drq 1 vector wtintr
#device		mcd0	at isa? port 0x300 bio irq 10 vector mcdintr
#device		mcd1	at isa? port 0x340 bio irq 11 vector mcdintr
#controller	matcd0	at isa? port ? bio

device		scd0	at isa? port 0x230 bio

# syscons is the default console driver, resembling an SCO console
device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr
# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
#device		vt0	at isa? port "IO_KBD" tty irq 1 vector pcrint
#options		"PCVT_FREEBSD=210"	# pcvt running on FreeBSD 2.1
#options		XSERVER			# include code for XFree86

device		npx0	at isa? port "IO_NPX" irq 13 vector npxintr

device		sio0	at isa? port "IO_COM1" tty irq 4 vector siointr
device		sio1	at isa? port "IO_COM2" tty irq 3 vector siointr
device		sio2	at isa? port "IO_COM3" tty irq 5 vector siointr
device		sio3	at isa? port "IO_COM4" tty irq 9 vector siointr

device		lpt0	at isa? port? tty irq 7 vector lptintr
device		lpt1	at isa? port? tty
device		lpt2	at isa? port? tty

device		psm0	at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr
#device		mse0	at isa? port 0x23c tty irq 5 vector mseintr

# Order is important here due to intrusive probes, do *not* alphabetize
# this list of network interfaces until the probes have been fixed.
# Right now it appears that the ie0 must be probed before ep0. See
# revision 1.20 of this file.
device de0
#device cx0 at isa? port 0x240 net irq 15 drq 7 vector cxintr
device ed0 at isa? port 0x300 net irq 10 iomem 0xcc000 vector edintr
#device ed1 at isa? port 0x300 net irq  5 iomem 0xd8000 vector edintr
#device eg0 at isa? port 0x310 net irq 5 vector egintr
#device el0 at isa? port 0x300 net irq 9 vector elintr
#device ep0 at isa? port 0x300 net irq 10 vector epintr
#device fe0 at isa? port 0x240 net irq ? vector feintr
#device fea0 at isa? net irq ? vector feaintr
#device ie0 at isa? port 0x360 net irq  7 iomem 0xd0000 vector ieintr
#device ix0 at isa? port 0x300 net irq 10 iomem 0xd0000 iosiz 32768 vector ixintr
#device le0 at isa? port 0x300 net irq 5 iomem 0xd0000 vector le_intr
#device lnc0 at isa? port 0x280 net irq 10 drq 0 vector lncintr
#device lnc1 at isa? port 0x300 net irq 10 drq 0 vector lncintr
#device ze0 at isa? port 0x300 net irq 5 iomem 0xd8000 vector zeintr
#device zp0 at isa? port 0x300 net irq 10 iomem 0xd8000 vector zpintr

#
controller	snd0
#device pas0     at isa? port 0x388 irq 10 drq 6 vector pasintr
#device pas0     at isa? port 0x388 irq 9 drq 6 vector pasintr

device sb0      at isa? port 0x220 irq 9 conflicts drq 1 vector sbintr
#device sb0      at isa? port 0x220 irq 7 conflicts drq 1 vector sbintr
#device sbxvi0   at isa? drq 5
device sbxvi0   at isa? drq 0
device sbxvi0   at isa? drq 1
device sbmidi0  at isa? port 0x330
#device gus0 at isa? port 0x220 irq 11 drq 1 vector gusintr
#device gusxvi0 at isa? port 0x530 irq 7 conflicts drq 3 vector adintr
#device gusmax0 at isa? port 0x32c
device mss0 at isa? port 0x380 irq 9 drq 1 vector adintr
#device mss0 at isa? port 0x530 irq 10 drq 1 vector adintr
device opl0     at isa? port 0x220 conflicts
device mpu0     at isa? port 0x330 irq 5 drq 0
#device mpu0     at isa? port 0x330 irq 6 drq 0
#device uart0 at isa? port 0x330 irq 5 vector "m6850intr"

# Not controlled by `snd'
#device pca0 at isa? port IO_TIMER1 tty
#
pseudo-device	loop
pseudo-device	ether
pseudo-device	log
pseudo-device	sl	1
# ijppp uses tun instead of ppp device
#pseudo-device	ppp	1
pseudo-device	tun	1
pseudo-device	pty	16
pseudo-device	gzip		# Exec gzipped a.out's
# My "pseudo-devices" changes -- SKH
pseudo-device	vn		#Vnode driver (turns a file into a device)
#pseudo-device	fddi			#Generic FDDI
#pseudo-device	sppp			#Generic Synchronous PPP
pseudo-device	bpfilter	4	#Berkeley packet filter
#pseudo-device	speaker		#Play IBM BASIC-style noises out your speaker
pseudo-device	snp	4	#Snoop device - to look at pty/vty/etc..
# These are non-optional for ISDN
#pseudo-device   isdn
#pseudo-device   ii      4
#pseudo-device   ity     4
#pseudo-device   itel    2       
#pseudo-device   ispy    1       




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