From 1243c0f0f2bde1abd0f79b4ab7ea3ced680c9706 Mon Sep 17 00:00:00 2001 From: John Klug Date: Fri, 1 Sep 2017 15:39:05 -0500 Subject: Update the mts-io scripts for no radio case. --- recipes-bsp/multitech/mts-io/mts-io.init | 2 +- recipes-bsp/multitech/mts-io/mts-io.mtcap.init | 11 ++++++----- recipes-bsp/multitech/mts-io/radio-reset.init | 6 ++++-- recipes-bsp/multitech/mts-io_1.5.14.bb | 4 ---- recipes-bsp/multitech/mts-io_1.5.15.bb | 4 ++++ 5 files changed, 15 insertions(+), 12 deletions(-) delete mode 100644 recipes-bsp/multitech/mts-io_1.5.14.bb create mode 100644 recipes-bsp/multitech/mts-io_1.5.15.bb (limited to 'recipes-bsp') diff --git a/recipes-bsp/multitech/mts-io/mts-io.init b/recipes-bsp/multitech/mts-io/mts-io.init index b670cef..fd87c35 100644 --- a/recipes-bsp/multitech/mts-io/mts-io.init +++ b/recipes-bsp/multitech/mts-io/mts-io.init @@ -187,7 +187,7 @@ case $1 in fi /bin/busybox usleep $USLPTIME reset_array - mts-io-sysfs store radio-reset 0 + [ -w /sys/devices/platform/mts-io/radio-reset ] && mts-io-sysfs store radio-reset 0 mfser_init if ! reset_path $RS9113RST ; then ((fail++)) diff --git a/recipes-bsp/multitech/mts-io/mts-io.mtcap.init b/recipes-bsp/multitech/mts-io/mts-io.mtcap.init index e047c40..2e41124 100644 --- a/recipes-bsp/multitech/mts-io/mts-io.mtcap.init +++ b/recipes-bsp/multitech/mts-io/mts-io.mtcap.init @@ -46,11 +46,12 @@ cell_init() { # remove /dev/modem_at[0,1] symlinks rm -f /dev/modem_at[0,1] - # power down the cellular chip gracefully - mts-io-sysfs store radio-power 0 - - # power up the cellular chip - mts-io-sysfs store radio-power 1 + if [ -w /sys/devices/platform/mts-io/radio-power] ; then + # power down the cellular chip gracefully + mts-io-sysfs store radio-power 0 + # power up the cellular chip + mts-io-sysfs store radio-power 1 + fi } start_lora_led_updater() { diff --git a/recipes-bsp/multitech/mts-io/radio-reset.init b/recipes-bsp/multitech/mts-io/radio-reset.init index 3ce07c7..00bbe2b 100644 --- a/recipes-bsp/multitech/mts-io/radio-reset.init +++ b/recipes-bsp/multitech/mts-io/radio-reset.init @@ -7,8 +7,10 @@ ENABLED="yes" case $1 in stop) - echo "Resetting cellular radio" - mts-io-sysfs store radio-reset 0 + if [ -w /sys/devices/platform/mts-io/radio-reset ] ; then + mts-io-sysfs store radio-reset 0 + echo "Resetting cellular radio" + fi ;; *) diff --git a/recipes-bsp/multitech/mts-io_1.5.14.bb b/recipes-bsp/multitech/mts-io_1.5.14.bb deleted file mode 100644 index 85b3de1..0000000 --- a/recipes-bsp/multitech/mts-io_1.5.14.bb +++ /dev/null @@ -1,4 +0,0 @@ -require mts-io.inc - -PR = "${INC_PR}.0" - diff --git a/recipes-bsp/multitech/mts-io_1.5.15.bb b/recipes-bsp/multitech/mts-io_1.5.15.bb new file mode 100644 index 0000000..85b3de1 --- /dev/null +++ b/recipes-bsp/multitech/mts-io_1.5.15.bb @@ -0,0 +1,4 @@ +require mts-io.inc + +PR = "${INC_PR}.0" + -- cgit v1.2.3