* [PATCH] fixup! defaultenv: boot/bnet: fallback to booting generic 2nd stage FIT image
@ 2025-04-22 6:37 Ahmad Fatoum
2025-04-22 7:44 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2025-04-22 6:37 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
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@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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] fixup! defaultenv: boot/bnet: fallback to booting generic 2nd stage FIT image
2025-04-22 6:37 [PATCH] fixup! defaultenv: boot/bnet: fallback to booting generic 2nd stage FIT image Ahmad Fatoum
@ 2025-04-22 7:44 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2025-04-22 7:44 UTC (permalink / raw)
To: barebox, Ahmad Fatoum
On Tue, 22 Apr 2025 08:37:33 +0200, Ahmad Fatoum wrote:
> 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.
>
> [...]
Applied, thanks!
[1/1] fixup! defaultenv: boot/bnet: fallback to booting generic 2nd stage FIT image
https://git.pengutronix.de/cgit/barebox/commit/?id=637b9d63f7c2 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-22 8:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-22 6:37 [PATCH] fixup! defaultenv: boot/bnet: fallback to booting generic 2nd stage FIT image Ahmad Fatoum
2025-04-22 7:44 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox