I’m familiar with the method for applying config fragments to change the u-boot 
settings from within petalinux. I tried the very simple approach that I think 
should work. As a basic test I’m trying to set the bootdelay to 0. I added the 
following to my layer:

recipes-bsp/
└── u-boot
   ├── files
   │   └── u-boot-redux.cfg
   └── u-boot-xlnx_%.bbappend

The contents of u-boo-xlnx_%.bbappend are:

FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

SRC_URI:append = " \
   file://u-boot-redux.cfg \
   "

do_notify_configure () {
   bbplain "Applying u-boot-xlnx config overrides"
}

addtask notify_configure before do_configure

And the contents of u-boot-redux.cfg are:

CONFIG_BOOTDELAY=0

When I build u-boot I see my message “Applying u-boot-xlnx config overrides”, 
and when I grep the .config file for BOOTDELAY, I do see the change applied 
correctly. However when I boot, I still observe a boot countdown, and when I 
run:

printenv

in u-boot, I see bootdelay=2.

So I tried many other things. Including:

Adding the bootdelay=0 to uEnv.txt

Making a platform-top.h with my own definition of CONFIG EXTRA_ENV_SETTINGS and 
following the pattern of the petalinux style u-boot-xlnx %.bbappend

Enabling

CONFIG_USE_DEFAULT_ENV_FILE=y
CONFIG_DEFAULT_ENF_FILE="my-uEnv.txt"

as shown in this stackoverflow post:
https://stackoverflow.com/questions/69587517/how-to-provide-the-u-boot-default-environment-from-a-file-in-yocto

Unfortunately I have had no luck in actually getting the changes to take 
effect. So I must be missing some key point in the design pattern.

Thanks for any help that you can provide to shed light on this.
-David

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

Reply via email to