This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Linux/AM3358:U-Boot 中的 AM335x GP EVM 自动升级 NAND 分区

Guru**** 2551110 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/608086/linux-am3358-am335x-gp-evm-auto-upgrade-nand-partition-in-u-boot

器件型号:AM3358

工具/软件:Linux

您好!

我们需要编写一个变量/命令、在引导 boad 时自动擦除/写入 U-Boot 中的 NAND 文件系统分区。

TFTP 用于下载由 ubbinize 工具构建的 UBIFS 文件系统映像。 使用以下命令:

tftpboot 0x82000000 zImage

mw.b 0x82000000 0xFF $(filesize)

nand erase 0xa00000 0xF600000

nand write 0x82000000 0xa00000 $(filesize) 

但根据 TI wiki (http://processors.wiki.ti.com/index.php/UBIFS_Support#Flashing_UBIFS_image_to_a_NAND_partition)、UBIFS 图像大小必须与 NAND 块大小对齐。 $(filesize)并不总是与 NAND 块大小对齐、因为我们将经常更新文件系统和 UBIFS 映像。 我的问题是如何在 U-Boot 变量中获取对齐的 UBIFS 图像大小?

 

使用了 AM335x GP EVM 和处理器 SDK 2.00.02.11。

谢谢你。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!

    我们正在处理这一问题。

    此致、
    Yordan