ссылки:
1 |
http://tech.enekochan.com/en/2014/03/08/new-script-to-compile-tp-link-tl-wn725n-version-2-lwfinger-driver-in-raspbian/ |
установка драйвера:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
#!/bin/bash # Get linux source code, prepare config files and create symlinks VERSION=<code>uname -r | awk -F'.' '{print $1"."$2}' cd ~ wget https://codeload.github.com/raspberrypi/linux/tar.gz/rpi-${VERSION}.y -O rpi-${VERSION}.y.tar.gz sudo tar zxf rpi-${VERSION}.y.tar.gz -C /usr/src/ cd /usr/src/linux-rpi-${VERSION}.y/ sudo bash -c "zcat /proc/config.gz > /usr/src/linux-rpi-${VERSION}.y/.config" # In the next step you may be prompted questions about the configuration # if your /proc/config.gz does not answer them (new features for example) sudo make oldconfig sudo make modules_prepare sudo wget https://github.com/raspberrypi/firmware/raw/master/extra/Module.symvers sudo ln -s /usr/src/linux-rpi-${VERSION}.y /lib/modules/<code>uname -r</code>/source sudo ln -s /usr/src/linux-rpi-${VERSION}.y /lib/modules/<code>uname -r</code>/build # Optional #sudo ln -s /usr/src/linux-rpi-${VERSION}.y /usr/src/linux-<code>uname -r #sudo ln -s /usr/src/linux-rpi-${VERSION}.y /usr/src/linux # Get driver source, compile, install and load it cd ~ git clone https://github.com/lwfinger/rtl8188eu.git cd rtl8188eu # This wil take around 20 minutes make all sudo make install # After this step you should have those new files installed: # /lib/modules/<code>uname -r</code>/kernel/drivers/net/wireless/8188eu.ko # /lib/firmware/rtlwifi/rtl8188eufw.bin sudo modprobe 8188eu # Remove driver and linux source code to recover some space (around 700MB) # Leave those lines commented if you want to keep the code for future compilations #sudo rm /lib/modules/<code>uname -r</code>/source #sudo rm /lib/modules/<code>uname -r</code>/build #sudo rm /usr/src/linux-<code>uname -r #sudo rm /usr/src/linux #sudo rm -R /usr/src/linux-rpi-${VERSION}.y #cd ~ #rm rpi-${VERSION}.y.tar.gz #rm -R rtl8188eu |