From: Dustin Byford Date: Thu, 6 Mar 2014 20:48:21 -0800 Subject: [U-Boot] [PATCH 0/2] fw_env: fix bugs in fw_setenv when erase-block-size < env-size Message-ID: <1394167703-11797-1-git-send-email-dustin@cumulusnetworks.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 All, I'm having a problem where fw_setenv fails writing the environment to a SPI NOR device with a 4K erase block size. This led me to two discoveries and two patches: 1) The "default" number of environment sectors is assumed to be one, even if the environment is larger than a sector. 2) fw_setenv has a bug calculating bytes written for NOR devices. Patches to follow: [PATCH 1/2] fw_env: calculate default number of env sectors [PATCH 2/2] fw_env: correct writes to devices with small erase blocks Thanks, --Dustin