VineLinux4.2でMOXA CP-168EL(DB9)ドライバインストール方法
8ポート RS-232C PCI Expressボード DB9ケーブル付
ドライバCD-ROMのCP-168EL\Software\Linux 2.6\x86 の内容を使用する。
CD-ROMをセットしてrootでログインする。
1.Execute the following commands from the Linux prompt:
#mount /dev/cdrom
#cd /
#mkdir moxa
#cd moxa
#cp /mnt/cdrom/mxser_1.11.tgz . →コピーはファイルマネジャで行う
#tar xvfz mxser_1.11.tgz
2.#cd mxser
#make clean; make install
ここで以下のようなエラー発生!
************************
make: depmod: コマンドが見つかりませんでした
make: *** [install] エラー 127
ネットでいろいろ調べたら、rootから一度抜け「su -」でログインするといい。
この通りに「su -」でログインし直して、make installを行ったらエラーなしで終了。
3.#cd /moxa/mxser/driver
#./msmknod
4.#modprobe mxser
5.Use the Moxa diagnostic utility to verify the driver status:
#cd /moxa/mxser/utility/diag
#./msdiag
6.Use the Moxa terminal utility to test the tty ports:
#cd /moxa/mxser/utility/term
#./msterm
7.「/etc/rc.local」に「/moxa/mxser/driver/rc.mxser」を最後のラインに加える
#vi /etc/rc.local
8.シンボリックリンクを作成する
ln -b -s ttyM0 ttyS0
ln -b -s ttyM1 ttyS1
ln -b -s ttyM2 ttyS2
ln -b -s ttyM3 ttyS3
ln -b -s ttyM4 ttyS4
ln -b -s ttyM5 ttyS5
ln -b -s ttyM6 ttyS6
ln -b -s ttyM7 ttyS7
これでシリアルポートが8個になりました。
ただ再起動で、シンボリックリンクが消えてしまう現象があり、調査中。