LinuxQuestions.org
Visit Jeremy's Blog.
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 06-18-2003, 08:07 PM   #1
virgin
Member
 
Registered: Jun 2003
Location: Pgh, PA
Distribution: debian
Posts: 50

Rep: Reputation: 15
source install / modem ambition


hello.
running rh9 working hard to get my winmodem running.
I have 2.4.20-6 but no file kernel-sources-2.4.20-6.rpm,
which, (I have been advised I need), to configure my pctel modem.

so I download the rpm's kernel-source-2.4.20-8.i386.rpm and
kernel-2.4.20-8.i686.rpm and I have every intenttion to rpm them....but I have questions.

I am not sure if I want to rpm -Uvh them or -something else?

I also am not sure WHERE (which directory should I stick them) to do this right?

I also would like to know if I am going to need hundreds of MB of other files in order to make my dual boot work again?

I would love to read the whole rute book from the linux side!
am I headed in the right direction?
please advise.
 
Old 06-18-2003, 08:36 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
You need the same source code as the kernel you are running and you downloaded the wrong one for your system, I think

If you have your install cds, I would install the kernel-source-<your running kernel version number>rpm

# Find running kernel version
uname -r

The running kernel and source must be the same for the modem module to compile/install correctly.

I wrote this up in the tips thread:

# Compiling kernel modules
You will need to have installed:
1. The developmental packages (compiler)
2. The kernel source code
3. The module source or install code

Check out your system and see what's 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:
[phil@uilleann phil]$ su -
Password: 
[root@uilleann root]# uname -r
2.4.18-3
[root@uilleann root]# cd /usr/src
[root@uilleann 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.18-3
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.18-3
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@uilleann src]#
Mu running kernel is 2.4.18-3 and I have the same kernel version source code installed in the directory /usr/src/linux-2.4.18-3 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.

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, so I may as well make one now to save editing the files in the source code to install.So, I'll make it just now:
Code:
[root@uilleann src]# ln -s linux-2.4.18-3 linux         
[root@uilleann 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.18-3
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.18-3
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.18-3
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@uilleann src]#
Ah, there it is, so that's done.

