是否可以从 u-boot 提示符将 uboot 命令的输出记录到文件中?

Is it possible to log the output of a uboot command into a file from u-boot prompt?

我正在使用支持 u-boot 的嵌入式板。

我正在尝试写入和读取连接到电路板的 emmc 设备, 看完之后,我需要看一下内容,并与我写入的数据进行比较。

当我从 eMMC 读取一个块并将其存储在一个地址中并尝试查看 u-boot 命令的内容时,有没有一种方法可以记录 u-boot 命令的输出 它使用:

mmc read 0x10700000 133120 1

mm.l 0x10700000

写入文件,然后可以将文件存储在 emmc 分区或 tftp 服务器中?

感谢您的宝贵时间,

尼沙德

保存命令可用于将内存写入文件。

save file to a filesystem

save <interface> <dev[:part]> <addr> <filename> bytes [pos]
    - Save binary file 'filename' to partition 'part' on device
      type 'interface' instance 'dev' from addr 'addr' in memory.
      'bytes' gives the size to save in bytes and is mandatory.
      'pos' gives the file byte position to start writing to.
      If 'pos' is 0 or omitted, the file is written from the start.

当然这要求文件系统是可写的。对于 FAT,这意味着使用 CONFIG_FAT_WRITE=y.

构建