[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

rtl8139.c - compile problems for cardbus driver module



 - -
to  debian-user@lists.debian.org  &  debian-laptop@lists.debian.org
 - -

Hello,

I am trying to compile a linux driver module out of your rtl8139.c source
for my rtl8139 based cardbus NIC, but cannot succeed.

I've read and followed the instructions "Installing individual drivers" on
www.scyld.com/network/updates.html & expert/modules.html
but they don't address the problem I have: the compile fails because
"pcmcia/driver_ops.h: no such file or directory"
in my whole /usr/src tree I do not have anything named pcmcia nor
driver_ops.h

I have Debian GNU/Linux 2.2r2, kernel version 2.2.18pre21 on a Compaq
Presario 1240 and a Planet ENW-3504-FC CardBus 
Fast Eth.adapter (realtek 8139 chip).
The PCCard subsystem is working, I verified with an older NE2k clone pccard
(Dayna CommuniCard, 10Mbit/s).

the right kernel sources are in place, I made a soft link /usr/src/linux ->
/usr/src/kernel-source-2.2.18pre21, dpkg -l *pcmcia* tells me that package
pcmcia-cs version 3.1.22-0.1potato is installed
I managed to produce some other required header files (like version.h &
modversions.h) by doing  cd /usr/src/linux; make oldconfig; make dep

Questions:
what steps do I miss, to get the file pcmcia/driver_ops.h built? where
should this file come from?

I contacted Donald Becker, author of rtl8139.c et al. and he told me I need
to install the pcmcia-cs headers
but I cannot find out the name of the package containing them.
I scanned /usr/src and the installation CD I have at hand with 'find' and
other commands (like brute force scanning all .deb packages and 'grep'ping
for '-i pcmcia' filenames) with no result.

anyone for pointing me in a better direction, please?
anyone who successfully built the driver module for a rtl8139 cardbus nic
and successful operation?

Greetings and thanks in advance
Stephan




Reply to: