
You can try to boot your first kernel image and if it does not found your kernel switch to the other with the "if" command.
And if you have a watchdog you can incrise your ttl and if your system does not boot in a predefine laps time you reboot and try your second image.
This the algo Set env try First Boot From First if not enter in entry point Set env try First Boot From second if not enter in entry point Error Message No system available else if watchdog timeout Error Message No system available else Banzai System Start endif endif else if watchdog timeout Error Message No system available else Set env try First Boot From second if not enter in entry point Error Message No system available else if watchdog timeout Error Message No system available else Banzai System Start endif endif endif endif
Best Regards Le 5/10/07 0:17, « Bin » xubin0712@hotmail.com a écrit :
Hi, All,
I am trying to make two different booting methods with some booting sequence in u-boot, like the bios in PC does. Basically I have kernel Image 1 in NAND and File system 1 on hard drive, kernel image 2 and File system 2 also on the same NAND Flash. The goal here is try to boot the system from Image 1 and file system 1 first, and if the hard drive fails, the bootloader (u-boot) will try to boot from Image 2 and File system 2 *automatically*. My question is, is it possible to achieve this in uboot? If so, any hints?
Any suggestions are appreciated.
Thanks and Regards,
Bin