Last active 1741110233

Adrian's Avatar Adrian revised this gist 1741110233. Go to revision

1 file changed, 29 insertions

gistfile1.txt(file created)

@@ -0,0 +1,29 @@
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
Newer Older