[U-Boot] Reading from NAND

Wolfgang Denk wd at denx.de
Mon Feb 21 21:48:59 CET 2011


Dear D Kesselring,

In message <AANLkTimMa27Q6rpH4hL32J7URQWR5Fj7V1tgeX2OWBxe at mail.gmail.com> you wrote:
> > Is there any reason for not using itest.b directly?
> If I do a test on a non-word aligned location the processor gets an exception.

You cannot do a byte access on a random address?? Than something is
seriously broken in your system.

> Also does the shell support adding values like "itest *(${base} +
> ${offset}) == 0x01"?

Why would that be needed?

> Or any other integer addition or subtraction so that a loop can walk an array?

You can use setexpr in a loop to increment or decrement an address or
perform any other kind of arithmetics.

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
Marriage is the sole cause of divorce.


More information about the U-Boot mailing list