[realtek] Problem with Cardbus card / 8139too driver

Bruno Gravato gravato@ieee.org
Mon, 19 Feb 2001 03:18:10 +0000


Hi!

It's seems there's some confusion in here...

First of all you don't need to use the pcmcia-cs package
with kernels 2.4.x, because they already come with pcmcia
support.

Then check your /etc/modules.conf and see if you have there
something like:

alias eth0 8139too

If you don't add it.

Regards,
Bruno Gravato.


On Sun, 18 Feb 2001 17:07:34 +0100
 Stefan Friedle <stefan@friedle.de> wrote:
> Hi,
> 
>   I have a problem with a CardBus ethernet card based on
> a RealTek
> 8139 chip.  My Linux box is running the kernel 2.4.1 and
> the
> pcmcia-cs package version 3.1.24.  I'm using the 8139too
> driver
> 0.9.14c.  
>   When I insert the card, the modules are loaded and you
> can hear
> two high beeps.  But ifconfig shows only the 'lo' device.
> A look
> into the sys.log shows me, that the kernel has recognized
> the eth0
> device, but the cardmgr tries to start a device named
> '8139too' (see
> below).  And in the /var/lib/pcmcia/stab file there is
> the device
> '8139too' too.  When I change this entry to 'eth0' and
> start
> '/etc/pcmcia/network start eth0' myself, then everything
> works
> fine.  ifconfig tells me that there is a 'lo' and a
> 'eth0' device
> and also a ping works.
>   Temporarily I have hacked the 8139too.c and changed the
> line
> 
>   #define MODNAME "8139too"
> 
> to
> 
>   #define MODNAME "eth0"
> 
>   This way everythins works for the moment, but this is
> surely not a
> good solution :-)  Has anybody an idea, what to do to
> make it work
> correct? 
> 
>   Thanks
> 
>   Stefan
> 
> 
> -----BEGIN sys.log----
> [...]
> kernel: Linux PCMCIA Card Services 3.1.22 
> kernel:   options:  [pci] [cardbus] [pm] 
> kernel: PCI: Assigned IRQ 10 for device 00:0a.0 
> kernel: PCI: Found IRQ 10 for device 00:0a.1 
> kernel: PCI: The same IRQ used for device 00:0d.0 
> kernel: Yenta IRQ list 0898, PCI irq10 
> kernel: Socket status: 30000006 
> kernel: Yenta IRQ list 0898, PCI irq10 
> kernel: Socket status: 30000006 
> cardmgr[80]: starting, version is 3.1.22
> cardmgr[80]: watching 2 sockets
> kernel: cs: IO port probe 0x0c00-0x0cff: clean. 
> kernel: cs: IO port probe 0x0800-0x08ff: clean. 
> kernel: cs: IO port probe 0x0100-0x04ff: excluding
> 0x110-0x117
> 0x2f8-0x2ff 0x378-0x37f 0x3f8-0x3ff 0x4d0-0x4d7 
> kernel: cs: IO port probe 0x0a00-0x0aff: clean. 
> inetd[85]: Online and ready (8 sockets)
> kernel: cs: cb_alloc(bus 6): vendor 0x10ec, device 0x8139
> kernel:   got res[2000:20ff] for resource 0 of PCI device
> 10ec:8139 
> kernel:   got res[11000000:110001ff] for resource 1 of
> PCI device
> 10ec:8139 
> kernel: PCI: Enabling device 06:00.0 (0000 -> 0003) 
> cardmgr[80]: initializing socket 1
> cardmgr[80]: socket 1: RealTek 8139
> cardmgr[80]: executing: 'modprobe 8139too'
> kernel: 8139too Fast Ethernet driver 0.9.14c loaded 
> kernel: PCI: Setting latency timer of device 06:00.0 to
> 64 
> kernel: eth0: RealTek RTL8139 Fast Ethernet at
> 0xc8845000,
> 00:50:fc:25:57:9e, IRQ 10 
> kernel: eth0:  Identified 8139 chip type 'RTL-8139C' 
> cardmgr[80]: executing: './network start 8139too'
> cardmgr[80]: + 8139too: error fetching interface
> information: Device
> not found
> cardmgr[80]: + /sbin/ifconfig 8139too up 192.168.0.102
> netmask
> 255.255.255.0 broadcast 192.168.0.255
> cardmgr[80]: + 8139too: unknown interface: No such device
> cardmgr[80]: + SIOCSIFADDR: No such device
> cardmgr[80]: + 8139too: unknown interface: No such device
> cardmgr[80]: + SIOCSIFNETMASK: No such device
> cardmgr[80]: + SIOCSIFBRDADDR: No such device
> cardmgr[80]: + 8139too: unknown interface: No such device
> cardmgr[80]: + /sbin/route add -net 192.168.0.0 netmask
> 255.255.255.0 dev 8139too
> cardmgr[80]: + SIOCADDRT: No such device
> cardmgr[80]: + SIOCADDRT: Network is unreachable
> [...]
> -----END sys.log-----
> 
> _______________________________________________
> realtek mailing list
> realtek@scyld.com
> http://www.scyld.com/mailman/listinfo/realtek