## Executing script at c4100000
** File not found rproc-m4-fw.elf **
6931232 bytes read in 302 ms (21.9 MiB/s)
71204 bytes read in 5 ms (13.6 MiB/s)
## Booting kernel from Legacy Image at c2000000 ...
Image Name: Linux-5.4.7
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 6931168 Bytes = 6.6 MiB
Load Address: c2000040
Entry Point: c2000040
Verifying Checksum ... OK
## Flattened Device Tree blob at c4000000
Booting using the fdt blob at 0xc4000000
XIP Kernel Image ... OK
Using Device Tree in place at c4000000, end c4014623
Starting kernel ...
想請教一下各位大佬,移植最新內核5.4的時候,總是卡在Starting kernel......這塊,就在內核接管執行的時候卡住了,請問是什么原因呀?有沒有一個大致方向?
uj5u.com熱心網友回復:
內核鏡像損壞或者硬體資源不符,先查看內核編譯時有沒有錯誤提示吧。uj5u.com熱心網友回復:
首先是打開使能early_printk,再次啟動然后看是否可以得到有效的提示資訊假如early_printk看不到提示資訊的話,那直接讀取快取,快取的地址為 __log_buf,其地址在system.map里面找到。
具體如下:
首先去內核編譯目錄找到System.map檔案。
接下來遭到System.map中__log_buf對應地址,執行:
cat ./System.map | grep -n __log_buf
如何可能得到如下結果:
64584:c0770be8 b __log_buf
此時記住c0770be8 這個數字。
3. 啟動內核,內核此時卡在Starting kernel …位置。
4. 重新啟動系統(注意:不要斷電啟動),進入UBoot命令列界面
5. 在uboot的命令列下輸入(數字是剛才得到的數字):
md 0xc0770be8
這個時候就會顯示例外資訊,可根據例外資訊去分析代碼。
6、不停的敲擊回車鍵,直到為全為0
uj5u.com熱心網友回復:
謝謝,這個試過,列印出來的全是看不清白的字串,不知道咋追蹤uj5u.com熱心網友回復:
內核功能精簡一下呢,能不能起來轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/11291.html
標籤:UNIX文化
下一篇:ip隧道如何可以多級轉發
