Skip to contentSkip to conversation

doc: add section about regulatory.db missing

PATCH Applied James Prestwood 2 participants 2 messages Oct 7, 2019

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: add section about regulatory.db missing

It was found that some distros do not ship with a regulatory.db file. This is required to run some of the autotests, and if not found on the system the kernel build will fail due to some of the IWD config options which require regulatory.db.

The fix is to manually download regulatory.db from git.kernel.org and place it in /lib/firmware.

---
 doc/test-runner.txt | 10 ++++++++++
 1 file changed, 10 insertions(+)
doc/test-runner.txt +10 -0
index 3660381a..2f1b4fd0 100644
@@ -69,6 +69,16 @@ After that a default kernel with the required options can be built:
 
 	$ make -j$(nproc)
 
+Note: If your host distribution does not contain a regulatory.db you may get an
+error similar to when building the kernel:
+
+No rule to make target '/lib/firmware/regulatory.db'...
+
+To fix this you must download the regulatory.db manually and place it in
+/lib/firmware. This can be found here:
+
+https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git
+
 Note: To catch locking related issues the following set of kernel config
 options may be useful:
 
Signature · 1 line
2.17.1
#1 lore raw

Hi James,

Quoted 11 lines · James Prestwood

It was found that some distros do not ship with a regulatory.db file. This is required to run some of the autotests, and if not found on the system the kernel build will fail due to some of the IWD config options which require regulatory.db.

The fix is to manually download regulatory.db from git.kernel.org and place it in /lib/firmware.

---
  doc/test-runner.txt | 10 ++++++++++
  1 file changed, 10 insertions(+)

Applied, thanks.

Regards,
-Denis