From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Mon, 24 Aug 2009 10:57:00 +0200 Subject: [U-Boot] ERROR: too many flash sectors In-Reply-To: <25090177.post@talk.nabble.com> References: <25063511.post@talk.nabble.com> <200908201658.07787.sr@denx.de> <25090177.post@talk.nabble.com> Message-ID: <200908241057.00056.sr@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 On Saturday 22 August 2009 04:58:44 SlinceArm wrote: > Thanks for your reply , Stefan. : ) > > My flash is 32MB > > and here is my source code for flash environment > > #define CONFIG_SYS_FLASH_CFI > #define CONFIG_FLASH_CFI_DRIVER 1 > #define CONFIG_FLASH_CFI_WIDTH FLASH_CFI_32BIT > > #define CONFIG_SYS_MAX_FLASH_BANKS 1 > #define CONFIG_SYS_MAX_FLASH_SECT 128 > > What code did set wrong ?? As I already mentioned, the CONFIG_SYS_MAX_FLASH_SECT value is too low. I suggest you increase it to 512 and give it another try. Cheers, Stefan -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de