On Wed, Jun 7, 2017 at 1:11 PM, Suresh Gupta <[email protected]> wrote: > > >> -----Original Message----- >> From: Jagan Teki [mailto:[email protected]] >> Sent: Wednesday, June 07, 2017 12:33 PM >> To: Suresh Gupta <[email protected]> >> Cc: york sun <[email protected]>; Jagan Teki <[email protected]>; u- >> [email protected]; Jagan Teki <[email protected]>; Yao Yuan >> <[email protected]> >> 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. _______________________________________________ U-Boot mailing list [email protected] https://lists.denx.de/listinfo/u-boot

