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

Re: rtl8139.c - compile problems for cardbus driver module


I myself compiled the carbus stuff you talked about one for my laptop. I'm
writing from memory here, and thats known to be less than perfect ;P but it
will point you in the right direction....

1) Get the sourcecode for the PCMCIA package, and compile this on your
2) Install the new pcmcia stuff
3) compile the rtl driver (see the end of the sourcecode for compile
instructions) btw, i had to add the path to /usr/src/linux/include and
/usr/src/pcmcia/include in my case (-I if memory serves me, and DO CHECK the
path's on your system).
4) copy the .o to your /lib/modules/[kernel-version]/pcmcia
5) run depmod (!! important !!)
6) edit the config files for your pcmcia package

If you are smart, copy your old (read: modified to work nice with debian)
config scripts first, or extract them from the pcmcia deb later.

Good luck!

Nico de Haer

----- Original Message -----
From: Schwerzmann, Stephan <stephan.schwerzmann@schmid-telecom.ch>
To: <debian-user@lists.debian.org>; <debian-laptop@lists.debian.org>
Sent: Thursday, July 19, 2001 10:18 AM
Subject: 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
> (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
> 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
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact

Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply to: