Thursday, April 7, 2011

Compile Linux Kernel

$ wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.24.tar.gz
$ tar -xzf linux-2.6.24.tar.gz
$ cd linux-2.6.24
$ make menuconfig
$ make -j4
$ make modules_install /* Remember to do this */
$ sudo make install

FAQ
1. remember to install ncurses-devel for make menuconfig
2. install qt-devel for make xconfig

useful link about kernel compile:
http://www.cs.columbia.edu/~junfeng/10sp-w4118/hw/hw2.html

Some problems I had:
1. Compile kernel on Ubuntu with gcc version 4.6
Because gcc-4.6 doesn't support soemthing, it need to downgrade to gcc (e.g version 4.4)
How to downgrade gcc, please see here

No comments: