Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Aug 2000 18:30:56 -0700
From:      unsafe at any speed <erich@ucsd.edu>
To:        Douglas Cohen <douglas@artswire.org>
Cc:        freebsd-mobile@FreeBSD.ORG
Subject:   Re: How to setup two PCCard Ethernet Adapters under 4.0 Current
Message-ID:  <39989D50.CC6E88F9@ucsd.edu>
References:  <003c01c00655$2bd9e160$0905a8c0@410wk>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Doug,
I have a similar setup with two 3com 3c589's in a Thinkpad 701. My system is
still running FreeBSD 3.4 because it works and I haven't been brave enough to
try it with 4.x yet. 

The first problem you describe doesn't come up in my case because I have one
3c589C and one 3c589D, which have different pccard.conf entries.

I have inelegant hacks to get around the second problem you describe through
brute force.

pccard.conf:
-------
# 3Com Etherlink III 3C589B, 3C589C
card "3Com Corporation" "3C589"
        config  0x1 "ep0" ?
        insert  echo 3Com Etherlink III inserted
        insert  /etc/pccard_ether ep0 -link0 link1
        insert  /etc/start_if.ep0
        remove  echo 3Com Etherlink III removed
        remove  /sbin/ifconfig ep0 delete

# 3Com Etherlink III 3C589D
card "3Com Corporation" "3C589D"
        config  0x1 "ep1" ?
        insert  echo 3Com Etherlink III inserted
        insert  /etc/pccard_ether ep1
        insert  /sbin/ifconfig ep1 inet 192.168.1.1
        insert  /usr/local/sbin/dhcps ep1
        remove  echo 3Com Etherlink III removed
        remove  /sbin/ifconfig ep1 delete
------

start_if.ep0 has lines to start a dhcp client and natd on ep0.

rc.conf says,
pccard_enable="YES"
pccard_ifconfig="NO"

hope this helps,
eric

Eric Hedstrom
erich@ucsd.edu

Douglas Cohen wrote:
> 
> Perhaps what I want to do isn't possible, but I thought I'd ask here anyway
> just to be sure (I posted the message below to freebsd-questions twice and
> no one had an answer).  Thank you for any help you can provide.
> -----
> I'm having trouble getting two 3Com PCCard Ethernet adapters to function at
> the same time in my Toshiba Satellite Pro 400 CS.  Either card works fine if
> they are alone in the computer, but when they are both in during startup,
> only the first card is configured and the system indicates that there are no
> resources available for the second card.  The startup messages look like
> this:
> 
> May 24 08:42:35 nsy /kernel: pccard: card inserted, slot 0
> May 24 08:42:35 nsy /kernel: pccard: card inserted, slot 1
> May 24 08:42:40 nsy sshd[179]: Listener created on port 22.
> May 24 08:42:40 nsy sshd[180]: Daemon is running.
> May 24 08:42:42 nsy /kernel: ep0: <3Com Etherlink III 3C589> at port
> 0x240-0x24f irq 5 slot 0 on pccard0
> May 24 08:42:42 nsy /kernel: ep0: Ethernet address 00:10:4b:a0:54:ed
> May 24 08:42:42 nsy /kernel: ep0: supplying EUI64: 00:10:4b:ff:fe:a0:54:ed
> May 24 08:42:42 nsy pccard:ep0: 3Com Etherlink III inserted
> May 24 08:42:42 nsy /kernel: ep0: starting DAD for
> fe80:000a::0210:4bff:fea0:54ed
> May 24 08:42:43 nsy /kernel: ep0: DAD complete for
> fe80:000a::0210:4bff:fea0:54ed - no duplicates found
> May 24 08:42:47 nsy pccardd[46]: No free configuration for card 3Com
> May 24 08:42:47 nsy pccardd[46]: pccardd started
> 
> There seems to be two problems:
> 
> 1 - How to have FreeBSD allocate resources to both PCCards?  (There are
> plenty of resources available, especially as the motherboard sound, lpt and
> com ports have all been disabled in system setup.)
> 
> 2 - Once the second Ethernet card is working, how is it configured for
> TCP/IP?  The lines used in the /etc/rc.conf file don't indicate how they can
> be applied to a specific Ethernet adapter (in this case it would be ep0 and
> ep1).  Here are the relevant lines from /etc/rc.conf:
> 
> pccard_ifconfig="inet xxx.xxx.xxx.xxx netmask 255.255.255.0"
> pccard_enable="YES"
> pccardd_flags="-i 5 -i 11"
> pccard_mem="DEFAULT"
> 
> Thank you for your help!
> 
> Best,
> Doug
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-mobile" in the body of the message


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?39989D50.CC6E88F9>