]> git.dujemihanovic.xyz Git - u-boot.git/commit
env_onenand: set ONENAND_MAX_ENV_SIZE to CONFIG_ENV_SIZE
authorDavid du Colombier <0intro@gmail.com>
Wed, 13 Jun 2012 21:24:35 +0000 (23:24 +0200)
committerLukasz Majewski <l.majewski@samsung.com>
Mon, 6 Aug 2012 08:38:47 +0000 (10:38 +0200)
commit034afbcc167651f1322c50a58cac278e2256f4b8
treeda5e782cfa2ffc67d579591d24bd3cc19b10fb40
parent56249fea3d5e32cddcd9160e51ec93a9c4327c6b
env_onenand: set ONENAND_MAX_ENV_SIZE to CONFIG_ENV_SIZE

This fix prevents env_import() CRC to fail when CONFIG_ENV_SIZE
is not equal to 4096 bytes
It also prevents mtd->read and mtd->write to be incomplete when
the environment is larger than 4096 bytes.

Signed-off-by: David du Colombier <0intro@gmail.com>
common/env_onenand.c