カーネルソースのインストール後、/usr/src/linux-2.2.13ディレクトリにpcmcia-cs-3.0.14ソースもインストールされます。ここでは、pcmcia-cs-3.0.14ソースを用いて/usr/src/linux-2.2.13/pcmcia-cs-3.0.14/include/pcmcia/config.hを作成する手順を示します。
以下のコマンドを入力し Linux PCMCIA Configuration Scriptを起動します。
#cd /usr/src/linux-2.2.13/pcmcia-cs-3.0.14
#./Configure
以下の様な画面が起動され対話形式で設定を進めていきます。
赤文字の個所だけ入力してください。
//////////////////////////////////////////////////////////////////////////
------- Linux PCMCIA Configuration Script --------
The default responses for each qustion are correct for most
users.
Consult the PCMCIA HOWTO for additional info about option.
Linux source directory [/usr/src/turbo/BUILD/linux]:
\c
/usr/src/linux-2.2.13
The kernel source tree is verson 2.2.13-33
The current kernel build dateis Sun Mar 19 15:01:16 2000.
Alternate target install directory [/var/tmp/kernel-2.2.13-33-root]:
\c
Module install directory [/lib/modules/2.2.13-33]:
\c
C compiler name [gcc -V2.7.2.3]: \c
Linker name [ld]: \c
Compiler flags for debugging [-O2 -fno-strength-reduce]:
\c
Build 'trusting' versions of card utilities
(y/n) [y]: \c
Include 32-bit (CardBus) card support (y/n)
[y]: \c
How would you like to set kernel-specific options?
1 - Read from the currently running kernel
2 - Read from the Linux source tree
3 - Set each option by hand (experts only!)
Enter option (1-3) [2]: \c
・・・
・・・
System V init script layout (y/n) [Y/n]: \c
Top-level directory fo RC scripts [/etc/ec.d]:
\c
//////////////////////////////////////////////////////////////////////////
Wireless LAN Driver sourceのダウンロード及びコンパイル
ftp://ftp.absoval.com/pub/linux-wlan-ng/
より
linux-wlan-ng-0.1.7.tar.gz
を
/usr/src/linux-2.2.13/
へコピーする。
Windows9xよりlinux-wlan-ng-0.1.7.tar.gzをダウンロードして
フロッピーディスクにてlinux-wlan-ng-0.1.7.tar.gzをコピーする場合は
以下の例を参考にしてください。
mount -r -t vfat /dev/fd0 /mnt/floppy
cp /mnt/floppy/linux-wlan-ng-0.1.7.tar.gz /usr/src/linux-2.2.13/linux-wlan-ng-0.1.7.tar.gz
umount /dev/fd0
ダウンロードしたディレクトリへ移動
# cd /usr/src/linux-2.2.13
ファイルの解凍
# tar zxvf linux-wlan-ng-0.1.7.tar.gz
解凍先ディレクトリへ移動
# cd linux-wlan-ng-0.1.7
# make config
--------------- Linux WLAN Configuration Script
---------------
The default responses are correct for most users.
Linux source directory [/usr/src/linux]:
The kernel source tree is version 2.2.13-33.
The current kernel build date is Sun Mar 19 15:01:16 2000.
pcmcia-cs source dir [/usr/src/pcmcia-cs-3.0.14]:
/usr/src/linux-2.2.13/pcmcia-cs-3.0.14
Alternate target install root directory on host
[]:
Module install directory [/lib/modules/2.2.13-33]:
PCMCIA script directory [/etc/pcmcia]:
Install drives as station (sta) or access point
(ap)? [sta]:
Target Architecture? (i386 or ppc) [i386]:
Prefix for host compiler? (rarely needed) []:
Compiling with cross compiler? (y/n) [n]:
Build for debugging (see drc/config.debug) (y/n)
[n]:
Build for Kernel PCMCIA? (y/n) [n]:
Configuration successfull.
/lib/modules/2.2.13-33/netにprism2_cs.oのシンボルリックファイルがあるのを確認してください。なかった場合は、以下のコマンドを入力してください。
# cp /lib/modules/2.2.13-33/pcmcia/prism2_cs.o
/lib/modules/2.2.13-33/net/prism2_cs.o
# depmod -a
|