On 25/03/26 19:03, Ryan Eatmon wrote:


On 3/25/2026 1:28 AM, Moteen Shah wrote:
Remove runtime managers since ti-core-initramfs does not requires
login and other services as it is being used as a read only
image during the boot. Modules can be probed using the udev from
initrams-module-udev, hence remove the init manager along with
others.

I don't think this is going to pass muster.  We just added those in to make the initramfs function correctly with the rest of the system post boot.

What is the more in depth reason you want to remove them?  Are they causing you a problem?

The aim is to reduce the size of the image further so that it can fit in lesser memory devices like am62l(128MiB). Since we do not require login support for the usecase of just probing modules I removed the login manager here. Similarly initramfs-udev will handle what we aim with this image instead of having a runtime dev manager separately.

The change results in shrinking the image from 90MBs(20MBs compressed) to about 25MB's (6-7 MBs compressed).

Regards,
Moteen


I'll let Denys chime in more since he did the work to figure out what all we needed to add in to make it "correct".



Signed-off-by: Moteen Shah <[email protected]>
---
This patch will help in reducing the size of the initramfs to about 7 MB's compressed and 25 MB's uncompressed Boot logs: https://gist.github.com/Jamm02/ebdb124064e253208ee479f46edf127f
  .../recipes-ti/initramfs/packagegroup-ti-core-initramfs.bb | 4 ----
  1 file changed, 4 deletions(-)

diff --git a/meta-ti-bsp/recipes-ti/initramfs/packagegroup-ti-core-initramfs.bb b/meta-ti-bsp/recipes-ti/initramfs/packagegroup-ti-core-initramfs.bb
index a9eff847..f496f21a 100644
--- a/meta-ti-bsp/recipes-ti/initramfs/packagegroup-ti-core-initramfs.bb
+++ b/meta-ti-bsp/recipes-ti/initramfs/packagegroup-ti-core-initramfs.bb
@@ -11,10 +11,6 @@ TI_CORE_INITRAMFS_KERNEL_MODULES ?= ""
  RDEPENDS:${PN} += "\
      ${TI_CORE_INITRAMFS_KERNEL_MODULES} \
      ${VIRTUAL-RUNTIME_base-utils} \
-    ${VIRTUAL-RUNTIME_login_manager} \
-    ${VIRTUAL-RUNTIME_init_manager} \
-    ${VIRTUAL-RUNTIME_dev_manager} \
-    ${VIRTUAL-RUNTIME_update-alternatives} \
      netbase \
      base-files \
      base-passwd \

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19817): 
https://lists.yoctoproject.org/g/meta-ti/message/19817
Mute This Topic: https://lists.yoctoproject.org/mt/118497229/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to