Next, did I install the compiler?
Code:
[root@uilleann 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@uilleann 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 comiling. Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing.

# Guides to software and installation and uninstallation
LNAG - How do I install a program I downloaded from the Internet?
Rute Guide's software explanation
You might want to check out CheckInstall to manage source code installations/uninstallation

# Redhat links
RedHat Linux Manuals
Get your mp3 support here
Maximum RPM
rpmfind
Easier software management: apt4rpm - Red Carpet
RedHat 8.0 Tips & Tricks

# Redhat 7.3 down configuration commands
setup leads to several configuration tools

# Redhat 7.3 up configuration commands
Configure soundcard:
redhat-config-soundcard
Configure X server:
redhat-config-xfree86
Configure network:
redhat-config-network

Last edited by fancypiper; 06-18-2003 at 08:50 PM.
 
Old 06-18-2003, 08:43 PM   #3
virgin
Member
 
Registered: Jun 2003
Location: Pgh, PA
Distribution: debian
Posts: 50

Original Poster
Rep: Reputation: 15
hey thanks , but...
the problem is that that file kernel-source-2.4.20-6.i386.rpm does not exist as best I can tell, believe me I would use it if anywone knew where it was!!

I ran into a thread in here where someone was hacving a similar prob and someone avdised her to... well here's what he/she said:

Well, i'd suggest upgrading the kernel and using the correct sources for that. Don't worry, upgrading RH kernel is a piece of cake

Go get the correct kernel for your version of Red Hat at https://rhn.redhat.com/errata/RHSA-2003-172.html

Just download kernel-2.4.20-x.i686.rpm and the file kernel-source-2.4.20-x.i386.rpm (source is in the i386 section).

then follow the instructions at the bottom, being:
rpm -ivh <yournewkernel>
rpm -ivh <andthesources>

is this true, and if so where should I put those two rpm's
i have the feeling there is more to going from -6 to -8 thean just those 40+ MB's????
 
Old 06-18-2003, 08:53 PM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Again, the kernel source must match your running kernel

Command this to find what kernel you are running:

uname -r

Look for kernel-source-<yourversion>.rpm on your install cds.

If you go with downloads, get both kernel and kernel source of the same version, rpm -Uvh them and re-boot
 
Old 06-18-2003, 09:05 PM   #5
virgin
Member
 
Registered: Jun 2003
Location: Pgh, PA
Distribution: debian
Posts: 50

Original Poster
Rep: Reputation: 15
yep that file is not on the cds and I can't seem to find em
 
Old 06-18-2003, 09:05 PM   #6
virgin
Member
 
Registered: Jun 2003
Location: Pgh, PA
Distribution: debian
Posts: 50

Original Poster
Rep: Reputation: 15
online that is...
I am running 2.4.20-6
 
Old 06-18-2003, 09:08 PM   #7
virgin
Member
 
Registered: Jun 2003
Location: Pgh, PA
Distribution: debian
Posts: 50

Original Poster
Rep: Reputation: 15
one hit on google/linux
I can't detect my ethernet card : LinuxQuestions.org time based ...
... the package should be called kernel-source-2.4.20-6.i386.rpm ... you
can also try the search function on Red Hat's download page. ...
www.linuxquestions.org/questions/ archive/18/2003/05/4/33441 - 92k - Cached
 
Old 06-18-2003, 09:13 PM   #8
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
did you browse all 3 cds to look? I am not going to go get my cds.

If you have the install cds, you have both the kernel and the kernel source
 
Old 06-18-2003, 09:21 PM   #9
virgin
Member
 
Registered: Jun 2003
Location: Pgh, PA
Distribution: debian
Posts: 50

Original Poster
Rep: Reputation: 15
I only have 2 cd;s I have heard rumur it is expected to be on 2.... I am quite sure it is not on either of the 2 cd's I have.
I got the disks from a (stupid) book that is totally useless... maybe that is my problem, but I cant seem to find any reference to kernel-source-2.4.20-6.i386.rpm ANYWHERE!!!
I know it is not on my (2) disks searched em' twice.
I search google for kernel-source-2.4.20-6.i386.rpm and all i find is a thread on this site which tells her to upgrade to
2.4.20-8...
I have no pride on this subject whatsoever!!!!
I am just confused!
 
Old 06-18-2003, 09:29 PM   #10
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Buy more CDs

# Cheap CDs
Discount Linux CDs
Linux Central
Cheapbytes
TuxCDs
ComputerHelperGuy

As I said before, get both kernel and kernel source and update, then reboot.

Check the links please

rpmfind
apt4rpm solves lots of newbie troubles....

Last edited by fancypiper; 06-18-2003 at 09:30 PM.
 
Old 06-18-2003, 09:32 PM   #11
virgin
Member
 
Registered: Jun 2003
Location: Pgh, PA
Distribution: debian
Posts: 50

Original Poster
Rep: Reputation: 15
buy more cd's?
if this file exists shouldn't it be available to download from somewhere?
 
Old 06-18-2003, 09:35 PM   #12
virgin
Member
 
Registered: Jun 2003
Location: Pgh, PA
Distribution: debian
Posts: 50

Original Poster
Rep: Reputation: 15
I don't think kernel-source-2.4.20-6.i386.rpm exists at all!
 
Old 06-18-2003, 10:09 PM   #13
virgin
Member
 
Registered: Jun 2003
Location: Pgh, PA
Distribution: debian
Posts: 50

Original Poster
Rep: Reputation: 15
but as you know....
I know nothing.

as I read this thread I see that maybe I seem less than very grateful for all of the valuable advice I have recieved here at LQ.
That is not the case.
I suppose I am just 'frustrated' HA

if anybody has seen kernel-source-2.4.20-6.i386.rpm
PLEASE tell me where she is!
 
Old 06-18-2003, 10:31 PM   #14
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
If you don't want to spend a couple of bucks for the complete set of cheap cds (I find they resolve frustrations such as yours), then go to the Red Hat site, find and download the same versions of kernel and kernel source, (the i386 ones) for your distribution number.

As root,cd to that directory that you downloaded them to and command

rpm -Uvh kernel*

Reboot

Install your modem module.

I don't know how to make it any simpler, sorry

Buying the documentation CD isn't a bad idea either.

Last edited by fancypiper; 06-18-2003 at 10:35 PM.
 
Old 08-05-2003, 01:29 AM   #15
sanki_man
LQ Newbie
 
Registered: Aug 2003
Location: India
Posts: 5

Rep: Reputation: 0
Me have got the same problem while installing "sm56" internal modem of motorola chipset. I have also got two CD set of RedHat Linux with book "Mastering Red Hat Linux" from sybex. I have been to redhat.com but its search module also produced negative results. Is there any other way to find out the relevant kernel source. 99% problem is the same as discussed above.
 
  


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
installing kernel source re 536ep modem maximillion78 Linux - Newbie 4 08-03-2004 06:59 PM
Upgrading OpenSSL rpm install to a source install userini Linux - Software 3 06-05-2004 10:23 AM
I'm installing a modem source but kernel... Mr_C Linux - Software 6 03-27-2004 01:32 PM
Mozilla Firebird: binary install or source install? hecresper Slackware 8 08-22-2003 12:46 PM
Modem Lights applet source? motyl Linux - Software 2 05-12-2003 06:15 AM

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

All times are GMT -5. The time now is 07:58 AM.

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