Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Apr 1999 20:23:34 -0400 (EDT)
From:      Brian Skrab <sillybug@pinky.us.net>
To:        freebsd-mobile@freebsd.org
Subject:   Incorrect PCMCIA NIC Assignment...
Message-ID:  <199904200023.UAA01570@pinky.us.net>

next in thread | raw e-mail | index | archive | help
Hello,

	I'm running into a snag with my PCMCIA ether card in my notebook.
	I've got FreeBSD 2.2.8 running, and pccardd setup with the
	configuration for my card, which it detects, but for some reason,
	the MAC address assigned to it is not what I believe the card is
	supposed to have.  Please have a look at the output that I have
	included below.  If you can provide any pointers toward fixing this,
	I would very much appreciate your help.

	This is what shows up on the console when I insert the card...

	Card inserted, slot 1
	Apr 19 01:52:31 myname pccardd[43]: Ether=00:00:1a:05:01:20
	Slot 1, unfielded interrupt (0)
	ed0: address aa:aa:aa:aa:aa:aa, type NE1000 (8 bit)

	The problem that I have with this is that the card is an NE2000 (16
	bit) card, and that address doesn't look quite like it would work
	at all.

	Here's what ifconfig shows me...

	_$ ifconfig -a
	lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
	tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
	tun1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
	lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
	        inet 127.0.0.1 netmask 0xff000000
	ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	        inet 10.0.0.101 netmask 0xffffff00 broadcast 10.0.0.255
	        ether aa:aa:aa:aa:aa:aa

	Again, that funky ether address.  There is also an error that shows
	up on the console after the card has been in the slot for a while.
	Here it is, in case it might provide some insight into the cause of
	this problem...

	Apr 19 01:53:23 myname /kernel: ed0: NIC memory corrupt - invalid
	packet length 55295

	As far as configuration goes, I have followed the instructions
	(provided by you good people) very closely, but I believe that I
	still may be missing something.  Every set of instructions that I
	have received has made mention of dumping the pccard's information
	to a file.  Well, here it is...

	Configuration data for card in slot 0
	Tuple #1, code = 0x1 (Common memory descriptor), length = 3
    	000:  d1 3a ff
        	Common memory device information:
                	Device number 1, type Function specific, WPS = OFF
                	Speed = 250nS, Memory block size = 8Kb, 8 units
	Tuple #2, code = 0x1c (Other conditions for common memory), length = 4
    	000:  01 d1 3a ff
        	(MWAIT)
	Tuple #3, code = 0x17 (Attribute memory descriptor), length = 3
    	000:  41 00 ff
        	Attribute memory device information:
                	Device number 1, type EEPROM, WPS = OFF
                	Speed = 250nS, Memory block size = 512b, 1 units
	Tuple #4, code = 0x20 (Manufacturer ID), length = 4
    	000:  49 01 30 02
        	PCMCIA ID = 0x149, OEM ID = 0x230
	Tuple #5, code = 0x21 (Functional ID), length = 2
    	000:  06 01
        	Network/LAN adapter - POST initialize
	Tuple #6, code = 0x15 (Version 1 info), length = 38
    	000:  04 01 44 2d 4c 69 6e 6b 00 44 46 45 2d 36 35 30
    	010:  00 46 61 73 74 20 45 74 68 65 72 6e 65 74 00 ff
    	020:  00 00 00 00 00 00
        	Version = 4.1, Manuf = [D-Link],card vers = [DFE-650]
        	Addit. info = [Fast Ethernet],[_]
	Tuple #7, code = 0x1a (Configuration map), length = 5
    	000:  01 20 00 04 0b
        	Reg len = 2, config register addr = 0x400, last config = 0x20
        	Registers: XX-X----
	Tuple #8, code = 0x1b (Configuration entry), length = 7
    	000:  e0 81 18 45 30 fc be
        	Config index = 0x20(default)
        	Interface byte = 0x81 (I/O)  wait signal supported
        	Card decodes 5 address lines, limited 8/16 Bit I/O
                	IRQ modes:  Pulse
                	IRQ level = 5
	Tuple #9, code = 0x14 (No link), length = 0
	Tuple #10, code = 0xff (Terminator), length = 0
	2 slots found

	I've been making mention of Tuple #4 in my pccard.conf file.  In
	fact, here is the entry for this card...

	#D-Link DFE-650 Ethernet Card
	card "D-Link" "DFE-650"
        	config  0x20 "ed0" 11
        	ether   0x81
        	insert  echo D-Link DFE-650 inserted
        	insert  /etc/pccard_ether ed0
        	remove  echo D-Link DFE-650 removed
        	remove  /sbin/ifconfig ed0 delete

	I have irq 11 compiled into the kernel as belonging to the ed0 card.
	I'm beginning to think that I've missed some small aspect of the
	configuration, but going back over the instructions, I believe that
	I have completed all of the steps.  It's just getting the card
	working when it's detected that is giving me problems.

	If anyone can provide any suggestions on this situation, I'd be very
	appreciative.  I'm really looking forward to getting FreeBSD
	completely working on this PC.

	Thank you all for your help, and patience.

	~brian skrab


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?199904200023.UAA01570>