📄 install
字号:
HOWTO INSTALL THE MCF-25 LINUX DRIVER
The driver is distributed in source form. In order to compile the driver
you will need to have the Linux source tree installed in your system,
preferably in the /usr/src/linux directory. This driver has been tested
with Linux version 2.4.22 and compiled with gcc 3.2.2. The host Linux
system that was used to compile and test the driver is based on
Slackware 9.0 distribution.
REQUIREMENTS
1. Kernel source 2.4.22
2. GCC 3.2.2
3. Wireless Tools
INSTALLING AND CONFIGURING THE LINUX SOURCE TREE
1. Download the Linux kernel file from www.kernel.org
2. Untar the source in the /usr/src directory
3. Create a symbolic link to the linux source tree to a directory called
"linux".
4. Run "make menuconfig" in the linux directory and enable the Wireless
LAN under "Network Device Support"/"Wireless LAN (Non Hamradio)
5. Configure any other options as required
6. Exit and save the configuration.
In order to compile the driver the Linux kernel need not be compiled.
But to run the driver you would have to install the same version of the
kernel that the driver is compiled against.
COMPILING THE DRIVER
If the Linux source tree is not present in the default Linux directory then
modify the KERNELDIR parameter in the Makefile to point to the location of
the kernel source.
Do a "make clean" followed by a "make" to compile the driver
The mcf25.o is the driver compiled as a module for the current kernel. The
Makefile also tries to copy the driver to the /lib/modules/2.4.22/pcmcia
directory so that the driver can be easily loaded at boot time.
To remove debug option the -DDEBUG and -DDBG options can be removed from
Makefile CFLAGS variable
INSTALLING THE DRIVER
Once the card is inserted, running
insmod mcf25.o
should load the driver into the kernel.
The driver can also be automatically loaded into the kernel by the cardmgr
daemon if the /etc/pcmcia/config file has been modified appropiately. The
following lines need to be added into this config file into the corresponding
device and card sections of the file.
# MCF-25 device entry
device "mcf25"
class "network" module "mcf25"
# End of device entry
# MCF-25 card entry
card "Marvell 88W8300 802.11b CF Card"
manfid 0x02df, 0x8103
bind "mcf25"
# End of card entry
Once these lines are inserted into the config file the cardmgr needs to be
instructed to reload its configuratio with the command
killall -HUP cardmgr
INSTALATION PROCEDURE :
1. Untar the source into any directory
cd /usr/src
tar xvzf mcf25-linux-pc-3.0.1-src.tgz
2. Change into the created directory and compile
cd mcf25-linux-pc-3.0.1/src
make clean
make
This should create the file mcf25.o which is the driver as a loadable module
Additionally
make install
can be used to copy the driver to the modules directory
3.If debug is enabled in the Makefile (-DDEBUG -DDBG) then debug messages will
be output using the klogd facility of the linux kernel. The standard log files
are /var/log/debug, /var/log/messages and /var/log/syslog
INSTALATION OF BIN FILES :
1. Untar the bin into any directory
tar xvzf mcf25-linux-pc-3.0.1-bin.tgz
2. Change into the created directory
cd mcf25-linux-pc-3.0.1/bin
cp mcf25.o /lib/modules/2.4.22/pcmcia
Now on inserting the CF-25 card into the PCMCIA slot the driver will
automatically be loaded.
CONFIGURING THE DRIVER
1. List available access points
iwlist ethX ap
or
iwlist ethX scan
where X is the ethernet device associated with the CF-25 card. This
can be found by typing
cat /proc/net/dev
to list available network devices
2. Associate with AP
iwconfig ethX ap XX:XX:XX:XX:XX:XX
or
iwconfig ethX essid XXXXX
where XX:XX:XX:XX:XX:XX is the MAC address of the AP to associate with
where XXXX is the ESSID of the AP to associate with
3. Once association has been successfull either dhcpcd or ifconfig can be used
to configure the IP address on the machine.
dhcpcd -t 30 -d ethX
or
ifconfig ethX 192.168.1.1
4. All network applications should be usable at this point of time
AD-HOC MODE
The following steps have to be performed in order to use the card in Adhoc mode.
1. Change Mode To Ad-Hoc
iwconfig ethX mode Ad-Hoc
2. Either JOIN or START an Ad-hoc network
iwconfig eth0 essid XXXXX
where XXXX is the ESSID
3. Configure the network interface
ifconfig eth0 XX:XX:XX:XX
where XX:XX:XX:XX is the IP Address for the network
4. Transmit and receive over the network
ping XX:XX:XX:XX
where XX:XX:XX:XX is the IP Address of other system which is in
Ad-Hoc mode
5. Change Mode To Managed
iwconfig eth0 mode Managed
6. Associate with Access Point
iwconfig eth0 essid XXXXX
The following steps have to be performed in order to use WEP.
1. Associcate with Access Point
iwconfig eth0 essid XXXX
where XXXX is the ESSID
2. Set Wep Key
iwconfig eth0 key XXXXXXXXXXX
where XXXXXXXXXX is the Wep Key
.
3. Once association has been successfull either dhcpcd or ifconfig can be used
to configure the IP address on the machine.
dhcpcd -t 30 -d ethX
or
ifconfig ethX 192.168.1.1
4. All network applications should be usable at this point of time
The following steps have to be performed in order to use IEEE Power Save
1. Associate with Access Point
iwconfig eth0 essid XXXXXXX
where XXXXXX is the ESSID
2. Get the IP address using dhcpcd
dhcpcd -d ethX
3. Enter into Power Save mode
iwconfig ethX power period X
where X is the numeric value
4. Exit from the Power Save mode
iwconfig ethX power off
Note : We should come out of power save mode before removing the card
The following steps to be performed in order to set Data rates
1. Associate with Access Point
iwconfig eth0 essid XXXXXXX
where XXXXXX is the ESSID
2. Get the IP address using dhcpcd
dhcpcd -d ethX
3 Set the Required Data Rate
iwconfig ethX rate XX
where XX can be 1,2,5,11,22 (rates supported by FW)
where 1 for 1Mbps
2 for 2Mbps
5 for 5.5Mbps
11 for 11Mbps
22 for 22Mbps
The following steps to be performed in order to RTS Threshold
1. Associate with Access Point
iwconfig eth0 essid XXXXXXX
where XXXXXX is the ESSID
2. Get the IP address using dhcpcd
dhcpcd -d ethX
3 Set the Required RTS Threshold
iwconfig ethX rts XX
where XX can be size of the smallest packet for which the FW sends RTS.
The following steps to be performed in order to Fragmentation Threshold
1. Associate with Access Point
iwconfig eth0 essid XXXXXXX
where XXXXXX is the ESSID
2. Get the IP address using dhcpcd
dhcpcd -d ethX
3 Set the Required RTS Threshold
iwconfig ethX frag XX
where XX can be maximum fragment size .
The following steps to be performed in order to get Version number of the Driver
1. iwpriv ethX version
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -