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: 1567

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: 4682
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: 1567

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: 2534

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
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22886

PostPosted: Sat Dec 28, 2024 3:00 pm    Post subject: Reply with quote

OP: if you revert to the USE flags you used originally, does the problem reappear? It would be good to understand whether your first problem was an errant bad install (perhaps related to an ill-timed system crash) that would have been fixed by rebuilding with the same options or is a reproducible defect in the package.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3793
Location: Rasi, Finland

PostPosted: Sat Dec 28, 2024 3:52 pm    Post subject: Reply with quote

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

Best Regards,
Georgi
Thanks for filling the bug report.

I too was confused because of the naming. I thought redistributable was another bindist, or so...
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1567

PostPosted: Sun Dec 29, 2024 11:07 am    Post subject: Reply with quote

yeah the problem reappears if I revert to the flags I used originally
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