This version of the page http://tools.mirohost.net/forum/topic.php?id=85&tid=8891 (0.0.0.0) stored by archive.org.ua. It represents a snapshot of the page as of 2017-05-14. The original page over time could change.
Форум на сайте MOXA.com.ua

      Форум на moxa.com.ua
Основная | Продукция | Применения | О компании | Новости | Поддержка | FAQ | Продажа | Форум |
  В форуме можно задавать вопросы специалистам по поддержке продукции МОХА,  а также обмениваться информацией о применении продукции МОХА.
   в форум | ответить | новая тема
Тема: Драйвер для MOXA C32010T/PCI на CentOS 5.1
Автор: ferenz
Драйвер для MOXA C32010T/PCI на CentOS 5.1    (14:41:36 01.04.2008) ответить 

Здравствуйте!

Есть машинка под CentOS 5.1 с воткнутой мультипортовкой MOXA C32010T/PCI. Но к сожалению не удается скомпилировать драйвер для указанной карты.

Исходники драйвера взял c сайта производителя http://www.moxa.com/drivers/C320T/Linux/v5.5/mxdrv.tgz

Автор: ferenz
Ответ: Драйвер для MOXA C32010T/PCI на CentOS 5.1    (14:43:00 01.04.2008) ответить 

[root@router-as mxdrv]# uname -a
Linux router-as 2.6.18-53.1.14.el5 #1 SMP Wed Mar 5 11:36:49 EST 2008 i686 i686 i386 GNU/Linux

[root@router-as mxdrv]# lspci -v
...
01:01.0 Serial controller: Moxa Technologies Co Ltd Intellio C320 Turbo PCI (rev 02) (prog-if 80)
Flags: medium devsel, IRQ 193
I/O ports at d400 [disabled] [size=128]
Memory at dfff8000 (32-bit, non-prefetchable) [disabled] [size=16K]

[root@router-as mxdrv]# make
...
cd driver;
make
make[1]: Entering directory `/root/tmp/moxa/mxdrv/driver'
cc -DLINUX moxaload.c -o moxaload
moxaload.c: In function ‘main’:
moxaload.c:105: warning: incompatible implicit declaration of built-in function ‘exit’
moxaload.c: In function ‘errexit’:
moxaload.c:482: warning: incompatible implicit declaration of built-in function ‘exit’
strip moxaload
make -C /lib/modules/2.6.18-53.1.14.el5/build SUBDIRS=/root/tmp/moxa/mxdrv/driver modules
make[2]: Entering directory `/usr/src/kernels/2.6.18-53.1.14.el5-i686'
CC [M] /root/tmp/moxa/mxdrv/driver/moxa.o
/root/tmp/moxa/mxdrv/driver/moxa.c:295: error: expected ‘)’ before string constant
/root/tmp/moxa/mxdrv/driver/moxa.c:296: error: expected ‘)’ before string constant
/root/tmp/moxa/mxdrv/driver/moxa.c:297: error: expected ‘)’ before string constant
/root/tmp/moxa/mxdrv/driver/moxa.c:298: error: expected ‘)’ before string constant
/root/tmp/moxa/mxdrv/driver/moxa.c:299: error: expected ‘)’ before string constant
/root/tmp/moxa/mxdrv/driver/moxa.c:300: error: expected ‘)’ before string constant
/root/tmp/moxa/mxdrv/driver/moxa.c:421: warning: initialization from incompatible pointer type
/root/tmp/moxa/mxdrv/driver/moxa.c: In function ‘moxa_init’:
/root/tmp/moxa/mxdrv/driver/moxa.c:522: error: ‘TTY_DRIVER_NO_DEVFS’ undeclared (first use in this function)
/root/tmp/moxa/mxdrv/driver/moxa.c:522: error: (Each undeclared identifier is reported only once
/root/tmp/moxa/mxdrv/driver/moxa.c:522: error: for each function it appears in.)
/root/tmp/moxa/mxdrv/driver/moxa.c:541: warning: assignment from incompatible pointer type
/root/tmp/moxa/mxdrv/driver/moxa.c: In function ‘moxa_ioctl’:
/root/tmp/moxa/mxdrv/driver/moxa.c:1288: error: implicit declaration of function ‘verify_area’
/root/tmp/moxa/mxdrv/driver/moxa.c: In function ‘receive_data’:
/root/tmp/moxa/mxdrv/driver/moxa.c:1797: error: ‘struct tty_struct’ has no member named ‘flip’
/root/tmp/moxa/mxdrv/driver/moxa.c:1805: error: ‘struct tty_struct’ has no member named ‘flip’
/root/tmp/moxa/mxdrv/driver/moxa.c:1806: error: ‘struct tty_struct’ has no member named ‘flip’
/root/tmp/moxa/mxdrv/driver/moxa.c:1807: error: ‘struct tty_struct’ has no member named ‘flip’
/root/tmp/moxa/mxdrv/driver/moxa.c:1824: error: ‘struct tty_struct’ has no member named ‘flip’
/root/tmp/moxa/mxdrv/driver/moxa.c:1825: error: ‘struct tty_struct’ has no member named ‘flip’
/root/tmp/moxa/mxdrv/driver/moxa.c:1826: error: ‘struct tty_struct’ has no member named ‘flip’
make[3]: *** [/root/tmp/moxa/mxdrv/driver/moxa.o] Error 1
make[2]: *** [_module_/root/tmp/moxa/mxdrv/driver] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.18-53.1.14.el5-i686'
make[1]: *** [module] Error 2
make[1]: Leaving directory `/root/tmp/moxa/mxdrv/driver'
make: *** [moxa] Error 2

Поиск в гугле вразумительных результатов не дал (либо плохо искал).
Буду благодарен за любую помощь.


   в форум | ответить | новая тема

Новая запись:
Тема: Драйвер для MOXA C32010T/PCI на CentOS 5.1
Имя пользователя:
E-mail:
Тема:
Сообщение:
   

Логин:
Пароль:
Авто-логин
Регистрация
Забыли пароль?
 Просьба соблюдать этикет в своих высказываниях!
 Администратор вправе удалить сообщение, если оно противоречит  принятому этикету или не относится к теме данного форума.

Перейти к сайту www.moxa.com.ua