Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 28-07-2006, 11:58 PM   #1 (permalink)
Apprentice
 
Join Date: Aug 2005
Posts: 96
Default HELP!! Compiling Driver for LAN Card


Me Linux newbie.

I have got Ubuntu 5.something and a Realtek RTL8139 PCI Ethernet Card. The driver has these instructions:

http://www.realtek.com.tw/downloads/...&Software=True

Linux drivers can be downloaded from here. I am stuck at the complining the c file part. I dunno how to

I am giving free info domain to whoever helps me out!
__________________
DON'T YOU DARE CLICK THIS : http://kevan.org/brain.cgi?the.unforgiven
Ultimate Z Fighter is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 29-07-2006, 12:23 AM   #2 (permalink)
Wise Old Owl
 
JGuru's Avatar
 
Join Date: Dec 2005
Location: Space-time continuum
Posts: 1,646
Default Re: HELP!! Compiling Driver for LAN Card

You don't need to compile the source of drivers to connect to the Net!!!
Now listen up, & do what I say:
Open the Terminal Window & type:
$ gksu network-admin
This will open the 'Network Settings' dialog box.
Here , click on 'Connection' tab , select 'Ethernet Connection',
Click on 'Properties' That opens up the 'Interface Properties' dialog
Make sure 'Enable this Connection' is enabled.(selected)
In the Connection Settings : DHCP
Click 'OK', again 'OK'.
To test whether you are able to connect to the Net, from the Terminal Window type:
$ ping www.yahoo.com
(This will display the statistics like bytes transferred, IP address, time taken)
If you are getting these statistics, that means your Net connection is working!!
So open FireFox browser and type any URL and see it.
By the way I also use Realtek Ethernet card. No need to install any drivers in Ubuntu!!
JGuru is offline  
Old 29-07-2006, 12:31 AM   #3 (permalink)
Alpha Geek
 
shashank4u's Avatar
 
Join Date: Jan 2006
Location: Online
Posts: 686
Default Re: HELP!! Compiling Driver for LAN Card

i cant help uout ,but what makes me reply to this thread is
i also have the same ethernet adapder Realtek RTL8139 same prob occur to me about one month ago , i had made dual boot system but when i see that
there r no inbuilt drivers and becoz of it i m not able to use the net , one more prob. was there not even able to install real one player in ubuntu(given by digit).so while experimenting my ubuntu got currupted and i had to format my drives, now i m looking for fc5 but not able to find out anywhere .
one request if u r able to compile the driver plz do inform me .
may be then i ll give ubuntu a second try.

jguru
i dont remember exactly , but when i was installing ubuntu , during the
set up phase , when network details r to be filled , ubuntu was not able
to detect the ethernet adapter ,what u have to say in this case. i think
the ethernet adapter must be detected first before chekcing other things.
right.

Last edited by shashank4u; 29-07-2006 at 12:39 AM. Reason: Automerged Doublepost
shashank4u is offline  
Old 29-07-2006, 10:26 AM   #4 (permalink)
Apprentice
 
Join Date: Aug 2005
Posts: 96
Default Re: HELP!! Compiling Driver for LAN Card

^^ YESSS

The same thing happened to me ... Netwrok card wasn't detected...

Here's the readme file with the drivers:

Quote:
8139too.c release note
2001/10/31 by ShuChen Shao

1.This driver was originally based on 8139too.c version "0.9.15".

2.It has been enhanced to support RTL8139C+ PCI ethernet controller.

3.RTL8139C+ PCI ethernet chips is set to support C+ mode by default.
If FORCE_C_Mode below is enabled, the RTL8139C+ chip will be forced to support C mode
after reboot.


4.This program can be compiled using the attached Makefile.
Please remember to SPECIFY "NEW_INCLUDE_PATH" in Makefile according to your linux environment.
The object file named 8139too.o should be moved to the directory
/lib/modules/<linux-version>/kernel/drivers/net/
The driver could be brought up by the following steps:
'insmod 8139too'
'ifconfig eth0 up'

5.It can support Auto-Negotiation ability,that is
10-half 0x01
10-full 0x02
100-half 0x04
100-full 0x08
If 10-half mode is expected, it can be achieved by the following steps:
#ifconfig eth0 down
#rmmod 8139too
#insmod 8139too media=0x01

6.If the "Install Type", selected during the Linux install procedure, is "laptop",
this driver can work normally for CardBus application without any modification.
Otherwise, reinstall Linux and select "Install Type" as "laptop".
Then this driver can also work.

