[U-Boot] [PATCH] sf: Fix s25fs512s erase size and remove SECT_4K flag

Jagan Teki jagannadh.teki at gmail.com
Wed Jun 7 09:37:35 UTC 2017


On Wed, Jun 7, 2017 at 1:11 PM, Suresh Gupta <suresh.gupta at nxp.com> wrote:
>
>
>> -----Original Message-----
>> From: Jagan Teki [mailto:jagan at amarulasolutions.com]
>> Sent: Wednesday, June 07, 2017 12:33 PM
>> To: Suresh Gupta <suresh.gupta at nxp.com>
>> Cc: york sun <york.sun at nxp.com>; Jagan Teki <jagannadh.teki at gmail.com>; u-
>> boot at lists.denx.de; Jagan Teki <jagan at openedev.com>; Yao Yuan
>> <yao.yuan at nxp.com>
>> Subject: Re: [U-Boot] [PATCH] sf: Fix s25fs512s erase size and remove SECT_4K
>> flag
>>
>> Hi Suresh,
>>
>> This what I understood based on my previous datasheet read __attached__
>>
>> In spansion S25FS-S family the physical sectors are grouped as normal and
>> parameter sectors. Parameter sectors are 4kB in size with 8 set located at the
>> bottom or top address of a device.
>> Normal sectors are similar to other flash family with sizes of 64kB or 32 kB.
>>
>> To erase whole flash using sector erase(D8h or DCh) won't effect the parameter
>> sectors, so in order to erase these we must use 4K sector erase commands (20h
>> or 21h) separately.
>>
>> So the lower 8 4k sectors are unaffected even if we do sector erase(d8h)? What
>> if we do 4k erase(20h) whole flash all effected?
>
> Erasing flash with 4k erase(20h) do not erase the whole chip and also not able to erase address
> Space of remaining sectors of 256 kbytes . this I tried with my experiments.
>
> So best way is to disable hybrid mode and configure flash in Uniform Sector Architecture

OK, then send patches to Linux and U-Boot will review and take other
suggestions too.

thanks!
-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.


More information about the U-Boot mailing list