From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chun Kit Edwin Lau Date: Fri, 27 Jan 2006 10:19:07 -0500 Subject: [U-Boot-Users] U-Boot stop booting after environment change + Environment in large nand flash Message-ID: <1138375147.13654.25.camel@matrix> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi everyone, I have tried the large nand (2k erase size, K9F2G08U0M) code from testing-NAND. I can erase/read/write the NAND flash in U-Boot. I didn't try any ECC code, but things seems to be working out fine. I have modded the env_nand.c a bit to add support for environment in NAND for this chip. And it seemed ok. I have encountered two issues, on my custom AT91RM9200 board First, when I changed the default U-Boot environment in include/configs/at91rm9200dk.h. The resulting U-Boot didn't even boot. It only have the line "Uncompressing image" coming from boot.bin. And this problem was reproducible. And again, the default U-Boot environment was the only thing I changed. Is there a limit on the size of each environment variable? Did I overwrite some part of the program because the environment was too long? Second, I used fw_printenv to retrieve the U-Boot environment from Linux. (again, I modded it a little to use the large NAND) CRC didn't pass, but in U-Boot the CRC was ok. I uncommented the CRC checking in fw_printenv. And found out that one of the environment was corrupted. But the U-Boot didn't show the corruption. Any idea for the two incidents? Thanx Edwin