---------------------------------------------------------------------------------------
8139too.c version 1.5.0 release note
2003/3/4 by ShuChen Shao

1.Add flag in Makefile to specify access type to operation register on PCI
ethernet chips.
Here's teh driver:

ftp://152.104.238.194/cn/nic/rtl8139...139cp(160).zip
__________________
DON'T YOU DARE CLICK THIS : http://kevan.org/brain.cgi?the.unforgiven
Ultimate Z Fighter is offline  
Old 29-07-2006, 11:10 AM   #5 (permalink)
Alpha Geek
 
shashank4u's Avatar
 
Join Date: Jan 2006
Location: Online
Posts: 686
Default Re: HELP!! Compiling Driver for LAN Card

this is the same that is given in the driver cd :
*************************************************
** Silan SC92031 PCI Fast Ethernet Adapter **
** **
** LINUX driver **
*************************************************

Introduction:
=============

The instructions are for linux driver installation. You must
compile the source code to generate sc92031.o and use insmod command to
insert sc92031.o as module.

Contents of the Subdirectory:
=============================

readme.txt This file.
sc92031.c The linux core driver source code file
Makefile Makefile for generating driver object file

Kernel Supported
================
This driver support linux kernel version 2.4.x/2.5.x now.

Installation
============
1) Create a temporary directory:
# mkdir /temp

2) Change to the temporary directory:
#cd /temp

3) Copy driver (sl_linux.tgz) from CD-ROM to the temporary directory, and follow the commands:
# mount -t iso9660 /dev/cdrom /mnt
# cp /mnt/sl_linux.tgz /temp

4) untar the archive file:
# tar xzvf sl_linux.tgz
# cd sc92031

5) Compile the driver source files and it will generate sc92031.o, and
copy it to correct driver installation path (The installation directory
is different in different kernel versions. In 2.4.x kernel, the path is
/lib/modules/KERNEL_VERSION/kernel/drivers/net/, and in 2.2.x kernel,
the path is /lib/modules/KERNEL_VERSION/net/)
# make install

6) Check configuration file (/etc/modules.conf or /etc/conf.modules,it
depend on your Linux distribution) for loading kernel modules. Make sure
there is the following content in the configuration file, where # is
interface number :
alias eth# sc92031

7) Reboot now:
shutdown -r now

8) Install your driver module (If the driver module is in the wrong place,
an error message will appear, and say that can't find the driver
module):
insmod sc92031.o

8) Use ifconfig command to assign the IP address, where # is network
interface number:
ifconfig eth# <IP>

9) Check the interface works:
ping <remote_host_IP>

Uninstallation
==============
Please enter the following commands to uninstall your driver:
# make uninstall

Module Parameter:
=================
The following parameters can be set when we install the driver module. You can add this parameters when
you execute 'insmod' command to install the driver
# insmod sc92031.o work_node =0x00

work_mode
work_mode is used for setting the speed and duplex mode of NIC.Value is as followed:
Autoselect 0x00
M10-half 0x01
M10-full 0x02
M100-half 0x04
M100-full 0x08

If you want to use other modes,it can be changed by the following steps:
# ifdown eth0
# rmmod sc92031
# insmod sc92031.o work_mode= ****
shashank4u is offline  
Old 29-07-2006, 11:48 AM   #6 (permalink)
Wise Old Owl
 
JGuru's Avatar
 
Join Date: Dec 2005
Location: Space-time continuum
Posts: 1,646
Default Re: HELP!! Compiling Driver for LAN Card

Quote:
Originally Posted by shashank4u
jguru,
i dont remember exactly , but when i was installing ubuntu , during the
set up phase , when network details r to be filled , ubuntu was not able
to detect the ethernet adapter ,what u have to say in this case. i think
the ethernet adapter must be detected first before chekcing other things.
right.
@Shashan4u,
There are times when Ubuntu is not able to detect your Ethernet card.
In that case, you can download the Linux driver source & compile & install the drivers.
Always use the latest version of Linux, use Ubuntu 6.06 (Dapper Drake). Chances
of your Ethernet card getting detected are high!! This also happens with other
devices like Graphics Card. So use the latest version of Ubuntu.
JGuru is offline  
Old 29-07-2006, 11:49 AM   #7 (permalink)
Apprentice
 
Join Date: Aug 2005
Posts: 96
Default Re: HELP!! Compiling Driver for LAN Card

the make install command doesnt work
It gives me error

bash : make : command not found

or somethin like that
__________________
DON'T YOU DARE CLICK THIS : http://kevan.org/brain.cgi?the.unforgiven
Ultimate Z Fighter is offline  
Old 29-07-2006, 04:00 PM   #8 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: HELP!! Compiling Driver for LAN Card

Oops this means make isn't installed on your system yet. You will need to get make and gcc from packages.ubuntu.com and it's dependancies if any.
But, this is certainly strange. As far as I can remember, Ubuntu 6.06 detects my Realtek 8139C card. I can't boot into ubuntu and check for now as I am out of space there.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 30-07-2006, 11:27 AM   #9 (permalink)
Wise Old Owl
 
JGuru's Avatar
 
Join Date: Dec 2005
Location: Space-time continuum
Posts: 1,646
Wink Re: HELP!! Compiling Driver for LAN Card

Quote:
Originally Posted by Ultimate Z Fighter
Me Linux newbie.
I have got Ubuntu 5 something and a Realtek RTL8139 PCI Ethernet Card.
@Tech_your_future, this guy is running a pretty old Ubuntu (4.04 I think!!).
That's why RealTek Ethernet card is not detected!! I have already told him to
use the latest Ubuntu 6.06 (Dapper Drake). By the way, I'm also using RealTek
Ethernet card, and everything works perfectly.
JGuru is offline  
Old 30-07-2006, 11:57 AM   #10 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: HELP!! Compiling Driver for LAN Card

Well he's saying, it's 5 something. My card worked in 5.10, so I guess maybe it's 5.04 and and your 4.04 is a typo . If the card doesn't work in that version, IMO best would be to get 6.06 too. Becuase after connecting to the net too he'll have 1000's of updates, also I guess they've stopped updates for it. So, not much sense using it for now.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 01-08-2006, 11:18 AM   #11 (permalink)
In The Zone
 
Venom's Avatar
 
Join Date: Jun 2006
Posts: 240
Default Re: HELP!! Compiling Driver for LAN Card

My card is the same and worked on 5.04 and 5.10 too.
Venom is offline  
Old 01-08-2006, 11:26 AM   #12 (permalink)
Apprentice
 
Join Date: Aug 2005
Posts: 96
Default Re: HELP!! Compiling Driver for LAN Card

Quote:
Originally Posted by Venom
My card is the same and worked on 5.04 and 5.10 too.
Does it get automatically detected while installation??

Anyways, I tried compiling with gcc and it was givin me errors that included files not found etc etc...

Can some1 compile and give me the driver c source...??
__________________
DON'T YOU DARE CLICK THIS : http://kevan.org/brain.cgi?the.unforgiven
Ultimate Z Fighter is offline  
Old 01-08-2006, 11:33 AM   #13 (permalink)
In The Zone
 
Venom's Avatar
 
Join Date: Jun 2006
Posts: 240
Default Re: HELP!! Compiling Driver for LAN Card

Err, yeah while installing itself it asked me to configure the network details and used DHCP to connect to net too.
Venom is offline  
Old 01-08-2006, 08:54 PM   #14 (permalink)
Apprentice
 
Join Date: Aug 2005
Posts: 96
Default Re: HELP!! Compiling Driver for LAN Card

*bump*

HELP Me ! I'm still unable to compile the c file....
__________________
DON'T YOU DARE CLICK THIS : http://kevan.org/brain.cgi?the.unforgiven
Ultimate Z Fighter is offline  
Old 01-08-2006, 09:49 PM   #15 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: HELP!! Compiling Driver for LAN Card

Firstly did you configure your network settings right? Since it seems others having the same card are saying, it's been detected. Maybe your connection settings isn't proper.
And this driver is based on kernel 2.4.x whereas Ubuntu uses kernel 2.6.x so it may not work, AFAIK.
All right, which kernel have you got? If you don't know, give the output of
Code:
uname -a
. And which connection are you using and how are you trying to connect? Maybe if you are going wrong somewhere, someone will be able to point out.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 03-08-2006, 08:02 PM   #16 (permalink)
Apprentice
 
Join Date: Aug 2005
Posts: 96
Default Re: HELP!! Compiling Driver for LAN Card

The kernel is 2.6.x only.

Im getting error while compiling the c source to .o (object) file..


If this goes on...Im gonna quite using linux...
__________________
DON'T YOU DARE CLICK THIS : http://kevan.org/brain.cgi?the.unforgiven
Ultimate Z Fighter is offline  
Old 03-08-2006, 08:23 PM   #17 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: HELP!! Compiling Driver for LAN Card

I am sure you don't need to compile the driver. And also your version of ubuntu is 5.10 or 6.06. This should detect and work fine with your LAN card. How can you say your LAN card is not detected?
It seems you are messing up somewhere in configuring the connection. It's not a problem with LAN card or it's drivers.
BTW, the drivers you have got are for kernel 2.4.x so they won't work on 2.6.x.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 03-08-2006, 09:55 PM   #18 (permalink)
Apprentice
 
Join Date: Aug 2005
Posts: 96
Default Re: HELP!! Compiling Driver for LAN Card

Yeah, My Ubuntu version is breezy 5.10.

The card works fine under Windows
Let's start it over:

I got a driver cd with the LAN Card and had to install the drivers for Windows. There is a zip file in the cd with c file, Makefile, Readme file. The readme file says that you need to compile the c file using Makefile and put the object file somewhere.

Quote:
Contents of the Subdirectory:
=============================

readme.txt This file.
sc92031.c The linux core driver source code file
Makefile Makefile for generating driver object file


Quote:
5) Compile the driver source files and it will generate sc92031.o, and
copy it to correct driver installation path (The installation directory
is different in different kernel versions. In 2.4.x kernel, the path is
/lib/modules/KERNEL_VERSION/kernel/drivers/net/, and in 2.2.x kernel,
the path is /lib/modules/KERNEL_VERSION/net/)
# make install
Thing is that the command make install doesn't work and an error is issued:

Quote:
bash : make : command not found (something)
helphelphelphelp
__________________
DON'T YOU DARE CLICK THIS : http://kevan.org/brain.cgi?the.unforgiven
Ultimate Z Fighter is offline  
Old 03-08-2006, 09:59 PM   #19 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: HELP!! Compiling Driver for LAN Card

Ugh
Did you first try to get your connection working? Or did you just try to install these drivers?
Your connection should work without this drivers. Did you fill up the required information under System => Administration => Networking ?
If yes, do you get any error message? What happens?
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 03-08-2006, 10:27 PM   #20 (permalink)
Apprentice
 
Join Date: Aug 2005
Posts: 96
Default Re: HELP!! Compiling Driver for LAN Card

Ubuntu f@$^& did not detect my Card...........::__::.
__________________
DON'T YOU DARE CLICK THIS : http://kevan.org/brain.cgi?the.unforgiven
Ultimate Z Fighter is offline  
Old 03-08-2006, 10:27 PM   #21 (permalink)
Apprentice
 
Join Date: Aug 2005
Posts: 96
Default Re: HELP!! Compiling Driver for LAN Card

Ubuntu f@$^& did not detect my Card...........::__::.
__________________
DON'T YOU DARE CLICK THIS : http://kevan.org/brain.cgi?the.unforgiven
Ultimate Z Fighter is offline  
Old 03-08-2006, 11:42 PM   #22 (permalink)
Alpha Geek
 
shashank4u's Avatar
 
Join Date: Jan 2006
Location: Online
Posts: 686
Default Re: HELP!! Compiling Driver for LAN Card

z fighter is saying right.
ive the same problem while installing ubuntu at that time .i ve ubuntu
5.10.which doesn't detect the lan card.
what i m thinking is to install ubuntu 6.06 and also recommend zfighter to
install as it is latest and shud solve our problems.
__________________
Be like a postage stamp-stick to one thing until you get there.
shashank4u is offline  
Old 04-08-2006, 12:07 PM   #23 (permalink)
Apprentice
 
Join Date: Aug 2005
Posts: 96
Default Re: HELP!! Compiling Driver for LAN Card

Ya, I ordered it from Shipit!

Quote:
10 CDs requested in 2006-07-29. 10 CDs approved and sent to the shipping company in 2006-08-01. Please note requests usually take from 4 to 6 weeks to deliver, depending on the country of shipping.
Or should I install the Gentoo Linux on the Digit DVD?
__________________
DON'T YOU DARE CLICK THIS : http://kevan.org/brain.cgi?the.unforgiven

Last edited by Ultimate Z Fighter; 04-08-2006 at 12:51 PM. Reason: Automerged Doublepost
Ultimate Z Fighter is offline  
Old 04-08-2006, 01:00 PM   #24 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: HELP!! Compiling Driver for LAN Card

Quote:
Originally Posted by Ultimate Z Fighter
Or should I install the Gentoo Linux on the Digit DVD?
Not such a good idea with your experience. Gentoo requires you to have some previous experience in linux to understand what you are doing. I'd rather say you don't try gentoo right away.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 05-08-2006, 06:33 PM   #25 (permalink)
Apprentice
 
