將焦點鎖定在 OpenBMC 啟動日誌中定義的五大關鍵分區,這五個分區共同構成了一個精密且具有高度容錯能力的伺服器管理大腦。 1. 虛擬殼驅動區 (QEMU & U-Boot 啟動) 硬體初始化:系統由 qemu-system-arm 指令喚醒,這並非在實體機上,而是在軟體模擬器中為系統打造一個虛擬物理軀殼。 記憶體配額:U-Boot 會確認硬體資訊(如 AST2500 晶片),並在 256MB 總記憶體中切分 64MB 給 VGA 顯示使用,剩餘 192MB 供系統主機使用。 2. 安全驗證與信任鏈區 (Secure Boot) SHA256 完整性檢查:在載入 Linux 核心前,系統會連續執行三次 SHA256 OK 驗證,分別檢查核心、Ramdisk 與硬體藍圖。 建立信任根:此分區的核心任務是確保即將接管系統的核心是「原廠正品」,防止駭客在 Flash 中植入惡意程式碼。 3. Linux 核心與硬體驅動區 (Kernel Space) 硬體藍圖解析:Linux 核心根據 Device Tree (硬體藍圖) 喚醒各項驅動程式,即便遇到記憶體重疊 (Overlap) 的小瑕疵,核心仍能展現韌性優雅地繼續運作。 啟動維生系統:此階段會開啟 NCSI 網路介面以及 12 組 I2C 通道,這 12 組通道如同「維細血管」,負責傳輸全機的溫度、風扇轉速與電壓數據。 4. 檔案系統防護區 (ROFS 與 RWFS) 雙層保險設計: ROFS (唯讀層):將核心韌體鎖在像保險箱一樣的唯讀空間,確保核心邏輯永遠完好無損。 RWFS (讀寫層):僅開放微小的區域給使用者修改設定。 防變磚機制 (Anti-Brick):若使用者改壞設定,系統只要清空讀寫層並從唯讀保險箱重啟,就能像「鳳凰涅槃」般復活,避免昂貴的伺服器變成報廢磚塊。 5. 指揮調度與狀態監控區 (User Space & D-Bus) 硬體看門狗 (Watchdog):設定兩分鐘硬體倒數,若軟體發生當機未能定時「踢狗 (Kick the dog)」,看門狗會直接從物理層級強制重置系統。 D-Bus 總指揮:當 D-Bus 系統總線上線後,數十個微服務 (Daimons) 會以「狀態廣播」而非「死等時間」的方式開始協作,最終導向登入畫面。 6. U-Boot Start up log U-Boot 2019.04 (Feb 19 2026 - 01:11:22 +0000) SOC : AST2500-A1 RST : Power On 2nd Boot : Enable LPC Mode : SIO:Enable : SuperIO-2e Eth : MAC0: RMII/NCSI, , MAC1: RMII/NCSI, Model: Romulus BMC DRAM: 192 MiB (capacity:256 MiB, VGA:64 MiB, ECC:off) MMC: Loading Environment from SPI Flash… SF: Detected n25q256a with page size 256 Bytes, erase size 4 KiB, total 32 MiB OK In: serial@1e784000 Out: serial@1e784000 Err: serial@1e784000 Net: ftgmac100_probe - NCSI detected Warning: ethernet@1e660000 (eth0) using random MAC address - ee:45:b4:fc:bb:18 eth0: ethernet@1e660000 Hit any key to stop autoboot: 0 ## Loading kernel from FIT Image at 20080000 … Using 'conf-aspeed-bmc-opp-romulus.dtb' configuration Trying 'kernel-1' kernel subimage Description: Linux kernel Type: Kernel Image Compression: uncompressed Data Start: 0x20080138 Data Size: 3066104 Bytes = 2.9 MiB Architecture: ARM OS: Linux Load Address: 0x80001000 Entry Point: 0x80001000 Hash algo: sha256 Hash value: 3f28539c75746f41f136503727027eb1156c82228f1c721fa3087dd83899c95b Verifying Hash Integrity … sha256+ OK ## Loading fdt from FIT Image at 20080000 … Using 'conf-aspeed-bmc-opp-romulus.dtb' configuration Trying 'fdt-aspeed-bmc-opp-romulus.dtb' fdt subimage Description: Flattened Device Tree blob Type: Flat Device Tree Compression: uncompressed Data Start: 0x2036cb48 Data Size: 33604 Bytes = 32.8 KiB Architecture: ARM Hash algo: sha256 Hash value: a3ec11c5fc2eea79f555edf7d6ba71576ac160017b980137fb1c0ddc0f98cec8 Verifying Hash Integrity … sha256+ OK Booting using the fdt blob at 0x2036cb48 Loading Kernel Image … OK Loading Ramdisk to 89e6f000, end 89f95bf0 … OK Loading Device Tree to 89e63000, end 89e6e343 … OK Starting kernel … [ 0.756128] 5 fixed-partitions partitions found on MTD device bmc [ 0.756496] Creating 5 MTD partitions on "bmc": [ 0.756981] 0x000000000000-0x000000060000 : "u-boot" [ 0.758702] 0x000000060000-0x000000080000 : "u-boot-env" [ 0.759992] 0x000000080000-0x0000004c0000 : "kernel" [ 0.761892] 0x0000004c0000-0x000001c00000 : "rofs" [ 0.763161] 0x000001c00000-0x000002000000 : "rwfs" rofs = mtd4 squashfs rwfs = mtd5 jffs2 [ 3.921819] systemd[1]: systemd 259.5 running in system mode -- Hosting provided by SoundOn