[PATCH] fixup! defaultenv: boot/bnet: fallback to booting generic 2nd stage FIT image
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Apr 21 23:37:33 PDT 2025
defaultenv: boot/bnet: mention fallback to FIT image
When neither the normal barebox image or the FIT image exists, the error
message will only list the FIT image, which can confuse users.
Therefore print out a message when the fallback happens.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
defaultenv/defaultenv-2-base/boot/bnet | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/defaultenv/defaultenv-2-base/boot/bnet b/defaultenv/defaultenv-2-base/boot/bnet
index b2eeab93d9b8..877616758dc9 100644
--- a/defaultenv/defaultenv-2-base/boot/bnet
+++ b/defaultenv/defaultenv-2-base/boot/bnet
@@ -6,5 +6,8 @@ path="/mnt/tftp"
global.bootm.image="${path}/${global.user}-barebox-${global.hostname}"
if [ ! -f "${global.bootm.image}" ]; then
- global.bootm.image="${path}/${global.user}-barebox-${global.arch}"
+ fitimage="${path}/${global.user}-barebox-${global.arch}"
+ echo "Image ${global.bootm.image} not found"
+ echo "Trying ${fitimage} as fallback"
+ global.bootm.image="${fitimage}"
fi
--
2.39.5
More information about the barebox
mailing list