[realtek] Compiling errors with rtl8139.c

Rival rival@planet.nl
Wed Feb 19 18:11:01 2003


On Mon, 17 Feb 2003 12:27:36 -0500 (EST), Donald Becker <becker@scyld.com> 
wrote:

> On Wed, 12 Feb 2003, Rival wrote:
>
>> I'm trying to install my network card on a slackware 8.1 machine and get 
>> quite a lot of errors while compiling. I've attached the output to this 
>> message. Does anyone know what the hell this all means, and how I can 
>> fix it? The command I use is:
>> gcc -DCARDBUS -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c 
>> rtl8139.c -o fethcb_cb.o -Iusr/include/pcmcia
>> which is pretty standard I think..
>
> Not at all standard!
> Where did you get the driver source code, and that compile command?
both from my manufacturer, actually the command was at the bottom of the 
source. Anyway I downloaded and run netdrivers.tgz, at first they didn't 
work but at least they told me what was wrong.. kernel source. How am I 
supposed to know I need that! From my perspective the kernel sources are 
just 133mbs of junk (no offence). Ok so make and make install compiled and 
installed the drivers but I still don't have the card up and running. I get 
the following messages at bootup:

cardmgr[48]: socket 0: Dynalink L100CLV
cardmgr[48]: executing: 'modprobe cb_enabler'
cardmgr[48]: executing: 'modprobe rtl8139'
pci-scan.c:v1.11 8/31/2002 Donald Becker <becker@scyld.com> 
http://www.scyld.com/linux/drivers.html
rtl8139.c:v1.22 11/17/2002 Donald Becker, becker@scyld.com. 
http://www.scyld.com/network/rtl8139.html
PCI device 'Realtek RTL8139C Fast Ethernet' was not assigned an IRQ.
It will not be activated.
cardmgr[48]: + /lib/modules/2.4.18/kernel/drivers/net/rtl8139.o: 
init_module: No such device
cardmgr[48]: + /lib/modules/2.4.18/kernel/drivers/net/rtl8139.o: Hint: 
insmod errors can be caused by incorrect module parameters, including 
invalid IO or IRQ parameters.
cardmgr[48]: + You may find more information in syslog or the output from 
dmesg
cardmgr[48]: + /lib/modules/2.4.18/kernel/drivers/net/rtl8139.o: insmod 
/lib/modules/2.4.18/kernel/drivers/net/rtl8139.o failed
cardmgr[48]: + /lib/modules/2.4.18/kernel/drivers/net/rtl8139.o: insmod 
rtl8139 failed
cardmgr[48]: modprobe exited with status 255
cardmgr[48]: module /lib/modules/2.4.18/pcmcia/rtl8139.o not available
cardmgr[48]: get dev info on socket 0 failed: Resource temporarily 
unavailable


> The reason for prohibiting MIME encoding and HTML email (and therefore
> attachments) is that it makes the digest mode and archives unreadable.
Ok.