From: Tolunay Orkun <listmember@orkun.us>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] CFI, saveenv Flash no Erased
Date: Fri, 12 Aug 2005 17:56:40 -0500 [thread overview]
Message-ID: <42FD2928.2090605@orkun.us> (raw)
In-Reply-To: <42FCE953.1010605@psyent.com>
The timeout check is not correct in the current code. I had submitted a
patch to Wolfgang on July 2nd, 2005. I do not know if/when he will apply
it. The patch is available via:
http://sourceforge.net/mailarchive/message.php?msg_id=12234135
Try if it solves your issue...
Best regards,
Tolunay
Scott McNutt wrote:
> Hi All,
> First, my thanks to the CFI developers -- great job!
>
> With the erase and cp commands, the CFI flash driver seems just
> fine. However, when I execute saveenv (env is in flash), I observe
> "Flash not Erased".
>
> I'm using AMDLV065D on a Nios-II board with the latest cfi_flash.c
> (rev 1.18). In routine flash_write_cfiword (cfi_flash.c, line 1146),
> flag == 0, indicating that the flash is not "(sufficiently) erased":
>
> flag = ((cptr.cp[0] & cword.c) == cword.c);
>
> Adding a delay of about 500 msec corrects the problem, and I was able
> to trace the bits changing (eventually) to 0xff with some hack code.
>
> This is the first time I've worked with the CFI code, so I'm looking
> for some guidance from someone familiar with the code on how to track
> down the problem/potential solution & where I should focus my attention.
>
> Thanks,
> --Scott
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
next prev parent reply other threads:[~2005-08-12 22:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-12 18:24 [U-Boot-Users] CFI, saveenv Flash no Erased Scott McNutt
2005-08-12 22:56 ` Tolunay Orkun [this message]
2005-08-12 23:13 ` Wolfgang Denk
2005-08-15 17:04 ` Scott McNutt
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=42FD2928.2090605@orkun.us \
--to=listmember@orkun.us \
--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