LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-07-2005, 09:48 PM   #1
jacobselvin
Member
 
Registered: May 2005
Location: Australia
Distribution: SUSE 10.1
Posts: 62

Rep: Reputation: 15
Question How do I install a driver in linux?


I'm new to linux community. I have installed Red hat linux 9 on my PC which is running on Intel Pentium IV. I couldn't find a driver for my network card. From where can I find a suitable linux driver for my Marvell Yukon Gigabit Ethernet 10/100/1000Base-T Adapter, Copper RJ 45. I think a linux driver will be a RPM file which we just have to install. Is my understanding right? Or is there any other file formats available?
Thanx,
- Jacob
 
Old 05-07-2005, 10:44 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
http://www.marvell.com/products/pcconn/yukon/index.jsp
http://www.marvell.com/drivers/drive...?dId=107&pId=9

Looks like they are supporting Linux.
 
Old 05-07-2005, 10:59 PM   #3
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
# Compiling/installing kernel modules
You will need to have installed:
1. The developmental packages (compiler)
2. The kernel-source code that matches your running kernel
3. The module source or install code

Check out your system and look under the hood and see if you installed the stuff you need to do the job. Open an x terminal and type in this sequence of commands to see what kernel we are running and see if you have the kernel source installed:
Code:
[fancy@tinwhistle fancy]$ su -
Password:
[root@tinwhistle root]# uname -r
2.4.20-28.7
I am running kernel version 2.4.20-28.7. Do I have the proper source code?
Code:
[root@tinwhistle root]# cd /usr/src
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          136 Jun 12 14:53 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.20-28.7
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.20-28.7
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
I do have the same kernel version source code installed in the directory /usr/src/linux-2.4.20-28.7 and there is a symbolic link named linux-2.4 pointing to it.

If you don't see something similiar to this (but in color), you will need to install the kernel source.

NOTE: I noticed that Red Hat didn't make the symbolic link /usr/src/linux that all of the INSTALL files that I have read mentioned that I need. I may as well make one now to save editing the files in the source code every time I need to compile anything concerning the kernel. So, I'll make that link just now:
Code:
[root@tinwhistle src]# ln -s linux-2.4.20-28.7 linux         
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          160 Jun 12 15:46 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun 12 15:46 linux -> linux-2.4.20-28.7
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.20-28.7
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.20-28.7
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
Ah, there it is, so that's done.

Next, did I install the compiler?
Code:
[root@tinwhistle src]# gcc -v          
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
[root@tinwhistle src]#
Yes, I have a compiler installed.

If you don't have those two things installed, you have to install them first off your install CD.

If they are installed, download the source and happy compiling. Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing.

I have Linux installed, now how do I work install stuff like more software?
# I can't figure out what software I want and how to install/uninstall it
The table of equivalents, replacements, analogs of Windows software in Linux
# Find software here
Freshmeat
Sourceforge
rpmfind
# Guides to software management
LNAG: 4.5 Package installation and rpm package manager
Rute Guide's software explanation
You might want to check out CheckInstall to manage source code installations/uninstallation
 
Old 05-07-2005, 11:07 PM   #4
SML
Member
 
Registered: Dec 2002
Location: US
Distribution: Intel Clear Linux
Posts: 381

Rep: Reputation: 30
OPTION 1 - EASIEST
Why don't you just use a later distribution and it will be all be automatically set-up.

OPTION 2 - EASIER
Or you could upgrade your kernel that will the include the right module for the Marvell Yukon.

OPTION 3
Load in the module to your old RH9 distro.

BTW
The sk98lin module is the one you are after.
 
Old 05-08-2005, 01:27 AM   #5
jacobselvin
Member
 
Registered: May 2005
Location: Australia
Distribution: SUSE 10.1
Posts: 62

Original Poster
Rep: Reputation: 15
Thank you all for your quick response.

First I tried to download the driver from marvell site. I downloaded a file called install-8_16.tar.bz2. I'm not sure how to use this file. I had never seen any file with such extension. I tried to unzip it by removing the bz2 extension and still no luck.
Next I looked at the installation instructions. It says no additional files are required. And just the linux kernal source is enough. I followed the following instructions

1. Select the menu "Network device support" and then "Ethernet(1000Mbit)"
2. Mark "Marvell Yukon Chipset / SysKonnect SK-98xx family support"
with (*)
3. Build a new kernel when the configuration of the above options is
finished.
4. Install the new kernel.
5. Reboot your system.

Here I'm not sure how to install the new kernal. I rebuilt the new kernel (using make dep) and rebooted the server. Now the card was not detected automatically. I tried to configure it manually and still it was not detecting the card. I used the System Setting > Network menu to setup.
My linux kernal version is 2.4.20-8. Will there be any use if I upgrade my kernal. If yes how can I upgrade my kernal.
 
Old 05-08-2005, 01:40 AM   #6
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
The Red Hat Linux 9 documentation site should provide some help if my previous links didn't explain to your satisfaction about how to handle those files.

# Guides to software management
LNAG: 4.5 Package installation and rpm package manager. Read section 4.5.1.2
Rute Guide's software explanation

# Red Hat & Fedora links
FedoraNEWS.ORG
The Fedora HOWTO explains the different software managers.
Maximum RPM
rpmfind
Easier software management: apt4rpm
ATrpms - installation instructions
Fedora Core 1 Tips and Tricks
Fedora Core 2 Tips and Tricks
Fedora Core 3 Tips and Tricks
apt, yum, and up2date repository settings (configuration files) for Fedora Core 3
# Handling NTFS
New Technology FileSystem (NTFS) HOWTOs
Linux NTFS project

Last edited by fancypiper; 05-08-2005 at 01:45 AM.
 
Old 05-08-2005, 02:34 AM   #7
SML
Member
 
Registered: Dec 2002
Location: US
Distribution: Intel Clear Linux
Posts: 381

Rep: Reputation: 30
Sounds like you rebuilt the new kernel, but did you set it up to actually have access to the new kernel image with your lilo or grub booter?

Have you tried an #lsmod to see if it is loaded?

If you upgrade your kernel (partcularly a nice fat pre-built 2.6 Fedora kernel) then the sk98lin will be already loaded in.

Refer to my first email - you chose the hardest of your options in my opinion.
 
Old 05-08-2005, 08:35 AM   #8
jacobselvin
Member
 
Registered: May 2005
Location: Australia
Distribution: SUSE 10.1
Posts: 62

Original Poster
Rep: Reputation: 15
Hi,
I managed to instal the suggested driver and the NW is working fine now. I'm using Red hat linux 9 kernel version 2.4.20-8. If I want to upgrade my kernel version which version can I upgrade to. Can I upgrade to a kernal version 2.6.11-8 (which seems to be latest stable version)? Or I can only upgrade to latest 2.4.X-X? If I upgrade to 2.6.11-8 will my applications (that I installed along with RedHat 9 i.e web server, DNS, My SQL etc) have any compatibility issue?
Thanx,
- Jacob
 
Old 05-08-2005, 08:48 AM   #9
SML
Member
 
Registered: Dec 2002
Location: US
Distribution: Intel Clear Linux
Posts: 381

Rep: Reputation: 30
Not sure.

But if you follow the set-up guidelines, when you boot up you can just select any kernel image.

For example, your grub or lilo would list:
2.4.20-8
2.6.11-8
Plus any other custom kernels that you may set-up yourself.

Therefore there is no harm in trying! The worst that will happen is that it will fail and you wil have to press 'reset' and then just go back to your 2.4.20.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I install a new nvidia driver in Linux? GameGuru Linux - Newbie 11 07-10-2005 12:30 AM
New to linux how do i install a program or driver? brilliantchef2 Linux - Software 7 06-20-2004 11:40 AM
Linux Driver Install alex101 Linux - Wireless Networking 1 05-29-2004 10:53 AM
How do I install a driver into linux golpemortal Linux - Laptop and Netbook 16 11-15-2003 11:03 AM
How to install driver Ethernet card in Linux kernel 2.4.10 truong van lich Linux - Software 1 07-29-2003 02:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration