LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   kernel: platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 (https://www.linuxquestions.org/questions/linux-kernel-70/kernel-platform-regulatory-0-direct-firmware-load-for-regulatory-db-failed-with-error-2-a-4175622954/)

RandomTroll 02-02-2018 01:00 PM

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.

Mara 02-03-2018 04:41 AM

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?

RandomTroll 02-03-2018 09:57 AM

Quote:

Originally Posted by Mara (Post 5815128)
Does the file exist in /lib/firmware?

No.

Quote:

Originally Posted by Mara (Post 5815128)
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?

RandomTroll 02-03-2018 12:31 PM

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.

LQSlacker 03-01-2018 11:21 PM

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

RandomTroll 03-02-2018 10:42 AM

Quote:

Originally Posted by LQSlacker (Post 5826191)
Anyone know much about this?

It's in the CRDA package.

LQSlacker 03-02-2018 08:57 PM

Quote:

Originally Posted by RandomTroll (Post 5826408)
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

RandomTroll 03-02-2018 09:09 PM

Quote:

Originally Posted by LQSlacker (Post 5826629)
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 (Post 5826629)
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?

LQSlacker 03-03-2018 12:49 AM

Quote:

Originally Posted by RandomTroll (Post 5826630)
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?

RandomTroll 03-06-2018 11:50 AM

Quote:

Originally Posted by LQSlacker (Post 5826654)
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 (Post 5826654)
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.

LQSlacker 03-26-2018 07:32 PM

Quote:

Originally Posted by RandomTroll (Post 5827996)
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'?

RandomTroll 03-27-2018 01:07 AM

Quote:

Originally Posted by LQSlacker (Post 5835817)
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.

LQSlacker 04-25-2018 10:50 PM

Quote:

Originally Posted by RandomTroll (Post 5835882)
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 :)


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