Skip to content

Changing firmware directory #15

@Gelbpunkt

Description

@Gelbpunkt

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-name properties 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 as The, which cannot trivially be solved
  • The FHS says that /usr/share is 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/share due 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions