]> git.baikalelectronics.ru Git - uboot.git/commit
env: sf: fix environment in SPI NOR
authorHeiko Schocher <hs@denx.de>
Fri, 18 Jan 2019 09:45:56 +0000 (10:45 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 18 Jan 2019 18:40:36 +0000 (13:40 -0500)
commitfc379428bd8100dc033285d144c302904acfdf7d
treea79b7b8282e29e820022d037b6f6f2c1d5d52c0d
parente00250f0db2e6e7ff2fd9fb9697f2cb06ff06721
env: sf: fix environment in SPI NOR

commit 7fb32bf81552 ("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 <hs@denx.de>
env/sf.c