summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2017-10-02 19:49:23 -0500
committerAdriana Kobylak <anoo@us.ibm.com>2017-10-31 10:18:45 -0500
commite0b7de0a808794f9e057dd0b66595b36f6175f15 (patch)
treed67780f604cce87ccfdb0b64f6a178fcdc53f233
parent861ec750640ec02d7cc717302fcb3fa6f6de78cd (diff)
downloadopenbmc-docs-e0b7de0a808794f9e057dd0b66595b36f6175f15.tar.gz
openbmc-docs-e0b7de0a808794f9e057dd0b66595b36f6175f15.zip
code-update.md: Call fw_setenv twice for PrepareForUpdate
Support for u-boot redundant environment variables was added where u-boot alternates writing to each environment every time a variable is written. But initramfs doesn't know which environment is active so it always reads from the same one. Therefore need to twice set the variables that initramfs reads so that they're written to both environments and initramfs can read them. Change-Id: I203386fc4be6a0deb7fa8b13757c83c8b0d4b4c4 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
-rw-r--r--code-update.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/code-update.md b/code-update.md
index ceb1578..30c1646 100644
--- a/code-update.md
+++ b/code-update.md
@@ -68,9 +68,12 @@ Update from the OpenBMC shell
To update from the OpenBMC shell, follow the steps in this section.
-It is recommended that the BMC be prepared for update:
+It is recommended that the BMC be prepared for update (note that the
+environment variable needs to be set twice for initramfs be able to
+read it due to the U-Boot redundant environments):
fw_setenv openbmconce copy-files-to-ram copy-base-filesystem-to-ram
+ fw_setenv openbmconce copy-files-to-ram copy-base-filesystem-to-ram
reboot
Copy one or more of these `image-*` files to the directory:
OpenPOWER on IntegriCloud