October 15th, 2006 (07:42 pm)
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/linux/spinlock.h:6,
from /lib/modules/2.4.27-2-386/build/include/linux/module.h:12,
from sc92031.c:15:
/lib/modules/2.4.27-2-386/build/include/asm/system.h: In function `__set_64bit_var':
/lib/modules/2.4.27-2-386/build/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules
/lib/modules/2.4.27-2-386/build/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules
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.