Skip to contentSkip to conversation

Failsafe bootloader

DISCUSSION Callebaut Benoit 2 participants 2 messages Jun 4, 2003

lore
Share & tools
lore
#0 lore raw

Hi,
We use small part of our flash to hold config data (last sector of the flash) and which image must be started. PPCBoot read this and start the right image. when upgrading , we change the kernel option to the failsafe kernel, do the update of the second kernel (the working one) and after that we change the kernel option again and we try to start the new one. We use also a kind of watchdog feature in case of system lockout.

Benoit Callebaut
Barco NV
www.barco.com

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

We use small part of our flash to hold config data (last sector of the flash) and which image must be started. PPCBoot read this and start the right image. when upgrading , we change the kernel option to the failsafe kernel, do the update of the second kernel (the working one) and after that we change the kernel option again and we try to start the new one. We use also a kind of watchdog feature in case of system lockout.

It may be worth to point out that U-Boot supports redundand flash sectors for exactly such purposes, so you will always have a working backup copy in case the update of your config data (=environment variables) sector fails because of powerdown etc.

Best regards,

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected]
God made the integers; all else is the work of Man. - Kronecker

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/