LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Mandrake 9.2 Kernal source code (https://www.linuxquestions.org/questions/linux-general-1/mandrake-9-2-kernal-source-code-117853/)

Penguin666 11-19-2003 12:10 PM

Mandrake 9.2 Kernal source code
 
I am searching all around in Mandrake 9.2 for the linux kernal source code.

Where I would expect it "/usr/src/" it is not there.
The only object that is in this directory is another directory named "RPM".

Where is the linux source code for the kernal? Does it not get installed by default?


Thank you.

Penguinn666:confused:

trickykid 11-19-2003 01:22 PM

In some cases its not installed. You can find it off your Mandrake cd's or possibly download it from the net, etc.

tcaptain 11-19-2003 01:22 PM

Unfortunately I think it was excluded from the download edition (and maybe the powerpack...I'm not sure). There was a long thread about this on some of the mandrake mailing lists.

Either way, the kernel source rpms are available on most of the mandrake mirrors or through URPMI.

I just installed Mdk9.2 myself...but I haven't had time to go and look into the kernel source situation.

fancypiper 11-19-2003 01:40 PM

try this command

urpmi kernel-source

Penguin666 11-19-2003 06:07 PM

Getting somewhere....
 
Thanks for all your help so far! :)

I have hit another snag.
I have downloaded the source from here "http://rpmfind.net/linux/RPM/mandrake/updates/9.2/RPMS/kernel-source-2.4.22-21mdk.i586.html"

after running rpm installer, I fall into the following hole:

[root@PENGUIN666 temp]# rpm -iv kernel-source-2.4.22-21mdk.i586.rpm
warning: kernel-source-2.4.22-21mdk.i586.rpm: V3 DSA signature: NOKEY, key ID 22458a98

[1]+ Stopped rpm -iv kernel-source-2.4.22-21mdk.i586.rpm
[root@PENGUIN666 temp]#


It seems to hang, so I kill it?

Any suggestions on what the problem might be?

Cheers.

fancypiper 11-19-2003 06:15 PM

control-c should kill it.

Is your download good? Did the md5sum check OK?

The command:

urpmi kernel-source

should download and install it (or get it from the CD) for you automatically.

# Mandrake links
Mandrake home page
Mandrake Users website
Easy urpmi config for Mandrake
urpmi mini-HOWTO
Easy software management: Red Carpet
Maximum RPM
rpmfind
You didn't install the developmental packages? As root, command:
urpmi gcc
An Introduction to the Midnight Commander. You can install it by commanding:
urpmi mc
Midnight Commander home page

Penguin666 11-19-2003 07:06 PM

MD5Sum. Hmm *cough* *cough*. I know what it is, but how does it work. How do I run a checksum on the file I downloaded, and where do I get the checksum from to run it against the downloaded file?

CTRL-Z is what I used, CTRL-C doesn't seem to work...

No luck on the "urpmi" command
[root@PENGUIN666 etc]# urpmi kernel-source
no package named kernel-source
[root@PENGUIN666 etc]#

Cheers again.

fancypiper 11-19-2003 07:17 PM

md5sum path/to/<filename> should return a checksum of that file. Compare that to the md5sum at the site you downloaded from.

Try this

urpmi kern

Look through the returned list and select the one that looks most like kernel-source.

It should match your running kernel unless you are building a new kernel.

# Find running kernel version
uname -r

I get:

Wed Nov 19 08:21 PM root@tinwhistle / # urpmi kern
The following packages contain kern: kernel-alert ksymoops kernel-source kernel-2.4.19.35mdk kernel-linus2.4 kernel-BOOT-2.4.19.16mdk kernel-doc-pdf kernel-smp-2.4.19.16mdk kernel-2.4.19.16mdk kernel-doc linuxconf kernel-doc-ps kernel-BOOT-2.4.19.35mdk fortune-kernelcookies kernel-enterprise-2.4.19.16mdk R-recommended kernel-enterprise-2.4.19.35mdk kernel22-source kernel-secure-2.4.19.16mdk kernel-smp-2.4.19.35mdk kernel-doc-html kernel-headers libwine1 wine initscripts kernel22-smp kernel-linus2.2 pcmcia-cs kernel22 kernel-secure-2.4.19.35mdk

I would command:

urpmi kernel-source

Penguin666 11-19-2003 07:45 PM

[root@PENGUIN666 /]# urpmi kerne
The following packages contain kerne:
kernel-2.4.22.10mdk
kernel-doc
kernel-doc-html
kernel-doc-pdf
kernel-doc-ps
kernel-enterprise-2.4.22.10mdk
kernel-i686-up-4GB-2.4.22.10mdk
kernel-p3-smp-64GB-2.4.22.10mdk
kernel-secure-2.4.22.10mdk
kernel-smp-2.4.22.10mdk
kernel2.4-marcelo


Odd, I am not getting anything that remotely references "source"

After running "uname -r" I receive the following:

[root@PENGUIN666 etc]# uname -r
2.4.22-10mdk
[root@PENGUIN666 etc]#

Running the checksum left me with a totally different hex value. Way off to be exact.
I will try downloading it again, and rerunning the MD5sum.

I'll keep you posted. Any thoughts on the urpmi issue?
Thanks again for all your help.

fancypiper 11-19-2003 07:56 PM

If you haven't re-configured urpmi, all it knows about are your CDs. Perhaps the CDs don't contain the kernel source (Which I have never experienced). Did you have all the install CDs?

Easy urpmi config for Mandrake


All times are GMT -5. The time now is 09:16 PM.