I am trying to modify uEnv.txt during build time for our custom carrier board.
The Aim is to : change the dtb filename to boot primarily and adding distroboot cmd in boot argument
to enable default usb booting.
I have tested both by manually editing the uEnv.txt but now we want to integrate this in the build process. I am not sure which bb file I should modify by a custom bbappend .
Also can we achieve the following :
We have two dtb files dtb-1 and dtb-2 .
The uboot will try to look for dtb-1 and if it fails to find it then it will try to find dtb-2.
Then uboots loads the dtb and continues the boot process.
When you need to append the custoim config, it would be better to fork u-boot and modify the environment: u-boot-toradex.git - U-Boot bootloader for Apalis and Colibri modules.
Alternatively, you could also add a u-boot-toradex_%.bbappend to the yocto layer. Then you would need to add FILESEXTRAPATHS_prepend := “${THISDIR}/${PN}:” and put the uEnv.txt into the directory u-boot-toradex. After that, you do do the following to bbappend file as well: