Linux   发布时间:2022-03-31  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了linux-kernel – uboot- MMC没有SDcard大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

我试图在imx51飞思卡尔板上运行一个带有 linux rootfs的 linux内核. 我编译linux内核,根文件系统和u-boot并将映像复制到SD卡:分区0:启动分区1:rootfs和linux内核 但是我有以下错误: U-Boot 2011.12 (Mar 13 2012 - 14:15:41) CPU: Freescale i.MX51 family rev3.0 at 800
我试图在imx51飞思卡尔板上运行一个带有 linux rootfs的 linux内核.

我编译linux内核,根文件系统和u-boot并将映像复制到SD卡:分区0:启动分区1:rootfs和linux内核

但是我有以下错误

U-Boot 2011.12 (Mar 13 2012 - 14:15:41)

cpu:   Freescale i.MX51 family rev3.0 at 800 MHz
Reset cause: POR
Board: MX51EVK
DRAM:  512 MiB
WARNING: Caches not enabled
MMC:   FSL_SDHC: 0,FSL_SDHC: 1
MMC: no card present
MMC init Failed
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   FEC
Warning: Failed to set MAC address

Hit any key to stop autoboot:  0 
MX51EVK U-Boot > mmcinfo
MMC: no card present
Device: FSL_SDHC
Manufacturer ID: 0
OEM: 0
Name: Tran Speed: 0
Rd Block Len: 0
MMC version 0.0
High Capacity: No
Capacity: 0 Bytes
Bus Width: 0-bit
MX51EVK U-Boot > mmc init
mmc - MMC sub system

Usage:
mmc read addr blk# cnt
mmc write addr blk# cnt
mmc erase blk# cnt
mmc rescan
mmc part - lists available partition on current mmc device
mmc dev [dev] [part] - show or set current mmc device [partition]
mmc list - lists available devices
MX51EVK U-Boot > mmc list
FSL_SDHC: 0
 FSL_SDHC: 1
MX51EVK U-Boot > mmc dev
MMC: no card present
mmc0(part 0) is current device
MX51EVK U-Boot >

可能有什么不对?

解决方法

检查DIP开关,我意识到开关设置为从@L_874_11@插槽启动SD卡,而我一直从顶部插槽启动.因此,它解决了我的问题

大佬总结

以上是大佬教程为你收集整理的linux-kernel – uboot- MMC没有SDcard全部内容,希望文章能够帮你解决linux-kernel – uboot- MMC没有SDcard所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。