From: Wolfgang Denk Date: Fri, 17 Mar 2006 11:16:42 +0100 Subject: [U-Boot-Users] HELP! can't save environment variables In-Reply-To: Your message of "Fri, 17 Mar 2006 17:24:43 +0800." <67a3f13e0603170124s1e39282erdc802cc18e50e01@mail.gmail.com> Message-ID: <20060317101642.6B195352625@atlas.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 In message <67a3f13e0603170124s1e39282erdc802cc18e50e01@mail.gmail.com> you wrote: > > I ported u-boot to my customized s3c2410 board. My board uses > NOR flash SST39xF1601(2MB). Everything seems to be ok except it > can't save environment variables using saveenv command. Then your flash configuration does not match your hardware. > Would you tell me how to solve that issue? Thanks. Fix your configuration. > I defined smdk2410.h about flash as belows: This is not enough to make any statements, especially sinc we know nothing about your hardware. > #define CFG_ENV_SIZE 0x20000 /* Total Size of Environment Sector */ One formal comment: Your comment is wrong here. What you #define is the toal size of the environment, not the size of an environment sector. These *might* be the identical, but would be pure chance. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Give a man a fish, and you feed him for a day. Teach a man to fish, and he'll invite himself over for dinner. - Calvin Keegan