HELP!! Compiling Driver for LAN Card

Status
Not open for further replies.

gary4gar

GaurishSharma.com
Ultimate Z Fighter said:
I am giving free info domain to whoever helps me out!


what a bribe:p
its not a paid forum dear. so we will try our level best to help u out without a bribe. what if u want to give it. so u can do that also:D
 

Venom

Journeyman
qwerty@qwerty:~$ sudo dir /lib/modules/2.6.15-26-386/kernel/net/
8021q bridge ieee80211 irda netrom sctp
appletalk core ieee80211_1_1_13 key packet sunrpc
atm dccp ipv4 lapb rose wanrouter
ax25 decnet ipv6 llc rxrpc x25
bluetooth econet ipx netfilter sched xfrm

See... No such files at all, I feel you are using the L-CD, install and try dude.
 
OP
U

Ultimate Z Fighter

Broken In
Venom said:
qwerty@qwerty:~$ sudo dir /lib/modules/2.6.15-26-386/kernel/net/
8021q bridge ieee80211 irda netrom sctp
appletalk core ieee80211_1_1_13 key packet sunrpc
atm dccp ipv4 lapb rose wanrouter
ax25 decnet ipv6 llc rxrpc x25
bluetooth econet ipx netfilter sched xfrm

See... No such files at all, I feel you are using the L-CD, install and try dude.

ultimate said:
Login in as Root

:|
 

Rollercoaster

-The BlacKCoaT Operative-
i read someware that u will try FC5.. if yes the tell us here...

in FC5 u have 'make' also.

and u can compile the drivers. i have had that problem of realtech with FC4 on my laptop. was unable to install the drivers.
you should have kernel-source (now kernel-devel) rpms installed.

download and install these. without these u cannot compile using make.

and if it is still Ubuntu then hardluck...

anyways here it goes.. i had done lots of research in the same matter u may try it:

it does say here that the card is supported....
*wiki.ubuntu.com/HardwareSupportComponentsWiredNetworkCards

ther must me some settings problem that we are not able to identify.
or may be there is some other compatibility issue...
check to see if anything other connected thru PCI is detected?
----------------------------------
please tell output of this cmds:
Code:
lspci -v
lspci | grep Eth
lsmod | grep 8139
and see of something like this is there(in output of 1st one)
Code:
0000:06:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C /8139C+ (rev 10)
        Subsystem: Compex FN22-3(A) LinxPRO Ethernet Adapter
        Flags: bus master, medium devsel, latency 32, IRQ 22
        I/O ports at b800 [size=256]
        Memory at ff510000 (32-bit, non-prefetchable) [size=256]
        Expansion ROM at ff500000 [disabled] [size=64K]
        Capabilities: <available only to root>
----------------------------------------
and try to boot kernel with must be "noapic acpi=off" option. must be "noapic acpi=off" not "noapci acpi=off"(common typo)
----------------------------------------
read this somewere:

Try adding a line to /etc/iftab file with your cards MAC address:
eg:
eth0 mac 00:0f:ea:74:27:e6 arp 1

MAC address is sometimes written on the card or can be optained from windows. I'm busy grasping at straws here.
----------------------------------------
somewere deep inside the internet:
Laptop: Toshiba M55-S1001 (rtl8139c wired ethernet)
Chipset: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
pccid: 0000:04:06.0 0200: 10ec:8139 (rev 10)
Driver: Originally from *www.csd.toshiba.com/cgi-bin/tais/su/su_sc_dtlViewDL.jsp?soid=1044678&moid=1311519 Toshiba driver does not work by default! Use this *www.voxpopulimedia.com/pub/ToshibaM55-rtl8139-WinXP-ndis.tar.gz modified file instead!
Other: Switched to ndis driver because standard driver (8139too) has problem with timing out on large files. Tested working on Ubuntu Dapper Drake. Before installing, unload existing 8139too and other drivers with "sudo rmmod 8139cp 8139too mii"
-----------------------------------------
put an entry for eth1(whatever ur card is like eth0,eth1.. in /proc/net/dev) into /etc/network/interfaces as follows:

Code:
auto lo eth1

iface eth1 inet static
        address 192.168.100.1
        netmask 255.255.255.0
----------------------------------------
some says
May I suggest you start over, reinstall. This time, at the FIRST boot prompt when the installation is about to begin - type 'linux acpi=off' (without the quote marks), hit enter.
Your installation will proceed smoothly and normally, your integrated network card will be configured under DHCP (without any intervention on your part) and you'll join the happy group of Ubuntu 5.10 users.
----------------------------------------
It could be IRQ conflict prob due to auto irq assign from bios.. try manual IRQ settings

after that the card may get recognized if there are no errors in dmesg.
losmod should list the driver rtl8139 as used=1

see cat /proc/interrupts which shows eth0's IRQ like 'IRQ3' and improvise via bios.
ifconfig should list eth0 u shld be able to ping the network and the internet.
------------------------------------------
Do a search for linux-image in Synaptic and see what version of the kernel you are running and if a newer one is available. I'd recommend trying a newer kernel if there is a 2.6.11 kernel listed there as a first attempt. If you can't get to the Internet from that machine then you'll somehow have to get this file(*packages.ubuntu.com/hoary/base/linux-image-2.6.11-1-386) onto the machine and install it manually (using the dpkg -i packagename.deb command).
------------------------------------------

this is all i could dig up from my gigantic collection of research...and the net.

hope something helps...
 
Last edited:

Venom

Journeyman
I cant login as root in my Ubuntu, even if the thing is enabled it says invalid username and the sudo dir works the same way.
 

Venom

Journeyman
qwerty@qwerty:~$ sudo -s -H
Password:
root@qwerty:/home/qwerty# sudo dir /lib/modules/2.6.15-26-386/kernel/net/
8021q bridge ieee80211 irda netrom sctp
appletalk core ieee80211_1_1_13 key packet sunrpc
atm dccp ipv4 lapb rose wanrouter
ax25 decnet ipv6 llc rxrpc x25
bluetooth econet ipx netfilter sched xfrm

:|
 
OP
U

Ultimate Z Fighter

Broken In
qwerty@qwerty:~$ sudo -s -H
Password:
root@qwerty:/home/qwerty# sudo dir /lib/modules/2.6.15-26-386/kernel/net/
8021q bridge ieee80211 irda netrom sctp
appletalk core ieee80211_1_1_13 key packet sunrpc
atm dccp ipv4 lapb rose wanrouter
ax25 decnet ipv6 llc rxrpc x25
bluetooth econet ipx netfilter sched xfrm

I told u to login as root...about 3 times...

Anyway, Try this trick, Search (Place>Search for Files) for 8139 in the Filesystem. Right click > Open Folder if any results (.ko) appears.

Rollercoaster said:
i read someware that u will try FC5.. if yes the tell us here...

in FC5 u have 'make' also.

and u can compile the drivers. i have had that problem of realtech with FC4 on my laptop. was unable to install the drivers.
you should have kernel-source (now kernel-devel) rpms installed.

download and install these. without these u cannot compile using make.

and if it is still Ubuntu then hardluck...

anyways here it goes.. i had done lots of research in the same matter u may try it:

it does say here that the card is supported....
*wiki.ubuntu.com/HardwareSupportComponentsWiredNetworkCards

ther must me some settings problem that we are not able to identify.
or may be there is some other compatibility issue...
check to see if anything other connected thru PCI is detected?
----------------------------------
please tell output of this cmds:
Code:
lspci -v
lspci | grep Eth
lsmod | grep 8139
and see of something like this is there(in output of 1st one)
Code:
0000:06:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C /8139C+ (rev 10)
        Subsystem: Compex FN22-3(A) LinxPRO Ethernet Adapter
        Flags: bus master, medium devsel, latency 32, IRQ 22
        I/O ports at b800 [size=256]
        Memory at ff510000 (32-bit, non-prefetchable) [size=256]
        Expansion ROM at ff500000 [disabled] [size=64K]
        Capabilities: <available only to root>
----------------------------------------
and try to boot kernel with must be "noapic acpi=off" option. must be "noapic acpi=off" not "noapci acpi=off"(common typo)
----------------------------------------
read this somewere:

Try adding a line to /etc/iftab file with your cards MAC address:
eg:
eth0 mac 00:0f:ea:74:27:e6 arp 1

MAC address is sometimes written on the card or can be optained from windows. I'm busy grasping at straws here.
----------------------------------------
somewere deep inside the internet:

-----------------------------------------
put an entry for eth1(whatever ur card is like eth0,eth1.. in /proc/net/dev) into /etc/network/interfaces as follows:

Code:
auto lo eth1

iface eth1 inet static
        address 192.168.100.1
        netmask 255.255.255.0
----------------------------------------
some says

----------------------------------------
It could be IRQ conflict prob due to auto irq assign from bios.. try manual IRQ settings

after that the card may get recognized if there are no errors in dmesg.
losmod should list the driver rtl8139 as used=1

see cat /proc/interrupts which shows eth0's IRQ like 'IRQ3' and improvise via bios.
ifconfig should list eth0 u shld be able to ping the network and the internet.
------------------------------------------
Do a search for linux-image in Synaptic and see what version of the kernel you are running and if a newer one is available. I'd recommend trying a newer kernel if there is a 2.6.11 kernel listed there as a first attempt. If you can't get to the Internet from that machine then you'll somehow have to get this file(*packages.ubuntu.com/hoary/base/linux-image-2.6.11-1-386) onto the machine and install it manually (using the dpkg -i packagename.deb command).
------------------------------------------

this is all i could dig up from my gigantic collection of research...and the net.

hope something helps...

When I try

Code:
lspci -v
lspci | grep Eth
lsmod | grep 8139

My NIC shows as an Unknown Ethernet Controller...
For the last one some 'mii' is using both 8139too and 8139cp modules.

Where can I find teh MAC address

I tried reinstalling with the older Ubuntu 5.10 cd. I put the 'linux acpi=off' command. BUT the error that the Network card is still UNDETECTED!

Also, the during the installation it asks me to enter some PCMCIA (?) comnfiguration. Is it gotta do something with that?
 

Venom

Journeyman
Ah ok, searched but found just two modules, 8139cp.ko, 8139too.ko

*img59.imageshack.us/img59/7567/screenshotru9.png
 

Rollercoaster

-The BlacKCoaT Operative-
Ultimate Z Fighter said:
Where can I find teh MAC address

please read my post carefully. i put in a lot of effort and time to compile and write it.

Me said:
MAC address is sometimes written on the card or can be optained from windows.
try "ipconfig /all" at the command prompt.

then try this
Try adding a line to /etc/iftab file with your cards MAC address:
eg:
eth0 mac 00:0f:ea:74:27:e6 arp 1

There is no sure way of doing this but if u r really serious about getting ur NIC to work then u have to experiment with all the different methods in my post. And try to write a email to the NIC manufacturer.

BTW all the parts divided by the dotted lines are individual methods so dont think that u have to do all of them. start trying one by one.
 
Last edited:
Status
Not open for further replies.
Top Bottom