Log in

No account? Create an account

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

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
Local network was setup after this step. Checked by pinging the ADSL router/modem.

6> Added gateway
           route add default gw
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.


Posted by: kkojha (kkojha)
Posted at: September 13th, 2009 12:37 pm (UTC)
Request to share the NIC 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...?!

Posted by: kernelyogi (kernelyogi)
Posted at: October 13th, 2009 03:50 pm (UTC)
Re: Request to share the NIC driver

To clarify, I have not written it. It can be found here -

Posted by: ((Anonymous))
Posted at: January 4th, 2011 11:10 am (UTC)
Lily didn times together you try ones would deserved punishment mbc.

Happy New Year[url=http://sdjfh.in/flexpen/],[/url] everyone! :)

3 Read Comments