From 40346214e85f6d833cd80d67e36ce2942e75ffc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Olguy=20Can=C3=A9us?= Date: Fri, 16 Aug 2019 22:44:14 -0700 Subject: [PATCH] Fix bmc could't get COMe uart log if not run sol.sh manually (#105) Summary: Fix mTerm_wedge.log could capture COMe uart log. Set uart selection to BMC. Pull Request resolved: https://github.com/facebookexternal/openbmc.celestica/pull/105 Reviewed By: joancaneus fbshipit-source-id: fcae7ff977 --- .../meta-wedge400/recipes-utils/openbmc-utils/files/sol.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 meta-facebook/meta-wedge400/recipes-utils/openbmc-utils/files/sol.sh diff --git a/meta-facebook/meta-wedge400/recipes-utils/openbmc-utils/files/sol.sh b/meta-facebook/meta-wedge400/recipes-utils/openbmc-utils/files/sol.sh old mode 100644 new mode 100755 index 86d41a3c39eb..58ec3468f22b --- a/meta-facebook/meta-wedge400/recipes-utils/openbmc-utils/files/sol.sh +++ b/meta-facebook/meta-wedge400/recipes-utils/openbmc-utils/files/sol.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright 2018-present Facebook. All Rights Reserved. +# Copyright 2019-present Facebook. All Rights Reserved. # # This program file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the @@ -17,6 +17,8 @@ # 51 Franklin Street, Fifth Floor, # Boston, MA 02110-1301 USA # +. /usr/local/bin/openbmc-utils.sh + CONSOLE_SH=/usr/local/bin/us_console.sh FILE=/etc/us_pseudo_tty TTY=/dev/ttyS0 @@ -54,7 +56,7 @@ start_sol_session() { # if mTerm server is running use mTerm_client to connect to userver # otherwise fallback to the old method -echo 0x3 > /sys/bus/i2c/devices/12-003e/uart_selection +echo 0x3 > $SMBCPLD_SYSFS_DIR/uart_selection if mTerm_server_running; then exec /usr/local/bin/mTerm_client wedge else