Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 592274 - genkernel fails to copy firmware specified via FIRMWARE_FILES to the correct subfolder in /lib/firmware, resulting in firmware in subfolders not being found by the kernel
Summary: genkernel fails to copy firmware specified via FIRMWARE_FILES to the correct ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-27 22:33 UTC by Gabriel Peters
Modified: 2019-07-15 11:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
genkernel patch (genkernel-firmware-files.patch,757 bytes, patch)
2016-08-27 22:33 UTC, Gabriel Peters
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel Peters 2016-08-27 22:33:01 UTC
Created attachment 444278 [details, diff]
genkernel patch

Hi, attached is a patch to address an issue I ran into copying explicit firmware files into initramfs with FIRMWARE_FILES = "{file1},{file2},{file3}" in genkernel.conf,

The kernel is looking for some firmware files in subfolders of the /lib/firmware dir, this patch copies the firmware files into their subfolders if needed so the kernel finds them properly on load.

Also reported against genkernel-next on GitHub:
https://github.com/Sabayon/genkernel-next/issues/39
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2019-07-15 11:39:10 UTC
This was solved via https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=c576f99b0bbdb2c938d5b73eee61d876ef7cca88

Just verified, calling `genkernel --firmware-files="ath6k 3com" initramfs` will produce an initramfs containing 3com and ath6k folder from --firmware-dir. Folder structure was preserved:

> =================================================================
> *         >> Appending firmware cpio data ...
> =================================================================
> About to add these files from '/var/tmp/genkernel/gk.jcyl8lI8/initramfs-firmware-temp' to cpio archive:
> drwxr-xr-x 3 root root     17 Jul 15 13:32 .
> drwxr-xr-x 3 root root     22 Jul 15 13:32 ./lib
> drwxr-xr-x 4 root root     31 Jul 15 13:32 ./lib/firmware
> drwxr-xr-x 2 root root     25 Jul 15 13:32 ./lib/firmware/3com
> -rw-r--r-- 1 root root  44548 Jul 15 13:32 ./lib/firmware/3com/typhoon.bin
> drwxr-xr-x 6 root root     64 Jul 15 13:32 ./lib/firmware/ath6k
> drwxr-xr-x 2 root root     94 Jul 15 13:32 ./lib/firmware/ath6k/AR6002
> -rw-r--r-- 1 root root  98425 Jul 15 13:32 ./lib/firmware/ath6k/AR6002/athwlan.bin.z77
> -rw-r--r-- 1 root root   1336 Jul 15 13:32 ./lib/firmware/ath6k/AR6002/data.patch.hw2_0.bin
> -rw-r--r-- 1 root root    784 Jul 15 13:32 ./lib/firmware/ath6k/AR6002/eeprom.bin
> -rw-r--r-- 1 root root     48 Jul 15 13:32 ./lib/firmware/ath6k/AR6002/eeprom.data
> drwxr-xr-x 5 root root     47 Jul 15 13:32 ./lib/firmware/ath6k/AR6003
>