summaryrefslogtreecommitdiff
path: root/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-cmd
diff options
context:
space:
mode:
authorLancelot Kao <lancelot.kao@fii-usa.com>2021-05-25 23:04:57 +0300
committerMohaimen Alsamarai <mohaimen.alsamarai@fii-na.com>2021-07-30 17:33:05 +0300
commit19bfafb997ae74a9df3c2080de6609158ed638d6 (patch)
tree89cc4f90238d435e1c4386229bfdfadd6d951625 /meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-cmd
parente4ddfb1616d0b5d77ff8d49fdb201bf6349a8207 (diff)
downloadopenbmc-19bfafb997ae74a9df3c2080de6609158ed638d6.tar.xz
meta-fii/meta-kudo: update kudo utility
1. Update to support DVT board 2. Support command for console redirection 3. Disable 2nd CPU clock when only 1 CPU is installed 4. Set HPM_STBY_RST_N to High to match dcscm spec Signed-off-by: Lancelot Kao <lancelot.kao@fii-usa.com> Change-Id: I300b272587ddc2c7d82aa76196e5db100d02aae2 Signed-off-by: Mohaimen Alsamarai <mohaimen.alsamarai@fii-na.com>
Diffstat (limited to 'meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-cmd')
-rw-r--r--meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-cmd/kudo.sh37
1 files changed, 27 insertions, 10 deletions
diff --git a/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-cmd/kudo.sh b/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-cmd/kudo.sh
index 2305a74d5d..03adb8ef6d 100644
--- a/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-cmd/kudo.sh
+++ b/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-cmd/kudo.sh
@@ -13,7 +13,6 @@ function usage_rst() {
}
function usage_led() {
-
echo " kudo led 'att'/'boot' [parameter]"
echo " on --> change to CPU console"
echo " off --> change to CPU 0 SCP console"
@@ -22,11 +21,13 @@ function usage_led() {
function usage_uart() {
echo " kudo uart [parameter]"
- echo " host --> change to CPU console"
- echo " scp1 --> change to CPU 0 SCP console"
- echo " scp2 --> change to CPU 1 SCP console"
- echo " hosthr --> change CPU console to header"
- echo " scphr --> change SCP console to header"
+ echo " host --> show CPU console"
+ echo " scp --> show SCP0 console"
+ echo " swhost --> change to CPU console to ttyS1"
+ echo " swscp1 --> change to CPU 0 SCP console to ttyS3"
+ echo " swscp2 --> change to CPU 1 SCP console"
+ echo " swhosthr --> change CPU console to header"
+ echo " swscphr --> change SCP console to header"
echo " display --> "
}
@@ -114,22 +115,38 @@ function fw_rev() {
function uartmux() {
case $1 in
host)
+ if [ `tty` == "/dev/ttyS0" ]; then
+ echo "Couldn't redirect to the host console within BMC local console"
+ else
+ echo "Entering Console use 'shift ~~..' to quit"
+ obmc-console-client -c /etc/obmc-console/server.ttyS1.conf
+ fi
+ ;;
+ scp)
+ if [ `tty` == "/dev/ttyS0" ]; then
+ echo "Couldn't redirect to the scp console within BMC local console"
+ else
+ echo "Entering Console use 'shift ~~..' to quit"
+ obmc-console-client -c /etc/obmc-console/server.ttyS3.conf
+ fi
+ ;;
+ swhost)
set_gpio_ctrl 167 out 1
;;
- scp1)
+ swscp1)
set_gpio_ctrl 161 out 1
set_gpio_ctrl 177 out 1
set_gpio_ctrl 198 out 0
;;
- scp2)
+ swscp2)
set_gpio_ctrl 161 out 1
set_gpio_ctrl 177 out 1
set_gpio_ctrl 198 out 1
;;
- hosthr)
+ swhosthr)
set_gpio_ctrl 167 out 0
;;
- scphr)
+ swscphr)
set_gpio_ctrl 161 out 0
set_gpio_ctrl 177 out 0
;;