diff options
author | 2021-06-02 19:21:38 +0300 | |
---|---|---|
committer | 2021-06-02 19:21:38 +0300 | |
commit | fb1720a45d7f3beade8b805ac4ae891cb608a994 (patch) | |
tree | 9db0ecaae437c897d89136e75bee7b16be3e18d6 | |
parent | 29f8576ceddedbe21b1beb7bddea8a9606632bae (diff) | |
download | meta-qcom-fb1720a45d7f3beade8b805ac4ae891cb608a994.tar.gz meta-qcom-fb1720a45d7f3beade8b805ac4ae891cb608a994.tar.bz2 meta-qcom-fb1720a45d7f3beade8b805ac4ae891cb608a994.zip |
fastrpc: mount-dsp: wait for /dev/disk/by-partlabel
In case dspso image is not available, we'd try to mount existing
partition using partlabel. Wait for /dev/disk/by-partlabel dir to become
available.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
-rw-r--r-- | recipes-support/fastrpc/fastrpc/mount-dsp.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/recipes-support/fastrpc/fastrpc/mount-dsp.sh b/recipes-support/fastrpc/fastrpc/mount-dsp.sh index a76e485..45363a4 100644 --- a/recipes-support/fastrpc/fastrpc/mount-dsp.sh +++ b/recipes-support/fastrpc/fastrpc/mount-dsp.sh @@ -13,7 +13,14 @@ if [ -r /sys/devices/soc0/machine ] ; then esac fi -if [ -z "$WHAT" -o ! -r "$WHAT"] ; then +if [ -z "$WHAT" -o ! -r "$WHAT" ] ; then + i=0 + while ! [ -d /dev/disk/by-partlabel ] ; do + i=$(( $i + 1)) + [ $i -gt 30 ] && break; + sleep 1 + done + if [ -h /dev/disk/by-partlabel/dsp_a ] ; then WHAT=/dev/disk/by-partlabel/dsp_a else |