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
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 f82fe04..4b123f3 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 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