From mboxrd@z Thu Jan 1 00:00:00 1970 From: santigopal_mondal at mindtree.com Date: Mon, 26 Nov 2007 20:46:21 -0800 Subject: [U-Boot-Users] Problem using cfi_flash driver for s29GL512N flashes Message-ID: <18385083.518451196138781394.JavaMail.nabble@isper.nabble.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi folks, Greetings everybody..I am using u-boot1.1.5 for at91rm9200ek type board(arm). The flash memory used here is s29GL512N(128k sectors).I am able to configure the board/config flle properly it seems. The driver also erases/writes properly it seems. The problem is when I am trying to save environment variables it is getting set but in some cases after a reset it is showing Bad CRC and getting to the default environment. The other thing is I am not able to boot the kernel image from the flash due to some bad checksum error. Everywhere the problem is related to crc. I am a bit confused why the CRC check fails everytime? Is it not writing properly and if it is not writing properly then how it is able to get the u-boot prompt.. The required configurations defined #define CFG_ENV_ADDR (CFG_FLASH_BASE + 0x20000) #define CFG_ENV_SIZE 0x2000 #define CFG_ENV_SECT_SIZE 0x20000 #define CFG_MALLOC_LEN (CFG_ENV_SIZE + 128*1024) #define CONFIG_STACKSIZE (32 * 1024) The TEXT_BASE in config.mk : TEXT_BASE 0x21F00000 Please help as soon as possible... Thanks in advance and cheers