-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Hi, I would like to propose moving away from /usr/share/qcom and using the device-specific /usr/lib/firmware directory instead.
There are multiple reasons for this:
- We can much easier guess the directory by simply checking any
firmware-nameproperties in the devicetree and constructing a new path relative to those. The current guessing mechanism tends to work well, but it is unnecessarily complex due to hexagonrpcd's own conventions. It also breaks on at least one case known to me, when the model name does not start with the manufacturer name:The Fairphone (Gen 6)would result in manufacturer name guessed asThe, which cannot trivially be solved - The FHS says that
/usr/shareis for "architecture independent data files" (https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s11.html) - the HexagonFS files contain Hexagon ELF files, which are technically not just data files, they are firmware and architecture-specific. Some Linux distributions even have checks to disallow ELF files in/usr/sharedue to this
I suggested this on Matrix a while ago to @flamingradian and they suggested I should open an issue here or check with @lumag in chat. Please let me know what your thoughts on this are, I'd be happy to implement this change.
Metadata
Metadata
Assignees
Labels
No labels