machine ID問題跟CPU具體到型號相關,啓動時打印信息以下:linux
Uncompressing Linux...........................................................................done,booting the kernel.
please check you kernel config and/or bootloader.app
解決方法:可在U-boot中執行orm
param set mach_type 0x16aci
修改bootloader配置到machine ID或者經過去掉內核代碼中對應到machine ID。io
注:出現這個問題到主要緣由就算bootloader配置到機器ID和內核中配置到不一致,能夠修改bootloader到配置或者在內核配置中添加相應的ID。machine ID在到文件arch/arm/tools/mach_types裏console
2.串口無輸出編譯
啓動後打印以下信息:form
Uncompressing Linux...........................................................................done,booting the kernel.Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)配置
"內核驚慌"除了缺失文件系統外,還有幾個可能到緣由。file
devfs驅動未加載成功,在配置內核選項時選中:
[*] /proc file system support
[*] /dev file system support (OBSOLETE)
[*] Antomatically mount at boot
[*] Debug devfs
[*] Virtual memory file system support (former shm fs)
[ ] Relayfs file system support
devfs負責在/dev目錄下掛在全部設備節點,只有在devfs正確加載後,/dev/mtdblock2纔有效。
或是mtd驅動未加載成功。mtd驅動用來支持對Nand Flash,啓動時若是不能打印正確到分區信息則要從新配置;
0x000000000x00100000: "bootloader"
0x001000000x00500000: "kernel"
0x005000000x02d00000: "filesystem"
四、啓動程序U-boot和內核中對於Nand Flash到分區必須一致,不然會提示找不到kernel鏡像文件,能夠在編譯時修改分區信息,也能夠在U-boot中用分區命令part。