The tftp clients in the modem requests files from either /readwrite or
/readonly/firmware/image, but as the wlanmdsp.mbn file requested is
signed with a vendor specific key these paths needs to be translated.
/readwrite is translated to /tmp/tqftpserv for now and the
/readonly/firmware/image is translated to a search for the requested
file alongside any of the remoteproc firmware files. The result is that
the wlanmdsp.mbn can be stored in linux-firmware alongside it's
device/vendor specific modem firmware.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Some mechanism for toggling the verbosity of the prints should be
introduced, but for now just comment out all the debug prints.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
When during a read we close the socket as we send the last block the
remote will be notified about the closure and consider the transfer
incomplete. Leave the socket open until we receive a EOF error from the
remote side.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
The two include files was dropped during development but lingered in my
repository, remove the include of them - and define MAX(x, y).
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Introduce a prototype of the tqftpserv, a server implementing trivial
file transfer protocol over AF_QIPCRTR.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>