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个分区“/”目录的文件,我没有指定,默认为“/”。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM