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.

[参考译文] AM625-Q1:AM62x Yocto build initramfs 大小比 RDK 版本包含预编译文件要大得多。

Guru**** 2540720 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1560326/am625-q1-am62x-yocto-build-initramfs-size-is-very-bigger-than-rdk-release-contain-prebuild-file

器件型号:AM625-Q1


工具/软件:

尊敬的专家:

我们正在与 RDK11.01 中的客户试用 DM-verity 功能合作。 我发现编译的 Yocto initramfs cpio 文件大小非常大。

我生成的 tisdk-tiny-initramfs-am62xx-lp-evm.rootfs-20250902033833.cpio 大小为 67.778MB。 RDK 默认的 tisdk-tiny-initramfs-am62xx-evm.rootfs.cpio 仅为 17.213MB。

根据映像名称、我担心 AM62xx-LP-EVM/am62xx-EVM 配置不同。 因此、我尝试使用以下 2 命令构建 AM62x-LP-EVM 和 AM62x-SK-EVM。 但我的 Yocto 生成的 initramfs 大小都是~67MB。 它太大了。

#machine=am62xx-LP-EVM bitbake -k tisdk-tiny-initramfs

#machine=am62xx-EVM bitbake -k tisdk-tiny-initramfs

遵循常见问题 ~67MB initramfs 可以成功引导 initramfs。但我们希望获得与所提供的相同的小 rdk ~17MB。  文件为 (ti-processor-sdk-linux-am62xx-evm-11.01.05.03/filesystems/am62xx-lp-evm/tisdk-tiny-initramfs-am62xx-evm.rootfs.cpio)

如何使用 Yocto 构建这些 17MB initramfs?

(e2e.ti.com/.../faq-linux-how-to-boot-sitara-am3x-am4x-am6x-devices-from-initramfs-cpio-archive-ram-disk)

此致!

Han Tao

这是 Yocto 命令:

#git clone git.ti.com/.../oe-layersetup.git tisdk
#cd tisdk
#./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-scarthgap-11.01.05.03-config.txt

#。 conf/setenv

#machine=am62xx-LP-EVM bitbake -k tisdk-tiny-initramfs

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

    嗨、陶先生、

    在您生成的超小型 rootfs 映像中、“/boot/"目录“目录是否为空?

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

    尊敬的 Bin:

    我已确认 /boot/为空。 我附加了 generate initramfs 映像。 谢谢!

    e2e.ti.com/.../tisdk_2D00_tiny_2D00_initramfs_2D00_am62xx_2D00_lp_2D00_evm.rootfs_2D00_20250902033833.cpio

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

    嗨、陶先生、

    感谢您分享图像。 映像使用 systemd、使映像大小大于 SDK 中使用 sysvinit 的预编译映像大小。

    要在 tiny-initramfs 中切换到 sysvinit、请添加 arago_sysvinit =“1"</s>“ 到文件 conf/local.conf 然后再运行 bitbake 命令。

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

    尊敬的 BIN:

    感谢您分享减少 initramfs 大小的方法。 现在我添加这些行 generate cpio 文件大小是 17.2MB。

    此致!

    Han Tao