From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Thu, 20 Jun 2013 08:00:21 +0200 Subject: [U-Boot] Flash not Erased In-Reply-To: <51C1CFB0.2040705@shf.de> References: <51C1CFB0.2040705@shf.de> Message-ID: <51C29A75.20000@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Jan, On 19.06.2013 17:35, Jan Schunke wrote: > I am trying to compile my own U-Boot for microblaze. > Version: > U-Boot 2013.01-dirty (Jun 19 2013 - 16:26:51) > microblazeel-xilinx-linux-gnu-gcc (crosstool-NG 1.15.3) 4.6.4 20120924 > (prerelease) > GNU ld (crosstool-NG 1.15.3) 2.22.90.20121010 > > I have demo where Flash access works fine. > Verion: > U-Boot 2012.10 (Feb 13 2013 - 20:16:43) > microblazeel-xilinx-linux-gnu-gcc (crosstool-NG 1.15.3) 4.6.2 20111018 > (prerelease) > GNU ld (crosstool-NG 1.15.3) 2.21.53.20110813 > > > When I use my own u-boot and try to write to flash I always get > > "Flash not erased" > > it seems to be a problem that my flash is x16 but recognized as x8. > > Are there any Config variables to set the mode to x16? This is a known problem. Those chips connected in x8 mode are known to currently not work correctly with the common CFI NOR flash driver. Could you please try the following patch: http://patchwork.ozlabs.org/patch/249707/ And let us know if this fixes the problem? Thanks, Stefan -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: office at denx.de