public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] SPI flash protection
@ 2011-01-29 17:00 Simon Guinot
  2011-01-30  9:36 ` Albert ARIBAUD
  2011-02-15  8:42 ` Mike Frysinger
  0 siblings, 2 replies; 10+ messages in thread
From: Simon Guinot @ 2011-01-29 17:00 UTC (permalink / raw)
  To: u-boot

Hi,

I am looking to add U-Boot support for the LaCie Network Space v2 board.

The SoC is a Kirkwood 88F6281_A0 and the boot device is a Macronix SPI
flash (MX25L4005A). My problem is that the embedded stock U-Boot (1.1.4
version patched by Marvell and LaCie) enable write protection for the
SPI flash. Then, after an U-Boot update, turn off this protection is
needed to allow saving U-Boot environment.

It is not clear for me how to proceed. Disable the write protection from
the board setup code could be an idea but a problem is that the SPI flash
API don't export any helpful method...
Maybe I should add one ?

An another idea is disabling the write protection anyway while
initializing the flash (from the low level macronix driver). It is quite
straightforward but I don't know if a flash driver is allowed to do
that. After all, a flash could be protected for some good reasons.

My last idea is doing nothing and let an another piece of software
handle the problem...

Thanks in advance for advices.

Simon

PS: some pointers about this project:

git : http://git.lacie-nas.org/u-boot-lacie.git (branch netspace_v2)
wiki: http://www.lacie-nas.org/doku.php?id=network_space_v2#u-boot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110129/bb9ba3b9/attachment.pgp 

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-02-15  8:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-29 17:00 [U-Boot] SPI flash protection Simon Guinot
2011-01-30  9:36 ` Albert ARIBAUD
2011-01-30 14:56   ` Simon Guinot
2011-01-30 17:19     ` Albert ARIBAUD
2011-01-31  0:31       ` Simon Guinot
2011-01-31  6:52         ` Albert ARIBAUD
2011-01-31  7:17           ` Reinhard Meyer
2011-02-01  9:09             ` Simon Guinot
2011-02-01 12:26               ` Albert ARIBAUD
2011-02-15  8:42 ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox