Edito
Voila voila, je refais mon infra…
Et j'ai donc envie de participer a une oeuvre commune :
Antoine.
Pub
Désolé de vous incommoder avec cela, c'est un mal aujourd'hui nécessaire. Je le souhaite juste utile, on verra.
Cette page vous donne les différences entre la révision choisie et la version actuelle de la page.
docs:hard_hack:raspapp [2020/01/19 09:38] adlp |
docs:hard_hack:raspapp [2020/01/20 23:22] (version actuelle) adlp |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
<xtermrtf> | <xtermrtf> | ||
- | apt install -y git build-essential linux-headers-rpi raspberrypi-kernel-headers bc kbuild linux-kbuild-4.18 | + | * * * * * root /usr/local/bin/addcountry /etc/wpa_supplicant/wpa_supplicant.conf |
+ | root@raspberrypi:~# cat /usr/local/bin/addcountry | ||
+ | #!/bin/bash | ||
+ | |||
+ | if ! grep -q "^country=" $1; then | ||
+ | echo Adding | ||
+ | sed -i -e '2a\country=FR' $1 | ||
+ | fi | ||
+ | |||
+ | apt install -y git build-essential linux-headers-rpi raspberrypi-kernel-headers bc kbuild linux-kbuild-4.18 console-data | ||
git clone https://github.com/whitebatman2/rtl8821CU.git | git clone https://github.com/whitebatman2/rtl8821CU.git | ||
cd rtl8821CU | cd rtl8821CU | ||
+ | cat README.md | ||
+ | ## Raspberry Pi | ||
+ | To build this driver on Raspberry Pi you need to set correct platform in Makefile. | ||
+ | Change | ||
+ | ``` | ||
+ | CONFIG_PLATFORM_I386_PC = y | ||
+ | CONFIG_PLATFORM_ARM_RPI = n | ||
+ | CONFIG_PLATFORM_ARM_RPI3 = n | ||
+ | ``` | ||
+ | to | ||
+ | ``` | ||
+ | CONFIG_PLATFORM_I386_PC = n | ||
+ | CONFIG_PLATFORM_ARM_RPI = y | ||
+ | CONFIG_PLATFORM_ARM_RPI3 = n | ||
+ | ``` | ||
+ | For the Raspberry Pi 3 you need to change it to | ||
+ | ``` | ||
+ | CONFIG_PLATFORM_I386_PC = n | ||
+ | CONFIG_PLATFORM_ARM_RPI = n | ||
+ | CONFIG_PLATFORM_ARM_RPI3 = y | ||
+ | ``` | ||
+ | vi Makefile | ||
make -j4 ARCH=arm | make -j4 ARCH=arm | ||
make install | make install |