Jump to content

problems with kernel compliling?


Recommended Posts

Okay I just finally managed to get the kernel-2.6.3.13mdk-1-1mdk.src.rpm file. As per the FAQ, I moved it to /usr/src and tried to rpm -ivh the sucker.

 

When I tried that I got:

[root@maeve src]# rpm -ivh kernel-2.6.3.13mdk-1-1mdk.src.rpm
warning: kernel-2.6.3.13mdk-1-1mdk.src.rpm: V3 DSA signature: NOKEY, key ID 26752624
  1:kernel-2.6.3.13mdk     warning: user qateam does not exist - using root
warning: group qateam does not exist - using root
warning: user qateam does not exist - using root
warning: group qateam does not exist - using root
warning: user qateam does not exist - using root
warning: group qateam does not exist - using root
warning: user qateam does not exist - using root
warning: group qateam does not exist - using root
warning: user qateam does not exist - using root%)
warning: group qateam does not exist - using root
########################################### [100%]
warning: user qateam does not exist - using root
warning: group qateam does not exist - using root
warning: user qateam does not exist - using root
warning: group qateam does not exist - using root

 

then when I cd to llinux and try a

make mrproper

I get

[root@maeve linux]# make mrproper
make: *** No rule to make target `mrproper'.  Stop.

 

Am I doing anything wrong? Do I need to give up and throw the laptop into the ocean? Is it normall?

Link to comment
Share on other sites

skip that part

 

You don't need to do the make mrproper step with the 2.6.x kernel

 

For the 2.6.x kernels, once you're in the linux folder the steps you need are:

  • make menuconfig (or config, or xconfig)
  • make && make modules_install
  • cp arch/boot/bzImage /boot/vmlinuz-VERSION
  • cp System.map /boot/System.map-VERSION
  • cp .config /boot/config-VERSION
  • mkinitrd /boot/initrd-VERSION VERSION
  • edit and re-run lilo

Link to comment
Share on other sites

try this: From within that directory

 

cp /boot/config-LATESTKERNELVERSION .config

 

for LATESTKERNELVERSION, look for something like 2.6.3-4 (10.0CE default) or 2.6.3-9 (recommended update shortly after CE was released)

 

Then try running it again and see what you get.

Link to comment
Share on other sites

hmmm okay in /boot I had config-2.4.21-0.13mdk (from 9.1) and config-2.6.3-7mdk (from 10.0). Copied config-2.6.3-7mdk to /usr/src/linux/.config and tried make menu config again and got the same error. . . .

 

[edit]

 

Just tried make xconfig and make config and got the same

make: *** No rule to make target `config'.  Stop.

error.

Edited by astrobabe
Link to comment
Share on other sites

[root@maeve src]# ls -la
total 37684
drwxr-xr-x   4 root root     4096 Jun  9 17:31 ./
drwxr-xr-x  13 root root     4096 Jun  7 10:46 ../
-rw-r--r--   1 root root 38526562 Jun  9 17:31 kernel-2.6.3.13mdk-1-1mdk.src.rpm
drwxr-xr-x   2 root root     4096 Jun  9 18:05 linux/
drwxr-xr-x   5 root root     4096 Jun  9 17:31 RPM/
[root@maeve src]#

Edited by astrobabe
Link to comment
Share on other sites

I thought so.

 

What is inside the linux/ folder?

 

You should see folders for each of the kernel-sources and a symlink from the latest one to the linux/ folder. You don't have that.

 

What I would do is delete the linux/ folder you have, download the kernel-source-2.6.3.13 file (the rpm, not the srpm), rpm -ivh it, then try again.

 

Also, check what bvc said. You might not have the right devel packages; although I'm not sure what packages you need.

Link to comment
Share on other sites

there's nada in the linux folder. . . so nuked that. . .here's what I get now. . .

 

[root@maeve src]# rpm -ivh kernel-source-2.6.3-13mdk.i586.rpm
error: Failed dependencies:
       glibc-devel is needed by kernel-source-2.6.3-13mdk
       ncurses-devel is needed by kernel-source-2.6.3-13mdk
       gcc is needed by kernel-source-2.6.3-13mdk

Link to comment
Share on other sites

ok, that's a start at least.

 

Try this:

 

urpmi glibc-devel ncurses-devel gcc

 

Then try the rpm -ivh again and it should work. Anytime you get a failed dependency, try to get it with urpmi. Chances are the file you need is on your disks, so it's always a great place to start.

Link to comment
Share on other sites

ehh i just installed those and started the rpm -ivh kernel-source again. (though I am annoyed as I've tried multiple times with Mandrake's package tool to get gcc on my computer)

 

It was preparing just a second ago and now is displaying something about 1-kernel-souce.

ohhh now it's done and has spit me a command line again. . .

Link to comment
Share on other sites

Or, if all we want to do is upgrade our kernel... why not just download the latest .mdk kernel and

rpm -ivh kernel-2.6.3-13mdk.i586.rpm

and reboot into the new kernel then ? Don't really need the sources (or those dev packages), unless you plan on compiling more stuff or a nvidia kernel.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...