是否有可能到uboot的命令的输出登录到从uboot的提示文件?

问题描述 投票:0回答:1

我与它支持的u-boot的嵌入式主板工作。

我试图写和读与主板连接的EMMC设备,读取后,我需要看看内容,并将它与我写它的数据进行比较。

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

mmc read 0x10700000 133120 1

mm.l 0x10700000

成一个文件,然后可存储在一eMMC分区或TFTP服务器的文件?

感谢您的时间,

Nishad

embedded-linux u-boot tftp
1个回答
0
投票

保存命令可以用来写存储到文件中。

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.

造成这要求文件系统是可写的。脂肪,这意味着与CONFIG_FAT_WRITE=y建设。

© www.soinside.com 2019 - 2024. All rights reserved.