Adding kernel boot parameters to image

Hello,

I’m building a custom OS image using the Toradex 5.1 BSP. I need to add an additional kernel boot parameter. While I can manually edit the boot cmdline in U-Boot by setting and saving the defargs environment variable, I’d like to add this parameter to my image via a recipe extension in my layer.

What is the appropriate way to add a new kernel parameter to the U-Boot environment via the OE build process?

In meta-toradex-bsp-common/recipes-bsp/u-boot/u-boot-distro-boot/boot.cmd.in I see ${tdxargs} is added to the boot command line, but that variable isn’t set anywhere - is adding to that variable the best hook here?

Thank you.

Hi @tyler_, yes the tdxargs variable is the accepted way to add your custom kernel command line options.

A u-boot bbappend should do the trick.

Drew