【轉】Linux CentOS核心編譯:下載CentOS源碼、編譯2.6.32-220的錯誤(apic.c:819 error 'numi_watchdog' undeclared)

來源:互聯網
上載者:User

標籤:

一、下載CentOS源碼

1.1 查看CentOS版本

        cat /etc/issue

1.2 查看Linux核心版本

        uname -r

1.3 下載

        檔案名稱:kernel-2.6.32-220.el6.src.rpm

        :http://vault.centos.org/6.2/os/Source/SPackages/

        官網:http://vault.centos.org/

1.4 從kernel-2.6.32-220.el6.src.rpm擷取源碼

        1. rpm -i kernel-2.6.32-220.el6.src.rpm

        2. 在/root/rpmbuild/SOURCES目錄下回產生:linux-2.6.32-220.el6.tar.bz2

        3. tar jxvf linux-2.6.32-220.el6.tar.bz2

 

二、編譯時間的錯誤

        編譯核心源碼:http://blog.csdn.net/guowenyan001/article/details/38704775

        會產生一個錯誤。

2.1 錯誤現象

        arch/x86/kernel/apic/apic.c:819:error:  ‘ nmi_watchdog undeclared’  (first use in thie function)

        問題解決參考:https://forums.gentoo.org/viewtopic-t-944366-start-0.html

2.2 解決辦法

        使用openvz官網的.config,不再自己配置.config,openvz官網的.config支援kgdb選項。

        openvz官網.config:http://download.openvz.org/kernel/branches/rhel6-2.6.32/042stab053.5/configs/config-2.6.32-042stab053.5.x86_64

 

參考資料:

        何處下載CentOS的Linux核心的原始碼:http://www.2cto.com/os/201404/293174.html

 

轉自:http://blog.csdn.net/guowenyan001/article/details/39376297 

【轉】Linux CentOS核心編譯:下載CentOS源碼、編譯2.6.32-220的錯誤(apic.c:819 error 'numi_watchdog' undeclared)

相關文章

聯繫我們

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