Hi Am Fr., 6. Juli 2018 um 23:04 Uhr schrieb Khem Raj <[email protected]>: > > Hi Andreas > On Fri, Jul 6, 2018 at 12:12 AM <[email protected]> wrote: > > > > From: Andy Kling <[email protected]> > > > > regulatory db can now be loaded by kernel as firmware file. > > > Can you check if this patch fixes your issue too > > https://patchwork.openembedded.org/patch/152350/ > > > > Signed-off-by: Andy Kling <[email protected]> > > --- > > ...ss-regdb_2016.06.10.bb => wireless-regdb_2018.05.31.bb} | 7 +++++-- > > 1 file changed, 5 insertions(+), 2 deletions(-) > > rename > > meta-networking/recipes-connectivity/wireless-regdb/{wireless-regdb_2016.06.10.bb > > => wireless-regdb_2018.05.31.bb} (64%) > > > > diff --git > > a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb > > > > b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb > > similarity index 64% > > rename from > > meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb > > rename to > > meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb > > index 64e9401e7..c51439f3a 100644 > > --- > > a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2016.06.10.bb > > +++ > > b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb > > @@ -5,16 +5,19 @@ LICENSE = "ISC" > > LIC_FILES_CHKSUM = "file://LICENSE;md5=07c4f6dea3845b02a18dc00c8c87699c" > > > > SRC_URI = "https://www.kernel.org/pub/software/network/${BPN}/${BP}.tar.xz" > > -SRC_URI[md5sum] = "d282cce92b6e692e8673e2bd97adf33b" > > -SRC_URI[sha256sum] = > > "cfedf1c3521b3c8f32602f25ed796e96e687c3441a00e7c050fedf7fd4f1b8b7" > > +SRC_URI[md5sum] = "0cbbdc21186c76cf58aba01b03f3dc5b" > > +SRC_URI[sha256sum] = > > "e1dfbc3b97771373077f430c3c05082fae883145b37db5b2cfd12c56676fbe7b" > > > > inherit bin_package > > > > do_install() { > > install -d -m0755 ${D}${libdir}/crda > > install -d -m0755 ${D}${sysconfdir}/wireless-regdb/pubkeys > > + install -d -m0755 ${D}${base_libdir}/firmware > > install -m 0644 regulatory.bin ${D}${libdir}/crda/regulatory.bin > > install -m 0644 sforshee.key.pub.pem > > ${D}${sysconfdir}/wireless-regdb/pubkeys/sforshee.key.pub.pem > > + install -m 0644 regulatory.db ${D}${base_libdir}/firmware/regulatory.db > > + install -m 0644 regulatory.db.p7s > > ${D}${base_libdir}/firmware/regulatory.db.p7s > > } > > > > RSUGGESTS_${PN} = "crda" > > -- > > 2.18.0 > > > > -- > > _______________________________________________ > > Openembedded-devel mailing list > > [email protected] > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
not allowing to install crda alongside with wireless-regdb-static is a debatable choice, I thought about the same and went the other way. Allowing both would not harm, imo. But I get the authors point to force this build time decision in contrast to other major distros. In my setup, relying on user space helper, firmware load succeeds cause of a local patch. I did not find time to submit it yet. cfg80211: Loading compiled-in X.509 certificates for regulatory database platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 platform regulatory.0: Falling back to user helper ... firmware regulatory.db: firmware: requesting regulatory.db systemd-udevd[145]: writing '/lib/firmware/regulatory.db' (4144) to '/sys/devices/platform/regulatory.0/firmware/regulatory.db/data' without the patch one in the same setup might see: systemd-udevd[157]: did not find firmware file 'regulatory.db' But this is not related to this topic. Assuming regulatory.db is loaded correctly it is used. # iw reg get global country 00: DFS-UNSET (2402 - 2472 @ 40), (N/A, 20), (N/A) (2457 - 2482 @ 20), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN (2474 - 2494 @ 20), (N/A, 20), (N/A), NO-OFDM, PASSIVE-SCAN (5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN (5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN (5490 - 5730 @ 160), (N/A, 20), (0 ms), DFS, PASSIVE-SCAN (5735 - 5835 @ 80), (N/A, 20), (N/A), PASSIVE-SCAN (57240 - 63720 @ 2160), (N/A, 0), (N/A) # iw reg set DE # iw reg get global country DE: DFS-ETSI (2400 - 2483 @ 40), (N/A, 20), (N/A) (5150 - 5250 @ 80), (N/A, 20), (N/A), NO-OUTDOOR, AUTO-BW (5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW (5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS (5725 - 5875 @ 80), (N/A, 13), (N/A) (57000 - 66000 @ 2160), (N/A, 40), (N/A) To mention the counter example, without regulatory.db and without crda present country/DFS would not change. I did not test [meta-networking,v5,3/3]. Kind regards Andy -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
