3 Commits
Author SHA1 Message Date
Mukesh Ojha f540e59dbe sahara: auto-assemble minidump ELF after ramdump download
When the kernel minidump backend is active, the Sahara debug table
contains a KELF region — a complete ELF core header describing the
physical address and output offset of every other kernel region.

Detect KELF after download and stitch all kernel regions into a single
minidump.elf, ready for crash or gdb, without any manual concatenation.
Devices without minidump enabled are unaffected.

Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
2026-06-08 10:32:35 -05:00
Mukesh Ojha a4e33f1251 qdl: fix list/ramdump subcommands ignored when flags precede them
The list and ramdump subcommand checks in main() were done before
any option parsing, so flags like --debug placed before the subcommand
(e.g. qdl --debug list) would cause main() to miss the subcommand
and fall through to qdl_flash(), resulting in an error.

Fix by scanning argv for the subcommand while skipping over any
leading option flags.

Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
2026-05-11 10:31:50 -05:00
Mukesh Ojha a1cb4380f2 sahara: increase MAPPING_SZ to 128
Some targets use Sahara image IDs beyond the previous limit of 64,
such as IDs 79 and 80 seen on recent  targets. Increase MAPPING_SZ to
128 to accommodate these higher image IDs.

Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
2026-04-20 17:50:26 -05:00