PDA

View Full Version : FAQ: doing custom 2.6.1 kernel out of arjanv's kernel-source


feenixx
2004-02-03, 11:54 AM CST
this is how I built & installed my 2.6.1 vanilla kernel :

1. grab kernel-source rpm from arjav's rpm repo
http://people.redhat.com/arjanv/2.6/RPMS.kernel/

2. do rpm -ivh kernel-source

3. excute 'echo '%debug_package %{nil}' >>~/.rpmmacros'
so rpmbuild won't fail at the end when kernel-debuginfo isn't installed.

4. go in the 2.6.1 kernel source directory (/usr/src/linux-2.6.1-x.xxx)

5. we will clone arjanv's kernel first, so 'cp configs/kernel-2.6.1-i686.config ./.config'
for smp architechture copy corresponding smp.config file. (or if you've already
installed corresponding kernel RPM's, or want just to enable NTFS support you can
use config-2.6.1-xxx file found from '/boot' dir too).

6. excute 'make oldconfig' which will do exact copy of arjanv's kernel using .config file

7. make xconfig (or menuconfig, or other )

9. you can enable NTFS support from here. I disabled 4GB support and set processort
family to athlon aswell.

10. if you modify anything, save changes to .config and then quit

11. execute 'make rpm' to start building customized rpm

12. you should have working 2.6.1 kernel .rpm with ntfs support enabled
in /usr/src/redhat/RPMS/ soon ;)

some very useful info regarding 2.6 kernel installation, applies to 2.6.1 too.
http://www.fedoranews.org/jorge/howto/howto01.shtml

feenixx
2004-02-03, 12:08 PM CST
oh almost forgot,, you have to make initrd manually..

cd /boot
mkinitrd -v initrd-kernelversion.img kernelversion

where kernelversion is new kernel you just installed.

vorte[x]
2004-02-03, 06:38 PM CST
Can you edit your topic's subject and prefix it with FAQ: - It'll make it clear this is not a support issue, but rather you sharing with the community. 8)