I bitbake
'd my yocto image but when I start my wifi interface on the target I see an error such as:
platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
cfg80211: failed to load regulatory.db
How can I fix this?
You need to add the wireless-regdb
:
IMAGE_INSTALL_append = " wireless-regdb-static"
Note the static
which will include the necessary firmware files.
If the problem persists you may suffer from a bug which has been discussed is this thread. A solution can be found within this thread as well, which would be
Download wireless-regdb 2017.12.23, untar, and copy regulatory.db and regulatory.db.p7s to /lib/firmware;.
[See reply by gerardo diaz]. In my case this made the error disappear during boot.
Furthermore, ensure that the kernel modules are enable as Cleiton Bueno pointed out.
Note: I'm posting this rather for documentation and hope this might help others, too.