Talk:Kernel
From Gentoo Linux Wiki
hints:
- to get an initially running kernel assuming gentoo liveCD:
# cd /usr/src/linux # zcat /proc/config.gz > /usr/src/linux/.config # make oldconfig
- to prevent my /boot from cluttering up I like an alternative setup:
/boot/boot # symlink ;o) /boot/grub/ /boot/2.6.12-gentoo-r10/ # directory with all 2.6.12-r10 files /boot/2.6.12-gentoo-r10/System.map /boot/2.6.12-gentoo-r10/config /boot/2.6.12-gentoo-r10/kernel /boot/2.6.12-gentoo-r9/ # directory with all 2.6.12-r9 files /boot/2.6.12-gentoo-r9/System.map /boot/2.6.12-gentoo-r9/config /boot/2.6.12-gentoo-r9/kernel
- my notes on how to compile a new kernel
mount /boot
cd /usr/src
ln -s <some_kernel_version> ./linux
cd linux
cp /boot/<running_kernel_version>/config .config
make oldconfig # use .config file from another kernel
make menuconfig
make && make modules_install && emerge shfs
MY_VERSION=2.6.my-kernel
cp -i arch/i386/boot/bzImage /boot/${MY_VERSION}/kernel # normal kernel build
cp -i vmlinuz /boot/${MY_VERSION}/vmlinuz # xen kernel build
cp -i System.map /boot/${MY_VERSION}/System.map
cp -i .config /boot/${MY_VERSION}/config
vi /boot/grub/grub.conf
Hope this helps, --Jhendrix 22:29, 19 December 2005 (GMT)
[edit] Merging HOWTO_Install_Gentoo_Linux:_Kernel with HOWTO_Compile_a_Kernel_Manually
I think, we should merge those two pages. It'd be less confusing to have only one article on how to compile the kernel. What do you think?
