Skip to content
Snippets Groups Projects
Commit 23869bf8 authored by Dustin Byford's avatar Dustin Byford Committed by Tom Rini
Browse files

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: default avatarDustin Byford <dustin@cumulusnetworks.com>
parent f351eb0f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment