gistfile1.txt
· 1.1 KiB · Text
Raw
# Newer Qualcomm devices need firmware files for HexagonFS.
# Symlink the firmware files if a sensor registry exists.
if [ -d "$BASEDIR"/mnt/persist/sensors/registry/registry ]
then
# Set up the hexagonrpcd firmware directory
HEXAGONFS_BASE="/usr/share/qcom"
mkdir -p "$HEXAGONFS_BASE"
mount -o mode=755,nodev,noexec,nosuid -t tmpfs none "$HEXAGONFS_BASE"
mkdir "$HEXAGONFS_BASE"/sensors
ln -s "$BASEDIR"/mnt/vendor/etc/acdbdata "$HEXAGONFS_BASE"/acdb
# Some devices have a dsp partition, others have /vendor/dsp.
# The ones with dsp partition have a mount point for it at /vendor/dsp, but
# we don't mount it there, so we need to fall back to /vendor/dsp.
if [ -d "$BASEDIR"/mnt/dsp ]
then
ln -s "$BASEDIR"/mnt/dsp "$HEXAGONFS_BASE"/dsp
else
ln -s "$BASEDIR"/mnt/vendor/dsp "$HEXAGONFS_BASE"/dsp
fi
ln -s "$BASEDIR"/mnt/vendor/etc/sensors/config "$HEXAGONFS_BASE"/sensors/config
ln -s "$BASEDIR"/mnt/persist/sensors/registry/registry "$HEXAGONFS_BASE"/sensors/registry
ln -s "$BASEDIR"/mnt/vendor/etc/sensors/sns_reg_config "$HEXAGONFS_BASE"/sensors/sns_reg.conf
fi
| 1 | # Newer Qualcomm devices need firmware files for HexagonFS. |
| 2 | # Symlink the firmware files if a sensor registry exists. |
| 3 | if [ -d "$BASEDIR"/mnt/persist/sensors/registry/registry ] |
| 4 | then |
| 5 | # Set up the hexagonrpcd firmware directory |
| 6 | HEXAGONFS_BASE="/usr/share/qcom" |
| 7 | mkdir -p "$HEXAGONFS_BASE" |
| 8 | mount -o mode=755,nodev,noexec,nosuid -t tmpfs none "$HEXAGONFS_BASE" |
| 9 | |
| 10 | mkdir "$HEXAGONFS_BASE"/sensors |
| 11 | |
| 12 | ln -s "$BASEDIR"/mnt/vendor/etc/acdbdata "$HEXAGONFS_BASE"/acdb |
| 13 | |
| 14 | # Some devices have a dsp partition, others have /vendor/dsp. |
| 15 | # The ones with dsp partition have a mount point for it at /vendor/dsp, but |
| 16 | # we don't mount it there, so we need to fall back to /vendor/dsp. |
| 17 | if [ -d "$BASEDIR"/mnt/dsp ] |
| 18 | then |
| 19 | ln -s "$BASEDIR"/mnt/dsp "$HEXAGONFS_BASE"/dsp |
| 20 | else |
| 21 | ln -s "$BASEDIR"/mnt/vendor/dsp "$HEXAGONFS_BASE"/dsp |
| 22 | fi |
| 23 | |
| 24 | ln -s "$BASEDIR"/mnt/vendor/etc/sensors/config "$HEXAGONFS_BASE"/sensors/config |
| 25 | |
| 26 | ln -s "$BASEDIR"/mnt/persist/sensors/registry/registry "$HEXAGONFS_BASE"/sensors/registry |
| 27 | |
| 28 | ln -s "$BASEDIR"/mnt/vendor/etc/sensors/sns_reg_config "$HEXAGONFS_BASE"/sensors/sns_reg.conf |
| 29 | fi |
| 30 |