(1) cp/boot/config-' uname-r '. config
Copy your own configuration (Ubuntu system installed from the ISO CD) to the kernel source
(2) Make Menuconfig
The configuration of the source code may not be able to run up, if not up, you can configure a number of options, such as the mouse does not move, it is necessary to configure the HID side of the drive, the network is different, it is necessary to configure the next Nic section, and then save the configuration. config
(3) Make-j10
-j10 Just for faster
(4) Make install kernel, mainly generate kernel image
(5) Make modules compiler driver
(6) Make Modules_install install driver
(7) Mkinitramfs-o/boot/initrd.img-3.18.3/lib/modules/3.18.3
/lib/modules/If there is no 3.18.3, may be error, create your own manually (mkdir/lib/modules/3.18.3)
(8) Change Grub:
Modify/boot/grub/grub.conf to the current kernel, such as:
[email protected]:~$ cat/boot/grub/grub.cfg
Set timeout=5
linux/boot/vmlinuz-3.18.3 root=/dev/sda1 ro text console=tty0 console=ttys0,115200n8
initrd/boot/initrd.img-3.18.3
Boot
Here you need to see what your image name is and need to correspond.
Here please refer to my blog Grub & MBR topic related articles
http://blog.csdn.net/xiangpingli/article/details/42183219
(9) Reboot to see, has booted to the new kernel
This process refers to the Linux kernel API full reference Manual, recommends that the kernel development or driver development novice to buy a copy, the veteran also suggested to buy, unless it is a very high master
Linux kernel Update Method--take Ubuntu as an example