Tiny Core Extensions > TCE Talk
[Solved] how to set country and make it visible to wifi drivers?
GNUser:
Hi, Rich. I put all the regulatory.* files in /lib/firmware/ directory as suggested. I still cannot set the country:
[form error. see attached]
Setting the country as in the attachment works fine in Devuan, without having to reload any kernel modules. I'm stuck.
Rich:
Hi GNUser
--- Quote from: GNUser on July 02, 2022, 11:29:46 PM --- ... Setting the country as in the attachment works fine in Devuan, without having to reload any kernel modules. I'm stuck.
--- End quote ---
Devuan has a persistent file system, Tinycore does not. Unless you added the regulatory.* files to the rootfs , they may be
showing up too late. You might need to reload the drivers or create an additional initrd containing just the regulatory.* files.
GNUser:
1. I added /lib/firmware/regulatory.db and /lib/firmware/regulatory.db.p7s to corepure64.gz
2. I added this command to top of /opt/bootlocal.sh: iw reg set US
Then I rebooted and voila, everything works as expected :o
My home wireless network is now 5 GHz. Download speeds for wireless clients increased from 30 Mbps to 90 Mbps. Rich, there's absolutely no way I could have solved this without your help. THANK YOU!
Rich:
Hi GNUser
If you create a separate initrd it will make it obvious there is a special modification. Plus it
is now portable so you don't have to remaster corepure64.gz anytime you want to test
a new release.
Create the file system:
--- Code: ---mkdir -p tempdir/lib/firmware/
cp regulatory.db tempdir/lib/firmware/
cp regulatory.db.p7s tempdir/lib/firmware/
cd tempdir
--- End code ---
Pack it up:
Sorry, forum error, see attachment.
Finish:
--- Code: ---cd ..
--- End code ---
--- Code: ---rm -rf tempdir
cp regulatory.gz /boot
--- End code ---
I think the syntax for loading multiple initrd files in grub2 would look like this:
--- Code: ---initrd /boot/corepure64.gz /boot/regulatory.gz
--- End code ---
Paul_123:
I have found that as long as regulatory.db and it’s signature is loaded before your WiFi firmware/drivers. It works fine in an extension….. at least on a rpi. There is a regdb.tcz extension in the piCore repos.
And yes, crda is obsolete with modern kernels.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version