【问题标题】:uboot mmc write issue on beagleboard black你在 beaglebone black 上启动 mmc 写入问题
【发布时间】:2014-11-16 19:09:48
【问题描述】:

我有一些用 mmc 写在 beagleboard black 上的问题。

问题来了:

U-Boot# usb start
(Re)start USB...
USB0:   scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
U-Boot# fatload usb 0 ${loadaddr} ${rootfs_file}
reading rootfs.ext4
18742272 bytes read in 12384 ms (1.4 MiB/s)
U-Boot# mmc dev 1
switch to partitions #0, OK
mmc1(part 0) is current device
U-Boot# mmc part

Partition Map for MMC device 1  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     63              1028097         00000000-01     0c Boot
  2     1028160         1028160         00000000-02     83
  3     2056320         1686825         00000000-03     83
U-Boot# mmc dev 1 2
switch to partitions #2, OK
mmc1(part 2) is current device
U-Boot# mmc write $loadaddr 0x0 0x20000

MMC write: dev # 1, block # 0, count 131072 ... MMC: block number 0xffff exceeds max(0x800)
0 blocks written: ERROR

那为什么?分区 2 应该是 64MB

另外

U-Boot# mmc info
Device: OMAP SD/MMC
Manufacturer ID: fe
OEM: 14e
Name: MMC02
Tran Speed: 52000000
Rd Block Len: 512
MMC version 4.41
High Capacity: No
Capacity: 1 MiB <=== ??? WHY ???
Bus Width: 4-bit

感谢您的回复

弗雷德

【问题讨论】:

    标签: u-boot beagleboard


    【解决方案1】:

    AFAIK "mmc write" 对 MMC 设备执行原始写入。它不通过文件系统执行写入。大多数文件系统访问命令都没有“写入”支持。只有ext4似乎有“写”操作(但我没有亲自测试过)。

    您执行的“mmc 写入”可能覆盖了 MMC 分区表。

    【讨论】:

    • 您好,分区表保存在哪里?分区表有偏移吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-06-23
    • 2016-12-20
    • 2017-02-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多