From: Scott Wood Date: Tue, 4 Aug 2009 14:48:40 -0500 Subject: [U-Boot] Normal command line behavior? In-Reply-To: <17434f2e0908040907j41a235a0uce4f794e689c4d52@mail.gmail.com> References: <17434f2e0908031219h7d630d9sc019cf726ce9c1c8@mail.gmail.com> <4A773C1C.7080109@ge.com> <20090803215830.969568340728@gemini.denx.de> <17434f2e0908040907j41a235a0uce4f794e689c4d52@mail.gmail.com> Message-ID: <20090804194840.GA27240@b07421-ec1.am.freescale.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Aug 04, 2009 at 12:07:17PM -0400, J.C. Wren wrote: > All fair points. > > It appears that the 'nand' commands don't use the new parser structure. Do you mean U_BOOT_CMD_MKENT, find_cmd_tbl, etc? > The 'nand' and 'nboot' commands use the U_BOOT_CMD macro, and have > repeatable defined as 1. The 'nand' command is doing it's own > sub-command parsing (via strcnmp()'s), and as a result, all 'nand' > commands are repeatable. That probably isn't a good idea, and I would > request the the 'nand' command itself be made non-repeatable. The one nand command that probably should be repeatable is "nand dump", with auto-increment similar to "md". -Scott