LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-02-2018, 01:00 PM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,973

Rep: Reputation: 271Reputation: 271Reputation: 271
kernel: platform regulatory.0: Direct firmware load for regulatory.db failed with error -2


I've been getting
Quote:
kernel: platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
since I upgraded to kernel 4.15. I don't see that this causes a problem.
 
Old 02-03-2018, 04:41 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Does the file exist in /lib/firmware?

How did you get the 4.15 kernel? Did you compile on your own (there might be a missing config option) or you installed from your distribution?
 
Old 02-03-2018, 09:57 AM   #3
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,973

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by Mara View Post
Does the file exist in /lib/firmware?
No.

Quote:
Originally Posted by Mara View Post
How did you get the 4.15 kernel? Did you compile on your own (there might be a missing config option) or you installed from your distribution?
I build my own. What config option would I be missing?
 
Old 02-03-2018, 12:31 PM   #4
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,973

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Documentation/networking/regulatory.txt reads
Quote:
When the regulatory domain is first set up, the kernel will request a database file (regulatory.db) containing all the regulatory rules.
It points to a source for making one's regulatory.db (which, unfortunately errors for me; I'll have to dig into it.)

This started for me Jan 29 16:21:04, after I upgraded to kernel 4.15 ; /usr/src/linux/net/wireless/reg.c has the code that reports it.
 
Old 03-01-2018, 11:21 PM   #5
LQSlacker
Member
 
Registered: Jul 2016
Posts: 94

Rep: Reputation: Disabled
Anyone know much about this?

I compiled many of the 4.15x kernels in Slackware and I see the same thing.

I'm trying to figure out if I'm missing a system package, or compile option, or if this is a bug?

Thanks
 
Old 03-02-2018, 10:42 AM   #6
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,973

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by LQSlacker View Post
Anyone know much about this?
It's in the CRDA package.
 
Old 03-02-2018, 08:57 PM   #7
LQSlacker
Member
 
Registered: Jul 2016
Posts: 94

Rep: Reputation: Disabled
Quote:
Originally Posted by RandomTroll View Post
It's in the CRDA package.
Of course it's CRDA and I have it installed...

That's not what I was asking, I'm asking why the regulatory.db failed in the logs and how to fix?


kernel: cfg80211: failed to load regulatory.db
kernel: platform regulatory.0: Direct firmware load for regulatory.db failed with error -2

Last edited by LQSlacker; 03-02-2018 at 09:01 PM.
 
Old 03-02-2018, 09:09 PM   #8
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,973

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by LQSlacker View Post
Of course it's CRDA and I have it installed...
Then you have a different problem than the one I started this thread with.

Quote:
Originally Posted by LQSlacker View Post
That's not what I was asking, I'm asking why the regulatory.db failed in the logs and how to fix?
Do /lib/firmware/regulatory.db and /lib/firmware/regulatory.db.p7s exist?
 
Old 03-03-2018, 12:49 AM   #9
LQSlacker
Member
 
Registered: Jul 2016
Posts: 94

Rep: Reputation: Disabled
Quote:
Originally Posted by RandomTroll View Post
Then you have a different problem than the one I started this thread with.

Do /lib/firmware/regulatory.db and /lib/firmware/regulatory.db.p7s exist?
Hmm you started the post with the same thing as me;

kernel: platform regulatory.0: Direct firmware load for regulatory.db failed with error -2

Not sure where this is a different problem?

I don't have either files in /lib/firmware...

I'm not running WiFi at the moment, would this be the reason there is no regulatory.db and regulatory.db.p7s?

Last edited by LQSlacker; 03-03-2018 at 12:54 AM.
 
Old 03-06-2018, 11:50 AM   #10
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,973

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by LQSlacker View Post
Hmm you started the post with the same thing as me;

kernel: platform regulatory.0: Direct firmware load for regulatory.db failed with error -2

Not sure where this is a different problem?
I solved my problem by upgrading to the most-recent CRDA package.

Quote:
Originally Posted by LQSlacker View Post
I don't have either files in /lib/firmware...

I'm not running WiFi at the moment, would this be the reason there is no regulatory.db and regulatory.db.p7s?
It's because you haven't installed the most-recent CRDA package.
 
Old 03-26-2018, 07:32 PM   #11
LQSlacker
Member
 
Registered: Jul 2016
Posts: 94

Rep: Reputation: Disabled
Quote:
Originally Posted by RandomTroll View Post
I solved my problem by upgrading to the most-recent CRDA package.

It's because you haven't installed the most-recent CRDA package.
I run the Stable Tree which is 14.2, and that only has crda-3.18-x86_64-3, that is the only version if you run 14.2.

So I'm assuming you're talking about the version crda-3.18-x86_64-5 from 'Current'?

Last edited by LQSlacker; 03-26-2018 at 07:34 PM.
 
Old 03-27-2018, 01:07 AM   #12
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,973

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by LQSlacker View Post
I run the Stable Tree which is 14.2, and that only has crda-3.18-x86_64-3, that is the only version if you run 14.2.

So I'm assuming you're talking about the version crda-3.18-x86_64-5 from 'Current'?
Yes.

You can download the current package, extract those 2 files (which don't exist in previous versions), put them in /lib/firmware.

I think that current is stable. You may want to ask in the Slackware forum. I update to current daily, rarely had a problem, then only minor.

Last edited by RandomTroll; 03-27-2018 at 01:37 PM. Reason: Added information.
 
Old 04-25-2018, 10:50 PM   #13
LQSlacker
Member
 
Registered: Jul 2016
Posts: 94

Rep: Reputation: Disabled
Quote:
Originally Posted by RandomTroll View Post
Yes.

You can download the current package, extract those 2 files (which don't exist in previous versions), put them in /lib/firmware.

I think that current is stable. You may want to ask in the Slackware forum. I update to current daily, rarely had a problem, then only minor.

I upgraded with crda-3.18-x86_64-6, which is now the 'current' version and it works!

WoOT

THANKS RandomTroll

Last edited by LQSlacker; 04-25-2018 at 10:51 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LFS - direct firmware load failed error -2 nocrazy Linux From Scratch 11 08-23-2016 02:56 PM
System No Longer Boots "Direct Firmware Load Failed" PasBern Linux - Newbie 3 06-05-2014 01:51 PM
Module ath - Force regulatory domain - Please, help me improving a kernel Weber Kai Linux - Networking 2 09-06-2013 04:24 AM
Could not set regulatory domain on Wi-Fi device. Darshan P Linux - Wireless Networking 1 11-23-2011 12:43 AM
Regulatory domain setting with wl module muczy Linux - Wireless Networking 0 02-04-2009 04:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration