【问题标题】:How to use the fatls command in uboot sandbox?如何在 uboot 沙箱中使用 fatls 命令?
【发布时间】:2016-07-19 12:25:57
【问题描述】:

我正在使用 uboot 沙箱。在这里如何在沙盒中查看我的 fatls。

  => help fatls
  fatls - list files in a directory (default /)

  Usage:
  fatls <interface> [<dev[:part]>] [directory]
    - list files from 'dev' on 'interface' in a 'directory'

这里什么是接口,什么是我系统中的开发。 我在努力,

  => fatls sda 0
  ** Bad device sda 0 **

【问题讨论】:

    标签: bootloader u-boot


    【解决方案1】:

    你必须做更多的工作。假设您已经构建了沙盒:

    $ dd if=/dev/zero of=fat.img bs=1k count=2048
    $ mkfs.vfat ./fat.img
    $ ./u-boot
    ...
    => host bind 0 fat.img
    => fatls host 0:0
    
    0 file(s), 0 dir(s)
    
    =>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-03-21
      • 2021-07-12
      • 2017-06-25
      • 2018-09-04
      • 2014-05-10
      • 2012-10-17
      • 2023-03-24
      相关资源
      最近更新 更多