測試發現a33核心板有時沒法正常啓動,經過串口信息顯示判斷是uboot 對mmc初始化有時會出現問題:測試
[ 0.770][mmc]: ************Try MMC card 2************
[ 0.796][mmc]: mmc 2 2xmode config clk
[ 0.806][mmc]: mmc 2 data timeout 80
[ 0.810][mmc]: smc 2 err, cmd 8, DCE
[ 0.814][mmc]: Read remain data
[ 0.819][mmc]: mmc 2 mmc cmd 8 err 0x00000080
[ 0.823][mmc]: mmc send ext csd failed
[ 0.827][mmc]: send ext csd faild
[ 0.830][mmc]: Change speed mode failed
[ 0.834][mmc]: ************SD/MMC 2 init error!!!************
[ 0.840][mmc]: MMC: block number 0x1 exceeds max(0x0)rem
緣由不明。cmd
臨時解決方案:當uboot檢測到emmc初始化失敗時reset cpu。it
1. 修改驅動編譯
具體須要修改lichee/brandy/uboot-2011-09/driver/mmc/mmc.c打包
在檢測到mmc_startup失敗後,調用reset_cpu(0)來重啓cpu。im
2. 編譯打包error
cd lichee/brandy/uboot-2011-09/cpu
make distcleandi
make sun8iw5p1
make -j