Ubuntu12.04使用最新Linux核心方法__Linux

來源:互聯網
上載者:User

Ubuntu12.04使用最新Linux核心方法

 

一、環境:

        1、虛擬機器安裝Ubuntu12.04  64位

        2、使用系統Linux版本為Linux-3.13(中間升級過一次系統)

        3、最新Linux核心Linux-4.5.0版本

二、編譯Linux核心

        1、Linux官網:https://www.kernel.org 下載最新核心Linux-4.5.0

        2、拷貝到虛擬機器先並解壓縮

        3、進入Linux核心源碼目錄

              cd /home/test/vm/kernel/linux-4.5

        4、make mrproper

        5、make localmodconfig 使用預設的配置

        6、make dep    有的機器不需要

        7、make clean

        8、make bzImage

        9、make modules

        10、sudo make modules_install

三、添加grub選項

        1、sudo make install  該操作會在/boot中產生config-4.5.0、  System.map-4.5.0、vmlinuz-4.5.0等檔案

        2、update-grub2   該操作會修改/boot/grub/grub.cfg檔案內容,添加4.5.0的啟動選擇項

        3、sudo reboot  重新啟動

四、使用

        1、在啟動過程中,會看到添加了新的選項

        2、使用uname -a命令查看核心版本資訊,會看到正在使用的為最新核心版本Linux-4.5.0

 

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.