The elog code calculates flash offsets and their equivalent addresses in the memory address space. However, it assumes the detected flash size is entirely mapped into the address space. This can lead to incorrect calculations. Add code to allow ROM_SIZE to be less than detected flash size. The underlying assumption is that the first ROM_SIZE bytes are programmed into the larger device. BUG=None BRANCH=None TEST=Built and ran a 8MiB image on a 16MiB flash part. Change-Id: Id848f136515289b40594b7d3762e26e3e55da62f Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/60501 Reviewed-by: Duncan Laurie <dlaurie@chromium.org> |
||
|---|---|---|
| .. | ||
| boot_count.c | ||
| elog.c | ||
| elog_internal.h | ||
| gsmi.c | ||
| Kconfig | ||
| Makefile.inc | ||