6 Commits

Author SHA1 Message Date
Amit Pundir
9d78fc0c61 pd-mapper: Null terminate firmware_value string
Null terminate firmware_value string to prevent
strlen() read past the end of buffer error on AOSP.

Otherwise pd-mapper will crash:
  console:/ # pd-mapper
  FORTIFY: strlen: detected read past end of buffer
  Aborted
  134|console:/ #

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2022-02-08 10:14:15 -08:00
Khem Raj
d7fe25fa6e pd-mapper: Include limits.h for PATH_MAX
Fixes
pd-mapper.c:199:22: error: 'PATH_MAX' undeclared (first use in this function); did you mean 'AF_MAX'?

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-10-22 16:03:40 -07:00
Bjorn Andersson
ab5074fdd5 pd-mapper: Use remoteproc firmware to find jsons
Traverse the remoteproc class and use the firmware location for each one
to search for json files and load these.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2020-03-14 22:35:16 -07:00
Bjorn Andersson
1048a84703 pd-mapper: Load JSON files
Load mappings from JSON files instead of hard coding only the WLAN.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2020-03-14 22:35:16 -07:00
opendata26
79ac237b42 use pd_map for name checking
pd_maps is always the same,  pd_map however is incremented

signed-off-by Craig Tatlor <ctatlor97@gmail.com>
2018-09-25 13:44:21 -07:00
Bjorn Andersson
a427ad436e pd-mapper: Initial implementation
This implements the minimum scope of pd-mapper in order to trigger
loading of wlan firmware on SDM845.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2018-06-29 15:50:04 -07:00