Raspberrypi: Difference between revisions

From 탱이의 잡동사니
Jump to navigation Jump to search
Line 15: Line 15:
</pre>
</pre>


== wireless ==
== Wireless ==
<pre>
=== DWA-171A1 ===
I recently purchased a D-Link DWA-171A1 Wireless AC Dual Band USB Adapter to use with a Raspberry PI 2 B after seeing a posting that stated that it worked out of the box. Well…
DWA-171 은 기본적으로 라즈베리 파이용 모듈을 제공하지 않는다. DWA-171 을 라즈베리 파이에서 사용하기 위해서는 해당 모듈을 직접 컴파일해야 한다.<ref>http://digitalhacksblog.blogspot.dk/2015/12/it-worked-for-me-sort-of-raspberry-pi.html</ref>


It didn’t work out of the box but I was able to get it to work by compiling the driver.  I used this code from GitHub on the Raspbian Jessie image dated 11/21/2015
* Used Raspbian Jessie image dated 11/21/2015
 
* Install below packages.
    Loaded the Raspbian Jessie image from here: https://www.raspberrypi.org/downloads/raspbian/ Linux raspberrypi (4.1.13-v7+)  to my SD Card.(linux-headers-4.1.13+_4.1.13+-2_armhf.deb)
: $ apt-get install dkms build-essential bc gcc
    Added the following packages using apt-get: apt-get install dkms build-essential bc
* Downloaded and unzip the driver from abperiasamy/rtl8812AU_8821AU_linux GitHub.
    Downloaded and unzip the driver from abperiasamy/rtl8812AU_8821AU_linux GitHub repository: https://github.com/abperiasamy/rtl8812AU_8821AU_linux/archive/master.zip
: $ wget https://github.com/abperiasamy/rtl8812AU_8821AU_linux/archive/master.zip
    Download the appropriate kernel headers for your version of Raspbian. I found the ones I needed here: https://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/.
* Download the appropriate kernel headers for your version of Raspbian.(linux-headers-4.1.13+_4.1.13+-2_armhf.deb)
    Install the headers using sudo dpkg –i <package name>.deb.
: Download at here. (https://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/)
    cd to the directory you unziped the driver into.
* Install the header.
    Using nano or some other editor update the Makefile:
: $ sudo dpkg –i <package name>.deb.
 
* Change the Makefile option.
    CONFIG_PLATFORM_I386_PC = n
: CONFIG_PLATFORM_I386_PC = n
    CONFIG_PLATFORM_ARM_RPI = y
: CONFIG_PLATFORM_ARM_RPI = y
 
* Install.
    The using the following commands build and install the driver.
: $ sudo make clean
 
: $ sudo make
    # sudo make clean
: $ sudo make install
    # sudo make
* Load the module.
    # sudo make install
: $ sudo modprobe -a 8812au
    # sudo modprobe -a 8812au
 
You should now see the DWA-171 as a wireless interface and should be able to configure it.
 
 
</pre>


== See also ==
== See also ==

Revision as of 12:05, 5 January 2016

Overview

Raspberry pi 정보 정리

Installation

공개된 Raspberry pi 설치 이미지는 이곳<ref>https://www.raspberrypi.org/downloads/</ref>에서 다운받을 수 있다.

이후, 다운받은 이미지를 dd 명령어를 이용하여 SD 카드로 복사하면 된다.

$ wget https://downloads.raspberrypi.org/raspbian_latest

$ ls
2015-05-05-raspbian-wheezy.img

$ sudo dd bs=4M if=./2015-05-05-raspbian-wheezy.img of=/dev/mmcblk0

Wireless

DWA-171A1

DWA-171 은 기본적으로 라즈베리 파이용 모듈을 제공하지 않는다. DWA-171 을 라즈베리 파이에서 사용하기 위해서는 해당 모듈을 직접 컴파일해야 한다.<ref>http://digitalhacksblog.blogspot.dk/2015/12/it-worked-for-me-sort-of-raspberry-pi.html</ref>

  • Used Raspbian Jessie image dated 11/21/2015
  • Install below packages.
$ apt-get install dkms build-essential bc gcc
  • Downloaded and unzip the driver from abperiasamy/rtl8812AU_8821AU_linux GitHub.
$ wget https://github.com/abperiasamy/rtl8812AU_8821AU_linux/archive/master.zip
  • Download the appropriate kernel headers for your version of Raspbian.(linux-headers-4.1.13+_4.1.13+-2_armhf.deb)
Download at here. (https://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/)
  • Install the header.
$ sudo dpkg –i <package name>.deb.
  • Change the Makefile option.
CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_ARM_RPI = y
  • Install.
$ sudo make clean
$ sudo make
$ sudo make install
  • Load the module.
$ sudo modprobe -a 8812au

See also

References

<references />