From: Cliff Brake <cliff.brake@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Overwriting protected flash memory!!!
Date: Thu, 9 Dec 2004 14:00:09 -0500 [thread overview]
Message-ID: <f96d234e04120911001d14d232@mail.gmail.com> (raw)
In-Reply-To: <0843D0F1EEBB2E49A2156C6981B4A17E53B6BA@CGYSVW100.gdcan.com>
On Thu, 9 Dec 2004 10:51:19 -0700, Cabral, Kevin
<Kevin.Cabral@gdcanada.com> wrote:
> This means that the bootm command must have tried to copy the
> kernel image to the load address (0x8000) specified in the tag
> header in uImage. Thus, overwriting flash memory. I do understand
> that I probably should have specified a load address and a entry
> point of 0xA0008000 instead of 0x8000 so that the kernel would
> have loaded from RAM but even making a mistake like that should
> not have overwritten flash memory or even protected flash memory!!!
>
> I thought that as long as my first 3 sectors in flash were write
> protected that it wouldn't be able to overwrite them. Is this a
> bug or a known behavior of u-boot? Could someone please shed
> some light on why this might have happened.
I have seen this several times over the years while working on
embedded systems (including U-boot on PXA255 -- I did the same thing
you did). If you write random data to flash, chances are you will hit
a sequence that will corrupt the flash. All "protecting" flash memory
does is require a slightly more complicated sequence of write
operations to unlock it.
I slightly more reliable mechanism is to gate the write strobe in
hardware or some other hardware mechanism, but this is usually not
practical as most modern systems use flash file systems and a run-away
program could also turn off the hardware lockout mechansim.
Cliff
--
=======================
Cliff Brake
http://bec-systems.com
next prev parent reply other threads:[~2004-12-09 19:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-09 17:51 [U-Boot-Users] Overwriting protected flash memory!!! Cabral, Kevin
2004-12-09 18:35 ` Wolfgang Denk
2004-12-09 19:00 ` Cliff Brake [this message]
2004-12-09 19:22 ` Wolfgang Denk
2004-12-09 20:27 ` Cliff Brake
2004-12-09 20:45 ` Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2004-12-09 21:31 Cabral, Kevin
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=f96d234e04120911001d14d232@mail.gmail.com \
--to=cliff.brake@gmail.com \
--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