Re: [U-Boot] SPI flash protection

2011-02-15 Thread Mike Frysinger
On Saturday, January 29, 2011 12:00:48 Simon Guinot wrote: > 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

Re: [U-Boot] SPI flash protection

2011-02-01 Thread Albert ARIBAUD
Le 01/02/2011 10:09, Simon Guinot a écrit : >> In this case, a *software* protection mechanism like for NOR flash >> would be a better choice. > > Or no protection at all. After all, there is no such mechanism > implemented for u-boot and Linux... Actually yes, there is, for NOR at least: in U-bo

Re: [U-Boot] SPI flash protection

2011-02-01 Thread Simon Guinot
Hi Reinhard, On Mon, Jan 31, 2011 at 08:17:36AM +0100, Reinhard Meyer wrote: > Dear Albert ARIBAUD, Simon Guinot, > > > Here is the protect area map for a MX25L4005A 4Mb flash: > > bit 2 1 0 | protect level > |___ > 0 0 0 | none >

Re: [U-Boot] SPI flash protection

2011-01-30 Thread Reinhard Meyer
Dear Albert ARIBAUD, Simon Guinot, > Here is the protect area map for a MX25L4005A 4Mb flash: bit 2 1 0 | protect level |___ 0 0 0 | none 0 0 1 | block 7 0 1 0 | block 6-7 0 1 1 | block 4-7 >

Re: [U-Boot] SPI flash protection

2011-01-30 Thread Albert ARIBAUD
Le 31/01/2011 01:31, Simon Guinot a écrit : > On Sun, Jan 30, 2011 at 06:19:20PM +0100, Albert ARIBAUD wrote: >> Le 30/01/2011 15:56, Simon Guinot a écrit : >> So, if SPI Flash protection is possible on block or sector levels, protect the blocks/sectors where U-Boot is located, including

Re: [U-Boot] SPI flash protection

2011-01-30 Thread Simon Guinot
On Sun, Jan 30, 2011 at 06:19:20PM +0100, Albert ARIBAUD wrote: > Le 30/01/2011 15:56, Simon Guinot a écrit : > > >>So, if SPI Flash protection is possible on block or sector levels, > >>protect the blocks/sectors where U-Boot is located, including the > >>environment. > > > >For a Macronix SPI fl

Re: [U-Boot] SPI flash protection

2011-01-30 Thread Albert ARIBAUD
Le 30/01/2011 15:56, Simon Guinot a écrit : >> So, if SPI Flash protection is possible on block or sector levels, >> protect the blocks/sectors where U-Boot is located, including the >> environment. > > For a Macronix SPI flash, the status register export 3 bits (or 4 > depending the model and siz

Re: [U-Boot] SPI flash protection

2011-01-30 Thread Simon Guinot
Hi Albert, On Sun, Jan 30, 2011 at 10:36:17AM +0100, Albert ARIBAUD wrote: > Hi Simon :) > > Le 29/01/2011 18:00, Simon Guinot a écrit : > > 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 Macro

Re: [U-Boot] SPI flash protection

2011-01-30 Thread Albert ARIBAUD
Hi Simon :) Le 29/01/2011 18:00, Simon Guinot a écrit : > 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

[U-Boot] SPI flash protection

2011-01-29 Thread Simon Guinot
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 fla