Page 1 of 1

Mageia compile kernel cmd

PostPosted: Oct 18th, '11, 22:38
by truls
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?

Re: Mageia compile kernel cmd

PostPosted: Oct 19th, '11, 01:14
by doktor5000
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

Re: Mageia compile kernel cmd SOLVED

PostPosted: Oct 19th, '11, 18:33
by truls
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!