aboutsummaryrefslogtreecommitdiff
path: root/board/hpe/gxp/gxp.env
diff options
context:
space:
mode:
authorTom Rini2022-06-22 11:23:03 -0400
committerTom Rini2022-06-22 21:30:05 -0400
commit781a144a7a7e1c3efea94b1a8be8ea65f5e0ac13 (patch)
tree79e8c475203f1fdde2ee1ed43a73a1f25285df1f /board/hpe/gxp/gxp.env
parent0ae1c77199a6ae0b5bf759f894736898d62d46b0 (diff)
gxp: Convert to text file environment
Convert this platform to using the text file environment rather than defining CONFIG_EXTRA_ENV_SETTINGS. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/hpe/gxp/gxp.env')
-rw-r--r--board/hpe/gxp/gxp.env27
1 files changed, 27 insertions, 0 deletions
diff --git a/board/hpe/gxp/gxp.env b/board/hpe/gxp/gxp.env
new file mode 100644
index 00000000000..4760bf1663a
--- /dev/null
+++ b/board/hpe/gxp/gxp.env
@@ -0,0 +1,27 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+
+recover_file=openbmc-hpe-recovery-image.mtd
+recover_cmd=usb start; mw.b 0xD100000D 0x40;
+ if fatload usb 0 0x50000000 $recover_file 0x4C0000 0x80000; then
+ setenv bootargs console=ttyS0,115200 recovery;
+ setenv force_recovery;
+ saveenv;
+ bootm 0x50000000;
+ else
+ while itest 0 < 1; do
+ mw.b 0xd1000005 0xc0;
+ sleep .1;
+ mw.b 0xd1000005 0x00;
+ sleep .1;
+ done;
+ fi;
+ reset;
+spiboot=if itest.b *0xD10000B2 == 6; then
+ run recover_cmd;
+ fi;
+ if printenv force_recovery; then
+ run recover_cmd;
+ else
+ bootm 0xfc080000;
+ run recover_cmd;
+ fi;