$) lsusb
- 리눅스가 USB를 인식한다면 Bus중 하나가 해당 usb정보를 보여주는 것을 볼수 있다.
- 전혀 인식을 못할시
- 리눅스 소스에서 모듈을 다시 올려야 하는 작업을 해야한다.
- 페도라 코어6에서 확인결과 이상없이 붙는 것을 알수 있었다.
3) 모듈 생성 파일 구하기
사이트 : ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/ 에서 최신 파일을 다운 받는다
필자가 사용한 파일 : linux-wlan-ng-0.2.8.tar.bz2
2. 설치 시작
(이부분에서의 설명은 linux-wlan-ng-0.2.8 안의 readme 안에 자세히 기록되어 있다. 자세하고 확실한 설치를 원한다면 readme를 읽으며 설치할 것을 권한다.)
$) tar xzvf linux-wlan-ng-0.2.8.tar.bz2
$) cd linux-wlan-ng-0.2.8.tar.bz2
$) make config
- 여기서 몇가지 질문이 나온다.
- "Build Prism2.x PCMCIA Card Services (_cs) driver? (y/n) [y]: " 필자는 USB제품을 사용한다. n 치고 엔터
Select "y" if you want to build the Prism PCMCIA driver.
If you select "n", the PCMCIA related questions below
will not be asked.
- Build Prism2 PLX9052 based PCI (_plx) adapter driver? (y/n) [y]: 역시 n
Select "y" if you want to build the Prism driver for
PLX PCI9052 PCI/PCMCIA adapter based solutions.
- Build Prism2.5 native PCI (_pci) driver? (y/n) [y]: 여기도 n
Select "y" if you want to build the Prism driver for
Prism2.5 ISL3874 based native PCI cards. This includes
PCI add-in cards and the mini-pci modules included in some
notebook computers (but not all, some use internal USB modules).
- Build Prism2.5 USB (_usb) driver? (y/n) [y]: USB이므로 y
Select "y" if you want to build the Prism driver for
Prism2.5 ISL3873 based USB adapters. This includes
USB add-on modules and the internal modules included in some
notebook computers.
- Linux source directory [/usr/src/linux]: 리눅스 소스 위치를 잡아줘야 한다. /usr/src/kernels/2.6.18-1.2798.fc6-i686 치고 엔터
참고로 이곳 설정 이후 리눅스 커널 버전이 화면에 나오는데 현재 시스템과 소스의 커널 버전이
틀리다면 경고를 해준다. 물론 그런 화면이 나온다면 모듈 설치는 물건너 간것이다.
필자는 설치중 상관없겠이 하는 마음으로 넘어갔다 몇번을 피를 토했는지 모른다. ㅋ;;
물론 소스의 위치를 잘못 잡아줘도 경고 화면이 나온다.
The config script will attempt to automagically find your kernel
source directory. If found, the kernel source source directory
will be presented as the default selection. If the default
selection is wrong, you may correct it here.
- pcmcia-cs source dir [/usr/src/pcmcia-cs-3.1.29]: 필자는 USB설치를 하여 이 질문은 안나왓다.
If the "_cs" driver is selected above, the configure script will
attempt to present a reasonable default for the pcmcia source
directory. If the presented directory is incorrect, you may
change it here. If the "_cs" driver is not selected, this
prompt will not appear.
- PCMCIA script directory [/etc/pcmcia]: 역시 안나옴
If the "_cs" driver is selected, this prompt allows you to
change the location where the pcmcia scripts will be installed.
Only do this if you have installed the rest of the pcmcia_cs
scripts to a non-default location.
- Alternate target install root directory on host []: 여기서는 엔터
This prompt allows you to specify an alternative root directory
for the install process.
- Module install directory [/lib/modules/2.2.20]: 모듈이 설치 될 위치다 이곳도 확실히 정해주는것이 좋다. 필자는 /lib/modules/2.6.18-1.2798.fc6/kernel/drivers/net/wireless 로 설정하였다.
Select where you want the driver modules to be installed. The
script constructs a default location using the output of uname.
If you have not yet installed the kernel you will run linux-wlan
with, and the new kernel has a different version string, you will
need to change this value.
- Prefix for build host compiler? (rarely needed) []: 엔터
When cross-compiling or using different compilers for kernel and
user-mode software, it is sometimes (but rarely) necessary to
specify a different compiler prefix to use when compiling the
_tools_ that are built to run on the build host during the
linux-wlan-ng build process.
- Build for debugging (see doc/config.debug) (y/n) [y]: 엔터
This option enables the inclusion of debug output generating
statements in the driver code. Note that enabling those statements
requires the inclusion of insmod/modprobe command line arguments
when loading the modules. See the document doc/config.debug
for more information.
- 이렇게 하면 설치전 작업이 완료 된다.
$) make all
- make all 시에 안사용하는 파일이라고 해서 지우라고 하고 어쩔때는 owner를 모르겠다고 하는
에러 화면이 나오기도 한다. 이런 에러는 모두 리눅스 커널 소스를 잘못 지정해줬거나 현재
리눅스에서 도는 커널소스와 다른 소스를 잡아줬기에 나오는 에러들이다.
필자는 주제넘게도 이런 에러들을 쉘스크립트 및 C 파일들을 뜯어고치며 잡으려고 했지만
결국엔 커널 소스 문제였다 ㅡㅡ;;
$) make install
- 여기까지 이상없이 되었다면 이제 모듈을 올릴 차례이다.
3. 모듈을 올리고 사용전 기본적인 설정
- 어서 사용하고 싶겠지만 SSID를 잡아줘야 한다.
- 필자는 SSID 명을 linux-wlan으로 잡아줬다.
- 아래는 필자가 입력한 명령어 이다.
$) cp /etc/wlan/wlancfg-DEFAULT /etc/wlan/wlancfg-linux-wlan
- /etc/wlan/wlan.conf 파일에서 SSID_wlan0="" 부분을 찾아
SSID_wlan0="linux-wlan" 으로 바꿔준다.
- 네트워크를 좀 아는 사람이라면
/etc/wlan/wlancfg-linux-wlan 파일을 자기 마음대로 주물러 사용할수 있다.
4. 모듈올리고 사용하기 (USB 무선랜을 연결한 상태에서)
$) modprobe prism2_usb prism2_doreset=1
$) wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
$) wlanctl-ng wlan0 lnxreq_autojoin ssid=
-- 필자는
wlanctl-ng wlan0 lnxreq_autojoin ssid=linux-wlan authtype=opensystem
으로 입력하였다.
$) ifconfig wlan0
-- 필자 입력
ifconfig wlan0 192.168.1.3
- 마지막으로 ifconfig 를 해본다.
이상없이 되었다면 wlan0 이 작동하는것을 볼수있다.
댓글 없음:
댓글 쓰기