Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jul 1999 18:03:18 -0500
From:      "Matthew D. Fuller" <fullermd@over-yonder.net>
To:        freebsd-mobile@freebsd.org
Subject:   PCMCIA ethernet problems
Message-ID:  <19990728180318.A25838@over-yonder.net>

next in thread | raw e-mail | index | archive | help
I've got a brand new ethernet card for my laptop (thankfully replacing
the hardwired SLIP link it's been on), and I can't get it to Just Work
(tm).

My laptop is an IBM Thinkpad 350 (486/25), running 4.0-19990212-SNAP.
The card itself is marketed as a generic NE2k-compatible.
It identifies itself as "PCMCIA" "Ethernet Card".  I put the following
entry in pccard.conf for it:

# Matt's hack
card "PCMCIA" "Ethernet Card"
    config  0x20 "ed0" 5
    ether   0x81
    insert  echo Matt's NE2k PCMCIA Ethernet inserted
    insert  /etc/pccard_ether ed0
    remove  echo Matt's NE2k Ethernet removed
    remove  /sbin/ifconfig ed0 delete

Which makes it work as far as DETECTING it correctly (I think).  I'm
unable to find the correct offset for the MAC address, though, and I
always get this error on startup of pccardd:
Jul 28 17:39:11 pegasus pccardd[331]: Ether=aa:82:a9:2a:a2:0a 
Jul 28 17:39:17 pegasus pccardd[331]: driver allocation failed for PCMCIA
Jul 28 17:39:17 pegasus pccardd[331]: pccardd started

Now, I know what the MAC address is, and that is NOT it.  I can't seem to
find any way to hardwire the MAC address in though, so I've been guessing
offsets.  All the offsets listed in other examples in that file are
incorrect for this card, and I can't guess anything else that could work.

What other information might I need to get this cute little monstrosity
working?  pccardc dumpcis follows:

Configuration data for card in slot 0
Tuple #1, code = 0x1 (Common memory descriptor), length = 3
    000:  dc 00 ff
	Common memory device information:
		Device number 1, type Function specific, WPS = ON
		Speed = 100nS, Memory block size = 512b, 1 units
Tuple #2, code = 0x17 (Attribute memory descriptor), length = 3
    000:  49 00 ff
	Attribute memory device information:
		Device number 1, type EEPROM, WPS = ON
		Speed = 250nS, Memory block size = 512b, 1 units
Tuple #3, code = 0x21 (Functional ID), length = 2
    000:  06 03
	Network/LAN adapter - POST initialize - Card has ROM
Tuple #4, code = 0x15 (Version 1 info), length = 27
    000:  04 01 50 43 4d 43 49 41 00 45 74 68 65 72 6e 65
    010:  74 20 43 61 72 64 00 00 00 00 ff
	Version = 4.1, Manuf = [PCMCIA],card vers = [Ethernet Card]
	Addit. info = [],[]
Tuple #5, code = 0x13 (Link target), length = 3
    000:  43 49 53
Tuple #6, code = 0x1a (Configuration map), length = 5
    000:  01 24 f8 03 03
	Reg len = 2, config register addr = 0x3f8, last config = 0x24
	Registers: XX------ 
Tuple #7, code = 0x1b (Configuration entry), length = 17
    000:  e0 81 1d 3f 55 4d 5d 06 86 46 26 fc 24 65 30 ff
    010:  ff
	Config index = 0x20(default)
	Interface byte = 0x81 (I/O)  wait signal supported
	Vcc pwr:
		Nominal operating supply voltage: 5 x 1V
		Minimum operating supply voltage: 4.5 x 1V
		Maximum operating supply voltage: 5.5 x 1V
		Continuous supply current: 1 x 100mA
		Max current average over 1 second: 1 x 100mA, ext = 0x46
		Max current average over 10 ms: 2 x 100mA
	Wait scale Speed = 1.5 x 10 us
	Card decodes 4 address lines, 8 Bit I/O only
		IRQ modes: Level
		IRQ level = 4
Tuple #8, code = 0x1b (Configuration entry), length = 7
    000:  20 08 ca 60 00 03 1f
	Config index = 0x20
	Card decodes 10 address lines, limited 8/16 Bit I/O
		I/O address # 1: block start = 0x300 block length = 0x20
Tuple #9, code = 0x1b (Configuration entry), length = 7
    000:  21 08 ca 60 20 03 1f
	Config index = 0x21
	Card decodes 10 address lines, limited 8/16 Bit I/O
		I/O address # 1: block start = 0x320 block length = 0x20
Tuple #10, code = 0x1b (Configuration entry), length = 7
    000:  22 08 ca 60 40 03 1f
	Config index = 0x22
	Card decodes 10 address lines, limited 8/16 Bit I/O
		I/O address # 1: block start = 0x340 block length = 0x20
Tuple #11, code = 0x1b (Configuration entry), length = 7
    000:  23 08 ca 60 60 03 1f
	Config index = 0x23
	Card decodes 10 address lines, limited 8/16 Bit I/O
		I/O address # 1: block start = 0x360 block length = 0x20
Tuple #12, code = 0x20 (Manufacturer ID), length = 4
    000:  01 8a 00 01
	PCMCIA ID = 0x8a01, OEM ID = 0x100
Tuple #13, code = 0x14 (No link), length = 0
Tuple #14, code = 0xff (Terminator), length = 0
2 slots found




-- 
Matthew Fuller     (MF4839)     |    fullermd@over-yonder.net
Unix Systems Administrator      |    fullermd@futuresouth.com
Specializing in FreeBSD         |    http://www.over-yonder.net/
FutureSouth Communications      |    ISPHelp ISP Consulting

"The only reason I'm burning my candle at both ends, is because I
      haven't figured out how to light the middle yet"


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




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