編譯自己功能定製的Fedora7核心

來源:互聯網
上載者:User


編譯自己功能定製的Fedora7核心 第一步:從 http://www.kernel.org/pub/ 下載需要的核心版本 我照舊先下載一個和系統版本一樣的核心源碼下來然後  www.2cto.com  #cp  ~/Downlocd/linux-2.6.21.tar.gz  /usr/src#cd /usr/src#tar -xzf  linux-2.6.21.tar.gz第二步:#cp /boot/config-2.6.21-1.3194.fc7  ./.config然後運行make oldconfig,make oldconfig會提示新核心中出現的新配置選項,舊的配置選項使用原有的.config中的配置。
 再運行make menuconfig查看都選中了什麼配置選項,根據自己的需要勾選或者去掉某些選項。第三步:  www.2cto.com  運行make第四步:安裝編譯模組#make modules_install第五步:# cp    /usr/src/linux-2.6.21/arch/i386/boot/bzImage     /boot/vmlinuz-2.6.21 # cp   /usr/src/linux-2.6.21/System.map     /boot/System.map-2.6.21
 第六步:製作initrd-2.6.21.img#cd /boot#mkinitrd  /boot/initrd-2.6.21.img  2.6.21(備忘:Ubuntu/Debian下是用mkintramfs.用法如下所示:           mkintramfs 2.6.21  -o  /boot/initrd-2.6.21.img其中2.6.21為/lib/modules下的相應核心目錄名稱.)第七步:修改檔案/boot/grub/grub.conf添加新核心的啟動項,title Fedora (2.6.21-1.3194.fc7)    root (hd0,7)  www.2cto.com      kernel /boot/vmlinuz-2.6.21-1.3194.fc7 ro root=LABEL=/ rhgb quiet vga=792    initrd /boot/initrd-2.6.21-1.3194.fc7.imgtitle Fedora (2.6.21)    root (hd0,7)    kernel /boot/vmlinuz-2.6.21 ro root=LABEL=/ rhgb quiet    initrd /boot/initrd-2.6.21.img 備忘:筆者使用的台式機的有線網卡是marvell的型號marvell-88E8057,所以去marvell官網下載驅動,不確定在核心裡面是否能支援,能用了就不管了。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.