From: Wolfgang Denk Date: Tue, 23 Nov 2004 16:48:58 +0100 Subject: [U-Boot-Users] Error in saving the Env varibles on the flash In-Reply-To: Your message of "Tue, 23 Nov 2004 20:33:16 +0530." <272c45c6041123070373d12b23@mail.gmail.com> Message-ID: <20041123154903.D6668C1430@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 <272c45c6041123070373d12b23@mail.gmail.com> you wrote: > ... > and/or end address not on sector boundary".When I explore the code I > found out the in the function flash_fill_sector_range in the file > 'u-boot/comman/cmd_flash.c' the range is checked for the each sector > and the parameter sector is not being considered to determine the > number of sector to unprotect them .Can some one please tell me it > this an error in the code or i m specifying the parameter sector in > the wrong way. This code is being used successfully by literally hundrets of board types. Odds are that there is a bug in your code. 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 Neckties strangle clear thinking. -- Lin Yutang