After you have unpacked the device driver package, you can begin the compilation.

1.Copy config.mk.orig to config.mk.

2.Edit the config.mk to match your system. It is important that all the directives in config.mk are correct. Otherwise the device driver may not work or may not even compile.

Syntax of the file:

 

LINUX = /usr/src/linux

This is the location of the Linux source code

OS_RELEASE=2.4.16

Kernel version for module installation

ROOTDIR=/

Root directory for kernel module and tool

 

installation

SMAC2=d211fw.bin

Firmware for the radio card

3.When the config.mk is correct, compile the device driver by issuing the command 'make all'. If the compilation succeeds, nokia_cs.o appears in the src directory. If the compilation is not successful, check again the config.mk for possible errors. It is possible that the device driver does not compile to your system. In that case you should use one of the setups that Nokia has used in developing the device driver.

4.If you are installing the device driver for the first time, issue the command 'make config_install' to install the default configuration. If you have previously installed the device driver and do not want to override the previous setup, you need not do this.

5.Issue the command 'make install' to install the device driver. It installs the kernel module and the userspace utilities. You may need to restart your PCMCIA system before using the device driver.

If you need to compile the device driver more than once, it is recommended that you issue the command 'make clean' before another build is made. This procedure ensures that the object files from a previous build are recompiled and no version mismatch will occur.

Note: If the device driver does not compile to your system, try one of the setups listed in the section.

4.CONFIGURING THE DEVICE DRIVER

The configuration file that needs to be edited is /etc/pcmcia/nokia_cs.opts. It defines what the radio card should do at startup. Currently only the WLAN connection can be activated when the radio card is inserted. For GSM functionality, see chapter 4.4.

Note: GSM and WLAN functionality cannot be used at the same time.

2/10

Page 4
Image 4
Nokia D211 manual Configuring the Device Driver, OSRELEASE=2.4.16, Rootdir=