From: Wolfgang Denk Date: Fri, 05 Oct 2007 01:02:52 +0200 Subject: [U-Boot-Users] is it possible to make the booting sequence in U-boot? In-Reply-To: Your message of "Thu, 04 Oct 2007 16:57:11 MDT." Message-ID: <20071004230252.62EA024884@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message you wrote: > > Thanks a lot! But I am not sure, is there the "if " command in uboot? I rea > d the manual and did not find it. I am just work on it for a few weeks, so. > .. Yes, there is, if you configure the hush shell as command line parser. But then: > > 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 This is overly complex and not needed at all. 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 at denx.de If I had to live my life again, I'd make the same mistakes, only sooner. -- Tallulah Bankhead