summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2020-04-29 19:00:35 -0700
committerCommit Bot <commit-bot@chromium.org>2020-05-06 17:29:27 +0000
commit2e81696848f2f497fe421756bcd1cd640b06856b (patch)
tree945c56c1854d88ab739d9201d13f6f831bc65a97
parent78f281827f03f83ec70a3b7b335d8b71f94b6525 (diff)
downloadchrome-ec-2e81696848f2f497fe421756bcd1cd640b06856b.tar.gz
Zork: Enable EFS2
EFS v.1 allowed Chromeboxes to verify RW without AP. EFS v.2 will bring the benefits to Chromebooks, which are: - Immediate boot on deeply discharged battery. - Faster charge in S5/G3. - Reduce RO dependency. Allow more code to be updated by AU. - Remove jumptag and workarounds needed for late sysjump. - Can support recovery mode regardless of battery condition. Major improvements over v.1 are: - No A/B slot required. - No signature in RW or public key in RO. - Rollback-attack protection. - Verifies only used part of RW (instead of whole RW section) EC-Cr50 communication is based on the shared UART (go/ec-cr50-comm). EFS2 is documented in go/ec-efs2. Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> BUG=b/146393197 BRANCH=none TEST=Verify Trembyle boots and sync EC RW. AP FW: 13066.0.0 Cr50 FW: 0.6.1 Change-Id: Ib3c5b23817938ccd3a90c90cede8aeea26b37e45 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2171575 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Commit-Queue: Daisuke Nojiri <dnojiri@chromium.org> Tested-by: Daisuke Nojiri <dnojiri@chromium.org> Auto-Submit: Daisuke Nojiri <dnojiri@chromium.org>
-rw-r--r--baseboard/zork/baseboard.h1
-rw-r--r--board/berknip/board.h1
-rw-r--r--board/dalboz/board.h1
-rw-r--r--board/ezkinil/board.h1
-rw-r--r--board/morphius/board.h1
-rw-r--r--board/trembyle/board.h1
6 files changed, 6 insertions, 0 deletions
diff --git a/baseboard/zork/baseboard.h b/baseboard/zork/baseboard.h
index 846d99a0ad..1682254c4d 100644
--- a/baseboard/zork/baseboard.h
+++ b/baseboard/zork/baseboard.h
@@ -48,6 +48,7 @@
#define CONFIG_PWM_KBLIGHT
#define CONFIG_TEMP_SENSOR
#define CONFIG_THERMISTOR_NCP15WB
+#define CONFIG_VBOOT_EFS2
#define CONFIG_VBOOT_HASH
#define CONFIG_VOLUME_BUTTONS
diff --git a/board/berknip/board.h b/board/berknip/board.h
index bf05491a81..e9ab9e1a9e 100644
--- a/board/berknip/board.h
+++ b/board/berknip/board.h
@@ -59,6 +59,7 @@
#define GPIO_VOLUME_DOWN_L GPIO_VOLDN_BTN_ODL
#define GPIO_VOLUME_UP_L GPIO_VOLUP_BTN_ODL
#define GPIO_WP_L GPIO_EC_WP_L
+#define GPIO_PACKET_MODE_EN GPIO_EC_H1_PACKET_MODE
#ifndef __ASSEMBLER__
diff --git a/board/dalboz/board.h b/board/dalboz/board.h
index 714417480b..9b8b21d413 100644
--- a/board/dalboz/board.h
+++ b/board/dalboz/board.h
@@ -63,6 +63,7 @@
#define GPIO_VOLUME_DOWN_L GPIO_VOLDN_BTN_ODL
#define GPIO_VOLUME_UP_L GPIO_VOLUP_BTN_ODL
#define GPIO_WP_L GPIO_EC_WP_L
+#define GPIO_PACKET_MODE_EN GPIO_EC_H1_PACKET_MODE
#ifndef __ASSEMBLER__
diff --git a/board/ezkinil/board.h b/board/ezkinil/board.h
index 66343a3991..0f68f35b38 100644
--- a/board/ezkinil/board.h
+++ b/board/ezkinil/board.h
@@ -62,6 +62,7 @@
#define GPIO_VOLUME_DOWN_L GPIO_VOLDN_BTN_ODL
#define GPIO_VOLUME_UP_L GPIO_VOLUP_BTN_ODL
#define GPIO_WP_L GPIO_EC_WP_L
+#define GPIO_PACKET_MODE_EN GPIO_EC_H1_PACKET_MODE
#ifndef __ASSEMBLER__
diff --git a/board/morphius/board.h b/board/morphius/board.h
index bda004edda..f62f4a64f3 100644
--- a/board/morphius/board.h
+++ b/board/morphius/board.h
@@ -68,6 +68,7 @@
#define GPIO_VOLUME_DOWN_L GPIO_VOLDN_BTN_ODL
#define GPIO_VOLUME_UP_L GPIO_VOLUP_BTN_ODL
#define GPIO_WP_L GPIO_EC_WP_L
+#define GPIO_PACKET_MODE_EN GPIO_EC_H1_PACKET_MODE
/* I2C mapping from board specific function*/
#define I2C_PORT_THERMAL I2C_PORT_AP_HDMI
diff --git a/board/trembyle/board.h b/board/trembyle/board.h
index 1e699b254c..5af5ef98bb 100644
--- a/board/trembyle/board.h
+++ b/board/trembyle/board.h
@@ -59,6 +59,7 @@
#define GPIO_VOLUME_DOWN_L GPIO_VOLDN_BTN_ODL
#define GPIO_VOLUME_UP_L GPIO_VOLUP_BTN_ODL
#define GPIO_WP_L GPIO_EC_WP_L
+#define GPIO_PACKET_MODE_EN GPIO_EC_H1_PACKET_MODE
#ifndef __ASSEMBLER__