summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Filippov <a.filippov@yadro.com>2020-05-27 15:55:34 +0300
committerAndrew Geissler <geissonator@yahoo.com>2020-05-29 23:49:17 +0300
commitba04d699958701f1d645d1131c461ba1ad08f12a (patch)
treef227cc5f7350b47d50ddfb5905756477325b1419
parent9c8c27be725df83963ff8a188d33e20a4a3d7043 (diff)
downloadopenbmc-ba04d699958701f1d645d1131c461ba1ad08f12a.tar.xz
meta-nicole: Enable field mode
Enables the field mode by default. This marks the BMC as production version and activates some production specific functionalities. For example, this makes the software manager to discard unverified firmware images. Tested: - The output of `fw_printenv` contains `fieldmode=true`. - `busctl get-property xyz.openbmc_project.Software.BMC.Updater \ /xyz/openbmc_project/software \ xyz.openbmc_project.Control.FieldMode FieldModeEnabled` returns `true` (From meta-yadro rev: ca760a233b348efaf860e0691ea4b3f1c0db1ec1) Change-Id: I9c6fbead319f3c990efba669c923dccb97110e16 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
-rw-r--r--meta-yadro/meta-nicole/recipes-bsp/u-boot/files/0002-config-ast-common-set-fieldmode-to-true.patch27
-rw-r--r--meta-yadro/meta-nicole/recipes-bsp/u-boot/u-boot-aspeed_%.bbappend1
l---------meta-yadro/meta-nicole/recipes-bsp/u-boot/u-boot-fw-utils-aspeed_%.bbappend1
3 files changed, 29 insertions, 0 deletions
diff --git a/meta-yadro/meta-nicole/recipes-bsp/u-boot/files/0002-config-ast-common-set-fieldmode-to-true.patch b/meta-yadro/meta-nicole/recipes-bsp/u-boot/files/0002-config-ast-common-set-fieldmode-to-true.patch
new file mode 100644
index 000000000..a5c1bb2ae
--- /dev/null
+++ b/meta-yadro/meta-nicole/recipes-bsp/u-boot/files/0002-config-ast-common-set-fieldmode-to-true.patch
@@ -0,0 +1,27 @@
+From efc627f4a288ea2e7969407f50fc403bb0264df1 Mon Sep 17 00:00:00 2001
+From: Alexander Filippov <a.filippov@yadro.com>
+Date: Wed, 23 Oct 2019 15:51:25 +0300
+Subject: [PATCH] config/ast-common: set fieldmode to true
+
+Force enables field mode. Our system always in production.
+
+Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
+---
+ include/configs/ast-common.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/configs/ast-common.h b/include/configs/ast-common.h
+index a0243083bd..6285fa4037 100644
+--- a/include/configs/ast-common.h
++++ b/include/configs/ast-common.h
+@@ -117,6 +117,7 @@
+ #define ASPEED_ENV_SETTINGS \
+ "verify=yes\0" \
+ "spi_dma=yes\0" \
++ "fieldmode=true\0" \
+ ""
+
+ #endif /* __AST_COMMON_CONFIG_H */
+--
+2.21.0
+
diff --git a/meta-yadro/meta-nicole/recipes-bsp/u-boot/u-boot-aspeed_%.bbappend b/meta-yadro/meta-nicole/recipes-bsp/u-boot/u-boot-aspeed_%.bbappend
index f0ff09e02..bf7802a68 100644
--- a/meta-yadro/meta-nicole/recipes-bsp/u-boot/u-boot-aspeed_%.bbappend
+++ b/meta-yadro/meta-nicole/recipes-bsp/u-boot/u-boot-aspeed_%.bbappend
@@ -2,4 +2,5 @@ FILESEXTRAPATHS_append := "${THISDIR}/files:"
SRC_URI_append = " \
file://0001-Add-system-reset-status-support.patch \
+ file://0002-config-ast-common-set-fieldmode-to-true.patch \
"
diff --git a/meta-yadro/meta-nicole/recipes-bsp/u-boot/u-boot-fw-utils-aspeed_%.bbappend b/meta-yadro/meta-nicole/recipes-bsp/u-boot/u-boot-fw-utils-aspeed_%.bbappend
new file mode 120000
index 000000000..742334ade
--- /dev/null
+++ b/meta-yadro/meta-nicole/recipes-bsp/u-boot/u-boot-fw-utils-aspeed_%.bbappend
@@ -0,0 +1 @@
+u-boot-aspeed_%.bbappend \ No newline at end of file