<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;"><br></div>Hi, Jean,<br><br>Thanks a lot! But I am not sure, is there the "if " command in uboot? I read the manual and did not find it. I am just work on it for a few weeks, so...<br><br>Thanks and Regards,<br><br>Bin<br><br><br><hr id="stopSpelling">> Date: Fri, 5 Oct 2007 00:30:42 +0200<br>> Subject: Re: [U-Boot-Users] is it possible to make the booting sequence in U-boot?<br>> From: plagnioj@jcrosoft.com<br>> To: xubin0712@hotmail.com; u-boot-users@lists.sourceforge.net<br>> <br>> You can try to boot your first kernel image and if it does not found your<br>> kernel switch to the other with the "if" command.<br>> <br>> And if you have a watchdog you can incrise your ttl and if your system does<br>> not boot in a predefine laps time you reboot and try your second image.<br>> <br>> This the algo<br>> Set env try First<br>> Boot From First<br>> if not enter in entry point<br>> Set env try First<br>> Boot From second<br>> if not enter in entry point<br>> Error Message No system available<br>> else<br>> if watchdog timeout<br>> Error Message No system available<br>> else<br>> Banzai System Start<br>> endif<br>> endif<br>> else<br>> if watchdog timeout<br>> Error Message No system available<br>> else<br>> Set env try First<br>> Boot From second<br>> if not enter in entry point<br>> Error Message No system available<br>> else<br>> if watchdog timeout<br>> Error Message No system available<br>> else<br>> Banzai System Start<br>> endif<br>> endif<br>> endif<br>> endif<br>> <br>> <br>> Best Regards<br>> Le 5/10/07 0:17, « Bin » <xubin0712@hotmail.com> a écrit :<br>> <br>> > <br>> > <br>> > Hi, All,<br>> > <br>> > I am trying to make two different booting methods with some booting sequence<br>> > in u-boot, like the bios in PC does. Basically I have kernel Image 1 in NAND<br>> > and File system 1 on hard drive, kernel image 2 and File system 2 also on<br>> > the same NAND Flash. The goal here is try to boot the system from Image 1<br>> > and file system 1 first, and if the hard drive fails, the bootloader<br>> > (u-boot) will try to boot from Image 2 and File system 2 *automatically*. My<br>> > question is, is it possible to achieve this in uboot? If so, any hints?<br>> > <br>> > Any suggestions are appreciated.<br>> > <br>> > Thanks and Regards,<br>> > <br>> > Bin<br>> <br>> <br><br /><hr />Peek-a-boo FREE Tricks & Treats for You! <a href='http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us' target='_new'>Get 'em!</a></body>
</html>