1. Download the required kernel source from kernel.org
2. make menuconfig
3. make ARCH=i386 CROSS_COMPILE=</usr/bin/>
4. make ARCH=i386 CROSS_COMPILE=</usr/bin/> modules
5. make ARCH=i386 CROSS_COMPILE=</usr/bin/> install [This will create your kernel version vmlinux , system.map files in /boot
6. make ARCH=i386 CROSS_COMPILE=</usr/bin/> modules_install [ this will install modules in /lib/modules/<your kernel version>
To create initrd.img file
1. Go to ../boot folder
2. run mkinitramfs -o <initrd.img-[version]> <version> [ex: initrd.img-2.6.36 2.6.36]
3 copy initrd.img-<version> to /boot
7. run script /usr/sbin/grub-mkconfig
8. run update-grub to (add your kernel to grub.conf)
9. reboot and select your kernel
2. make menuconfig
3. make ARCH=i386 CROSS_COMPILE=</usr/bin/>
4. make ARCH=i386 CROSS_COMPILE=</usr/bin/> modules
5. make ARCH=i386 CROSS_COMPILE=</usr/bin/> install [This will create your kernel version vmlinux , system.map files in /boot
6. make ARCH=i386 CROSS_COMPILE=</usr/bin/> modules_install [ this will install modules in /lib/modules/<your kernel version>
To create initrd.img file
1. Go to ../boot folder
2. run mkinitramfs -o <initrd.img-[version]> <version> [ex: initrd.img-2.6.36 2.6.36]
3 copy initrd.img-<version> to /boot
7. run script /usr/sbin/grub-mkconfig
8. run update-grub to (add your kernel to grub.conf)
9. reboot and select your kernel
No comments:
Post a Comment