On Thu, Sep 22, 2011 at 03:57:26AM +0200, Marek Vasut wrote: > The "nand info" and "nand device" now set shell/environment variables: > nand_writesize ... nand page size > nand_oobsize ..... nand oob area size > nand_erasesize ... nand erase block size > > Also, the "nand info" command now displays this info. > > Signed-off-by: Marek Vasut <marek.va...@gmail.com> > Cc: Scott Wood <scottw...@freescale.com> > Cc: Stefano Babic <sba...@denx.de> > Cc: Wolfgang Denk <w...@denx.de> > Cc: Detlev Zundel <d...@denx.de> > --- > common/cmd_nand.c | 25 ++++++++++++++++++++++--- > 1 files changed, 22 insertions(+), 3 deletions(-) >
Applied to u-boot-nand-flash next > + /* Set geometry info */ > + memset(buf, 0, bufsz); > + sprintf(buf, "%x", nand->writesize); > + setenv("nand_writesize", buf); > + > + memset(buf, 0, bufsz); > + sprintf(buf, "%x", nand->oobsize); > + setenv("nand_oobsize", buf); > + > + memset(buf, 0, bufsz); > + sprintf(buf, "%x", nand->erasesize); > + setenv("nand_erasesize", buf); ...with memsets removed. -Scott _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot