main/postmarketos-mkinitfs: set pmOS-specific firmware path
Currently we rely on the fact, that the kernel asks user space to load the firmware for it, so we can use the /lib/firmware/postmarketos directory for firmware.
As the kernel has support for loading the firmware itself since v3.7, and the parameter for adding an additional path to the search paths was added with v3.10, we can use that to not rely on CONFIG_FW_LOADER_USER_HELPER being set.
Merge request reports
Activity
- Resolved by Administrator
mentioned in merge request pmbootstrap!1803 (closed)
By Luca Weiss on 2019-07-21T11:36:51
- Resolved by Administrator
I wasn't aware of
/lib/firmware/postmarketos
for some reason, but I usefirmware_class.path=/lib/firmware/<device>
to have a device-specific firmware directory. This change would always replace my kernel parameter :)What is the purpose of
/lib/firmware/postmarketos
? If it exists to avoid conflicting files with Alpine's linux-firmware packages, then having something like/lib/firmware/<device>
would be preferable in my opinion to also avoid conflicts between device-specific firmware packages.It looks like only one additional firmware directory can be set with this parameter, so maybe we could have a deviceinfo variable to change it?
By lambdadroid on 2019-07-22T07:35:04
- Resolved by Administrator
@lambdadroid Yes,
/lib/firmware/postmarketos
gets used for non-linux-firmware firmware that is very likely device-specific.I don't think it's worth changing a bunch of firmware apkbuilds to change that path - it works fine as it is. But you should be able to remove the
firmware_class.path=/lib/firmware/postmarketos
parameter on samsung-gts210ve* once this is merged.By Luca Weiss on 2019-07-22T16:05:01
Edited by Ghost User
mentioned in commit 7699f8d5
By Luca Weiss on 2019-07-25T18:30:36
added 10 commits
-
0bfc59de...cb9313a2 - 9 commits from branch
master
- 7699f8d5 - main/postmarketos-mkinitfs: set pmOS-specific firmware path (!515 (merged))
By Oliver Smith on 2019-07-25T18:30:37
-
0bfc59de...cb9313a2 - 9 commits from branch
mentioned in merge request !807 (merged)
By Minecrell on 2019-12-13T12:34:44