Skip to contentSkip to conversation

Fallback kernel

U-Boot-Users Marco Stornelli 2 participants 2 messages Nov 26, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

I'm using two Linux kernel a fallback (safe) kernel and a kernel downloaded in flash via ethernet. I'd like that u-boot starts the downloaded kernel, if this kernel fails for more than N times uboot starts the fallback. Is there already something like in uboot or how can I do that?

Thanks in advance.

Marco

#1 lore raw
Quoted 6 lines · In message <[email protected]> you wrote:

I'm using two Linux kernel a fallback (safe) kernel and a kernel downloaded in flash via ethernet. I'd like that u-boot starts the downloaded kernel, if this kernel fails for more than N times uboot starts the fallback. Is there already something like in uboot or how can I do that?

U-Boot supports the "bootcount" variable to implement the Boot Count Limit feature (see CGL Requirements Definition). However, this requires a little processor specific support which so far is available only on few CPUs (but trivial to add where missing).

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If you can't beat it or corrupt it, you pretend it was your  idea  in
the first place.                 - Terry Pratchett, _Guards! Guards!_