[U-Boot] u-boot script question
Sridhar Addagada
sridhar_a at yahoo.com
Tue Aug 7 19:09:10 CEST 2012
I'm using spare bytes of the nvram of the RTC chip to determine which of my two kernels should be booted. Trying to scrip that in u-boot script I'm doing the following.
1. Load 200010 with 0 (mw.b 200010 0)
2. Load 200014 with value from nvram (i2c read 68 15 1 200014)
3. if cmp.b 200010 200014 1; then run boot0; else run boot1;fi
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
Thanks
S
More information about the U-Boot
mailing list