bmp82 Posted February 15, 2011 Share Posted February 15, 2011 Драйвера вот такие: npreal2_1.16_Build_09030513.tgz ./mxinst =============================================================================== Copyright © 2002-2007 Moxa Technologies Co., Ltd. All Rights Reserved. MOXA NPort Server Real TTY Driver V1.16 Installation. System Imformation: Kernel 2.6.35-26-generic; Machine i686. =============================================================================== Tar files, please wait ... OK! Building driver... If you want to use secure communication with target, you might choose [y] to enable the SSL function. Note: This function support RealCOM with secure mode only. Do you want to enable secure function? [y/N]. n make -C /lib/modules/2.6.35-26-generic/build SUBDIRS=/tmp/moxa modules make[1]: Вход в каталог `/usr/src/linux-headers-2.6.35-26-generic' CC [M] /tmp/moxa/npreal2.o /tmp/moxa/npreal2.c:48: fatal error: linux/autoconf.h: Нет такого файла или каталога compilation terminated. make[2]: *** [/tmp/moxa/npreal2.o] Ошибка 1 make[1]: *** [_module_/tmp/moxa] Ошибка 2 make[1]: Выход из каталога `/usr/src/linux-headers-2.6.35-26-generic' make: *** [module] Ошибка 2 Check Driver... FAILED !!! Install Not Completed ! В чем проблема, потыкал на зарубежные сайты, новых версий драйверов нет? Link to comment
Guest Alekseev Posted February 15, 2011 Share Posted February 15, 2011 Добрый день! Обычно с Ubuntu драйвер работает нормально. Попробуйте более свежую версию (прикрепил аттачем). npreal2_1.16.19_Build_11010318.tgz Link to comment
bmp82 Posted February 15, 2011 Author Share Posted February 15, 2011 Добрый день! Обычно с Ubuntu драйвер работает нормально. Попробуйте более свежую версию (прикрепил аттачем). Спасибо добрый человек! Link to comment
bmp82 Posted February 15, 2011 Author Share Posted February 15, 2011 Нет с Ubuntu она нормально не работает. После ребута, пропал каталог /usr/lib/npreal2, пришлось переустановить, каталог появился. Мистика. Link to comment
Guest Alekseev Posted February 15, 2011 Share Posted February 15, 2011 Нет с Ubuntu она нормально не работает. После ребута, пропал каталог /usr/lib/npreal2, пришлось переустановить, каталог появился. Мистика. То есть установка прошла нормально, но после ребута и каталог и драйвер слетел? В итоге драйвер в принципе не работает? Link to comment
bmp82 Posted February 15, 2011 Author Share Posted February 15, 2011 После ребута и каталог и драйвер слетел, пришлось переустановить. Далее по написаному: # cd /usr/lib/npreal2/driver # ./mxaddsvr X.X.X.X 16 4001 966 Получаю в файле npreal2d.cf: #=========================================================# # This configuration file is created by Moxa NPort # # Administrator Program automatically, please do not # # modify this file by yourself. # #=========================================================# ttymajor=33 calloutmajor=38 #[Minor] [serverIP] [data] [cmd] [FIFO] [sSL] [ttyName] [coutName] [interface][mode][backIP] 1 X.X.X.X 4001 966 1 0 ttyr01 cur01 0 0 (null) .... 16 X.X.X.X 4016 981 1 0 ttyr10 cur10 0 0 (null) Цепляюсь на ttyr01 и безрезультатно(((( Link to comment
Guest Alekseev Posted February 15, 2011 Share Posted February 15, 2011 От имени администратора ставили через sudo? Link to comment
bmp82 Posted February 15, 2011 Author Share Posted February 15, 2011 От имени администратора ставили через sudo? root@bmp:/usr/lib/npreal2# ls -la итого 104 drwxr-xr-x 3 root root 4096 2011-02-15 12:46 . drwxr-xr-x 220 root root 69632 2011-02-15 12:46 .. drwxr-xr-x 2 root root 4096 2011-02-15 12:52 driver -rw-r--r-- 1 root root 494 2011-02-15 12:46 kernel2.6.txt -rw-r--r-- 1 root root 13981 2011-02-15 12:46 README.TXT -rw-r--r-- 1 root root 3436 2011-02-15 12:46 VERSION.TXT root@bmp:/usr/lib/npreal2# Link to comment
bmp82 Posted February 18, 2011 Author Share Posted February 18, 2011 Так оно все и пропало... Link to comment
Komantsev Posted February 20, 2011 Share Posted February 20, 2011 Так оно все и пропало... Цепляюсь на ttyr01 и безрезультатно(((( А можно поинформативнее? Что значит безрезультатно? Link to comment
bmp82 Posted February 21, 2011 Author Share Posted February 21, 2011 А можно поинформативнее? Что значит безрезультатно? ПРобовал через minicom, putty, pac...подключение к ttyr01 не возможно. Link to comment
Guest Alekseev Posted February 21, 2011 Share Posted February 21, 2011 После ребута и каталог и драйвер слетел, пришлось переустановить. Далее по написаному: # cd /usr/lib/npreal2/driver # ./mxaddsvr X.X.X.X 16 4001 966 Получаю в файле npreal2d.cf: #=========================================================# # This configuration file is created by Moxa NPort # # Administrator Program automatically, please do not # # modify this file by yourself. # #=========================================================# ttymajor=33 calloutmajor=38 #[Minor] [serverIP] [data] [cmd] [FIFO] [sSL] [ttyName] [coutName] [interface][mode][backIP] 1 X.X.X.X 4001 966 1 0 ttyr01 cur01 0 0 (null) .... 16 X.X.X.X 4016 981 1 0 ttyr10 cur10 0 0 (null) Цепляюсь на ttyr01 и безрезультатно(((( В режиме RealCom используются 950 и 966 порты, а у Вас 4001 и 966. Возможно из-за этого и не работает. 4001 порт используется в режиме TCP Server. Link to comment
zai Posted July 4, 2011 Share Posted July 4, 2011 В продолжение темы. После перезагрузки действительно перестает работать. Содержмое файла npreal2d.log: 07-04-2011 11:01:43 MOXA Real TTY daemon program starting (Ver1.17.1 Build 11050413)... 07-04-2011 11:01:43 MOXA Real TTY daemon program starting (Ver1.17.1 Build 11050413)... 07-04-2011 11:01:43 Master tty open fail (/proc/npreal2/0) ! Link to comment
Komantsev Posted July 5, 2011 Share Posted July 5, 2011 Добрый день! Уточните, пожалуйста, детали: какая ОС установлена? что драйвер пишет при компилляции? Link to comment
zai Posted July 5, 2011 Share Posted July 5, 2011 Добрый день! Уточните, пожалуйста, детали: какая ОС установлена? что драйвер пишет при компилляции? 1. ОС Debian-6.0.0-amd64 2. =============================================================================== Copyright © 2002-2010 Moxa Inc. All Rights Reserved. MOXA NPort Server Real TTY Driver V1.17.3 Installation. System Imformation: Kernel 2.6.32-5-amd64; Machine x86_64. =============================================================================== Tar files, please wait ... OK! Building driver... If you want to use secure communication with target, you might choose [y] to enable the SSL function. Note: This function support RealCOM with secure mode only. Do you want to enable secure function? [y/N]. make -C /lib/modules/2.6.32-5-amd64/build SUBDIRS=/tmp/moxa modules make[1]: Entering directory `/usr/src/linux-headers-2.6.32-5-amd64' CC [M] /tmp/moxa/npreal2.o Building modules, stage 2. MODPOST 1 modules CC /tmp/moxa/npreal2.mod.o LD [M] /tmp/moxa/npreal2.ko make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-5-amd64' cp -p npreal2.ko /lib/modules/2.6.32-5-amd64/kernel/drivers/char/ depmod -a cc -c npreal2d.c cc npreal2d.o -o npreal2d strip npreal2d cc -c redund_main.c cc -c redund.c cc -lpthread redund_main.o redund.o -o npreal2d_redund strip npreal2d_redund cc -o mxaddsvr mxaddsvr.c mxaddsvr.c: In function ‘main’: mxaddsvr.c:559: warning: passing argument 2 of ‘getline’ from incompatible pointer type /usr/include/stdio.h:651: note: expected ‘size_t * __restrict__’ but argument is of type ‘int *’ strip mxaddsvr cc -o mxdelsvr mxdelsvr.c mxdelsvr.c: In function ‘main’: mxdelsvr.c:74: warning: passing argument 2 of ‘getline’ from incompatible pointer type /usr/include/stdio.h:651: note: expected ‘size_t * __restrict__’ but argument is of type ‘int *’ mxdelsvr.c:129: warning: passing argument 2 of ‘getline’ from incompatible pointer type /usr/include/stdio.h:651: note: expected ‘size_t * __restrict__’ but argument is of type ‘int *’ mxdelsvr.c:225: warning: passing argument 2 of ‘getline’ from incompatible pointer type /usr/include/stdio.h:651: note: expected ‘size_t * __restrict__’ but argument is of type ‘int *’ strip mxdelsvr cc -o mxcfmat mxcfmat.c mxcfmat.c: In function ‘main’: mxcfmat.c:44: warning: passing argument 2 of ‘getline’ from incompatible pointer type /usr/include/stdio.h:651: note: expected ‘size_t * __restrict__’ but argument is of type ‘int *’ strip mxcfmat cc -o mxloadsvr mxloadsvr.c mxloadsvr.c: In function ‘modify_script’: mxloadsvr.c:146: warning: passing argument 2 of ‘getline’ from incompatible pointer type /usr/include/stdio.h:651: note: expected ‘size_t * __restrict__’ but argument is of type ‘int *’ mxloadsvr.c:159: warning: passing argument 2 of ‘getline’ from incompatible pointer type /usr/include/stdio.h:651: note: expected ‘size_t * __restrict__’ but argument is of type ‘int *’ mxloadsvr.c: In function ‘main’: mxloadsvr.c:262: warning: passing argument 2 of ‘getline’ from incompatible pointer type /usr/include/stdio.h:651: note: expected ‘size_t * __restrict__’ but argument is of type ‘int *’ strip mxloadsvr cc -o mxsetsec mxsetsec.c mxsetsec.c: In function ‘main’: mxsetsec.c:202: warning: passing argument 2 of ‘getline’ from incompatible pointer type /usr/include/stdio.h:651: note: expected ‘size_t * __restrict__’ but argument is of type ‘int *’ mxsetsec.c:290: warning: passing argument 2 of ‘getline’ from incompatible pointer type /usr/include/stdio.h:651: note: expected ‘size_t * __restrict__’ but argument is of type ‘int *’ strip mxsetsec Check Driver... Copying configurations files ... OK! Copying driver files ... OK! Load driver... OK! Loading TTY Driver... update-rc.d: using dependency based boot sequencing Complete. =============================================================================== Installation process is completed. The all driver files are installed on /usr/lib/npreal2/driver. Now you can cd /usr/lib/npreal2/driver and run ./mxaddsvr to add tty port. =============================================================================== Link to comment
zai Posted July 6, 2011 Share Posted July 6, 2011 Проблема решена! Дело оказалось в скрипте запуска службы, подправили в ручную. Всё работает! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now