summaryrefslogtreecommitdiff
path: root/chip/mec1322/build.mk
diff options
context:
space:
mode:
authorDivya Jyothi <divya.jyothi@intel.com>2015-04-16 21:34:20 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-04-23 07:04:41 +0000
commit9aea3710b22a5e235ddd03a62daa0d60dc913aa9 (patch)
treeb761ef6c4ee75bfa7e3c846a8ad1998e444aefe0 /chip/mec1322/build.mk
parent19a201dd949863e0c8a99da71b14fb6f40d846b8 (diff)
downloadchrome-ec-9aea3710b22a5e235ddd03a62daa0d60dc913aa9.tar.gz
mec1322: lfw loader + RO/RW architecture
mec1322 only has 96KB program memory, vs 256KB flash space on lm4.We no longer have enough program memory to load both RO and RW at boot. We'll want to implement a small loader program that will load either RO or RW from flash, and then jump to the loaded image. CONFIG_FW_INCLUDE_RO is enabled to include RO image into the build. pack.py script is altered to load the (lfw + R)O on boot. Software sync is not added.Distinguish between RO/RW is yet to be added. flash_ec is altered to support padding 0xFFs to 256k ec.bin to match the size of the SPI flash of the board. BUG=chromium:37510 BRANCH=None TEST=Make -j buildall,Verified ec.bin to be 256k. Verified RW image at offset 0h and (lfw + RO) at offset 2000h. On boot sysjump to lfw. lfw checks in shared SRAM (currently RO) and jumps to RO image. Change-Id: Ib9b114e2f24a615d5e5bd8b3803be621d1e5bd17 Signed-off-by: Divya Jyothi <divya.jyothi@intel.com> Reviewed-on: https://chromium-review.googlesource.com/265807 Reviewed-by: Shawn N <shawnn@chromium.org> Reviewed-by: Icarus W Sparry <icarus.w.sparry@intel.com>
Diffstat (limited to 'chip/mec1322/build.mk')
-rw-r--r--chip/mec1322/build.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/chip/mec1322/build.mk b/chip/mec1322/build.mk
index 2d49949e4f..109bb05dd2 100644
--- a/chip/mec1322/build.mk
+++ b/chip/mec1322/build.mk
@@ -33,9 +33,10 @@ CHIP_SPI_SIZE_KB?=256
# Commands to convert $^ to $@.tmp
cmd_obj_to_bin = $(OBJCOPY) --gap-fill=0xff -O binary $< $@.tmp1 ; \
${SCRIPTDIR}/pack_ec.py -o $@.tmp -i $@.tmp1 \
- --payload_key ${SCRIPTDIR}/rsakey_sign_payload.pem \
- --header_key ${SCRIPTDIR}/rsakey_sign_header.pem \
- --spi_size ${CHIP_SPI_SIZE_KB} ; rm -f $@.tmp1
+ --loader_file $(mec1322-lfw-flat) \
+ --payload_key ${SCRIPTDIR}/rsakey_sign_payload.pem \
+ --header_key ${SCRIPTDIR}/rsakey_sign_header.pem \
+ --spi_size ${CHIP_SPI_SIZE_KB} ; rm -f $@.tmp1
mec1322-lfw = chip/mec1322/lfw/ec_lfw
mec1322-lfw-flat = $(out)/$(mec1322-lfw)-lfw.flat