Čia matote skirtumus tarp pasirinktos versijos ir esamo dokumento.
Both sides previous revision Previous revision | |||
raspbmc_module [2014/05/25 23:05] dalius |
raspbmc_module [2014/05/25 23:08] dalius |
||
---|---|---|---|
Linija 1: | Linija 1: | ||
- | - Enable "install & update kernel headers" in the raspbmc settings menu => system configuration (this will take a while, you wont see the progress) | + | Follow these steps to compile the 8188eu driver by yourself |
+ | |||
+ | 1. Enable "install & update kernel headers" in the raspbmc settings menu => system configuration (this will take a while, you wont see the progress) | ||
⇒ needed for grabbing Module.symvers | ⇒ needed for grabbing Module.symvers | ||
- | - Install GCC, MAKE and GIT | + | 2. Install GCC, MAKE and GIT |
pi@raspbmc:~$ sudo apt-get -y install gcc make git | pi@raspbmc:~$ sudo apt-get -y install gcc make git | ||
- | - Get linux source code | + | 3. Get linux source code |
=> Please verify that you are at ~ which is equal to /home/pi ! | => Please verify that you are at ~ which is equal to /home/pi ! | ||
Linija 13: | Linija 15: | ||
pi@raspbmc:~$ mv linux-rpi-3.10.y rpi-linux | pi@raspbmc:~$ mv linux-rpi-3.10.y rpi-linux | ||
- | - Get rtl8188eu source code | + | 4. Get rtl8188eu source code |
pi@raspbmc:~$ git clone git://github.com/lwfinger/rtl8188eu.git | pi@raspbmc:~$ git clone git://github.com/lwfinger/rtl8188eu.git | ||
- | - Clean the kernel source | + | 5. Clean the kernel source |
pi@raspbmc:~$ cd rpi-linux | pi@raspbmc:~$ cd rpi-linux | ||
pi@raspbmc:~/rpi-linux$ make mrproper | pi@raspbmc:~/rpi-linux$ make mrproper | ||
- | - Setup .config and clear the CONFIG_CROSS_COMPILE assignment in .config | + | 6. Setup .config and clear the CONFIG_CROSS_COMPILE assignment in .config |
pi@raspbmc:~/rpi-linux$ zcat /proc/config.gz > .config | pi@raspbmc:~/rpi-linux$ zcat /proc/config.gz > .config | ||
pi@raspbmc:~/rpi-linux$ vi .config | pi@raspbmc:~/rpi-linux$ vi .config | ||
Linija 27: | Linija 29: | ||
6.2. Type ":x" and then type Enter to save | 6.2. Type ":x" and then type Enter to save | ||
- | - Prepare the modules | + | 7. Prepare the modules |
pi@raspbmc:~/rpi-linux$ make modules_prepare | pi@raspbmc:~/rpi-linux$ make modules_prepare | ||
- | - Copy Module.symvers from kernel headers folder to linux source folder | + | 8. Copy Module.symvers from kernel headers folder to linux source folder |
pi@raspbmc:~/rpi-linux$ cp /usr/src/linux-headers-3.10.13/Module.symvers . | pi@raspbmc:~/rpi-linux$ cp /usr/src/linux-headers-3.10.13/Module.symvers . | ||
- | - Prepare the installation of the rtl8188eu driver by defining folder links | + | 9. Prepare the installation of the rtl8188eu driver by defining folder links |
pi@raspbmc:~/rpi-linux$ ln -s /home/pi/rpi-linux /usr/src/linux | pi@raspbmc:~/rpi-linux$ ln -s /home/pi/rpi-linux /usr/src/linux | ||
pi@raspbmc:~/rpi-linux$ ln -s /usr/src/linux /lib/modules/3.10.13/source | pi@raspbmc:~/rpi-linux$ ln -s /usr/src/linux /lib/modules/3.10.13/source | ||
pi@raspbmc:~/rpi-linux$ ln -s /usr/src/linux /lib/modules/3.10.13/build | pi@raspbmc:~/rpi-linux$ ln -s /usr/src/linux /lib/modules/3.10.13/build | ||
- | - make and install the rtl8188eu | + | 10. make and install the rtl8188eu |
pi@raspbmc:~/rpi-linux$ cd ../rtl8188eu | pi@raspbmc:~/rpi-linux$ cd ../rtl8188eu | ||
pi@raspbmc:~/rtl8188eu$ make && make install | pi@raspbmc:~/rtl8188eu$ make && make install | ||
- | - Optional: Install the driver if make install didn’t work due to permission | + | 11. Optional: Install the driver if make install didn’t work due to permission |
pi@raspbmc:~/rtl8188eu$ sudo cp 8188eu.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/ | pi@raspbmc:~/rtl8188eu$ sudo cp 8188eu.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/ | ||
pi@raspbmc:~/rtl8188eu$ sudo depmod -a | pi@raspbmc:~/rtl8188eu$ sudo depmod -a | ||
pi@raspbmc:~/rtl8188eu$ sudo modprobe 8188eu | pi@raspbmc:~/rtl8188eu$ sudo modprobe 8188eu | ||
- | - now ifconfig should show wlan0 | + | 12. now ifconfig should show wlan0 |