From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Bad block skipping for command nboot
Date: Tue, 3 Jul 2007 14:27:34 +0200 [thread overview]
Message-ID: <200707031427.34164.sr@denx.de> (raw)
In-Reply-To: <4688DAAD.6020501@siemens.com>
Hi Thomas,
On Monday 02 July 2007, Thomas Knobloch wrote:
> The old implementation of command nboot does not support reading the image
> from NAND flash with skipping of bad blocks. The patch implements a new
> version of the nboot command: by calling nboot.jffs2 from the u-boot
> command line the command will load the image from NAND flash with respect
> to bad blocks (by using nand_read_opts()). This is similar to e.g. the NAND
> read command: "nand read.jffs2 ...".
And that's why I have to ask: Do we really need this command extension? Why
not just use a combination of commands (e.g. "nand read.jffs2 ...;bootm ...)?
Nevertheless one short remark in the patch below:
> Signed-off-by: Thomas Knobloch <knobloch@siemens.com>
>
> --- a/common/cmd_nand.c 2007-02-02 10:02:06.000000000 +0100
> +++ b/common/cmd_nand.c 2007-07-02 10:59:26.000000000 +0200
> @@ -476,14 +476,33 @@
> ulong offset, ulong addr, char *cmd)
> {
> int r;
> - char *ep;
> + char *ep, *s;
> ulong cnt;
> image_header_t *hdr;
> + int jffs2 = 0;
> +
> + s = strchr(cmd, '.');
> + if (s != NULL &&
> + (!strcmp(s, ".jffs2") || !strcmp(s, ".e") || !strcmp(s, ".i")))
> + {
> + jffs2 = 1;
> + }
No parentheses for one lined statements please.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
next prev parent reply other threads:[~2007-07-03 12:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-02 10:57 [U-Boot-Users] [PATCH] Bad block skipping for command nboot Thomas Knobloch
2007-07-03 12:27 ` Stefan Roese [this message]
2007-07-03 14:44 ` Thomas Knobloch
2007-07-03 14:55 ` Stefan Roese
2007-07-03 15:32 ` Thomas Knobloch
2007-07-06 12:59 ` Stefan Roese
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200707031427.34164.sr@denx.de \
--to=sr@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.