linux-firmware
Hi,
Currently, linux-firmware produces one big package with all binary firmware files installed. It would be benificial , especially for devices with a very small rootfs, to install only a subset of the entire collection. Some effort has been done to split off separate packages, but it's not clear what the preferred naming should be.
- Should it follow the kernel-module-* naming, e.g. kernel-module-ath9k-htc would need linux-firmware-ath9k-htc?
- Or should it follow the firmware file naming, e.g. linux-firmware-htc-7010
- Or maybe have a bit larger packages and simply split by vendor, e.g. linux-firmware-atheros
- How and if to package the license file
Thoughts?
Quoted 8 lines · Sander van Grieken
Hi,
Currently, linux-firmware produces one big package with all binary firmware files installed. It would be benificial , especially for devices with a very small rootfs, to install only a subset of the entire collection. Some effort has been done to split off separate packages, but it's not clear what the preferred naming should be.
Quoted 8 lines
- Should it follow the kernel-module-* naming, e.g. kernel-module-ath9k-htc would need linux-firmware-ath9k-htc?
- Or should it follow the firmware file naming, e.g. linux-firmware-htc-7010
- Or maybe have a bit larger packages and simply split by vendor, e.g. linux-firmware-atheros
- How and if to package the license fileThoughts?
Because we even split all kernel modules into seperate packages we should do it for firmware files too. But that is a lot of monkey work, you need to check for all firmware files and make the right packages. The scheme of the package names seems fine to me.
Bye Henning
Quoted 6 lines · On Friday 07 September 2012 11:31:41 Sander van Grieken wrote:
Currently, linux-firmware produces one big package with all binary firmware files installed. It would be benificial , especially for devices with a very small rootfs, to install only a subset of the entire collection. Some effort has been done to split off separate packages, but it's not clear what the preferred naming should be.
Quoted 6 lines
- Should it follow the kernel-module-* naming, e.g. kernel-module-ath9k-htc would need linux-firmware-ath9k-htc?
- Or should it follow the firmware file naming, e.g. linux-firmware-htc-7010
- Or maybe have a bit larger packages and simply split by vendor, e.g. linux-firmware-atheros
- How and if to package the license file
It looks like in OE-Core we have some code to do firmware splitting in kernel.bbclass - Sander, is it OE-Core you are using or OE-Classic?
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 16 lines · Henning Heinold
Quoted 15 lines · Sander van Grieken
Hi,
Currently, linux-firmware produces one big package with all binary firmware files installed. It would be benificial , especially for devices with a very small rootfs, to install only a subset of the entire collection. Some effort has been done to split off separate packages, but it's not clear what the preferred naming should be.
- Should it follow the kernel-module-* naming, e.g. kernel-module-ath9k-htc would need linux-firmware-ath9k-htc?
- Or should it follow the firmware file naming, e.g. linux-firmware-htc-7010
- Or maybe have a bit larger packages and simply split by vendor, e.g. linux-firmware-atheros
- How and if to package the license file
Quoted 3 lines
Quoted 1 line
Thoughts?
Because we even split all kernel modules into seperate packages we should do it for firmware files too. But that is a lot of monkey work, you need to check for all firmware files and make the right packages.
Yes, that's why I ask. It would be helpful if there's a comment in the bb explaining this is wanted, and how to name the package. Then devs working with certain hardware can define a specific package and test with their hardware locally. This way it can be incrementally done.
Quoted 1 line
The scheme of the package names seems fine to me.
What scheme?
rtl8192cu follows kernel module naming, firmware is rtl8192cufw, and includes license file
rtl8192ce follows kernel module naming, doesn't include license file sd8686 follows firmware naming, includes license file wl12xx follows 'firmware' naming (actually is vendor scope), doesn't include license file
grtz,
Sander
Quoted 29 lines · On Friday 07 September 2012 16:12:39 Sander van Grieken wrote:
Quoted 16 lines · Henning Heinold
Quoted 15 lines · Sander van Grieken
Hi,
Currently, linux-firmware produces one big package with all binary firmware files installed. It would be benificial , especially for devices with a very small rootfs, to install only a subset of the entire collection. Some effort has been done to split off separate packages, but it's not clear what the preferred naming should be.
- Should it follow the kernel-module-* naming, e.g. kernel-module-ath9k-htc would need linux-firmware-ath9k-htc?
- Or should it follow the firmware file naming, e.g. linux-firmware-htc-7010 - Or maybe have a bit larger packages and simply split by vendor, e.g. linux-firmware-atheros
- How and if to package the license fileQuoted 5 lines
Quoted 1 line
Thoughts?
Because we even split all kernel modules into seperate packages we should do it for firmware files too. But that is a lot of monkey work, you need to check for all firmware files and make the right packages.
Yes, that's why I ask. It would be helpful if there's a comment in the bb explaining this is wanted, and how to name the package. Then devs working with certain hardware can define a specific package and test with their hardware locally. This way it can be incrementally done.
Quoted 1 line
The scheme of the package names seems fine to me.
Quoted 8 lines
What scheme?
rtl8192cu follows kernel module naming, firmware is rtl8192cufw, and includes license file
rtl8192ce follows kernel module naming, doesn't include license file sd8686 follows firmware naming, includes license file wl12xx follows 'firmware' naming (actually is vendor scope), doesn't include license file
Ignore my other message - I was confused by some seemingly old code we have in kernel.bbclass, that is separate from the linux-firmware recipe.
We should always be including the license file if present I believe.
As for the package splitting I would advocate some kind of automated splitting using do_split_packages rather than manually packaging everything if we can avoid it. FYI I wrote something about the use of this here:
https://wiki.yoctoproject.org/wiki/Handling_optional_module_packaging
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 41 lines · Paul Eggleton
Quoted 27 lines · On Friday 07 September 2012 16:12:39 Sander van Grieken wrote:
Quoted 16 lines · Henning Heinold
Quoted 15 lines · Sander van Grieken
Hi,
Currently, linux-firmware produces one big package with all binary firmware files installed. It would be benificial , especially for devices with a very small rootfs, to install only a subset of the entire collection. Some effort has been done to split off separate packages, but it's not clear what the preferred naming should be.
- Should it follow the kernel-module-* naming, e.g. kernel-module-ath9k-htc would need linux-firmware-ath9k-htc?
- Or should it follow the firmware file naming, e.g. linux-firmware-htc-7010 - Or maybe have a bit larger packages and simply split by vendor, e.g. linux-firmware-atheros
- How and if to package the license fileQuoted 4 lines
Quoted 1 line
Thoughts?
Because we even split all kernel modules into seperate packages we should do it for firmware files too. But that is a lot of monkey work, you need to check for all firmware files and make the right packages.
Yes, that's why I ask. It would be helpful if there's a comment in the bb explaining this is wanted, and how to name the package. Then devs working with certain hardware can define a specific package and test with their hardware locally. This way it can be incrementally done.
Quoted 1 line
The scheme of the package names seems fine to me.
Quoted 8 lines
What scheme?
rtl8192cu follows kernel module naming, firmware is rtl8192cufw, and includes license file
rtl8192ce follows kernel module naming, doesn't include license file sd8686 follows firmware naming, includes license file wl12xx follows 'firmware' naming (actually is vendor scope), doesn't include license fileIgnore my other message - I was confused by some seemingly old code we have in kernel.bbclass, that is separate from the linux-firmware recipe.
We should always be including the license file if present I believe.
Quoted 9 lines
As for the package splitting I would advocate some kind of automated splitting using
do_split_packagesrather than manually packaging everything if we can avoid it. FYI I wrote something about the use of this here:https://wiki.yoctoproject.org/wiki/Handling_optional_module_packaging
Cheers,
Paul
Ok thanks, that looks promising. Although the requirement 'Must include %s' would mean that the naming follows firmware, and probably serious regexp juggling is needed if you want to match a list of firmware files for a single package.
grtz,
Sander
Quoted 10 lines · On Friday 07 September 2012 16:35:45 Sander van Grieken wrote:
Quoted 8 lines · Paul Eggleton
We should always be including the license file if present I believe.
As for the package splitting I would advocate some kind of automated splitting using
do_split_packagesrather than manually packaging everything if we can>
avoid it. FYI I wrote something about the use of this here:
https://wiki.yoctoproject.org/wiki/Handling_optional_module_packaging
Quoted 4 lines
Ok thanks, that looks promising. Although the requirement 'Must include %s' would mean that the naming follows firmware, and probably serious regexp juggling is needed if you want to match a list of firmware files for a single package.
I haven't looked closely at the structure of the firmware repo, but depending on that it could make things tricky yes. You only have to make sure that the first item in the regex (enclosed in parentheses) matches the name you want for the package, though. It's also possible to add additional files either with aux_files_pattern/aux_files_pattern_verbatim or on an individual basis using FILES_packagename += "path/to/file".
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre