zoukankan      html  css  js  c++  java
  • fedora 内核升级

    1.下载linux内核 ftp kernel.org

    2.解压内核,进入内核目录

    3.make mrproper:是目录下的源代码恢复到原先的无污染状态

    4.make clean 净化内核

    5.make dep 取消内核之间的连接关系

    6.make menuconfig 配置内核

    7.make bzImage 编译内核 把bzImage移动到/boot/下,

    8.make  modules 编译模块

    9.make modules_install 安装内核(在/lib/modules 目录下将有你的模块)

    10.cd /boot目录 mkinitrd -v /boot/initrd-2.6.x.img  2.6.x (第一个参数是你的initrd名称,第二个参数是/lib/modules/下模块安装文件夹)

    11.进入grub目录,修改menu.1st 添加内核路径和initrd路径

    12重新启动目录

    13 uname -a查看内核版本

    注意:内核版本升级的跨度不能太大,如果跨度太大就容易出错

    grub menu.lst样板

    # grub.conf generated by anaconda
    #
    # Note that you do not have to rerun grub after making changes to this file
    # NOTICE: You have a /boot partition. This means that
    # all kernel and initrd paths are relative to /boot/, eg.
    # root (hd0,0)
    # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
    # initrd /initrd-version.img
    #boot=/dev/sda
    default=0
    timeout=10
    splashimage=(hd0,0)/grub/splash.xpm.gz
    #hiddenmenu
    title Fedora Core 2.6.11-1.1369_FC4
    root (hd0,0)
    kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
    initrd /initrd-2.6.11-1.1369_FC4.img
    title linux-2.6.38_LR
    root (hd0,0)
    kernel /vmlinuz-2.6.11.lr ro root=/dev/VolGroup00/LogVol00 rhgb quiet
    initrd /initrd-2.6.11.lr.img
    title linux-2.6.12
    root (hd0,0)
    kernel /vmlinuz-2.6.12 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
    initrd /initrd-2.6.12.img

  • 相关阅读:
    [日料探店] 食一料理
    工地英语
    C++20协程解糖
    C++20协程解糖
    C++20协程解糖
    单表操作
    数据库查询语句罗列
    数据库简易介绍
    mysql的常用操作
    css基础
  • 原文地址:https://www.cnblogs.com/spinsoft/p/2555843.html
Copyright © 2011-2022 走看看