Find the answer to your Linux question:
Results 1 to 6 of 6
Ok, I am trying to compile this source file so that I can get my onboard lan working but I am having trouble. it says the compilation should generate rhinefet.o, ...
  1. #1
    Just Joined!
    Join Date
    Aug 2006
    Posts
    49

    help compiling this source file

    Ok, I am trying to compile this source file so that I can get my onboard lan working but I am having trouble. it says the compilation should generate rhinefet.o, but I dont see any rhinefet.c in the tar file like the readme states.

    here is the source file
    the one under lan USA
    http://www.pcchips.com.tw/PCCWeb/Dow...uID=35&LanID=2

    thanks,
    Zack

  2. #2
    Just Joined!
    Join Date
    Aug 2006
    Posts
    49

    the direction in linux.txt install file are

    **
    **
    ** VIA Rhine Family Fast Ethernet Adapter
    **
    ** Linux Driver
    **
    ** v4.32 Feb. 2004
    **
    **


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

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


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

    linux.txt This file.
    rhinefet.c The linux core driver source code file
    Makefile Makefile for generating driver object file
    rhine_vmns.c The vmns driver support source file
    rhine_proc.c The source to create proc entries
    rhine_wol.c The WOL supporting source file
    rhine.h The extended driver header file
    rhine_vmns.h The vmns driver support header file
    rhine_proc.h The header file for proc entries
    rhine_wol.h The WOL supporting header file
    rhine_cfg.h The vmns driver support header file
    vmns_drv.h The vmns driver support header file
    kcompat.h The header file for Linux kernel version
    compatibility.

    Kernel Supported
    ================
    This driver support linux kernel version 2.2.x and 2.4.x now.

    Installation
    ============
    Please enter the following commands at the UNIX prompt. Remember, UNIX is
    case sensitive.

    1) Create a temporary directory:
    mkdir /temp

    2) Change to the temporary directory:
    cd /temp

    2) Copy driver (rhinefet.tgz) from DOS disk, (mcopy below is one tool in
    mtools, if you didn't install mtools, you can type
    'mount -t msdos /dev/fd0 /mnt' and use 'cp /mnt/rhinefet.tgz /temp'
    command to copy the driver to the temporary directory):
    mcopy a:rhinefet.tgz .

    3) untar the archive file:

    tar xzvf rhinefet.tgz
    cd rhinefet

    4) Compile the driver source files and it will generate rhinefet.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/, the KERNEL_VERSION (see
    above) means the kernel version of your Linux distribution. If you don't
    know your kernel version , please run 'uname -r' command in command
    line. The kernel version will look like '2.2.16', '2.4.2-2smp' etc.) :
    make install

    5) 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 (eg: alias eth0 rhinefet):
    alias eth# rhinefet

    6) Reboot now:
    shutdown -r now

    7) 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 rhinefet

    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>







    I dont see a rhinefet.c in tar file and I get errors when trying to use the make file. Can anyone help me out here?

    thanks,
    Zack

  3. #3
    Linux Enthusiast KenJackson's Avatar
    Join Date
    Jun 2006
    Location
    Maryland, USA
    Posts
    506
    This post raises questions.

    It looks like your motherboard is a PC-CHIPS M791G(V1.0a).
    Are you already running Linux? Does it not support your ethernet device?

    The driver you reference is from 2004.
    Does your motherboard have a chip on it that is VT823x (where x is a digit)?
    If it does, the driver at viaarena.com may be a better choice. It is v5.04 and only 3 months old.

    I downloaded the PDF from PC-CHIPS and they don't mention what devices they are using, but I think that VT823x integrates a lot of stuff, so it may have a heat sink on it, so you may not be able to read it. But from what you've provided and what I've gathered, I think this is correct.

  4. #4
    Just Joined!
    Join Date
    Aug 2006
    Posts
    49
    thank you so much for your response

    the linux stable version 2.4 sarge did not work. I tried the testing version 2.6 kernel and it installed, im working on getting the video card installed now so I can enable X server, but I keep getting an error when trying to install the nvidia drivers. It says I need the kernel source files, and that my compiler version does not match with the kernel (gcc 4.0 and gcc 4.1) I know how to get the source files graphically through synaptic, but not command prompt based through apt-get so im stuck right now.

    Zack

  5. #5
    Linux Enthusiast KenJackson's Avatar
    Join Date
    Jun 2006
    Location
    Maryland, USA
    Posts
    506
    You do need to install the kernel sources to install the nvidia driver, if you got it from nvidia. But you might not need to if you can install a pre-built one from Debian.

    Since I've never used apt-get either, I'm not the best one to take advice from. But to install the kernel sources I believe you would type this command as root, assuming you have the 2.6.8 kernel installed:
    Code:
    apt-get install kernel-source-2.6.8
    If you need to find package names and you have lynx installed, you can use this command to browse the debian package website from the console:
    Code:
    lynx packages.debian.org
    Also, here are some helpful links:

  6. #6
    Just Joined!
    Join Date
    Aug 2006
    Posts
    49
    thanks, I installed lynx using apt-get and browed the debian package site. I could not find the source for my kernel though.

    I am using kernel 2.6.16-2-686
    uname -r

    does anyone know how I can get the kernel-source so that I can install the nvidia drivers?

    thanks,
    Zack

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •