Jump to content

Built my first kernel (2.6.11-12mdkcustom)


Guest alphaomega
 Share

Recommended Posts

Guest alphaomega

Greetings...I built my first kernel using Mandriva LE 2005 kernel source for 2.6.11.12mdk

(I hope that is phrased correctly) and I can boot with the new kernel just fine barring

anything and everything I don't know as a noobie.

 

This is what I did:

I installed the kernel source and then ran the following commands.

make mrproper

make xconfig

(for my first go at it...I left all the settings alone and went with

whatever the default setting was)

make

(I did not see any errors...just some warnings mainly having to do

with using something deprecated)

make modules_install

make install

 

The new kernel was installed in /boot and lilo was updated.

I booted using the new kernel and I am up and running.

 

And on the first try! Cool!

 

Now I just need to go through things (learn a little more)

so I can make a kernel more in tune with my actual hardware.

 

My only question at this point is this:

Is there a step I am missing in the steps above?

 

The kernel modules that were created are not zipped like the

ones from the original install of Mandriva LE 2005.

 

The modules from the original install are zipped with an

extension .gz like (sg.ko.gz) while the ones that were created

in my steps above are not zipped (sg.ko).

 

Thanks in advance for any tips...

Cheers

 

Moved to "Kernel" by theYinYeti, moderator.

Edited by alphaomega
Link to comment
Share on other sites

The gzipping in unimportant. You don't have missed a step. The only thing wrong with your approach is that you have build the exact same kernel as you got with Mandriva. You haven't gained anything (well perhaps knowledge :) )

 

Tip: the kernel configs in /boot you can open and load in xconfig.

Link to comment
Share on other sites

Guest alphaomega

I never did find a particular option for this

(getting the generated modules automatically gzipped).

 

But this appears to have worked for me:

 

cd /lib/modules/<kernelversion>

su [password]

gzip -r ./kernel

depmod -a

reboot

 

Everything appears to be working a okay...

So now I can get back to learning linux.

 

We now return to our regularly scheduled program.

 

Thanks and Cheers

Edited by alphaomega
Link to comment
Share on other sites

Hi.

 

Here is my easy guide to recompiling your kernel.

 

( I have recently found out how to do this!)

 

install kernel source

cd /usr/src/linux-version

make oldconfig

make xconfig

-- select CPU - Athlon-xp, etc

make clean

make all --- wait about 25-30 mins

make modules_install install

**done**

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