Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
regulatory.db failed?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tmcca
Tux's lil' helper
Tux's lil' helper


Joined: 24 May 2019
Posts: 120

PostPosted: Tue Mar 10, 2020 12:44 pm    Post subject: regulatory.db failed? Reply with quote

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
View user's profile Send private message
javeree
Guru
Guru


Joined: 29 Jan 2006
Posts: 455

PostPosted: Tue Mar 10, 2020 12:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54691
Location: 56N 3W

PostPosted: Tue Mar 10, 2020 1:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3685

PostPosted: Tue Mar 10, 2020 1:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54691
Location: 56N 3W

PostPosted: Tue Mar 10, 2020 3:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Tue Mar 10, 2020 5:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ramast
n00b
n00b


Joined: 12 Oct 2023
Posts: 9

PostPosted: Mon Jan 13, 2025 8:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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