[U-Boot] u-boot script question

Wolfgang Denk wd at denx.de
Tue Aug 7 20:33:02 CEST 2012


Dear Sridhar Addagada,

In message <1344359350.57879.YahooMailNeo at web162902.mail.bf1.yahoo.com> you wrote:
>
> Is it possible to compare the contents of the memory location with a 
> constant like if test #200010 == 1; then run boot0; else run boot1;fi

Yes, this is possible.  For example:

	if itest.b *200010 == 1; then run boot0; else run boot1; fi

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
The Empire didn't encourage its subjects to go far away, in case they
saw things that might disturb them. For the same reason it had  built
a  wall  around  the  entire country, patrolled by the Heavenly Guard
whose main function was to tread heavily on the fingers of any  inha-
bitants who felt they might like to step outside for five minutes for
a breath of fresh air.                      - Terry Pratchett, _Mort_


More information about the U-Boot mailing list