Bjorn Andersson adfdcc6b01 firehose: Clean up return values
firehose_read() uses -errno to denote errors, -1 to represent NAK, 1 to
represent ACK and 0 to represent that we got a LOG and should read
again. This choice is unintuitive and choosing to overload errno and NAK
on the negative value space isn't awesome.

Additionally, firehose_run() does in some cases return -errno and others
-1.

Clean this up by defining ACK and NAK in the non-negative value space
and use the negative value space for errno. Use -EAGAIN to signal that
firehose_read() should make another read attempt.

Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
2024-06-07 22:10:57 +02:00
2024-05-08 18:29:38 +02:00
2017-08-29 13:56:05 +02:00
2024-06-07 22:10:57 +02:00
2017-10-04 19:33:09 -07:00
2024-04-09 11:36:05 +02:00
2024-06-07 21:50:57 +02:00
2024-04-09 11:36:05 +02:00

Qualcomm Download
=================

This tool communicates with USB devices of id 05c6:9008 to upload a flash
loader and use this to flash images.

Usage:
  qdl <prog.mbn> [<program> <patch> ...]

Building
========
In order to build the project you need libxml2 and libusb-1.0 headers
and libraries, found in e.g. the libxml2-dev and libusb-1.0.0-dev packages

With these installed run:
  make
Description
No description provided
Readme BSD-3-Clause 928 KiB
Languages
C 96.8%
Makefile 1.7%
Shell 1.5%