summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Nieman <kyle.nieman@fii-na.com>2022-08-05 16:43:39 +0300
committerVivekanand Veeracholan <vveerach@google.com>2023-03-29 02:03:15 +0300
commit7635923e84a9ca3d99410d75c2affdd131a96394 (patch)
tree7cf3e98e62b5bb632e73c6cd651eb9a208b470c3
parent2cef9b91d7979d73a6b840e3ca4ce3a1d34ba128 (diff)
downloadopenbmc-7635923e84a9ca3d99410d75c2affdd131a96394.tar.xz
meta-fii: meta-kudo: Fix kudo.sh usb error
1. Fix syntax error resulting in "command not found" when calling "kudo.sh usb" 2. Correct device address typo in print statement 3. Display only the udc that exist Signed-off-by: Kyle Nieman <kyle.nieman@fii-na.com> Change-Id: Ic9446eccf864fc518043fc0f1f16098d50415202
-rw-r--r--meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-cmd/kudo.sh8
1 files changed, 4 insertions, 4 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 f82fe048c4..4b123f3c01 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
@@ -282,12 +282,12 @@ function ledtoggle() {
}
function usblist() {
- for i in {0..8}
+ for i in {5..9}
do
cmd=$(devmem 0xf083"${i}"154)
- printf "udc%d : 0xF803%d154-" "${i}" "${i}"
- $cmd
- done
+ printf "udc%d : 0xF083%d154-" "${i}" "${i}"
+ echo "$cmd"
+ done
}
case $1 in