]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
fw_env: calculate default number of env sectors
authorDustin Byford <dustin@cumulusnetworks.com>
Fri, 7 Mar 2014 04:48:22 +0000 (20:48 -0800)
committerTom Rini <trini@ti.com>
Wed, 12 Mar 2014 21:04:28 +0000 (17:04 -0400)
commit23869bf80b68af9ef1802b9e556f4fd0e9e57fe5
tree332dbcaf3f807b17eb378a68c317c4db2362fa84
parentf351eb0f18e7fe16c32bcc7951dca559fdd21ecf
fw_env: calculate default number of env sectors

The assumed number of environment sectors (always 1) leads to an
incorrect top_of_range calculation in fw.env.c when a flash device has
an erase block size smaller than the environment data size (number of
environment sectors > 1).

This change updates the default number of environment sectors to at
least cover the size of the environment.

Also corrected a false statement about the number of sectors column in
fw_env.config.

Signed-off-by: Dustin Byford <dustin@cumulusnetworks.com>
tools/env/fw_env.c
tools/env/fw_env.config