LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   PCMCIA NIC problem - 3Com Megahertz (https://www.linuxquestions.org/questions/linux-networking-3/pcmcia-nic-problem-3com-megahertz-736477/)

Kardell 06-29-2009 02:45 PM

PCMCIA NIC problem - 3Com Megahertz
 
Hello
Does anyone set this or similar 3Com network card successfully?
[exactly 3Com Megahertz 3CCFE574BT]
The list of supported PCMCIA cards contains this model.
But on the other hand still I can't use this interface.
I figured out that in new kernels I supposed to replace (disable) the old cardmgr with new pcmciautils. I've done so and removed deprecated package.

My Debian 4.0. kernel is 2.6.18-6.
lspcmcia and pccardctl is listing this device, ifconfig can manage this device (eth1), but still I can't ping anything (host unreachable) except 127.0.0.1.

Someone said that I supposed to use /etc/network/interfaces (ifup,ifdown) rather than ifconfig.
I've done so, but it didn't help. Simple static configuration failed, even dhcp does not retrieve configuration from the router on the second end of the cable.
I found information about specific pcmcia configuration in interfaces:
http://www.cyberciti.biz/faq/setting...terfaces-file/

I was suspecting ARP flux as well, because I had 2 network interfaces in the same network, but after eth0 down, nothing has changed.

I still can't state if it's hardware or just configuration problem.
Kernel modules are loaded: yenta_socket, pcmcia, 3c574_cs, rsrc_nonstatic and at the end pcmcia_core.
The laptop is IBM Thinkpad T42. Both PCMCIA sockets are operational.

I red somewhere that there was problem in Toshiba laptops with different modes of PCMCIA: PCIC and Cardbus. In PCIC mode pcmcia card was properly detected, but didn't work at all (something related with 16-bit cards).

I heard too that different pcmcia driver modules loaded in the same time are disturbing themselves.

fragment of pcmcia-new script
Code:

DRIVER=yenta_socket
DRIVER_OPTS=

Quote:

Make sure you set the DRIVER (and maybe DRIVER_OPTS) variable to the right socket driver. If yenta_socket doesn't work look up the config file from your distro. Look at the PCIC variable and PCIC_OPTS.
Where can I get this DRIVER_OPTS variable, if it is really needed.
But actually the NIC is detected. :confused:

I request for assistance. :)
Regards

Kardell 06-30-2009 05:54 PM

I provide some console output:

Code:

eth0      Link encap:Ethernet  HWaddr 00:11:25:15:F5:A3
          inet addr:192.168.0.3  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::211:25ff:fe15:f5a3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:21760 errors:0 dropped:0 overruns:0 frame:0
          TX packets:777 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:1739394 (1.6 MiB)  TX bytes:139236 (135.9 KiB)
          Base address:0x8000 Memory:c0220000-c0240000

eth1      Link encap:Ethernet  HWaddr 00:01:03:9B:D3:50
          inet addr:169.254.155.37  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::201:3ff:fe9b:d350/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:360 errors:0 dropped:0 overruns:0 carrier:65
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:66841 (65.2 KiB)
          Interrupt:3 Base address:0x300

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1036 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1036 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:77716 (75.8 KiB)  TX bytes:77716 (75.8 KiB)

Code:

debian:~# lsmod | grep 3c
3c574_cs              13192  1
pcmcia                34140  1 3c574_cs
pcmcia_core            36852  4 3c574_cs,pcmcia,yenta_socket,rsrc_nonstatic


Code:

debian:~# pccardctl info
PRODID_1="3Com"
PRODID_2="Megahertz 574B"
PRODID_3="B"
PRODID_4="001"
MANFID=0101,0574
FUNCID=6
PRODID_1=""
PRODID_2=""
PRODID_3=""
PRODID_4=""
MANFID=0000,0000
FUNCID=255

Code:

debian:~# pccardctl status
Socket 0:
  5.0V 16-bit PC Card
  Subdevice 0 (function 0) bound to driver "3c574_cs"
Socket 1:
  no card

Code:

debian:~# lspcmcia -v
Socket 0 Bridge:        [yenta_cardbus]        (bus ID: 0000:02:00.0)
        Configuration:  state: on      ready: yes
                        Voltage: 5.0V Vcc: 5.0V Vpp: 0.0V
Socket 0 Device 0:      [3c574_cs]              (bus ID: 0.0)
        Configuration:  state: on
        Product Name:  3Com Megahertz 574B B 001
        Identification: manf_id: 0x0101 card_id: 0x0574
                        function: 6 (network)
                        prod_id(1): "3Com" (0x41240e5b)
                        prod_id(2): "Megahertz 574B" (0xa4c8e94c)
                        prod_id(3): "B" (0x98d220bc)
                        prod_id(4): "001" (0xaaf3d359)
Socket 1 Bridge:        [yenta_cardbus]        (bus ID: 0000:02:00.1)
        Configuration:  state: on      ready: yes

Someone on this forum used this card succesfully:
Code:

I have used it under 2.2.20, 2.4.20-25 and 2.6.4
So both on cardmgr and new pcmciautils. I have to ask him about recent stable debian kernel.

Kardell 07-02-2009 06:31 PM

I wrote to this guy, but I've realized that he was last active on this board in 2005. :cry:

Kardell 07-05-2009 05:29 PM

no clues? :scratch:

Kardell 07-07-2009 06:12 PM

I provide some recent logs:
syslog
Code:

Jul  7 23:54:48 localhost kernel: pccard: card ejected from slot 0
Jul  7 23:54:48 localhost avahi-daemon[2963]: Interface eth1.IPv4 no longer relevant for mDNS.
Jul  7 23:54:48 localhost avahi-daemon[2963]: Leaving mDNS multicast group on interface eth1.IPv4 with address 192.168.0.3.
Jul  7 23:54:48 localhost avahi-daemon[2963]: Withdrawing address record for 192.168.0.3 on eth1.
Jul  7 23:54:48 localhost NetworkManager: <debug info>^I[1247007288.824091] nm_hal_device_removed (): Device removed (hal udi is '/org/freedesktop/Hal/devices/net_00_01_03_9b_d3_50').
Jul  7 23:54:48 localhost NetworkManager: <debug info>^I[1247007288.825103] nm_hal_device_removed (): Device removed (hal udi is '/org/freedesktop/Hal/devices/pcmcia__1__1').
Jul  7 23:54:54 localhost kernel: pccard: PCMCIA card inserted into slot 0
Jul  7 23:54:54 localhost kernel: pcmcia: registering new device pcmcia0.0
Jul  7 23:54:54 localhost kernel:  ASIC rev 1,<6>eth1: Megahertz 574B at io 0x300, irq 3, hw_addr 00:01:03:9B:D3:50.
Jul  7 23:54:54 localhost kernel:  64K FIFO split 1:1 Rx:Tx, autoselect MII interface.
Jul  7 23:54:54 localhost NetworkManager: <debug info>^I[1247007294.128896] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/devices/pcmcia__1__1').
Jul  7 23:54:54 localhost NetworkManager: <debug info>^I[1247007294.168278] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/devices/net_00_01_03_9b_d3_50').
Jul  7 23:54:54 localhost avahi-daemon[2963]: New relevant interface eth1.IPv4 for mDNS.
Jul  7 23:54:54 localhost avahi-daemon[2963]: Joining mDNS multicast group on interface eth1.IPv4 with address 192.168.0.3.
Jul  7 23:54:54 localhost avahi-daemon[2963]: Registering new address record for 192.168.0.3 on eth1.
Jul  7 23:54:56 localhost kernel: eth1: interrupt(s) dropped!
Jul  7 23:55:01 localhost /USR/SBIN/CRON[30336]: (cactiuser) CMD (php /usr/share/cacti/site/poller.php > /dev/null 2>&1)
Jul  7 23:55:01 localhost /USR/SBIN/CRON[30338]: (www-data) CMD (/usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log)
Jul  7 23:55:04 localhost kernel: eth1: no IPv6 routers present

kern.log
Code:

Jul  7 23:54:48 localhost kernel: pccard: card ejected from slot 0
Jul  7 23:54:54 localhost kernel: pccard: PCMCIA card inserted into slot 0
Jul  7 23:54:54 localhost kernel: pcmcia: registering new device pcmcia0.0
Jul  7 23:54:54 localhost kernel:  ASIC rev 1,<6>eth1: Megahertz 574B at io 0x300, irq 3, hw_addr 00:01:03:9B:D3:50.
Jul  7 23:54:54 localhost kernel:  64K FIFO split 1:1 Rx:Tx, autoselect MII interface.
Jul  7 23:54:56 localhost kernel: eth1: interrupt(s) dropped!
Jul  7 23:55:04 localhost kernel: eth1: no IPv6 routers present

Code:

debian:/home/walker# dmesg | grep pcmcia
pcmcia: parent PCI bridge I/O window: 0x4000 - 0x8fff
pcmcia: parent PCI bridge Memory window: 0xc0200000 - 0xcfffffff
pcmcia: parent PCI bridge Memory window: 0xe8000000 - 0xefffffff
pcmcia: parent PCI bridge I/O window: 0x4000 - 0x8fff
pcmcia: parent PCI bridge Memory window: 0xc0200000 - 0xcfffffff
pcmcia: parent PCI bridge Memory window: 0xe8000000 - 0xefffffff
pcmcia: registering new device pcmcia0.0
pcmcia: Detected deprecated PCMCIA ioctl usage from process: discover.
pcmcia: This interface will soon be removed from the kernel; please expect breakage unless you upgrade to new tools.
pcmcia: see http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html for details.

How do you think?

Kardell 07-29-2009 07:22 AM

I forgot to mention.
-= case solved =-
I've just upgraded to the latest Debian version.
I mean new kernel release sorted out this problem. :)


All times are GMT -5. The time now is 11:56 AM.