-   Linux - Newbie (
-   -   Compiling Drivers for a "UE1205CB" PCMCIA NIC in RedHat 9 (

vipernicus42 01-31-2005 06:58 PM

Compiling Drivers for a "UE1205CB" PCMCIA NIC in RedHat 9
Hey All,

I'm new to the forum, but definitely not new to forums in general. I'm a moderator over at the www-rx7club-com forum's "1st Generation" section. Anyhow, I've recently decided to take the full-linux plunge when my laptop's HDD went south and needed a replacement and I couldn't find a windows CD. I've been meaning to get out of the Microsoft trap for a while and had toyed with RedHat before so I figured this was the perfect oppurtunity.

For a little background info on myself, I'm a full-time Computer Science student at Heritage College and have been working with computers for years. I'm also part-timing as the Technician for a local computer store in Ottawa, and enjoying it very much.

The problem I have comes as such:
With the hard drive of my laptop conking out, I took an old 2gb drive that I had lying around and did a basic install of RedHat9 on it. Everything is working fine, but my built-in network card has never really worked right. It works for the first 5mins off a cold boot, but then conks out and Kudzu uninstalls it on the next reboot. Let the laptop sit for a while and it's fine. I assume it's a heat-related problem, but rather than tearing into my laptop, I bought a PCMCIA network card through the computer store.

I got the card from Startech (www-startech-com), model number UE1205CB. It's a pretty basic dongle-less network card, and it said that it came with Linux drivers, so I was hoping I'd be able to get it working.

The instructions I have for installation of the card are as follows


Originally Posted in the Instruction Manual
Realtek CardBus Ethernet Card Installation on Linux

1. Compile the source code :

->Copy the source code rtl8139.c (ver 1.08 above) to a directory

and execute "gcc -DCARDBUS -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes

-O6 -c rtl8139.c -o realtek_cb.o -I/usr/src/linux/pcmcia-cs-3.0.9/include/"

The directory "pcmcia-cs-3.0.9" stands for the card service version you

use. Please change it to the version on your system in order to include

proper .h file. The final file is realtek_cb.o

This is just the first part, and where I ran into the problem.

The install I have on my laptop doesn't seem to have *ANY* .h files with "pcmcia" in the name, and the computers at school only have one under /usr/linux/kudzu/ called pcmcia.h .
I tried running the gcc command with the /usr/include/kudzu/ and it got "confused by errors, bailing out". I tried pointing it directly to the file and it told me pcmcia.h wasn't a directory (obviously).

So I'm stuck. I need to know what I'm missing. If RedHat's default install does not install a pcmcia card service, where can I get one? If it does, what package do I need to install? And once I have it where do I point that command to?

If someone wants to download the drivers and compile them to see what the hell I'm talking about, they are available on Startech's website. If someone could give me a hand I would *really* appreciate it, considering I am still very much a newbie.

Oh, and I guess I should mention - I searched. I've been searching for how to resolve this for days now. I know on my forum people are always like "it's been covered before, use the search function" but most of the time newbies don't know how to search for the threads they need.

Please give me a hand! I want to learn, it's just so.... encompassing!


Edit: Since I have only one post so far, the urls use - instead of .

DaHammer 01-31-2005 09:20 PM

What kernel version are you running? The RTL8139 drivers are in the 2.4.x series kernels, which RH 9 uses. I'm not certain at what point they were added though, but are in 2.4.22 and later for sure. Anyway, first I'd check to see if they are already present. The kernel module is named 8139too. So run:

modprobe 8139too

BTW..The 8139too driver is not exactly the same as the rtl8139 driver. But it will most likely work fine. You can also find more info on the rtl8139 driver at

All times are GMT -5. The time now is 04:33 PM.