Join Date: Aug 2005
Posts: 96
Default Re: HELP!! Compiling Driver for LAN Card

OMG, Ubuntu Sucks big time...I just downloaded Ubuntu Drapper iso. It took me a ****ing whole day...and guess what?? It failed to detect my LAN card!!

It was a live cd...Not error that It didnt detect any network card...nothing...Ubuntu ****in sucks...Even it doesnt have make and compiler pre-installed.

I quit PERIOD
__________________
DON'T YOU DARE CLICK THIS : http://kevan.org/brain.cgi?the.unforgiven
Ultimate Z Fighter is offline  
Old 05-08-2006, 07:30 PM   #26 (permalink)
In The Zone
 
Venom's Avatar
 
Join Date: Jun 2006
Posts: 240
Default Re: HELP!! Compiling Driver for LAN Card

Oh well... have a look.

http://img309.imageshack.us/img309/3...eenshotfs6.jpg

I guess it something to do with your PC, not Ubuntu, anyways, did you even try going to Networking and enabling DHCP for eth0 ? Does your card have issues with the mobo, works fine with windows?

It has a make and a compiler in it, atleast my shipit cd had it...
__________________
From now on we are poison to you, that's why we call ourselves, the Venom!
Venom is offline  
Old 05-08-2006, 07:41 PM   #27 (permalink)
Apprentice
 
Join Date: Aug 2005
Posts: 96
Default Re: HELP!! Compiling Driver for LAN Card

Quote:
Originally Posted by Venom
Oh well... have a look.

http://img309.imageshack.us/img309/3...eenshotfs6.jpg

I guess it something to do with your PC, not Ubuntu, anyways, did you even try going to Networking and enabling DHCP for eth0 ? Does your card have issues with the mobo, works fine with windows?

It has a make and a compiler in it, atleast my shipit cd had it...
I tried EVERYTHING

In the device manager, It shows up as an unknown device
The ifconfig doesnt show up any ethernet devices

My card works fine in windows

Whats 'mobo'?

Mine doesnt has any make and compiler

Quote:
Bash : make : command not found
When I try to './configure' any source stuff. Many errors pop up:

Similar to this:

Quote:
looking for cc...not found
looking for gcc...not found
...
(5-6 similar lines)
...
ERROR: No acceptable compiler found on $PATH
Do I have to set a path? What path? I cant even find where the fcukin compiler is....
__________________
DON'T YOU DARE CLICK THIS : http://kevan.org/brain.cgi?the.unforgiven
Ultimate Z Fighter is offline  
Old 05-08-2006, 08:02 PM   #28 (permalink)
In The Zone
 
Venom's Avatar
 
Join Date: Jun 2006
Posts: 240
Default Re: HELP!! Compiling Driver for LAN Card

mobo = mother board

I dont know if Live cds accept compiling etc... Feel sorry for you, somethings terribly strange, all distros work without a hitch for me :[
__________________
From now on we are poison to you, that's why we call ourselves, the Venom!
Venom is offline  
Old 05-08-2006, 09:18 PM   #29 (permalink)
Apprentice
 
Join Date: Aug 2005
Posts: 96
Default Re: HELP!! Compiling Driver for LAN Card

OMG I found the solution!!!

Quote:
#modprobe rtl8139/8139too/8139cp
Now a new problem

The 8139too ad 8139cp module don't work...and When I try it on rtl8139, this error comes up:

Quote:
FATAL: rtl8139 module not found
Help!! Where can I find the module...

Venom dude upload the module file somehow from /lib/modules/(version of linux)/kernel/net

ARGHHHHHH....even the live cd doesnt have the module...
__________________
DON'T YOU DARE CLICK THIS : http://kevan.org/brain.cgi?the.unforgiven
Ultimate Z Fighter is offline  
Old 05-08-2006, 10:01 PM   #30 (permalink)
In The Zone
 
Venom's Avatar
 
Join Date: Jun 2006
Posts: 240
Default Re: HELP!! Compiling Driver for LAN Card

Erm, my kernel is 2.6.15.26 ok.

Pardon my noobishness,, but which is the one you want ?
http://img213.imageshack.us/img213/9...eenshotzt9.png

Dude, the Live CD lacks a lot of stuff, please try to install and see, doesnt hurt does it? Even it all goes futile there are professional ones like SuSe and FC5 out there.
__________________
From now on we are poison to you, that's why we call ourselves, the Venom!
Venom is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Charan

Advertisement




All times are GMT +5.5. The time now is 05:06 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2