![無法啟動到新編譯的核心版本](https://rvso.com/image/726403/%E7%84%A1%E6%B3%95%E5%95%9F%E5%8B%95%E5%88%B0%E6%96%B0%E7%B7%A8%E8%AD%AF%E7%9A%84%E6%A0%B8%E5%BF%83%E7%89%88%E6%9C%AC.png)
我有一台運行 RHEL 7.5 作業系統的伺服器。系統上的內建核心版本是 4.14.0-49。我需要使用最新的可用內核,因此我下載了 Kernel 4.17.18 原始碼包並在我的系統上編譯它。現在我已經把兩個核心都準備好了。
但是,我無法啟動到新編譯的內核版本 4.17.18,當我指示它啟動時,我看到以下錯誤訊息。
error: invalid magic number.
error: you need to load the kernel first.
Press any key to continue...
這是我的伺服器上可用的啟動選項的啟動畫面。幸運的是,我仍然可以在系統上啟動到舊核心版本(4.14.0-49)。
Red Hat Enterprise Linux Server (4.17.18) 7.5 (Maipo)
Red Hat Enterprise Linux Server (4.14.0-49.el7a.aarch64) 7.5 (Maipo)
Red Hat Enterprise Linux Server (0-rescue-68f1601b5f1c4eb09734921b3db38f
我是否缺少配置步驟?
答案1
看起來您試圖aarch64
在您的工作核心所在的位置載入錯誤的體系結構核心檔案amd64
。file
在核心映像或正在運行的系統上使用命令uname -a
來查看您需要什麼架構,然後使用正確的版本。
aarch64
與 ARM 處理器相關。