PlayingMuted Posted January 23, 2019 Posted January 23, 2019 When I used the Debian image, it looks like the wireless-regdb's were not in the correct location. Using this guide I was able to get CRDA to work. wireless-regdb: Missing support for kernel direct loading Did I miss something in the initial setup?
guidol Posted January 23, 2019 Posted January 23, 2019 No - you didnt missed anything Some images seem to need some "rework" - but mostly test/dev-images. Did had the same on a image for a arm-TV-Box:
Igor Posted January 23, 2019 Posted January 23, 2019 10 minutes ago, PlayingMuted said: When I used the Debian image, it looks like the wireless-regdb's were not in the correct location. Using this guide I was able to get CRDA to work. wireless-regdb: Missing support for kernel direct loading Did I miss something in the initial setup? If you find a fix, here is our /lib/firmware https://github.com/armbian/firmware and here are general instructions: https://www.armbian.com/get-involved
guidol Posted January 23, 2019 Posted January 23, 2019 4 minutes ago, Igor said: If you find a fix, here is our /lib/firmware https://github.com/armbian/firmware and here are general instructions: https://www.armbian.com/get-involved @Igor for me the fix was to put the files (attached as .zip) regulatory.db regulatory.db.p7s out of the tar-archive (or newer version) http://ftp.be.debian.org/pub/software/network/wireless-regdb/wireless-regdb-2018.10.24.tar.xz to /lib/firmware and reboot [ 9.180263] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 9.187698] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' Or did I missed something special? regulatory.zip
Igor Posted January 23, 2019 Posted January 23, 2019 OK, now the question is whether we can just add this to the firmware package or not?
guidol Posted January 23, 2019 Posted January 23, 2019 21 minutes ago, Igor said: OK, now the question is whether we can just add this to the firmware package or not? https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892229#54 also states to use master-2018-10-24 from https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git/ for fixing the "bug". For me this looks very offcial - so that made me think taht we can add this?
Igor Posted January 23, 2019 Posted January 23, 2019 https://github.com/armbian/firmware/commit/bddd21b7f895be9f0c37e435f0a7ac84405c6091 1
guidol Posted January 23, 2019 Posted January 23, 2019 5 minutes ago, Igor said: https://github.com/armbian/firmware/commit/bddd21b7f895be9f0c37e435f0a7ac84405c6091 for this commit you noted: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892229#49 which "belong" to 2017-version files (or only because of the "solution" copy version?) #54 is for the 2018-files-version. Which one did you copy?
guidol Posted March 8, 2019 Posted March 8, 2019 On 1/23/2019 at 10:34 PM, Igor said: https://github.com/armbian/firmware/commit/bddd21b7f895be9f0c37e435f0a7ac84405c6091 @Igor can we expand or replace this commit? On a newer image I did get the dmesg-Message: [ 9.557455] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid I think because "we" have to replace 2 more files with the newer ones. For the signature it is sforshee.key.pub.pem in /lib/crda/pubkeys/ and I did see additionally regulatory.bin in /lib/crda I dont know why they are "so old" in the packages - crda - wireless Central Regulatory Domain Agent - wireless-regdb - wireless regulatory database actual mirror-archive of the original at http://ftp.be.debian.org/pub/software/network/wireless-regdb/wireless-regdb-2019.03.01.tar.gz Original-files:https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git/tree/ https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git/plain/regulatory.dbhttps://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git/plain/regulatory.bin https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git/plain/regulatory.db.p7s https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git/plain/sforshee.key.pub.pemhttps://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git/plain/sforshee.x509.pem I will attach a small archive with these four files here in the message. see also: wireless-regdb-2019.03.01.zip
guidol Posted July 11, 2019 Posted July 11, 2019 I updated from the March 2019 to the June 2019 version Extracted the files from https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git/snapshot/wireless-regdb-master-2019-06-03.tar.gz Just copy the 2 directorys (crda and firmware inside the lib-directory of the zipfile) to /lib/ and you will not get these errors in dmesg: [ 6.177259] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 [ 6.177273] platform regulatory.0: Falling back to syfs fallback for: regulatory.db but [ 6.190055] cfg80211: Loading compiled-in X.509 certificates for regulatory database @Igor in the past we did add these file with a commit, but the images I created yesterday for the BPI M2 Ultra/Berry didnt had it. Is that because of csc-state of this board? wireless-regdb_2019-06-03_lib.zip
Igor Posted July 11, 2019 Posted July 11, 2019 We put those files out because they are already packed in iirc wireless-db package. You have to install that package as well.Wrote on mobile
guidol Posted July 11, 2019 Posted July 11, 2019 3 hours ago, Igor said: We put those files out because they are already packed in iirc wireless-db package. You have to install that package as well. If I install the packages wireless-regdb Spoiler File list of package wireless-regdb in buster of architecture all /lib/crda/regulatory.bin /usr/share/doc/wireless-regdb/changelog.Debian.gz /usr/share/doc/wireless-regdb/copyright /usr/share/man/man5/regulatory.bin.5.gz and crda Spoiler File list of package crda in buster of architecture armhf /etc/default/crda /lib/crda/libreg.so /lib/crda/pubkeys/benh@debian.org.key.pub.pem /lib/crda/pubkeys/linville.key.pub.pem /lib/crda/pubkeys/sforshee.key.pub.pem /lib/crda/setregdomain /lib/udev/rules.d/60-crda.rules /lib/udev/rules.d/85-regulatory.rules /sbin/crda /sbin/regdbdump /usr/include/reglib/nl80211.h /usr/include/reglib/regdb.h /usr/include/reglib/reglib.h /usr/share/doc/crda/changelog.Debian.gz /usr/share/doc/crda/copyright /usr/share/lintian/overrides/crda /usr/share/man/man8/crda.8.gz /usr/share/man/man8/regdbdump.8.gz then I will have the files /lib/crda/regulatory.bin /lib/crda/pubkeys/sforshee.key.pub.pem but do miss /lib/crda/pubkeys/sforshee.x509.pem /lib/firmware/regulatory.db /lib/firmware/regulatory.db.p7s and when loading the regulatory db my system is loading the x.509 certificate, which isnt in this 2 packages cfg80211: Loading compiled-in X.509 certificates for regulatory database
Recommended Posts