diff --git a/boards/modalai/voxl2/target/voxl-px4 b/boards/modalai/voxl2/target/voxl-px4 index a065612118..2d7e3d9129 100755 --- a/boards/modalai/voxl2/target/voxl-px4 +++ b/boards/modalai/voxl2/target/voxl-px4 @@ -29,10 +29,12 @@ if /bin/ls /usr/lib/rfsa/adsp/testsig-*.so &> /dev/null; then /bin/echo "Found DSP signature file" else /bin/echo "[WARNING] Could not find DSP signature file" - # Look for the DSP signature generation script - if [ -f /share/modalai/qrb5165-slpi-test-sig/generate-test-sig.sh ]; then - /bin/echo "[INFO] Attempting to generate the DSP signature file" - # Automatically generate the test signature so that px4 can run on SLPI DSP + # Look for the DSP signature generation script (platform-specific) + if [ -f /share/modalai/qcs6490-slpi-test-sig/generate-test-sig.sh ]; then + /bin/echo "[INFO] Attempting to generate the DSP signature file (qcs6490)" + /share/modalai/qcs6490-slpi-test-sig/generate-test-sig.sh + elif [ -f /share/modalai/qrb5165-slpi-test-sig/generate-test-sig.sh ]; then + /bin/echo "[INFO] Attempting to generate the DSP signature file (qrb5165)" /share/modalai/qrb5165-slpi-test-sig/generate-test-sig.sh else /bin/echo "[ERROR] Could not find the DSP signature file generation script" diff --git a/boards/modalai/voxl2/target/voxl-px4-hitl b/boards/modalai/voxl2/target/voxl-px4-hitl index c2b2f41583..c0da8adb74 100755 --- a/boards/modalai/voxl2/target/voxl-px4-hitl +++ b/boards/modalai/voxl2/target/voxl-px4-hitl @@ -6,10 +6,12 @@ if /bin/ls /usr/lib/rfsa/adsp/testsig-*.so &> /dev/null; then /bin/echo "Found DSP signature file" else /bin/echo "[WARNING] Could not find DSP signature file" - # Look for the DSP signature generation script - if [ -f /share/modalai/qrb5165-slpi-test-sig/generate-test-sig.sh ]; then - /bin/echo "[INFO] Attempting to generate the DSP signature file" - # Automatically generate the test signature so that px4 can run on SLPI DSP + # Look for the DSP signature generation script (platform-specific) + if [ -f /share/modalai/qcs6490-slpi-test-sig/generate-test-sig.sh ]; then + /bin/echo "[INFO] Attempting to generate the DSP signature file (qcs6490)" + /share/modalai/qcs6490-slpi-test-sig/generate-test-sig.sh + elif [ -f /share/modalai/qrb5165-slpi-test-sig/generate-test-sig.sh ]; then + /bin/echo "[INFO] Attempting to generate the DSP signature file (qrb5165)" /share/modalai/qrb5165-slpi-test-sig/generate-test-sig.sh else /bin/echo "[ERROR] Could not find the DSP signature file generation script"