machine ID问题 ( u-boot设置machine id , set mach_type 0x16a )
machine ID問(wèn)題?
machine ID問(wèn)題跟CPU具體到型號(hào)相關(guān),啟動(dòng)時(shí)打印信息如下:
?
Uncompressing Linux...........................................................................done,booting the kernel.?
Error:unrecoginized/unsupported machine ID(r1 = 0x000003oe)?
Available machine support:?
ID (hex) NAME?
0000016a SMDK2440?
please check you kernel config and/or bootloader.
解決方法:可在U-boot中執(zhí)行
param set mach_type 0x16a
修改bootloader配置到machine ID或者通過(guò)去掉內(nèi)核代碼中對(duì)應(yīng)到machine ID。
注:出現(xiàn)這個(gè)問(wèn)題到主要原因就算bootloader配置到機(jī)器ID和內(nèi)核中配置到不一致,可以修改bootloader到配置或者在內(nèi)核配置中添加相應(yīng)的ID。machine ID在到文件arch/arm/tools/mach_types里
?
2.串口無(wú)輸出
啟動(dòng)后打印如下信息:
Uncompressing Linux...........................................................................done,booting the kernel.?
然后就停住,無(wú)后續(xù)輸出了。?
解決辦法:修改linux command line 中的console為ttySAC0,這是因?yàn)?.6內(nèi)核對(duì)串口命名到方式到變動(dòng),但不影響應(yīng)用程序。?
3.kernel panic 問(wèn)題?
內(nèi)核崩潰問(wèn)題,啟動(dòng)后打印如下信息:?
please append a crrect "root=" boot option?
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
?
"內(nèi)核驚慌"除了缺失文件系統(tǒng)外,還有幾個(gè)可能到原因。
devfs驅(qū)動(dòng)未加載成功,在配置內(nèi)核選項(xiàng)時(shí)選中:
[*] /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負(fù)責(zé)在/dev目錄下掛在所有設(shè)備節(jié)點(diǎn),只有在devfs正確加載后,/dev/mtdblock2才有效。
或是mtd驅(qū)動(dòng)未加載成功。mtd驅(qū)動(dòng)用來(lái)支持對(duì)Nand Flash,啟動(dòng)時(shí)如果不能打印正確到分區(qū)信息則要重新配置;
0x000000000x00100000:??? "bootloader"
0x001000000x00500000:??? "kernel"
0x005000000x02d00000:??? "filesystem"
?
4、啟動(dòng)程序U-boot和內(nèi)核中對(duì)于Nand Flash到分區(qū)必須一致,否則會(huì)提示找不到kernel鏡像文件,可以在編譯時(shí)修改分區(qū)信息,也可以在U-boot中用分區(qū)命令part。
轉(zhuǎn)載于:https://www.cnblogs.com/tureno/articles/6621913.html
總結(jié)
以上是生活随笔為你收集整理的machine ID问题 ( u-boot设置machine id , set mach_type 0x16a )的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 信用卡逾期超过90天还能办信用卡吗?也是
- 下一篇: 分布式性能测试