]> Untitled Git - yocto/meta-hvmpd.git/commitdiff
rpi-u-boot-scr: remove unconditional environment save
authorHugo Villeneuve <hugo@hugovil.com>
Sat, 13 Dec 2025 18:19:18 +0000 (13:19 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Fri, 23 Jan 2026 16:44:47 +0000 (11:44 -0500)
Signed-off-by: Hugo Villeneuve <hugo@hugovil.com>
raspberrypi/recipes-bsp/rpi-u-boot-scr/files/boot.cmd.in

index a630e63f86cca4b34ebe429b110376c4717f57c2..a58c443bce2b308f3e74160503ffeae19c31a818 100644 (file)
@@ -1,6 +1,6 @@
-saveenv
 fdt addr ${fdt_addr} && fdt get value bootargs /chosen bootargs
 if env exists rpipart;then echo Booting from mmcblk0p${rpipart};else setenv rpipart @@ROOT_PART_A_ID@@;echo rpipart not set, default to ${rpipart};fi
 load @@BOOT_MEDIA@@ 0:${rpipart} ${kernel_addr_r} boot/@@KERNEL_IMAGETYPE@@
+if test ! -e mmc 0:1 uboot.env; then saveenv; fi;
 setenv bootargs "${bootargs} root=@@ROOT_PARENT_DEV@@@@ROOT_PART_PREFIX@@${rpipart}"
 @@KERNEL_BOOTCMD@@ ${kernel_addr_r} - ${fdt_addr}