From nobody@FreeBSD.ORG Fri Feb 26 09:31:11 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 4ED2214F7A; Fri, 26 Feb 1999 09:31:11 -0800 (PST)
Message-Id: <19990226173111.4ED2214F7A@hub.freebsd.org>
Date: Fri, 26 Feb 1999 09:31:11 -0800 (PST)
From: groves@amug.org
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: PCMCIA problems in 3.1-RELEASE?
X-Send-Pr-Version: www-1.0

>Number:         10282
>Category:       i386
>Synopsis:       PCMCIA problems in 3.1-RELEASE?
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 26 10:10:09 PST 1999
>Closed-Date:    Wed May 17 18:00:23 MDT 2000
>Last-Modified:  Wed May 17 18:02:22 MDT 2000
>Originator:     Dennis Groves
>Release:        3.1-RELEASE
>Organization:
>Environment:
the machine is a toshiba libretto 70ct, i586 I am sorry I can't do a 
uname here because I don't have the machine with me.

the card is a 3com 3c589D.
>Description:
I may be brain dead :)

I compiled a custom kernel, including pcmcia support built in
zp0 at isa? blah blah...

I run /stand/sysinstall to enable pcmcia support on kernel load
rather that just edit /etc/defaults/rc.conf or /etc/rc.conf...

on reboot I get an error saying that ( trying to remeber here, may not
be the exact error, my apologies) 
elf sysmbol pcmcia_remove_card undefined

So, I compile a kernel with generic pcic support
run /stand/sysinstall 
this is cool except that...
 I only define pcic0 because the libretto only has one slot,
on reboot it is detected twice, asigned two differnt memory addressess
and irq's, also it never loads a dirver??? no module exhists for my card
from the default instalation, also I have no lkm in /lkm???

 


>How-To-Repeat:
read the above I think you can see how to repeat it from there.
>Fix:
I havent got the slightest notion...
It seems that there are alot of elf library function names 
issues here to me because this stuff always worked for me
I have followed the tree up to 2.2.8, and never did install 3.0
so I assume it works there though since it is a.out as well.

>Release-Note:
>Audit-Trail:

From: "Larry Rosenman" <ler@lerctr.org>
To: <freebsd-gnats-submit@freebsd.org>, <groves@amug.org>
Cc:  
Subject: Re: i386/10282: PCMCIA problems in 3.1-RELEASE?
Date: Sun, 28 Feb 1999 09:26:42 -0600

 I'm also seeing similar stuff on a Satellite 4005CDS.  I can get the
 3C589D to run with the ZP0 driver (no generic PCMCIA support), however
 trying to get the 3C589D to run with generic PCCARDD I get 
 30 SECOND pings from other boxes on the network to this box. 
 
 I see 4 slots detected (I defined pcic0 only), and this box has only 2 slots.
 
 The PCMCIA stuff is recognized, as I can use the PCMCIA 3CXM056-BNW 
 V.90 modem with PPP.  So at the moment I have a choice:
 
 1) boot generic kernel and not have access to the modem 
 2) boot my custom kernel and not have Ethernet 
 
 I'm willing to work with y'all to help fix this.  
 
 This is with 3.1-RELEASE.
 
 
 -- 
 Larry Rosenman                     http://www.lerctr.org/~ler
 Phone: +1 972 414 9812 (voice)       Internet: ler@lerctr.org
 US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
 

