Using BUFFALO WI-U2-433DM on Raspberry Pi 2 (self-compiling)
[
Front page
] [
New
|
List of pages
|
Search
|
Recent changes
]
Start:
[[labs.beatcraft.com]]~
[[Raspberry Pi]]~
[[Raspbian]]~
#contents
* Using BUFFALO WI-U2-433DM on Raspberry Pi 2 (self-compi...
>
This article explains how to connect [[WI-U2-433DM (Air S...
~
To flow the directions described in [[Raspberry Pi 2 kern...
** Obtaining source [#ned691d5]
>
Linux drivers for Realtek 8812au, which is used at WI-U2-...
To do git clone, please obtain the source code of the dri...
pi@raspberrypi ~ $ cd src/
pi@raspberrypi ~/src $ git clone https://github.com/abpe...
Cloning into 'rtl8812AU_8821AU_linux'...
remote: Counting objects: 797, done.
remote: Total 797 (delta 0), reused 0 (delta 0), pack-re...
Receiving objects: 100% (797/797), 1.98 MiB | 846.00 KiB...
Resolving deltas: 100% (430/430), done.
Checking connectivity... done.
**Adjusting Makefile [#e23dc257]
>
Change the build option on Makefile for Raspberry Pi.~
pi@raspberrypi ~/src $ cd rtl8812AU_8821AU_linux/
beat@raspberrypi ~/src/rtl8812AU_8821AU_linux $ vim Make...
At Line 52, change CONFIG_PLATFORM_I386_PC = y to CONFIG_...
At Line 58, change CONFIG_PLATFORM_ARM_RPI = n to CONFIG_...
**Build [#u8ee0a08]
>
Please execute Make.~
pi@raspberrypi ~/src/rtl8812AU_8821AU_linux $ time make ...
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.1.10-v7+/...
make[1]: Entering directory '/usr/src/linux'
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/core/rtw_c...
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/core/rtw_s...
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/core/rtw_d...
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/core/rtw_i...
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/core/rtw_i...
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/core/rtw_i...
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/core/rtw_i...
~~ Skipping ~~
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/hal/OUTSRC...
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/hal/OUTSRC...
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/hal/OUTSRC...
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/hal/OUTSRC...
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/core/rtw_m...
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/core/rtw_m...
LD [M] /home/pi/src/rtl8812AU_8821AU_linux/8812au.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/pi/src/rtl8812AU_8821AU_linux/8812au.mod.o
LD [M] /home/pi/src/rtl8812AU_8821AU_linux/8812au.ko
make[1]: Leaving directory '/usr/src/linux'
real 5m18.419s
user 4m55.650s
sys 0m16.600s
~
It takes 5 minutes approximately.~
The size of 8812au.ko is 1.3M. (The size is less than one...
pi@raspberrypi ~/src/rtl8812AU_8821AU_linux $ ls -alh 88...
-rw-r--r-- 1 pi pi 1.3M Nov 5 21:03 8812au.ko
**Install [#rbd65dad]
>
Please apply the command line of make install to install...
pi@raspberrypi ~/src/rtl8812AU_8821AU_linux $ sudo make ...
install -p -m 644 8812au.ko /lib/modules/4.1.10-v7+/ker...
/sbin/depmod -a 4.1.10-v7+
**Confirmation of load [#fb6de424]
>
The kernel module has been installed. As WI-U2-433DM is i...
root@raspberrypi:~# lsmod
Module Size Used by
8812au 960539 0
cfg80211 410393 1 8812au
rfkill 15913 1 cfg80211
bcm2835_gpiomem 2860 0
uio_pdrv_genirq 2924 0
uio 7784 1 uio_pdrv_genirq
i2c_dev 5610 0
snd_bcm2835 19808 3
snd_pcm 73405 1 snd_bcm2835
snd_timer 17657 1 snd_pcm
snd 50337 9 snd_bcm2835,snd_timer,sn...
fuse 79934 3
ipv6 336324 32
>
oot@raspberrypi:~# iwconfig
wlan0 unassociated Nickname:"<WIFI@REALTEK>"
Mode:Auto Frequency=2.412 GHz Access Point: ...
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx inva...
Tx excessive retries:0 Invalid misc:0 Misse...
lo no wireless extensions.
eth0 no wireless extensions.
** Configuration of network [#la8b560f]
>
At the configuration items of wlan0 in /etc/network/inter...
# vi /etc/network/interfaces
(`please modify the lines below)
allow-hotplug wlan0
auto wlan0
iface wlan0 inet manual
wpa-ssid "your-ssid"
wpa-psk "your-passwd"
** Rebooting [#gd5a0b43]
>
As the configuration is completed and the system is reboo...
root@raspberrypi:~# ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:c2:87:00
inet addr:192.168.0.145 Bcast:192.168.0.255 ...
inet6 addr: fe80::ba27:ebff:fec2:8700/64 Scope...
UP BROADCAST RUNNING MULTICAST MTU:1500 Metr...
RX packets:3887 errors:0 dropped:639 overruns:...
TX packets:579 errors:0 dropped:0 overruns:0 c...
collisions:0 txqueuelen:1000
RX bytes:295688 (288.7 KiB) TX bytes:98761 (9...
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:2876 errors:0 dropped:0 overruns:0 ...
TX packets:2876 errors:0 dropped:0 overruns:0 ...
collisions:0 txqueuelen:0
RX bytes:431834 (421.7 KiB) TX bytes:431834 (...
wlan0 Link encap:Ethernet HWaddr cc:e1:d5:f7:14:e6
inet addr:192.168.0.143 Bcast:192.168.0.255 ...
inet6 addr: fe80::b80b:a0f:2479:5b10/64 Scope:...
UP BROADCAST RUNNING MULTICAST MTU:1500 Metr...
RX packets:41 errors:0 dropped:6 overruns:0 fr...
TX packets:25 errors:0 dropped:1 overruns:0 ca...
collisions:0 txqueuelen:1000
RX bytes:5772 (5.6 KiB) TX bytes:4430 (4.3 KiB)
* Revision History [#xb736499]
>
- 2016-02-16 This article is initially released.
End:
[[labs.beatcraft.com]]~
[[Raspberry Pi]]~
[[Raspbian]]~
#contents
* Using BUFFALO WI-U2-433DM on Raspberry Pi 2 (self-compi...
>
This article explains how to connect [[WI-U2-433DM (Air S...
~
To flow the directions described in [[Raspberry Pi 2 kern...
** Obtaining source [#ned691d5]
>
Linux drivers for Realtek 8812au, which is used at WI-U2-...
To do git clone, please obtain the source code of the dri...
pi@raspberrypi ~ $ cd src/
pi@raspberrypi ~/src $ git clone https://github.com/abpe...
Cloning into 'rtl8812AU_8821AU_linux'...
remote: Counting objects: 797, done.
remote: Total 797 (delta 0), reused 0 (delta 0), pack-re...
Receiving objects: 100% (797/797), 1.98 MiB | 846.00 KiB...
Resolving deltas: 100% (430/430), done.
Checking connectivity... done.
**Adjusting Makefile [#e23dc257]
>
Change the build option on Makefile for Raspberry Pi.~
pi@raspberrypi ~/src $ cd rtl8812AU_8821AU_linux/
beat@raspberrypi ~/src/rtl8812AU_8821AU_linux $ vim Make...
At Line 52, change CONFIG_PLATFORM_I386_PC = y to CONFIG_...
At Line 58, change CONFIG_PLATFORM_ARM_RPI = n to CONFIG_...
**Build [#u8ee0a08]
>
Please execute Make.~
pi@raspberrypi ~/src/rtl8812AU_8821AU_linux $ time make ...
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.1.10-v7+/...
make[1]: Entering directory '/usr/src/linux'
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/core/rtw_c...
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/core/rtw_s...
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/core/rtw_d...
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/core/rtw_i...
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/core/rtw_i...
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/core/rtw_i...
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/core/rtw_i...
~~ Skipping ~~
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/hal/OUTSRC...
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/hal/OUTSRC...
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/hal/OUTSRC...
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/hal/OUTSRC...
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/core/rtw_m...
CC [M] /home/pi/src/rtl8812AU_8821AU_linux/core/rtw_m...
LD [M] /home/pi/src/rtl8812AU_8821AU_linux/8812au.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/pi/src/rtl8812AU_8821AU_linux/8812au.mod.o
LD [M] /home/pi/src/rtl8812AU_8821AU_linux/8812au.ko
make[1]: Leaving directory '/usr/src/linux'
real 5m18.419s
user 4m55.650s
sys 0m16.600s
~
It takes 5 minutes approximately.~
The size of 8812au.ko is 1.3M. (The size is less than one...
pi@raspberrypi ~/src/rtl8812AU_8821AU_linux $ ls -alh 88...
-rw-r--r-- 1 pi pi 1.3M Nov 5 21:03 8812au.ko
**Install [#rbd65dad]
>
Please apply the command line of make install to install...
pi@raspberrypi ~/src/rtl8812AU_8821AU_linux $ sudo make ...
install -p -m 644 8812au.ko /lib/modules/4.1.10-v7+/ker...
/sbin/depmod -a 4.1.10-v7+
**Confirmation of load [#fb6de424]
>
The kernel module has been installed. As WI-U2-433DM is i...
root@raspberrypi:~# lsmod
Module Size Used by
8812au 960539 0
cfg80211 410393 1 8812au
rfkill 15913 1 cfg80211
bcm2835_gpiomem 2860 0
uio_pdrv_genirq 2924 0
uio 7784 1 uio_pdrv_genirq
i2c_dev 5610 0
snd_bcm2835 19808 3
snd_pcm 73405 1 snd_bcm2835
snd_timer 17657 1 snd_pcm
snd 50337 9 snd_bcm2835,snd_timer,sn...
fuse 79934 3
ipv6 336324 32
>
oot@raspberrypi:~# iwconfig
wlan0 unassociated Nickname:"<WIFI@REALTEK>"
Mode:Auto Frequency=2.412 GHz Access Point: ...
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx inva...
Tx excessive retries:0 Invalid misc:0 Misse...
lo no wireless extensions.
eth0 no wireless extensions.
** Configuration of network [#la8b560f]
>
At the configuration items of wlan0 in /etc/network/inter...
# vi /etc/network/interfaces
(`please modify the lines below)
allow-hotplug wlan0
auto wlan0
iface wlan0 inet manual
wpa-ssid "your-ssid"
wpa-psk "your-passwd"
** Rebooting [#gd5a0b43]
>
As the configuration is completed and the system is reboo...
root@raspberrypi:~# ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:c2:87:00
inet addr:192.168.0.145 Bcast:192.168.0.255 ...
inet6 addr: fe80::ba27:ebff:fec2:8700/64 Scope...
UP BROADCAST RUNNING MULTICAST MTU:1500 Metr...
RX packets:3887 errors:0 dropped:639 overruns:...
TX packets:579 errors:0 dropped:0 overruns:0 c...
collisions:0 txqueuelen:1000
RX bytes:295688 (288.7 KiB) TX bytes:98761 (9...
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:2876 errors:0 dropped:0 overruns:0 ...
TX packets:2876 errors:0 dropped:0 overruns:0 ...
collisions:0 txqueuelen:0
RX bytes:431834 (421.7 KiB) TX bytes:431834 (...
wlan0 Link encap:Ethernet HWaddr cc:e1:d5:f7:14:e6
inet addr:192.168.0.143 Bcast:192.168.0.255 ...
inet6 addr: fe80::b80b:a0f:2479:5b10/64 Scope:...
UP BROADCAST RUNNING MULTICAST MTU:1500 Metr...
RX packets:41 errors:0 dropped:6 overruns:0 fr...
TX packets:25 errors:0 dropped:1 overruns:0 ca...
collisions:0 txqueuelen:1000
RX bytes:5772 (5.6 KiB) TX bytes:4430 (4.3 KiB)
* Revision History [#xb736499]
>
- 2016-02-16 This article is initially released.
Page: