diff options
author | Grant Williams <grant.williams@fii-na.com> | 2022-04-20 00:24:00 +0300 |
---|---|---|
committer | lancelot.kao <lancelot.kao@fii-usa.com> | 2022-05-07 00:36:39 +0300 |
commit | 62fd6303b89f96b918ec25b3a4f697e90ea6522c (patch) | |
tree | ca6d2bb70ccabc6953ec3540c3bddc9ed1ae30bf | |
parent | 36326ecdaca97997db1fc1abc95e62565553afb2 (diff) | |
download | openbmc-62fd6303b89f96b918ec25b3a4f697e90ea6522c.tar.xz |
meta-fii: meta-kudo: CPLD version byte shift
Adjust CPLD aux version by shifting byte from 2 to 5 to
1 to 4
cmd: kudo.sh fw
Before change: BMC_CPLD: 0.0.15.0
[5], [4], [3], [2]. the [5] is null
Post change: BMC_CPLD: 0.15.0.0
[4], [3], [2], [1]
Signed-off-by: Grant Williams <grant.williams@fii-na.com>
Change-Id: I518ddb5e739fb73876f325b44b0104210a48c09c
-rw-r--r-- | meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-fw/kudo-fw-ver.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-fw/kudo-fw-ver.sh b/meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-fw/kudo-fw-ver.sh index 533fa8e4cc..f5d7669994 100644 --- a/meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-fw/kudo-fw-ver.sh +++ b/meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-fw/kudo-fw-ver.sh @@ -11,11 +11,11 @@ function fw_rev() { case $1 in cpldb) rsp=($(i2cget -y -f -a "${I2C_BMC_CPLD[0]}" 0x"${I2C_BMC_CPLD[1]}" 0x00 i 5)) - ver=$(printf '%d.%d.%d.%d' "${rsp[5]}" "${rsp[4]}" "${rsp[3]}" "${rsp[2]}") + ver=$(printf '%d.%d.%d.%d' "${rsp[4]}" "${rsp[3]}" "${rsp[2]}" "${rsp[1]}") ;; cpldm) rsp=($(i2cget -y -f -a "${I2C_MB_CPLD[0]}" 0x"${I2C_MB_CPLD[1]}" 0x00 i 5)) - ver=$(printf '%d.%d.%d.%d' "${rsp[5]}" "${rsp[4]}" "${rsp[3]}" "${rsp[2]}") + ver=$(printf '%d.%d.%d.%d' "${rsp[4]}" "${rsp[3]}" "${rsp[2]}" "${rsp[1]}") ;; *) ;; |