Difference between revisions of "Raspberry PI"
From Blue-IT.org Wiki
(One intermediate revision by the same user not shown) | |||
Line 13: | Line 13: | ||
sudo chmod +x /usr/bin/rpi-source && \ | sudo chmod +x /usr/bin/rpi-source && \ | ||
/usr/bin/rpi-source -q --tag-update | /usr/bin/rpi-source -q --tag-update | ||
− | + | ||
+ | Then do: | ||
rpi-source | rpi-source | ||
Line 24: | Line 25: | ||
sudo dkms install 8192cu/1.10 | sudo dkms install 8192cu/1.10 | ||
echo "blacklist rtl8192cu" | sudo tee -a /etc/modprobe.d/blacklist.conf | echo "blacklist rtl8192cu" | sudo tee -a /etc/modprobe.d/blacklist.conf | ||
+ | |||
+ | [[Category:Raspberry PI]] |
Latest revision as of 14:50, 29 December 2018
Compiling custom kernel modules
Wlan rtl8192cu
I ran into a problem with one of my wifi dongles (see: https://ubuntuforums.org/showthread.php?t=2325802). So I needed to recompile the module.
Prerequisites:
Install rpi-source
sudo wget https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source \ -O /usr/bin/rpi-source && \ sudo chmod +x /usr/bin/rpi-source && \ /usr/bin/rpi-source -q --tag-update
Then do:
rpi-source
Then install the necessary files (in my case for the rtl8182cu wlan chip):
# sudo apt-get install --reinstall linux-headers-$(uname -r) - NOT WORKING linux-headers-generic build-essential git dkms sudo apt-get install --reinstall linux-headers-generic build-essential git dkms git clone https://github.com/pvaret/rtl8192cu-fixes.git sudo dkms add ./rtl8192cu-fixes sudo dkms install 8192cu/1.10 echo "blacklist rtl8192cu" | sudo tee -a /etc/modprobe.d/blacklist.conf