SD卡分区查看(u-boot下)

可以在U-Boot的命令行中通过命令查看MMC的信息,如:

  • U-Boot# mmc list
  • OMAP SD/MMC: 0
  • OMAP SD/MMC: 1

列出mmc设备

  1. U-Boot# mmc dev
  2. mmc0 is current device

显示当前是那个设备

  • U-Boot# mmc part
  • Partition Map for MMC device 0  --   Partition Type: DOS
  • Part    Start Sector    Num Sectors     UUID            Type
  •   1     2048            131072          29942d7e-01     0c Boot
  •   2     133120          15390720        29942d7e-02     83

显示当前设备的分区信息。

  • U-Boot# ls mmc 0:1
  •    100688   mlo
  •    308232   u-boot.img
  •       510   uenv.txt
  • 3 file(s), 0 dir(s)

列出设备0第1个分区“/”目录的文件,我没有指定,默认为“/”。

posted @ 2017-10-18 20:41  竹主  阅读(2922)  评论(0编辑  收藏  举报