mbox series

[master,v4,0/4] Add recipes to build initramfs image

Message ID 20251006115010.1530509-1-m-shah@ti.com
Headers show
Series Add recipes to build initramfs image | expand

Message

Moteen Shah Oct. 6, 2025, 11:50 a.m. UTC
The series aims to add a new recipe which will package boot
essential and some other modules in image which can later be
used in the boot process of all K3 platforms. This will result
in the addition of ~20MB initramfs image in the bootflow.

The motivation behind the work is to probe modules(in boot time)
which could not be built in the upstream Linux kernel
image, as using it as inbuilt drivers will increase the
kernel image size, which is undesirable by the upstream folks.

Hence, build those drivers as modules and package it inside
initramfs and later get it probed through initramfs-udev(device manager).

The series will introduce an additional 20MB initramfs image in the
bootflow of all K3 platforms regardless of whether any platform chooses
to add modules to it or not, so as to keep the bootflow for all devices
uniform. Hence, the build/packaging of initrd image is being triggered
in k3.inc.

Boot tests for am64xx:
[0] https://gist.github.com/Jamm02/0abbba19ff27272a9945dd7f3035b603

Changes since V3:
- Move initramfs build from k3.inc to ti-soc.inc so that legacy
platforms like am57 also includes the initramfs image.
- Change BUILD_CORE_INITRD_IMAGE -> BUILD_CORE_INITRAMFS_IMAGE

Link to V2: https://lists.yoctoproject.org/g/meta-ti/message/19043

Link to V1: https://lists.yoctoproject.org/g/meta-ti/topic/115128108


Moteen Shah (4):
  meta-ti-bsp: conf: machine: include: Add common module variable for TI
    Initramfs image
  recipes-ti: initramfs: Make minimal initramfs image
  meta-ti-bsp: wic: Add initramfs path to to grub config
  meta-ti-bsp: conf: machine: include: Build initramfs for all TI
    SoC's

 meta-ti-bsp/conf/machine/include/am62axx.inc  |  3 ++
 meta-ti-bsp/conf/machine/include/j721e.inc    |  3 ++
 meta-ti-bsp/conf/machine/include/j784s4.inc   |  3 ++
 meta-ti-bsp/conf/machine/include/ti-soc.inc   | 10 ++++++
 .../packagegroup-ti-core-initramfs.bb         | 15 +++++++++
 .../recipes-ti/initramfs/ti-core-initramfs.bb | 33 +++++++++++++++++++
 meta-ti-bsp/wic/sdimage-2part-efi.wks.in      |  2 +-
 7 files changed, 68 insertions(+), 1 deletion(-)
 create mode 100644 meta-ti-bsp/recipes-ti/initramfs/packagegroup-ti-core-initramfs.bb
 create mode 100644 meta-ti-bsp/recipes-ti/initramfs/ti-core-initramfs.bb

Comments

PRC Automation Oct. 6, 2025, 11:55 a.m. UTC | #1
meta-ti / na / 20251006115010.1530509-1-m-shah

PRC Results: FAIL

=========================================================
  check-yocto-patches: FAIL
=========================================================
Patches
----------------------------------------
FAIL - [master][PATCH v4 1/4] meta-ti-bsp: conf: machine: include: Add common module variable for TI Initramfs image
    ERROR: Commit message too long (> 80 chars): meta-ti-bsp: conf: machine: include: Add common module variable for TI Initramfs image. (COMMIT-MESSAGE-1)
        patch:44
            Subject: [master][PATCH v4 1/4] meta-ti-bsp: conf: machine: include: Add common module variable for TI Initramfs image
    
    WARN: Commit message does not include file/recipe name: meta-ti-bsp: conf: machine: include: Add common module variable for TI Initramfs image. (COMMIT-MESSAGE-2)
        patch
    
    WARN: Commit message should not include directory path to recipe: meta-ti-bsp: conf: machine: include: Add common module variable for TI Initramfs image.
              meta-ti-bsp:
              conf:
              machine:
              include: (COMMIT-MESSAGE-3)
        patch
    
    WARN: Revised patch missing a comment. (REVISION-1)
        patch
WARN - [master][PATCH v4 2/4] recipes-ti: initramfs: Make minimal initramfs image
    WARN: Commit message does not include file/recipe name: recipes-ti: initramfs: Make minimal initramfs image. (COMMIT-MESSAGE-2)
        patch
    
    WARN: Commit message should not include directory path to recipe: recipes-ti: initramfs: Make minimal initramfs image.
              recipes-ti: (COMMIT-MESSAGE-3)
        patch
    
    WARN: Revised patch missing a comment. (REVISION-1)
        patch
WARN - [master][PATCH v4 3/4] meta-ti-bsp: wic: Add initramfs path to to grub config
    WARN: Commit message does not include file/recipe name: meta-ti-bsp: wic: Add initramfs path to to grub config. (COMMIT-MESSAGE-2)
        patch
    
    WARN: Commit message should not include directory path to recipe: meta-ti-bsp: wic: Add initramfs path to to grub config.
              meta-ti-bsp:
              wic: (COMMIT-MESSAGE-3)
        patch
    
    WARN: Revised patch missing a comment. (REVISION-1)
        patch
WARN - [master][PATCH v4 4/4] meta-ti-bsp: conf: machine: include: Build initramfs for all TI SoC's
    WARN: Commit message does not include file/recipe name: meta-ti-bsp: conf: machine: include: Build initramfs for all TI SoC's. (COMMIT-MESSAGE-2)
        patch
    
    WARN: Commit message should not include directory path to recipe: meta-ti-bsp: conf: machine: include: Build initramfs for all TI SoC's.
              meta-ti-bsp:
              conf:
              machine:
              include: (COMMIT-MESSAGE-3)
        patch
    
    WARN: Revised patch missing a comment. (REVISION-1)
        patch