From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 18 Jan 2019 21:54:07 -0500 Subject: [U-Boot] env: sf: fix environment in SPI NOR In-Reply-To: <20190118094556.1542119-1-hs@denx.de> References: <20190118094556.1542119-1-hs@denx.de> Message-ID: <20190119025407.GT27429@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Jan 18, 2019 at 10:45:56AM +0100, Heiko Schocher wrote: > commit 9a9d66f5eff0 ("env: add spi_flash_read_env function") > > breaks Environment functionality, as it reads only > until 2 \0 are found, but fills the buffer with 0x0 > instead 0xff which leads in an incorrect crc sum. > > Fix: init the read buffer with 0xff instead 0x00 > > Signed-off-by: Heiko Schocher Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: