summaryrefslogtreecommitdiff
path: root/qcom
AgeCommit message (Collapse)Author
2020-03-17db845c: qcom: Fix pointer arithmetic warnings.John Stultz
Building the qcom tools, we see a lot of the following: warning: arithmetic on a pointer to void is a GNU extension Fix this by casting the void* ptrs to char* when doing pointer arithmatic. Change-Id: Id2b0098388406bfc434ee01344a39e3413cb281c Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-03-17db845c: qcom: Add some __unused annotations to avoid compiler warningsJohn Stultz
Add __unused annotations to qcom remoteproc userland programs to avoid compiler warnings. Change-Id: Idd9405ff03afbeeb76433f14d24ee40eef42ed7e Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-03-17db845c: qcom: Add init.qcom.rc to start up remoteproc services/wifiJohn Stultz
Adds the init.qcom.rc file to the build so the qcom remoteproc userland code can be started and wifi can be initialized. This pach was split out from earlier patch by Amit Pundir <amit.pundir@linaro.org> Change-Id: I2032e7c2d3d5d3a10b7afd387f97a93235a908cf Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-03-17db845c: qcom: tqftpserv: Null terminate firmware_value stringJohn Stultz
Null terminate firmware_value string to prevent strlen() read past the end of buffer. Change-Id: I57cd01c4d0c58c6057872bc4b36129f09bc034a3 Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-03-17db845c: qcom: tqftpserv: Use /data/vendor for temporary filesAmit Pundir
On AOSP, /tmp is not available. Use /data/vendor instead for temporary files. Change-Id: I1d6ebd669573b3c3134e6da943ea9355ed83a3fe Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-03-17db845c: qcom: rmtfs: Use -o option to override partition by-nameAmit Pundir
Instead of hardcoding BY_PARTLABEL_PATH for AOSP, reuse -o option as suggested by Bjorn to expand John's patch to find correct partition by-name on newer kernels (which is /dev/block/platform/soc*/*.*/by-name). For example: On db845c running v5.4+ kernel we run: rmtfs -o /dev/block/platform/soc@0/1d84000.ufshc/by-name -P -r -s Change-Id: I05a18566370aff1018a79ec2c83532a2849ca359 Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-03-17db845c: qcom: rmtfs: Keep /dev/qcom_rmtfs_memX fd openAmit Pundir
/dev/qcom_rmtfs_mem0 fd is required to share the data. Change-Id: I62a2605cdf699047654f3a0b222be9610bae1085 Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2020-03-17db845c: qcom: Add userspace tools to talk to dsp and modemAmit Pundir
Add Qcom userspace tools and their respective sepolicy rules. Userspace tools are downloaded from following github: To trigger loading of wlan firmware on SDM845 git clone https://github.com/andersson/pd-mapper Userspace reference for net/qrtr in the Linux kernel git clone https://github.com/andersson/qrtr Qualcomm Remote Filesystem Service Implementation git clone https://github.com/andersson/rmtfs Trivial File Transfer Protocol server over AF_QIPCRTR git clone https://github.com/andersson/tqftpserv Change-Id: Ic466af6fef010a9b71c90e38205f49a876b001e2 Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org>