On to the Net using Intex's RTL 8139D LAN card

current mood: happy
OK, so now I am on to the net using Intex's NIC card. Installed Debian 3.1 R3 which had kernel 2.4. The Intex NIC has drivers for 2.4/2.5 but not 2.6.
Steps followed -
1> Needed the headers of the running kernel (uname -r) to compile the driver. Best way was -
apt-get install kernel-headers-2.4.27-2-386
2> Copied the unzipped folder containing the driver source code to a local directory.
Note that I took the 8139D RTC (not RTD) from Intex
3> Compiled the driver source using the Makefile provided. Compilation gave a warning and compiled without any error.
*****************************
sc92031.o built for 2.4.27-2-386
SMP Disabled
*****************************
In file included from /lib/modules/2.4.27-2-386/build/include/l
from /lib/modules/2.4.27-2-386/build/include/l
from sc92031.c:15:
/lib/modules/2.4.27-2-386/build/include/a
/lib/modules/2.4.27-2-386/build/include/a
/lib/modules/2.4.27-2-386/build/include/a
4> Inserted the module created "sc92031.o" using
insmod ./sc92031.o
5> Setup NIC interface
ifconfig eth0 inet up 192.168.1.100
Local network was setup after this step. Checked by pinging the ADSL router/modem.
6> Added gateway
route add default gw 192.168.1.1
ping to system outside the local network successful.
So, here I am, on the net, using the NIC card and posting to lj!
Unfortunately, this card may not work on 2.6 going by the discussions here, here and so many other google search tails.
Ndiswrapper can be the solution - http://www.geocities.com/rohitksethi/
BTW this not RealTek chipset but rather Silan SC92031 chipset, see it if you understand chinese :) (One task added for me - search a online translation site :))
So till I understand how to write a device driver and specifically for 2.6, its a dead end for making this NIC work. Otherwise, I will have to wait for somebody/Silan to write the driver.





Hi kernelyogi,
I am new to Linux... and have a very basic idea of working with it. Since I have installed RHEL5 (kernel ver-2.6), my NIC (iNtex sc92031) is not working... I've been trying to fix it for two months. Today I encountered your blog post... and came to know that you have written a driver for the NIC to work with RHEL5 (kernel ver-2.6). So I was wondering if you could please share it with me... or at least tell me how to write the driver...?!