Blacklist Kernel Modules
In this step we blacklist the RTL-SDR kernel modules, to ensure the devices are available to be used by our containers. You can skip this step if you're not using an RTL-SDR radio (eg: bladeRF).
NOTE: If you used the docker-install.sh script, you can skip this section.
Before we can plug in our RTL-SDR dongle, we need to blacklist the kernel modules for the RTL-SDR USB device from being loaded into the host's kernel and taking ownership of the device.
There are four parts to this.
Blacklist modules from being directly loaded AND blacklist modules from being loaded as a dependency of other modules
Unload any of our blacklisted modules from memory
Rebuild module dependency database
Updating the initramfs boot image to remove any references to our now blacklisted modules
1. Blacklist Modules
To do this, we will create a blacklist file at /etc/modprobe.d/blacklist-rtlsdr.conf
with the following command. While logged in as root, please copy and paste all lines at once, and press enter after to ensure the final line is given allowing it to run.
2. Unload Modules
Next, ensure the modules are unloaded by running the following commands:
3. Rebuild module dependency database
Next we rebuild the module dependency database with this command:
This may appear to initially not be doing anything, but after a short wait will begin outputting many lines of status updates as it runs until it finishes.
4. Update the Boot Image
Now we need to update our boot image to ensure any references to the modules we've blacklisted are removed. (This is only needed on certain systems; feel free to ignore if this command fails.)
This will take a minute or more depending on the speed of your system, and output lots of status message lines as it goes until it is finished.
Failure to do the steps above will result in the error below being spammed to the ultrafeeder
container log.
Last updated