How to use pcmcia wireless card on arm-xscale board.
1.First download wireless_too.28.tar.gz from
http://pcmcia-cs.sourceforge.net/ftp/contrib/wireless_tools.28.tar.gz
and pcmcia-cs-3.2.8.tar.gz from
http://easynews.dl.sourceforge.net/sourceforge/pcmcia-cs/pcmcia-cs-3.2.8.tar.gz.
2. Then configure and make them using the arm-xscale cross compile tools,after that copy the generated binary cardctl cardmgr iwconfig iwlist iwevnet etc to the BB board's file system(/sbin).
3. Modify the config file under pcmicia-cs-3.28/etc directory. << pcmcia的牌子是 orinoco
Line: 35
device "orinoco_cs"
class "network" module "hermes", "orinoco", "orinoco_cs"
#class "network" module "orinoco_cs"
card "WLCFL-11 WLAN Card"
version "corega","WLCFL-11","ISL37300P","RevA"
manfid 0xc00f,0x0000
bind "orinoco_cs"
4. Modify the network.conf and wireless.conf (under pcmicia-cs-3.28/etc) to set the default configuration such as ip address and etc
5. Copy the files under pcmcia-cs-3.2.8/etc/ directory to the BB file system(/etc/pcmcia/).
6. Copy a pcmcia script to the directory /etc/init.d/ of the BB
file system.
After above process ,then we can use the wireless card.
Some commands are as follows:
#cardctl reject
#cardctl insert
#/etc/init.d/pcmcia stop
#/etc/init.d/pcmcia start
#iwconfig
#iwconfig eth1 rate 2M
#iwlist eth1 scanning
//iwlist command can run only when the wireless bit rate is 2M ,we don't know why.
#iwconfig eth1 essid "Navi-Test"
#iwconfig eth1 key "*********"
//Now we don't know hot to set a WPA-PSK key.
#iwconfig eth1 mode ad-hoc
#iwconfig eth1 mode managed
Now we can use the wireless card at either ad-hoc or managed mode.
Also we run any Ethernet programs on the wireless network.