<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><br>This one sounds great! I will try this one first, and will get the feedback here, thanks a lot!<br><br>Regards,<br><br>Bin<br><br><hr id="stopSpelling">> To: xubin0712@hotmail.com<br>> CC: u-boot-users@lists.sourceforge.net<br>> From: wd@denx.de<br>> Subject: Re: [U-Boot-Users] is it possible to make the booting sequence in U-boot?<br>> Date: Fri, 5 Oct 2007 00:32:38 +0200<br>> <br>> In message <13049956.post@talk.nabble.com> you wrote:<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>> This is possible, and actually trivial.<br>> <br>> Define two environment variables, say "boot_disk" and "boot_nand" to<br>> boot from disk or NAND, respectively, such that "run boot_disk" will<br>> perform a disk boot the way you want it, and "run boot_nand" will<br>> boot form NAND.<br>> <br>> Then define "bootcmd" as "run boot_disk;run "boot_nand".<br>> <br>> That's all.<br>> <br>> See also the manual for additional bells and whistles like watchdog<br>> support, boot counter etc.<br>> <br>> Best regards,<br>> <br>> Wolfgang Denk<br>> <br>> -- <br>> DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel<br>> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany<br>> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de<br>> "Life and death are seldom logical."<br>> "But attaining a desired goal always is."<br>>         -- McCoy and Spock, "The Galileo Seven", stardate 2821.7<br><br /><hr />Help yourself to FREE treats served up daily at the Messenger Café. <a href='http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGLM_OctWLtagline' target='_new'>Stop by today!</a></body>
</html>