diff --git a/build/q6a/README.md b/build/q6a/README.md new file mode 100644 index 000000000..254658e40 --- /dev/null +++ b/build/q6a/README.md @@ -0,0 +1,21 @@ +# Q6A (Radxa Dragon Wing) Build Artifacts + +Cross-compiled llama.cpp with Hexagon NPU backend for Qualcomm QCS6490. + +## Structure + +- `bin/llama-cli` -- ARM64 llama-cli binary, cross-compiled with Hexagon DSP support +- `dsp/` -- DSP-side FastRPC skeleton libraries (deployed to `/usr/lib/rfsa/adsp/`) + - `libggml-htp-v68.so` -- main HTP v68 DSP library + - `libggml-htp-v68-nostart.so` -- variant without startup code + - `libggml-htp-v68-test.so` -- minimal test skeleton + - `libhtp_minimal_skel.so` -- stripped-down skeleton for debugging FastRPC loading +- `lib/` -- Host-side Hexagon backend libraries + - `libggml-hexagon.so.0.9.11` -- Hexagon backend shared library (CPU-side) + - `libggml-htp-v68.so` -- copy of DSP library for reference + +## Status + +DSP library loading fails with error 0xe (AEE_EUNSUPPORTED) from `remote_handle64_open`. +FastRPC transport itself works (calculator test passes). Root cause suspected: DSP runtime +library mismatches or URI/skel entry point mismatch. diff --git a/build/q6a/bin/llama-cli b/build/q6a/bin/llama-cli new file mode 100644 index 000000000..6c807f02b Binary files /dev/null and b/build/q6a/bin/llama-cli differ diff --git a/build/q6a/dsp/libggml-htp-v68-nostart.so b/build/q6a/dsp/libggml-htp-v68-nostart.so new file mode 100644 index 000000000..0841c75fc Binary files /dev/null and b/build/q6a/dsp/libggml-htp-v68-nostart.so differ diff --git a/build/q6a/dsp/libggml-htp-v68-test.so b/build/q6a/dsp/libggml-htp-v68-test.so new file mode 100644 index 000000000..8921e60cf Binary files /dev/null and b/build/q6a/dsp/libggml-htp-v68-test.so differ diff --git a/build/q6a/dsp/libggml-htp-v68.so b/build/q6a/dsp/libggml-htp-v68.so new file mode 100644 index 000000000..b2653e497 Binary files /dev/null and b/build/q6a/dsp/libggml-htp-v68.so differ diff --git a/build/q6a/dsp/libhtp_minimal_skel.so b/build/q6a/dsp/libhtp_minimal_skel.so new file mode 100755 index 000000000..108a0bbd3 Binary files /dev/null and b/build/q6a/dsp/libhtp_minimal_skel.so differ diff --git a/build/q6a/lib/libggml-hexagon.so.0.9.11 b/build/q6a/lib/libggml-hexagon.so.0.9.11 new file mode 100644 index 000000000..77cea5448 Binary files /dev/null and b/build/q6a/lib/libggml-hexagon.so.0.9.11 differ diff --git a/build/q6a/lib/libggml-htp-v68.so b/build/q6a/lib/libggml-htp-v68.so new file mode 100644 index 000000000..b2653e497 Binary files /dev/null and b/build/q6a/lib/libggml-htp-v68.so differ