唉!真不容易:关于fc2对prism2芯片的无线网卡的配置

1.安装fc2(fc1,fc2内建队prism2的支持)

2。下hostapd-0.2.5.tar.gz等工具与驱动。http://hostap.epitest.fi/

3. tar zxvf hostapd-0.2.5.tar.gz

4. cd hostapd-0.2.5

5. vi Makefile ,修改: KERNEL_PATH = /usr/src/linux-2.6.5-1.358

6. 修改内核:cd /usr/src/linux-2.6.5-1.358
            make oldconfig
     vi Makefile , 去掉EXTRAVERSION中的“custom”
            make modules
            make
7. 编译:
 cd hostapd-0.2.5
        make
        make install

8. cd /lib/modules/2.6.5-1.358/kernel/drivers/net/wireless
        chmod u+x hostap*


9. reboot system

10. now config script:
 1. initial.sh:
  insmod /lib/modules/2.6.5-1.358/kernel/drivers/pcmcia/pcmcia_core.ko
                insmod /lib/modules/2.6.5-1.358/kernel/drivers/pcmcia/yenta_socket.ko
  insmod /lib/modules/2.6.5-1.358/kernel/drivers/pcmcia/ds.ko

  service pcmcia restart
        2. ap.sh:
  ifconfig wlan0 192.168.0.55
  iwconfig wlan0 mode managed essid 1 end off
  ifconfig eth0 down
  route add default gw 192.168.0.1 dev wlan0
 3. msr.sh:
  ifconfig eth0 down
  ifconfig wlan0 192.168.2.55
  iwconfig wlan0 mode ad-hoc essid msr enc off
  iwconfig wlan0 channel 11
  reout add default gw 192.168.2.11 dev wlan0

 

另:可以参考(没试过)http://oob.freeshell.org/nzwireless/hostap.html

你可能感兴趣的:(service,System,Path,工具,makefile,prism)