View previous topic :: View next topic |
Author |
Message |
tmcca Tux's lil' helper
Joined: 24 May 2019 Posts: 120
|
Posted: Tue Mar 10, 2020 12:44 pm Post subject: regulatory.db failed? |
|
|
I have this in my dmesg:
platform regulatory.o direct firmware load for regulatory.db failed error -2
cfg80211 failed to load regulatory.db
I am guessing this is crda. I installed net-wireless/crda but didn't fix this error
I am guessing missing kernel config |
|
Back to top |
|
|
javeree Guru
Joined: 29 Jan 2006 Posts: 455
|
Posted: Tue Mar 10, 2020 12:54 pm Post subject: |
|
|
In theory, and with a recent enough kernel, the crda ebuild would not be required anymore, as your kernel is capable of loading the regulatory db.
However, there is a bug outstanding requesting that a solution to indicate whether the db is loaded by crda or by kernel, and depending on that crda would be used.
What you are seeing in dmesg is in my opinion the kernel trying to load the regulatory db, and not finding it where it expects the db to be (I am not at home, so cannot check what it should be).
Anyway, you could change your kernel CONFIG_CFG80211_CRDA_SUPPORT=y -> CONFIG_CFG80211_CRDA_SUPPORT=n to get rid of the kernel doing this, and leave it up to the ebuild.
Better would be to find out where the database should be (probably in /etc/firmware) and add it there manually. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54691 Location: 56N 3W
|
Posted: Tue Mar 10, 2020 1:21 pm Post subject: |
|
|
tmcca,
cfg80211 is the old WiFi stack. It uses regulatory.db firmware
The newer mac80211 does not need that firmware.
You may be able to ignore the error .
What wifi do you have?
When cfg80211 is built into the kernel, the regulatory.db firmware must be built in too.
If you don't need cfg80211, turn it off in the kernel and save some bloat and the error message. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3685
|
Posted: Tue Mar 10, 2020 1:41 pm Post subject: |
|
|
NeddySeagoon wrote: | If you don't need cfg80211, turn it off in the kernel and save some bloat and the error message. |
NeddySeagoon,
Are you saying the cfg80211 is optional? How would I know my installation needs it?
Edit
Code: | --- Wireless
< > cfg80211 - wireless configuration API
*** CFG80211 needs to be enabled for MAC80211 *** |
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54691 Location: 56N 3W
|
Posted: Tue Mar 10, 2020 3:02 pm Post subject: |
|
|
charles17,
It all depends which wifi stack your WiFi driver uses.
Code: | *** CFG80211 needs to be enabled for MAC80211 *** |
Thats new to me but I defer to the kernel devs. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Tue Mar 10, 2020 5:18 pm Post subject: |
|
|
Sorry, but all of the above is misinformation.
crda has been obsolete since kernel 4.x and upstream explicitly tells people what the upgrade path is:
Install net-wireless/wireless-regdb and include the firmware files it installs in the kernel. Uninstall crda entirely, and put it in package.provided instead if something demands it. |
|
Back to top |
|
|
Ramast n00b
Joined: 12 Oct 2023 Posts: 9
|
Posted: Mon Jan 13, 2025 8:09 am Post subject: |
|
|
Had this problem with kernel linux-6.6.47-gentoo after disabling CRDA support (as recommended by gentoo). I got it to work by updating the kernel to linux-6.6.67-gentoo.
No idea why that solved the problem but it did. |
|
Back to top |
|
|
|