HELP!! Compiling Driver for LAN Card

Discussion in 'Open Source' started by Ultimate Z Fighter, Jul 28, 2006.

Thread Status:
Not open for further replies.
  1. Ultimate Z Fighter

    Ultimate Z Fighter New Member

    Joined:
    Aug 5, 2005
    Messages:
    96
    Likes Received:
    0
    Trophy Points:
    0
  2. JGuru

    JGuru Well-Known Member

    Joined:
    Dec 25, 2005
    Messages:
    1,705
    Likes Received:
    32
    Trophy Points:
    48
    Location:
    Space-time continuum
    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!!
     
  3. shashank4u

    shashank4u Member

    Joined:
    Jan 9, 2006
    Messages:
    678
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Online
    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: Jul 29, 2006
  4. OP
    OP
    Ultimate Z Fighter

    Ultimate Z Fighter New Member

    Joined:
    Aug 5, 2005
    Messages:
    96
    Likes Received:
    0
    Trophy Points:
    0
    ^^ YESSS

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

    Here's the readme file with the drivers:

    Here's teh driver:

    ftp://152.104.238.194/cn/nic/rtl8139abcd8130810xseries/linux24x-8139cp(160).zip
     
  5. shashank4u

    shashank4u Member

    Joined:
    Jan 9, 2006
    Messages:
    678
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Online
    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= ****
     
  6. JGuru

    JGuru Well-Known Member

    Joined:
    Dec 25, 2005
    Messages:
    1,705
    Likes Received:
    32
    Trophy Points:
    48
    Location:
    Space-time continuum
    @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.
     
  7. OP
    OP
    Ultimate Z Fighter

    Ultimate Z Fighter New Member

    Joined:
    Aug 5, 2005
    Messages:
    96
    Likes Received:
    0
    Trophy Points:
    0
    the make install command doesnt work :|
    It gives me error

    bash : make : command not found

    or somethin like that
     
  8. mehulved

    mehulved 18 Till I Die............

    Joined:
    Jul 15, 2004
    Messages:
    5,790
    Likes Received:
    44
    Trophy Points:
    0
    Location:
    India, Mumbai, Marine Lines
    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.
     
  9. JGuru

    JGuru Well-Known Member

    Joined:
    Dec 25, 2005
    Messages:
    1,705
    Likes Received:
    32
    Trophy Points:
    48
    Location:
    Space-time continuum
    @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.
     
  10. mehulved

    mehulved 18 Till I Die............

    Joined:
    Jul 15, 2004
    Messages:
    5,790
    Likes Received:
    44
    Trophy Points:
    0
    Location:
    India, Mumbai, Marine Lines
    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 :D. 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.
     
  11. Venom

    Venom New Member

    Joined:
    Jun 13, 2006
    Messages:
    240
    Likes Received:
    2
    Trophy Points:
    0
    My card is the same and worked on 5.04 and 5.10 too.
     
  12. OP
    OP
    Ultimate Z Fighter

    Ultimate Z Fighter New Member

    Joined:
    Aug 5, 2005
    Messages:
    96
    Likes Received:
    0
    Trophy Points:
    0
    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...??
     
  13. Venom

    Venom New Member

    Joined:
    Jun 13, 2006
    Messages:
    240
    Likes Received:
    2
    Trophy Points:
    0
    Err, yeah while installing itself it asked me to configure the network details and used DHCP to connect to net too.
     
  14. OP
    OP
    Ultimate Z Fighter

    Ultimate Z Fighter New Member

    Joined:
    Aug 5, 2005
    Messages:
    96
    Likes Received:
    0
    Trophy Points:
    0
    *bump*

    HELP Me ! I'm still unable to compile the c file....
     
  15. mehulved

    mehulved 18 Till I Die............

    Joined:
    Jul 15, 2004
    Messages:
    5,790
    Likes Received:
    44
    Trophy Points:
    0
    Location:
    India, Mumbai, Marine Lines
    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.
     
  16. OP
    OP
    Ultimate Z Fighter

    Ultimate Z Fighter New Member

    Joined:
    Aug 5, 2005
    Messages:
    96
    Likes Received:
    0
    Trophy Points:
    0
    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... :(
     
  17. mehulved

    mehulved 18 Till I Die............

    Joined:
    Jul 15, 2004
    Messages:
    5,790
    Likes Received:
    44
    Trophy Points:
    0
    Location:
    India, Mumbai, Marine Lines
    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.
     
  18. OP
    OP
    Ultimate Z Fighter

    Ultimate Z Fighter New Member

    Joined:
    Aug 5, 2005
    Messages:
    96
    Likes Received:
    0
    Trophy Points:
    0
    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.



    Thing is that the command make install doesn't work and an error is issued:

    helphelphelphelp
     
  19. mehulved

    mehulved 18 Till I Die............

    Joined:
    Jul 15, 2004
    Messages:
    5,790
    Likes Received:
    44
    Trophy Points:
    0
    Location:
    India, Mumbai, Marine Lines
    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?
     
  20. OP
    OP
    Ultimate Z Fighter

    Ultimate Z Fighter New Member

    Joined:
    Aug 5, 2005
    Messages:
    96
    Likes Received:
    0
    Trophy Points:
    0
    Ubuntu f@$^& did not detect my Card...........::__::.
     
Thread Status:
Not open for further replies.

Share This Page