Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux 程式設計 >> Linux 程式設計

開機停在 Uncompressing Linux 後的排查

移植 Linux 到 MINI6410 時,若開機停在 Uncompressing Linux... done, booting the kernel,通常代表核心已自解壓,但後續初始化失敗。常見原因包括 machine type 不匹配、序列埠驅動未編入核心、啟動參數錯誤與外部總線設定衝突。

machine type 不匹配

核心會檢查 machine type。若 Uboot 傳入的編號與核心 MACH_TYPE_MINI6410 不一致,便會啟動失敗。可檢查 include/configs/mini6410.h 與核心 generated mach-types。

序列埠驅動未編入

若核心未內建 Samsung SoC 序列埠支援,將看不到任何輸出。需在 kernel configuration 中啟用:

Samsung SoC serial support
Support for console on Samsung SoC serial port
Samsung S3C6400/S3C6410/S5P6440/S5P6450/S5PC100 Serial port support

啟動參數錯誤

常見參數如下:

noinitrd root=/dev/mtdblock4 rootfstype=jffs2 rw console=ttySAC0,115200 init=/linuxrc mem=64M

其中 console 名稱與鮑率必須正確;三星平台通常為 ttySAC0。記憶體大小也必須與實際硬體相符。

外部總線問題

若 bootloader 預先啟用並配置 GPMC 或外部總線,可能與核心初始化衝突。建議在交接前關閉外部總線,讓核心自行設定。

Copyright © Linux教程網 All Rights Reserved