aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Dechesne <ndechesne@users.noreply.github.com>2021-06-03 02:12:49 +0200
committerGitHub <noreply@github.com>2021-06-03 02:12:49 +0200
commit0f343be98e9d507e489bd1682382bd338f307a67 (patch)
tree959cb9947b5f2618286515caa9d3cb3de4329c36
parent75a805b5cb3d65ea302164bcfd219af30e6a1c70 (diff)
parentfb1720a45d7f3beade8b805ac4ae891cb608a994 (diff)
downloadmeta-qcom-0f343be98e9d507e489bd1682382bd338f307a67.tar.gz
meta-qcom-0f343be98e9d507e489bd1682382bd338f307a67.tar.bz2
meta-qcom-0f343be98e9d507e489bd1682382bd338f307a67.zip
Merge pull request #309 from lumag/fastrpc-fixes
Fixes for dsp partition mount
-rw-r--r--recipes-support/fastrpc/fastrpc/mount-dsp.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/recipes-support/fastrpc/fastrpc/mount-dsp.sh b/recipes-support/fastrpc/fastrpc/mount-dsp.sh
index 1bacfb8..45363a4 100644
--- a/recipes-support/fastrpc/fastrpc/mount-dsp.sh
+++ b/recipes-support/fastrpc/fastrpc/mount-dsp.sh
@@ -2,16 +2,25 @@
set -e
+modprobe socinfo || true
+
if [ -r /sys/devices/soc0/machine ] ; then
MACHINE=`cat /sys/devices/soc0/machine`
case $MACHINE in
- SM8250|QRB5160)
+ SM8250|QRB5165)
WHAT=/lib/firmware/qcom/sm8250/dspso.bin
;;
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