summaryrefslogtreecommitdiff
path: root/common/firmware_image.S
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2014-11-19 16:15:57 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-12-15 22:46:21 +0000
commit91ca05cf3ac251c196397de8dc2d0cb8c91abd4c (patch)
tree8c295942d2e49073e61af3eb334de5441f802d11 /common/firmware_image.S
parent98a485bf439c6eeb83b90edb37dcf3c2e2e1213f (diff)
downloadchrome-ec-91ca05cf3ac251c196397de8dc2d0cb8c91abd4c.tar.gz
ryu_sh_loader: Add board directory for load image
Ryu sensor hub has asymectric RO/RW images. The first one is very limited (not i2c master, no sensor drivers, gesture recognition). Image size is alter to offer more space for the RW firmware image, compiled with ryu_sh board. To write RO image and basic RW image: flashrom -V -p ec:type=sh,block=0x800 --fast-verify -w /tmp/ryu_sh_loader/ec.bin To write the expected RW image: flashrom -V -p ec:type=sh,block=0x800 --fast-verify -w -i EC_RW:/tmp/ryu_sh/ec.bin BRANCH=ToT BUG=chrome-os-partner:33908 CQ-DEPEND=CL:231970,CL:233233 TEST=load on Ryu, confirmed limited operation. Change-Id: Ib976e2b048935adfb9b2b072c071db5be2bc1c09 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/231984 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common/firmware_image.S')
-rw-r--r--common/firmware_image.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/firmware_image.S b/common/firmware_image.S
index fa79849982..aaaed19921 100644
--- a/common/firmware_image.S
+++ b/common/firmware_image.S
@@ -14,8 +14,10 @@
#define FW_IMAGE(sect) STRINGIFY(FW_FILE(OUTDIR,PROJECT,sect))
/* Read Only firmware */
+#ifdef CONFIG_FW_INCLUDE_RO
.section .image.RO, "ax"
.incbin FW_IMAGE(RO)
+#endif
/* Read Write firmware */
.section .image.RW, "ax"