From: Larry Rosenman <ler@lerctr.org>
To: freebsd-gnats-submit@freebsd.org, groves@amug.org
Cc:  
Subject: Re: i386/10282: PCMCIA problems in 3.1-RELEASE?
Date: Sun, 28 Feb 1999 10:17:44 -0600

 This is a multi-part message in MIME format.
 --------------90C85546EDE3A2606A427640
 Content-Type: text/plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 More info, here is my config file:
 
 
 -- 
 Larry Rosenman                      http://www.lerctr.org/~ler
 Phone: +1 972-414-9812 (voice) Internet: ler@lerctr.org
 US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
 --------------90C85546EDE3A2606A427640
 Content-Type: text/plain; charset=us-ascii; name="LERLAP"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline; filename="LERLAP"
 
 #
 # GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks
 #
 # For more information read the handbook part System Administration -> 
 # Configuring the FreeBSD Kernel -> The Configuration File. 
 # The handbook is available in /usr/share/doc/handbook or online as
 # latest version from the FreeBSD World Wide Web server 
 # <URL:http://www.FreeBSD.ORG/>
 #
 # An exhaustive list of options and more detailed explanations of the 
 # device lines is present in the ./LINT configuration file. If you are 
 # in doubt as to the purpose or necessity of a line, check first in LINT.
 #
 #	$Id: GENERIC,v 1.143.2.2 1999/02/15 02:50:07 des Exp $
 
 machine		"i386"
 #cpu		"I386_CPU"
 #cpu		"I486_CPU"
 #cpu		"I586_CPU"
 cpu		"I686_CPU"
 ident		LERLAP
 maxusers	32
 
 #options		MATH_EMULATE		#Support for x87 emulation
 options		INET			#InterNETworking
 options		FFS			#Berkeley Fast Filesystem
 options		FFS_ROOT		#FFS usable as root device [keep this!]
 options		NFS			#Network Filesystem
 options		MSDOSFS			#MSDOS Filesystem
 options		"CD9660"		#ISO 9660 Filesystem
 options		"CD9660_ROOT"		#CD-ROM usable as root. "CD9660" req'ed
 options		PROCFS			#Process filesystem
 options		"COMPAT_43"		#Compatible with BSD 4.3 [KEEP THIS!]
 options		UCONSOLE		#Allow users to grab the console
 options		FAILSAFE		#Be conservative
 options		USERCONFIG		#boot -c editor
 options		VISUAL_USERCONFIG	#visual boot -c editor
 
 config		kernel	root on wd0
 
 # To make an SMP kernel, the next two are needed
 #options	SMP			# Symmetric MultiProcessor Kernel
 #options	APIC_IO			# Symmetric (APIC) I/O
 # Optionally these may need tweaked, (defaults shown):
 #options	NCPU=2			# number of CPUs
 #options	NBUS=4			# number of busses
 #options	NAPIC=1			# number of IO APICs
 #options	NINTR=24		# number of INTs
 
 
 options		"P1003_1B"
 options		"_KPOSIX_PRIORITY_SCHEDULING"
 options		"_KPOSIX_VERSION=199309L"
 
 controller	isa0
 controller	pci0
 
 controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2
 disk		fd0	at fdc0 drive 0
 #disk		fd1	at fdc0 drive 1
 
 options		"CMD640"	# work around CMD640 chip deficiency
 controller	wdc0	at isa? port "IO_WD1" bio irq 14
 disk		wd0	at wdc0 drive 0
 #disk		wd1	at wdc0 drive 1
 
 controller	wdc1	at isa? port "IO_WD2" bio irq 15
 disk		wd2	at wdc1 drive 0
 #disk		wd3	at wdc1 drive 1
 
 options		ATAPI		#Enable ATAPI support for IDE bus
 options		ATAPI_STATIC	#Don't do it as an LKM
 device		acd0		#IDE CD-ROM
 #device		wfd0		#IDE Floppy (e.g. LS-120)
 
 # A single entry for any of these controllers (ncr, ahb, ahc) is
 # sufficient for any number of installed devices.
 #controller	ncr0
 #controller	ahb0
 #controller	ahc0
 #controller	isp0
 
 # This controller offers a number of configuration options, too many to
 # document here  - see the LINT file in this directory and look up the
 # dpt0 entry there for much fuller documentation on this.
 #controller      dpt0
 
 #controller	adv0	at isa? port ? cam irq ?
 #controller	adw0
 #controller	bt0	at isa? port ? cam irq ?
 #controller	aha0	at isa? port ? cam irq ?
 #controller	aic0	at isa? port 0x340 bio irq 11
 
 #controller	scbus0
 
 #device		da0
 
 #device		sa0
 
 #device		pass0
 
 #device		cd0	#Only need one of these, the code dynamically grows
 
 #device		wt0	at isa? port 0x300 bio irq 5 drq 1
 #device		mcd0	at isa? port 0x300 bio irq 10
 
 #controller	matcd0	at isa? port 0x230 bio
 
 #device		scd0	at isa? port 0x230 bio
 
 # atkbdc0 controlls both the keyboard and the PS/2 mouse
 controller	atkbdc0	at isa? port IO_KBD tty
 device		atkbd0	at isa? tty irq 1
 device		psm0	at isa? tty irq 12
 
 device		vga0	at isa? port ? conflicts
 
 # splash screen/screen saver
 pseudo-device	splash
 
 # syscons is the default console driver, resembling an SCO console
 device		sc0	at isa? tty
 # Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
 #device		vt0	at isa? tty
 options		XSERVER			# support for X server
 #options         PCVT_FREEBSD=310
 #options		FAT_CURSOR		# start with block cursor
 # If you have a ThinkPAD, uncomment this along with the rest of the PCVT lines
 #options		PCVT_SCANSET=2		# IBM keyboards are non-std
 
 device		npx0	at isa? port IO_NPX irq 13
 
 #
 # Laptop support (see LINT for more options)
 #
 #device		apm0    at isa?	flags 0x31 # Advanced Power Management
 device		apm0    at isa?	flags 0x00 # Advanced Power Management
 
 # PCCARD (PCMCIA) support
 controller	card0
 device		pcic0	at card?
 device		pcic1	at card?
 #options		PCIC_RESUME_RESET
 
 device		sio0	at isa? port "IO_COM1" flags 0x10 tty irq 4
 device		sio1	at isa? disable port "IO_COM2" tty irq 3
 device		sio2	at isa? disable port "IO_COM3" tty irq 5
 device		sio3	at isa? disable port "IO_COM4" tty irq 9
 
 # Parallel port
 device		ppc0	at isa? port? net irq 7
 controller	ppbus0
 device		nlpt0	at ppbus?
 #device		plip0	at ppbus?
 #device		ppi0	at ppbus?
 #controller	vpo0	at ppbus?
 
 # 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 ax0
 #device de0
 #device fxp0
 #device mx0
 #device pn0
 #device rl0
 #device tl0
 #device tx0
 #device vr0
 #device vx0
 #device wb0
 #device xl0
 
 #device ed0 at isa? port 0x280 net irq 10 iomem 0xd8000
 #device ie0 at isa? port 0x300 net irq 10 iomem 0xd0000
 device ep0  at isa? port 0x300 net irq 10 
 #device ex0 at isa? port? net irq?
 #device fe0 at isa? port 0x300 net irq ?
 #device le0 at isa? port 0x300 net irq 5 iomem 0xd0000
 #device lnc0 at isa? port 0x280 net irq 10 drq 0
 #device ze0 at isa? port 0x300 net irq 10 iomem 0xd8000
 #device zp0 at isa? port 0x300 net irq 10 iomem 0xd8000
 #device cs0 at isa? port 0x300 net irq ?
 
 pseudo-device	loop
 pseudo-device	ether
 pseudo-device	ppp	1
 pseudo-device	tun	1
 pseudo-device	pty	16
 pseudo-device	gzip		# Exec gzipped a.out's
 
 # KTRACE enables the system-call tracing facility ktrace(2).
 # This adds 4 KB bloat to your kernel, and slightly increases
 # the costs of each syscall.
 options		KTRACE		#kernel tracing
 
 # This provides support for System V shared memory and message queues.
 #
 options		SYSVSHM
 options		SYSVMSG
 options		SYSVSEM
 
 #  The `bpfilter' pseudo-device enables the Berkeley Packet Filter.  Be
 #  aware of the legal and administrative consequences of enabling this
 #  option.  The number of devices determines the maximum number of
 #  simultaneous BPF clients programs runnable.
 #pseudo-device	bpfilter 8	#Berkeley packet filter
 
 
 # USB support
 #controller    uhci0
 #controller    ohci0
 #controller    usb0
 #
 # for the moment we have to specify the priorities of the device
 # drivers explicitly by the ordering in the list below. This will
 # be changed in the future.
 #
 #device        ums0
 #device        ukbd0
 #device        ulpt0
 #device        uhub0
 #device        ucom0
 #device        umodem0
 #device        hid0
 #device        ugen0
 
 #
 #options       USB_DEBUG
 #options       USBVERBOSE
 #controller    pnp0
 
 --------------90C85546EDE3A2606A427640--
 
 

From: Pierre MacKay <mackay@cs.washington.edu>
To: freebsd-gnats-submit@freebsd.org, groves@amug.org
Cc:  
Subject: Re: i386/10282: PCMCIA problems in 3.1-RELEASE?
Date: Wed, 24 Mar 1999 16:56:31 -0800

 I just sent in a very similar problem, though I got the details a little
 garbled.
 The machine  is a CTX EZBook 700 series with a 133 MHz Pentium, 32 MB
 memory.
 My release of FreeBSD is 2.2.6
 The PCMCIA chip is 3c589EC.  I have tried with both the pccard driver
 and the
 dedicated driver.  The zp dedicated driver is at
 isa? port 0x300 net irq 10 iomem 0xd8000 ( the defaults. )
 dmesg shows that zp, slot 0 finds
 the 3Com card OK and prints out the 3Com banner from the card.
 Right after, comes the line
 zp0 at 300 not found.
 
 I even tried with both the pci general driver and the zp driver, but
 this generates
 a warning that the two are incompatible..  There are no conficts
 reported by UserConfig
 except the apparently unavoidable one where psmouse and syscons are both
 at 60
 
 Would migrate to release 3, but it seems from this bug-report that it
 doesn't help
 
             mackay@cs.washington.edu                Pierre A. MacKay
 Smail:  Department of Classics                  Emeritus Druid for
         Denny Hall, Mail Stop DH-10             Unix-flavored TeX
         University of Washington
         Seattle, WA 98195
         (206) 543-2268 (Message recorder)
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: imp 
State-Changed-When: Wed May 17 18:00:23 MDT 2000 
State-Changed-Why:  
pcmcia works in 4.0.  If it doesn't, we need a better, more specific bug report. 

>Unformatted:
