coreboot/src
Vadim Bendebury 9e381a140f vbnv flash: use proper SPI flash offset for NVRAM
The current vbnv flash code mistakenly uses the offset into the NVRAM
area as the absolute offset into the SPI NOR. This causes overwrites
RO section of the flash (when it is not protected) and causes failures
to retrieve the NVRAM contents by the user space apps.

This patch makes sure that the correct offset is used when accessing
NVRAM area in the SPI flash.

BRANCH=storm
BUG=chrome-os-partner:35316
TEST=run the update code on storm.
 - no more RO section corruption observed
 - running 'crossystem recovery_request=1' at Linux prompt causes the
   next boot happen in recovery mode

Change-Id: Iba96cd2e0e5e01c990f8c1de8d2a2233cd9e9bc9
Signed-off-by: Stefan Reinauer <reinauer@chromium.org>
Original-Commit-Id: 9fd15ff4b7aa77536723edbb94fa81f0ae767aed
Original-Change-Id: I86fe4b9a35f7c16b72abf49cfbfcd42cc87937e3
Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/240143
Original-Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: http://review.coreboot.org/9561
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
2015-04-13 12:22:38 +02:00
..
arch urara: add support for DMA coherent memory area 2015-04-13 12:19:38 +02:00
console New mechanism to define SRAM/memory map with automatic bounds checking 2015-04-06 22:05:01 +02:00
cpu vendorcode/amd/agesa/f16kb: Enable support for AM1 socket 2015-04-10 15:29:24 +02:00
device cbfs: correct types used for accessing files 2015-04-01 22:51:10 +02:00
drivers elog: Fix regression that caused elog to omit "System boot" event 2015-04-13 12:21:06 +02:00
ec samus: Log EC panics to eventlog 2015-04-10 20:32:26 +02:00
include PCI - Add interrupt disable bit definition 2015-04-10 20:10:55 +02:00
lib vboot: Include vb2_api.h, instead of lower-level vboot2 header files 2015-04-10 16:49:15 +02:00
mainboard urara: add support for DMA coherent memory area 2015-04-13 12:19:38 +02:00
northbridge northbridge/amd/agesa/familyXY: Make NULL device op explicit 2015-04-09 19:34:22 +02:00
soc urara: add support for DMA coherent memory area 2015-04-13 12:19:38 +02:00
southbridge southbridge/intel/fsp_rangeley/ : Spellcheck + Formatting 2015-04-10 17:57:11 +02:00
superio kconfig: drop intermittend forwarder files 2015-04-07 17:40:28 +02:00
vendorcode vbnv flash: use proper SPI flash offset for NVRAM 2015-04-13 12:22:38 +02:00
Kconfig cbtables: Add RAM config information 2015-04-10 16:47:44 +02:00