Re: [U-Boot] env: sf: fix environment in SPI NOR

2019-01-21 Thread Tom Rini
On Mon, Jan 21, 2019 at 10:53:12AM +0100, Heiko Schocher wrote: > Hello Tom, > > Am 19.01.2019 um 03:54 schrieb Tom Rini: > >On Fri, Jan 18, 2019 at 10:45:56AM +0100, Heiko Schocher wrote: > > > >>commit 9a9d66f5eff0 ("env: add spi_flash_read_env function") > >> > >>breaks Environment functionalit

Re: [U-Boot] env: sf: fix environment in SPI NOR

2019-01-21 Thread Heiko Schocher
Hello Tom, Am 19.01.2019 um 03:54 schrieb Tom Rini: 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

Re: [U-Boot] env: sf: fix environment in SPI NOR

2019-01-18 Thread Tom Rini
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: