-   Linux - Newbie (
-   -   source install / modem ambition (

virgin 06-18-2003 08:07 PM

source install / modem ambition
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.

fancypiper 06-18-2003 08:36 PM

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:

[phil@uilleann phil]$ su -
[root@uilleann root]# uname -r
[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:

[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?

[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. :tisk: Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing. :study:

# 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
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:
Configure X server:
Configure network:

virgin 06-18-2003 08:43 PM

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

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????

fancypiper 06-18-2003 08:53 PM

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

virgin 06-18-2003 09:05 PM

yep that file is not on the cds and I can't seem to find em

virgin 06-18-2003 09:05 PM

online that is...
I am running 2.4.20-6

virgin 06-18-2003 09:08 PM

one hit on google/linux
I can't detect my ethernet card : 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. ... archive/18/2003/05/4/33441 - 92k - Cached

fancypiper 06-18-2003 09:13 PM

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

virgin 06-18-2003 09:21 PM

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
I have no pride on this subject whatsoever!!!!
I am just confused!

fancypiper 06-18-2003 09:29 PM

Buy more CDs

# Cheap CDs
Discount Linux CDs
Linux Central

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

Check the links please

apt4rpm solves lots of newbie troubles....

virgin 06-18-2003 09:32 PM

buy more cd's?
if this file exists shouldn't it be available to download from somewhere?

virgin 06-18-2003 09:35 PM

I don't think kernel-source-2.4.20-6.i386.rpm exists at all!

virgin 06-18-2003 10:09 PM

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!

fancypiper 06-18-2003 10:31 PM

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*


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. :study:

sanki_man 08-05-2003 01:29 AM

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 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.

All times are GMT -5. The time now is 11:49 AM.