리눅스에서 N200UA 무선랜카드로 AP 구축하는 방법
안녕하세요.
N200UA 제품 소개에는 리눅스를 지원하고 AP모드로 사용가능하다고 되어 있어서 구입하여 설치중인데 문제가 있어 질문드립니다.
리눅스에 설치하기 전에 일단 윈도우에서 설치하고 AP 모드로 사용해 보았습니다. 잘 되더군요.
리눅스에 연결하고 lsusb 명령을 치면 다음과 같은 줄이 나오는걸로 보아 하드웨어 인식은 한 것 같습니다.
Bus 003 Device 008: ID 148f:2870 Ralink Technology, Corp.
그리고 여기 홈페이지에서 다운받은 리눅스용 드라이버를 설치하려고 하는데 다음과 같이 하라고 되어 있군요.
======================================================================= Build Instructions:
====================
1> $tar -xvzf DPO_RT2870_Linux_STA_x.x.x.x.tgz
go to "./DPO_RT2870_Linux_STA_x.x.x.x" directory.
2> In Makefile
set the "MODE = STA" in Makefile and chose the TARGET to Linux by set "TARGET = LINUX"
define the linux kernel source include file path LINUX_SRC
modify to meet your need.
3> In os/linux/config.mk
define the GCC and LD of the target machine
define the compiler flags CFLAGS
modify to meet your need.
** Build for being controlled by NetworkManager
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'.
** Build for being controlled by WpaSupplicant with Ralink Custom Event
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n'.
command: #./wpa_supplicant -Dralink -ira0 -c wpa_supplicant.conf -d
4> $make # compile driver source code
5> $cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat
6> load driver, go to "os/linux/" directory.
#[kernel 2.4]
# $/sbin/insmod rt2870sta.o
# $/sbin/ifconfig ra0 inet YOUR_IP up
#[kernel 2.6]
# $/sbin/insmod rt2870sta.ko
# $/sbin/ifconfig ra0 inet YOUR_IP up
7> unload driver
$/sbin/ifconfig ra0 down
$/sbin/rmmod rt2870sta
=======================================================================
위의 과정에서 2, 3번 과정에서 파일을 수정하라고 하는데 어떻게 수정해야 할지 모르겠습니다.
그리고 이 설명파일에는 AP 모드로 사용하는 방법이 나와 있지 않은데 어떻게 설정해야 하는지 설명 부탁드립니다.
사용한 드라이버: 2007_1220_RT2870_Linux_STA_v1.2.1.0.tar.bz2 리눅스 배포판: Ubuntu-Server 7.04 _Feisty Fawn 리눅스 버전: Linux smserver 2.6.20-16-server #2 SMP Tue Feb 12 05:48:21 UTC 2008 i686 GNU/Linux
N200UA 제품 소개에는 리눅스를 지원하고 AP모드로 사용가능하다고 되어 있어서 구입하여 설치중인데 문제가 있어 질문드립니다.
리눅스에 설치하기 전에 일단 윈도우에서 설치하고 AP 모드로 사용해 보았습니다. 잘 되더군요.
리눅스에 연결하고 lsusb 명령을 치면 다음과 같은 줄이 나오는걸로 보아 하드웨어 인식은 한 것 같습니다.
Bus 003 Device 008: ID 148f:2870 Ralink Technology, Corp.
그리고 여기 홈페이지에서 다운받은 리눅스용 드라이버를 설치하려고 하는데 다음과 같이 하라고 되어 있군요.
======================================================================= Build Instructions:
====================
1> $tar -xvzf DPO_RT2870_Linux_STA_x.x.x.x.tgz
go to "./DPO_RT2870_Linux_STA_x.x.x.x" directory.
2> In Makefile
set the "MODE = STA" in Makefile and chose the TARGET to Linux by set "TARGET = LINUX"
define the linux kernel source include file path LINUX_SRC
modify to meet your need.
3> In os/linux/config.mk
define the GCC and LD of the target machine
define the compiler flags CFLAGS
modify to meet your need.
** Build for being controlled by NetworkManager
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'.
** Build for being controlled by WpaSupplicant with Ralink Custom Event
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n'.
command: #./wpa_supplicant -Dralink -ira0 -c wpa_supplicant.conf -d
4> $make # compile driver source code
5> $cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat
6> load driver, go to "os/linux/" directory.
#[kernel 2.4]
# $/sbin/insmod rt2870sta.o
# $/sbin/ifconfig ra0 inet YOUR_IP up
#[kernel 2.6]
# $/sbin/insmod rt2870sta.ko
# $/sbin/ifconfig ra0 inet YOUR_IP up
7> unload driver
$/sbin/ifconfig ra0 down
$/sbin/rmmod rt2870sta
=======================================================================
위의 과정에서 2, 3번 과정에서 파일을 수정하라고 하는데 어떻게 수정해야 할지 모르겠습니다.
그리고 이 설명파일에는 AP 모드로 사용하는 방법이 나와 있지 않은데 어떻게 설정해야 하는지 설명 부탁드립니다.
사용한 드라이버: 2007_1220_RT2870_Linux_STA_v1.2.1.0.tar.bz2 리눅스 배포판: Ubuntu-Server 7.04 _Feisty Fawn 리눅스 버전: Linux smserver 2.6.20-16-server #2 SMP Tue Feb 12 05:48:21 UTC 2008 i686 GNU/Linux







































