diff options
Diffstat (limited to 'meta-openbmc-mods/meta-ast2600')
3 files changed, 78 insertions, 6 deletions
diff --git a/meta-openbmc-mods/meta-ast2600/recipes-bsp/u-boot/files/0038-Disabling-serial-console-if-FFUJ-is-enabled.patch b/meta-openbmc-mods/meta-ast2600/recipes-bsp/u-boot/files/0038-Disabling-serial-console-if-FFUJ-is-enabled.patch index 372d69e26..676107b54 100644 --- a/meta-openbmc-mods/meta-ast2600/recipes-bsp/u-boot/files/0038-Disabling-serial-console-if-FFUJ-is-enabled.patch +++ b/meta-openbmc-mods/meta-ast2600/recipes-bsp/u-boot/files/0038-Disabling-serial-console-if-FFUJ-is-enabled.patch @@ -1,4 +1,4 @@ -From a9f5d0357701c817106cd158d377ef645309ccc2 Mon Sep 17 00:00:00 2001 +From 622a7d9cae44056b7cc06f1c1997fc883cd8c954 Mon Sep 17 00:00:00 2001 From: gokulsanker <gokul.sanker.v.g@intel.com> Date: Wed, 8 Dec 2021 01:44:19 +0530 Subject: [PATCH] If FFUJ is enabled serial console must be disabled @@ -8,16 +8,56 @@ line interface. Serial console is disabled by creating an indefinite sleep if FFUJ is enabled, same functionality is used in whitely platforms +Since, boot failure check and FFUJ check were handled +by a single function, U-boot was disabling serial console which was the +expected behaviour of FFUJ mode. +That single fuction was splitted into two separate function for FFUJ +check and boot failure check. So in case of failed boot check, BMC +is going for #ast mode. + Tested: Serial console is disabled in FFUJ mode +After 3rd terminating command for watchdog,this is the output: +Board ID: 0x02 +Net: eth1: ftgmac@1e680000 +FFUJ: 0 +Intel failed boot check +ast# + Signed-off-by: gokulsanker <gokul.sanker.v.g@intel.com> +Signed-off-by: Anjaliintel-21 <anjali.ray@intel.com> --- - common/autoboot.c | 12 +++++++++--- - 1 file changed, 9 insertions(+), 3 deletions(-) + board/aspeed/ast2600_intel/intel.c | 6 ++---- + common/autoboot.c | 16 ++++++++++++++-- + 2 files changed, 16 insertions(+), 6 deletions(-) +diff --git a/board/aspeed/ast2600_intel/intel.c b/board/aspeed/ast2600_intel/intel.c +index 37b798ea44..fc435935de 100644 +--- a/board/aspeed/ast2600_intel/intel.c ++++ b/board/aspeed/ast2600_intel/intel.c +@@ -57,7 +57,8 @@ int intel_failed_boot(void) + ret = led_get_by_label("id", &dev); + if (!ret) + led_set_state(dev, LEDST_ON); +- ++ printf("Intel failed boot check \n"); ++ + return 1; + } + +@@ -111,9 +112,6 @@ int gpio_abort(void) + { + int value; + +- if (intel_failed_boot()) +- return 1; +- + /* check ffuj to abort the autoboot */ + value = read_ffuj(); + printf("FFUJ: %d\n", value); diff --git a/common/autoboot.c b/common/autoboot.c -index 8a99780423..21e59feea7 100644 +index 8a99780423..b9b872f6f1 100644 --- a/common/autoboot.c +++ b/common/autoboot.c @@ -19,6 +19,7 @@ DECLARE_GLOBAL_DATA_PTR; @@ -28,13 +68,12 @@ index 8a99780423..21e59feea7 100644 #ifndef DEBUG_BOOTKEYS #define DEBUG_BOOTKEYS 0 #endif -@@ -271,9 +272,14 @@ static int abortboot(int bootdelay) +@@ -271,9 +272,20 @@ static int abortboot(int bootdelay) { int abort = 0; - abort = gpio_abort(); - if (abort) -- goto exit; + if (gpio_abort()) + { + printf("#### BMC is in disabled state(FFU Jumper is asserted), " @@ -43,6 +82,12 @@ index 8a99780423..21e59feea7 100644 + mdelay(WAIT_STATE_TIMEOUT); + } + } ++ ++ if (intel_failed_boot()) ++ { ++ abort=1; + goto exit; ++ } if (bootdelay >= 0) abort = __abortboot(bootdelay); diff --git a/meta-openbmc-mods/meta-ast2600/recipes-kernel/linux/linux-aspeed/0006-Fix-PSU-fan-sensor-read-0.patch b/meta-openbmc-mods/meta-ast2600/recipes-kernel/linux/linux-aspeed/0006-Fix-PSU-fan-sensor-read-0.patch new file mode 100644 index 000000000..800b107d7 --- /dev/null +++ b/meta-openbmc-mods/meta-ast2600/recipes-kernel/linux/linux-aspeed/0006-Fix-PSU-fan-sensor-read-0.patch @@ -0,0 +1,26 @@ +From bf27d571ef4e46724a60e26ff52e0eae9709db75 Mon Sep 17 00:00:00 2001 +From: Zhikui Ren <zhikui.ren@intel.com> +Date: Tue, 11 Jan 2022 09:00:01 -0800 +Subject: [PATCH] Fix PSU fan sensor read 0 + +Signed-off-by: Zhikui Ren <zhikui.ren@intel.com> +--- + drivers/hwmon/pmbus/pmbus_core.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/hwmon/pmbus/pmbus_core.c b/drivers/hwmon/pmbus/pmbus_core.c +index a4bf6f0fe013..c45b283fffa7 100644 +--- a/drivers/hwmon/pmbus/pmbus_core.c ++++ b/drivers/hwmon/pmbus/pmbus_core.c +@@ -997,7 +997,7 @@ static ssize_t pmbus_set_sensor(struct device *dev, + if (ret < 0) + rv = ret; + else +- sensor->data = -ENODATA; ++ sensor->data = regval; + mutex_unlock(&data->update_lock); + return rv; + } +-- +2.17.1 + diff --git a/meta-openbmc-mods/meta-ast2600/recipes-kernel/linux/linux-aspeed_%.bbappend b/meta-openbmc-mods/meta-ast2600/recipes-kernel/linux/linux-aspeed_%.bbappend index 94d22381f..7ec69d252 100644 --- a/meta-openbmc-mods/meta-ast2600/recipes-kernel/linux/linux-aspeed_%.bbappend +++ b/meta-openbmc-mods/meta-ast2600/recipes-kernel/linux/linux-aspeed_%.bbappend @@ -8,4 +8,5 @@ SRC_URI += " \ file://0003-serial-8250_aspeed-Make-port-type-fixed.patch \ file://0004-Add-a-workaround-to-cover-UART-interrupt-bug-in-AST2.patch \ file://0005-Add-sample-i3c-slave-driver.patch \ + file://0006-Fix-PSU-fan-sensor-read-0.patch \ " |