$ sudo su
$ cd ~/Desktop
$ cp linux-2.6.27.7.tar.gz /usr/src/
$ cd /usr/src/linux-2.6.27.7
$ make mrproper
$ make menuconfig
$ make -j2
$ make install
$ make modules_install
$ ln -s /boot/vmlinuz-2.6.27.7 /vmlinuz-2.6.27.7
$ mkinitramfs -o /boot/init.img-2.6.27.7 /lib/modules/2.6.27.7
$ ln -s /boot/init.img-2.6.27.7 /init.img-2.6.27.7
$ gedit /boot/grub/menu.lst
最后一步添加grub:
ubuntu实例:
添加如下信息:("uuid"和"root"可以拷贝原来的配置信息)
title linux kernel 2.6.27.7
uuid bdce929d-3c0b-4f10-aeb7-76b0fb8b62cd
kernel /vmlinuz-2.6.27.7 root=UUID=1d668bc0-d6b1-4798-8173-b05b65e925e7 ro quiet splash
initrd /initrd.img-2.6.27.7
quiet
title linux kernel 2.6.27.7 (recovery mode)
uuid bdce929d-3c0b-4f10-aeb7-76b0fb8b62cd
kernel /vmlinuz-2.6.27.7 root=UUID=1d668bc0-d6b1-4798-8173-b05b65e925e7 ro single
initrd /initrd.img-2.6.27.7
分享到:
相关推荐
linux-kernel编译总结 我的亲身体验
Linux4.4.84 kernel编译步骤,从顶层Make file到kbuild
3882页Linux Kernel Documentation; Linux Kernel官方文档
Linux Kernel Development details the design and implementation of the Linux kernel, presenting the content in a manner that is beneficial to those writing and developing kernel code, as well as to ...
linux kernel 的编译指导,包括下载内核代码,内核代码解压,编译内核,配置开机菜单,更新grup引导。
Linux Kernel Development.pdf Linux Kernel Development.pdf Linux Kernel Development.pdf
linux 内核 交叉编译,工具链已上传
The Linux kernel is one of the most interesting yet least understood open-source projects. It is also a basis for developing new kernel code. That is why Sams is excited to bring you the latest Linux ...
Linux kernel development 3rd edition, the classic good book
Linux Kernel Programming Guide.pdf
Linux Kernel核心中文手册Linux Kernel核心中文手册Linux Kernel核心中文手册Linux Kernel核心中文手册Linux Kernel核心中文手册Linux Kernel核心中文手册
Understanding the Linux Kernel 3rd Edition (English Version)
内核,是一个操作系统的核心。它负责管理系统的进程、内存、设备驱动程序、文件和网络系统,决定着系统的性能和稳定性...本文将以RedHat Linux 6.0(kernel 2.2.5)为操作系统平台,介绍在Linux上进行内核编译的方法。
Professional Linux Kernel Architecture
linux kerner的编译和配置。
Linux Kernel in a Nutshell Linux Kernel in a Nutshell
Linux Kernel 说明第三版,包括内存管理、进程、信号、文件系统等等相关说明
Linux Kernel 四库全书,进阶学习Linux内核必备推荐书
Linux Kernel Hackers' Guide Due to the fact that nearly every post to this site recently has been either by rude cracker- wannabes asking how to break into other people's systems or a request for ...