On 3/3/2026 8:59 AM, Ryan Eatmon via lists.yoctoproject.org wrote:
On 3/3/2026 4:49 AM, Moteen Shah wrote:
Add instructions to load initramfs image and update the boot command
to use the image to boot the linux kernel.
Signed-off-by: Moteen Shah <[email protected]>
---
.../recipes-tisdk/tisdk-uenv/tisdk-uenv/uEnv.txt | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/meta-arago-distro/recipes-tisdk/tisdk-uenv/tisdk-uenv/
uEnv.txt b/meta-arago-distro/recipes-tisdk/tisdk-uenv/tisdk-uenv/uEnv.txt
index 0af0eef3..5ac61b34 100644
--- a/meta-arago-distro/recipes-tisdk/tisdk-uenv/tisdk-uenv/uEnv.txt
+++ b/meta-arago-distro/recipes-tisdk/tisdk-uenv/tisdk-uenv/uEnv.txt
@@ -7,3 +7,18 @@
# default on all newer U-Boot images. This also means that some
# variables such as bootdelay cannot be changed by this file
since
# it is not evaluated until the bootcmd is run.
+
+# Initramfs configuration
+# Name of the initramfs file in the boot partition
+name_initramfs=ti-core-initramfs.cpio.xz
+
+# Command to load initramfs from boot partition (mmc device:partition)
+# Adjust the device number (0 or 1) based on your setup
+# mmcdev is set to 1 by default, partition 1 is the boot partition
+get_initramfs_mmc=fatload mmc ${mmcdev}:1 ${rdaddr} ${name_initramfs}
+
+# Load initramfs and set up variables
+load_initramfs=if run get_initramfs_mmc; then setenv _initramfs
${rdaddr}:${filesize}; setenv rd_spec ${_initramfs}; echo Initramfs
loaded at ${rdaddr}, size ${filesize}; else echo WARNING: Initramfs
not found, continuing without initramfs; setenv rd_spec -; fi
+
+# Custom boot command that loads initramfs before kernel
+init_mmc=run args_all args_mmc load_initramfs
\ No newline at end of file
Does this work if there is no ti-core-initramsfs.cpio.xz in the boot
partition? Or is this assuming that there will always be an initramfs?
Because that is a problem if it is required all the time in all cases
for all platforms.
Additionally, this is being done in meta-arago, but the
ti-core-initramfs is staged in meta-ti so that it is available for all
distros.
Is this something that should move to meta-ti? Are these settings
really a distro thing? Or a BSP thing?
--
Ryan Eatmon [email protected]
-----------------------------------------
Texas Instruments, Inc. - LCPD - MGTS
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#17202):
https://lists.yoctoproject.org/g/meta-arago/message/17202
Mute This Topic: https://lists.yoctoproject.org/mt/118111608/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-arago/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-