Mageia compile kernel cmd

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

Mageia compile kernel cmd

Postby truls » Oct 18th, '11, 22:38

I need some quick advice on compiling a custom kernel, I have downloaded the stable source (3.0.4) from kernel org, and the compile/install went well, but several hardware (e.g. bluetooth wlan etc) did not work. I know fairly well what hardware i need to enable, but I must have missed the Mageia way of doing this?

Here is what I did:
get the source from kernel org
unpack in /usr/src
symlink /usr/src/linux-source /usr/src/linux
cd /usr/src/linux
copy .config from boot
make clean && make mrproper
make menuconfig
..some small adjustments
make rpm
rpm -ivh the-new-kernel
updated bootloader

Maybe I have missed some important command, as wlan/bluetooth drivers didn't work? Anyone?
truls
 
Posts: 52
Joined: Aug 12th, '11, 08:43

Re: Mageia compile kernel cmd

Postby doktor5000 » Oct 19th, '11, 01:14

truls wrote:copy .config from boot
make clean && make mrproper
make menuconfig

If done in this order, your .config was directly wiped out after you copied it in the next step, and you get a default config.

This should be it:
Code: Select all
make clean && make mrproper
copy .config from boot
make oldconfig
make menuconfig
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Mageia compile kernel cmd SOLVED

Postby truls » Oct 19th, '11, 18:33

OK, a new try, this is how I did it:
zcat /proc/config.gz > .config
make oldconfig
(pressed enter on the following questions..)

make menuconfig
load .config
exit from menuconfig saving changes

make
make modules_install
make install

Rebooted in my new kernel (3.0.4 stable) - and it works.

Here is a link to a kernel compiling howto, even if its slackware we can also learn how to enhance our Mageia systems :
http://alien.slackbook.org/dokuwiki/dok ... elbuilding

If I had the skills I would have made a nice howto on this topic..

Thanks to doktor pointing me in the right direction!
truls
 
Posts: 52
Joined: Aug 12th, '11, 08:43


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest