Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
0 byte sized firmware files in linux-firmware[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1565

PostPosted: Fri Dec 27, 2024 1:56 pm    Post subject: 0 byte sized firmware files in linux-firmware[solved] Reply with quote

firmware installed by linux-firmware is zero sized, how can I resolve this?:

Code:
root@localhost $ emerge linux-firmware -pv

 * IMPORTANT: config file '/etc/portage/savedconfig/sys-kernel/linux-firmware-20241210-r1' needs updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 25.26 s (backtrack: 0/20).

[ebuild   R    ] sys-kernel/linux-firmware-20241210-r1::gentoo  USE="savedconfig -bindist -compress-xz -compress-zstd -deduplicate -dist-kernel -initramfs -redistributable (-unknown-license)" 0 Ki

Code:
root@localhost $ ls -lh /lib/firmware/rtlwifi/
total 12K
-rw-r--r-- 1 root root  0 Dec 27 13:34 rtl8723aufw_A.bin
-rw-r--r-- 1 root root  0 Dec 27 13:34 rtl8723aufw_B.bin
-rw-r--r-- 1 root root  0 Dec 27 13:34 rtl8723aufw_B_NoBT.bin
-rw-r--r-- 1 root root  0 Dec 27 13:34 rtl8723befw.bin
-rw-r--r-- 1 root root  0 Dec 27 13:34 rtl8723befw_36.bin
lrwxrwxrwx 1 root root 23 Dec 27 13:35 rtl8723bs_ap_wowlan.bin -> rtl8723bu_ap_wowlan.bin
-rw-r--r-- 1 root root  0 Dec 27 13:34 rtl8723bs_bt.bin
lrwxrwxrwx 1 root root 17 Dec 27 13:35 rtl8723bs_nic.bin -> rtl8723bu_nic.bin
lrwxrwxrwx 1 root root 20 Dec 27 13:35 rtl8723bs_wowlan.bin -> rtl8723bu_wowlan.bin
-rw-r--r-- 1 root root  0 Dec 27 13:34 rtl8723bu_ap_wowlan.bin
-rw-r--r-- 1 root root  0 Dec 27 13:34 rtl8723bu_nic.bin
-rw-r--r-- 1 root root  0 Dec 27 13:34 rtl8723bu_wowlan.bin
-rw-r--r-- 1 root root  0 Dec 27 13:34 rtl8723defw.bin
-rw-r--r-- 1 root root  0 Dec 27 13:34 rtl8723fw.bin
-rw-r--r-- 1 root root  0 Dec 27 13:34 rtl8723fw_B.bin


Last edited by Adel Ahmed on Sat Dec 28, 2024 8:58 am; edited 1 time in total
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4680
Location: Germany

PostPosted: Fri Dec 27, 2024 9:06 pm    Post subject: Reply with quote

Not sure, but don't disable USE=redistributable should probably help.
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1565

PostPosted: Sat Dec 28, 2024 8:58 am    Post subject: Reply with quote

definitely helped, do not understand why but the size is now non-zero, I have another machine with -redistributable and did not encounter that problem.
I'm happy it worked, thank you josef for your help
Back to top
View user's profile Send private message
hdcg
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2013
Posts: 121

PostPosted: Sat Dec 28, 2024 9:29 am    Post subject: Reply with quote

The size shown, is the download size. If the files are already available in distfiles, the size is always zero. Bottom line of emerge output shows this explicit:
Code:

~ # emerge linux-firmware -pv

These are the packages that would be merged, in order:

Calculating dependencies... done!

[ebuild   R    ] sys-kernel/linux-firmware-20241210-r1::gentoo  USE="redistributable -bindist -compress-xz -compress-zstd -deduplicate -dist-kernel -initramfs -savedconfig (-unknown-license)" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
~ # rm /var/cache/distfiles/linux-firmware-20241210.tar.xz
~ # emerge linux-firmware -pv

These are the packages that would be merged, in order:

Calculating dependencies... done!

[ebuild   R    ] sys-kernel/linux-firmware-20241210-r1::gentoo  USE="redistributable -bindist -compress-xz -compress-zstd -deduplicate -dist-kernel -initramfs -savedconfig (-unknown-license)" 401,798 KiB

Total: 1 package (1 reinstall), Size of downloads: 401,798 KiB
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2529

PostPosted: Sat Dec 28, 2024 10:05 am    Post subject: Reply with quote

Adel Ahmed wrote:
definitely helped, do not understand why


Redistributable includes files that are non-free but redistributable i.e. files with problematic licenses. It's by default enabled, you should have disabled it yourself.

hdcg wrote:
The size shown, is the download size. If the files are already available in distfiles, the size is always zero. Bottom line of emerge output shows this explicit:


The original question addresses the files, not the distfiles.

p.s. I just filed a bug on that: https://bugs.gentoo.org/947106

Best Regards,
Georgi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum