mpc5121ads核心移植可能出現的問題

2021-06-08 20:38:34 字數 2798 閱讀 3409

移植中可能出現的問題:

1. u-boot1.3.2 (jan 12 2009 - 15:57:17) mpc512x

cpu:   mpc5121e rev. 1.0, core e300c4 at 391.874mhz, csb at 195 mhz

i2c:   ready

dram:  256 mb

flash:16 mb

in:    serial

out:   serial

err:   serial

bitmapis out of range, image too large or too much offset

net:   fec ethernet

blocknumber:3501800

blocknumber:3501800

blocknumber:3501800

startloading file hard_disk_start_config.txt .........

loadingend

typerun nfsboot to mount root filesystem over nfs

hitany key to stop autoboot:  0

##booting image at ffac0000 ...

image name:  linux-2.6.24.6

created:     2011-08-26   8:16:45 utc

image type:  powerpc linux kernel image (gzip compressed)

data size:   2167270 bytes =  2.1 mb

load address: 00000000

entry point: 00000000

uncompressing kernel image ... ok

沒了下文,死在這裡

原因分析:

1start loading file hard_disk_start_config.txt .........

loadingend

說明硬碟啟動起來了

2## booting image at ffac0000

說明核心入口位址正確。

3 uncompressing kernel image ... ok

說明核心解壓成功了,但沒有跳到裝置樹位址!

也就是bootm的引數沒有設定正確,檢查引數0xffac0000 – 0xffec0000(本人的入口位址和fdt檔案位址)

注意其中的大小寫和空格!

2. 在掛載系統時最後出現[  175.601000] mount-cache hash table entries: 512

[  175.607789] net_namespace: 64 bytes

[  181.733380]       device=eth0, addr=192.168.100.200, mask=255.255.0.0, gw=

[  183.821777] kernel panic - not syncing: vfs: unable to mount root fs on unknown-block(2,0)

[  183.829944] rebooting in 180 seconds..

說明nfs伺服器上的檔案系統下面的ip位址沒有設定好,檔案系統下面的ip位址放到板子上執行後,無法和伺服器連線,從而無法掛載伺服器上的檔案系統,需要按照伺服器配置上的ip配置,重新配置。

3. 無法切換到u-boot下,如下面的紅字部分,因為開始沒有設定延時啟動,核心移植又沒有正確移植,從而導致沒有正確的系統可以啟動。

u-boot1.3.2 (jan 12 2009 - 15:57:17) mpc512x

cpu:   mpc5121e rev. 1.0, core e300c4 at 391.874mhz, csb at 195 mhz

i2c:   ready

dram:  256 mb

flash:16 mb

in:    serial

out:   serial

err:   serial

bitmapis out of range, image too large or too much offset

net:   fec ethernet

blocknumber:3501800

blocknumber:3501800

blocknumber:3501800

startloading file hard_disk_start_config.txt .........

loadingend

typerun nfsboot to mount root filesystem over nfs

hit any key to stop autoboot:  0

##booting image at ffac0000 ...

image name:  linux-2.6.24.6

created:     2011-08-26   8:16:45 utc

image type:  powerpc linux kernel image (gzip compressed)

data size:   2167270 bytes =  2.1 mb

load address: 00000000

entry point: 00000000

uncompressing kernel image ... ok

解決方法,購買flash燒寫器,將flash焊下,重燒u-boot。

MPC5121浮點執行能力測試

引用 非常感謝,這是我在mpc5121上的執行結果 測試1,帶ffast math 編譯選項 cflags o3 mcpu 603e fomit frame pointer pipe fsigned char funroll loops mhard float ffast math root ema...

Linux Qt 5 12 1靜態編譯

1 linux qt 5.12.1靜態編譯 宣告 以下僅為個人經驗,若有錯誤地方望指正 1.2 確認make存在 1 使用 make v 檢視make是否存在 2 若不存在則使用sudo apt install make安裝make 1.3 configure生成makefile configure...

開源工程 mpc

mpc peter lee 2008 06 05 一 簡介 遺憾的是mpc工程在2006年04月停止了更新,同時所幸的是有兩個開源工程在mpc的基礎上繼續更新,乙個是mpc2,主要是clsid2在維護,主要是修正mpc原工程中的一些bug,不新增新功能 另乙個mpc home cinema比較強了,...