From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] AT91SAM9260-EK: Trying to load U-Boot env from NAND
Date: Mon, 03 Dec 2007 10:55:44 +0100 [thread overview]
Message-ID: <20071203095544.3AE6C2430C@gemini.denx.de> (raw)
In-Reply-To: Your message of "Sun, 02 Dec 2007 23:14:52 PST." <14124814.post@talk.nabble.com>
In message <14124814.post@talk.nabble.com> you wrote:
>
> Yes! I get it work, the problem was, that it had a problem to accept the
> crc32-Checksum. So I just erased the sequence where this happens. Here the
> patchfile:
>
> --- env_nand.c 2007-11-30 14:15:03.000000000 +0100
> +++ env_nand.c 2007-11-30 14:16:17.000000000 +0100
> @@ -247,13 +247,7 @@ void env_relocate_spec (void)
> crc2_ok = (crc32(0, tmp_env2->data, ENV_SIZE) == tmp_env2->crc);
> }
>
> - if(!crc1_ok && !crc2_ok)
> - return use_default();
> - else if(crc1_ok && !crc2_ok)
> - gd->env_valid = 1;
> - else if(!crc1_ok && crc2_ok)
> - gd->env_valid = 2;
> - else {
> +
> /* both ok - check serial */
You mean you completely castrated all logic that would verify if the
environment is OK? Arrggghhhh...
> Maybe it isn't the best solution but it works ;)
You THINK it works, but actually it's completely broken.
Don't do that!!!
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
"UNIX was not designed to stop you from doing stupid things, because
that would also stop you from doing clever things." - Doug Gwyn
next prev parent reply other threads:[~2007-12-03 9:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-29 9:59 [U-Boot-Users] AT91SAM9260-EK: Trying to load U-Boot env from NAND Destrukto
2007-11-29 14:06 ` Dharmosoth Seetharam
2007-11-29 15:32 ` Destrukto
2007-11-30 6:17 ` Dharmosoth Seetharam
2007-12-03 7:14 ` Destrukto
2007-12-03 9:28 ` Dharmosoth Seetharam
2008-01-25 13:02 ` Destrukto
2007-12-03 9:55 ` Wolfgang Denk [this message]
2007-12-04 8:33 ` Destrukto
2007-12-04 9:42 ` Andreas Schweigstill
2008-01-25 13:04 ` Destrukto
2007-12-04 13:57 ` Wolfgang Denk
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=20071203095544.3AE6C2430C@gemini.denx.de \
--to=wd@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox