Skip to contentSkip to conversation

linux-firmware

DISCUSSION Sander van Grieken 3 participants 7 messages Sep 7, 2012

lore
Share & tools
lore
#0 lore raw

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?

#1 lore raw
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 file

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. The scheme of the package names seems fine to me.

Bye Henning

#6 lore raw
In reply to Sander van Grieken
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
#2 lore raw
In reply to Henning Heinold
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

#3 lore raw
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 file

Quoted 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
#4 lore raw
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 file

Quoted 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 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.

Quoted 9 lines

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

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

#5 lore raw
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_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

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