summaryrefslogtreecommitdiff
path: root/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh
diff options
context:
space:
mode:
authorXP Chen <xiao-peng.chen@fii-na.com>2021-08-27 01:30:19 +0300
committerXP Chen <xiao-peng.chen@fii-na.com>2021-08-27 01:36:53 +0300
commit0fb270aeb5f3d22d0a1fd7cbd9ed3d8e6dd759ff (patch)
treef0f627c0be69771b75e216542da24866394ec246 /meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh
parent4010b172c9086c4c5ef9261321de6213ac2d8871 (diff)
downloadopenbmc-0fb270aeb5f3d22d0a1fd7cbd9ed3d8e6dd759ff.tar.xz
meta-fii/meta-kudo: Modify kudo-fw.sh SCP EEPROM update methods
1. Update both primary and backup SCP EEPROMS when updating the BIOS Modify the 2. Switch the SCP mux correctly on EVT and DVT hw Signed-off-by: XP Chen <xiao-peng.chen@fii-na.com> Change-Id: Idd07f4b57bfd2eaa13795f60b653915f1cf7c161
Diffstat (limited to 'meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh')
-rw-r--r--meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh b/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh
index 5145009a6..adb86f238 100644
--- a/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh
+++ b/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh
@@ -1,15 +1,23 @@
#!/bin/bash
source /usr/sbin/kudo-lib.sh
+# 0 for EVT. DVT will have a non-zero board version
+boardver=$(printf '%d' `cat /sys/bus/i2c/drivers/fiicpld/34-0076/CMD00 | awk '{print $6}'`)
# sleep so that FRU and all ipmitool Devices are ready before HOST OS
# gpio 143 for HPM_STBY_RST_N do to DC-SCM spec
set_gpio_ctrl 143 out 1
-sleep 5 # for the MUX to get ready
+sleep 5 # for the MUX to get ready
# set all mux route to CPU before power on host
# BMC_CPU_RTC_I2C_SEL #120
set_gpio_ctrl 120 out 1
# BMC_CPU_DDR_I2C_SEL #84
set_gpio_ctrl 84 out 1
+# On EVT machines, the secondary SCP EEPROM is used.
+# Set BMC_I2C_BACKUP_SEL to secondary.
+if [[ $boardver == 0 ]]; then
+ echo "EVT system. Choosing secondary SCP EEPROM."
+ set_gpio_ctrl 168 out 0
+fi
# BMC_CPU_EEPROM_I2C_SEL #85
set_gpio_ctrl 85 out 1
# BMC_CPU_PMBUS_SEL #86