Skip to content
October 12, 2012 / alancads

Compiling Kernel 3.6.6 Stable in Linux

https://www.ibm.com/developerworks/mydeveloperworks/blogs/752a690f-8e93-4948-b7a3-c060117e8665/entry/as_novidades_do_linux_3.6

# wget -c http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.6.6.tar.bz2

# tar -jxvf linux-3.6.6.tar.bz2

# mv linux-3.6.6 /usr/src/linux-3.6.6-alan

# cd /usr/src/linux-3.6.6-alan

# make mrproper

# zcat /proc/config.gz > .config

# make oldconfig

Local version
If you are compiling a kernel using your current config file, do not forget to rename your kernel version, or you may replace your existing one by mistake.

# make menuconfig

General setup —>
(-ARCH) Local version – append to kernel release ‘3.n.n-RCn’

# make -j2

# make modules_install
# cp -v arch/x86/boot/bzImage /boot/vmlinuz-3.6.6-alan
# mkinitcpio -k 3.6.6-alan -g /boot/initramfs-3.6.6-alan.img
# mkinitcpio -k 3.6.6-alan -g /boot/initramfs-3.6.6-alan-fallback.img

# grub-mkconfig -o /boot/grub/grub.cfg

# reboot

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: