
28 Nov
2007
28 Nov
'07
12:27 a.m.
In message 41483bfe0711271359x4315d9bbsc03a3ce88542c014@mail.gmail.com you wrote:
If kernel and / or root file system gets corrupted on target due to one of the following reasons
...
If the CRC is bad or image header is bad i am loading secondary kernel image.
OK.
How can we recover incase of root file system failure?
Use a watchdog that get's only triggered when your application starts up correctly. Combine it with the boot counter feature.
How do we let uboot know that the root file system didn't come up properly.
By not resetting the boot counter by your application code, so after N unseccesful boot attempts it will run the alternative boot command.
Best regards,
Wolfgang Denk
--
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@denx.de
O Staat! Wie tief dir alle Besten fluchen! Du bist kein Ziel. Der
Mensch muß weiter suchen. - Christian Morgenstern