Jump to content
Форум по продукции MOXA

vice

Пользователи
  • Posts

    3
  • Joined

  • Last visited

vice's Achievements

Новичок

Новичок (1/5)

0

Reputation

  1. np_ver.h есть. Код файла ниже. #ifndef _NP_VER_H #define _NP_VER_H #define NPREAL_VERSION "Ver1.18.65" #define NPREAL_BUILD "Build 17052517" #endif
  2. получилось поставить файл npreal2_1.18.51_build_15051816.tgz из темы https://www.moxa.ru/forum/index.php?/topic/1732-proshu-pomoch-so-sborkoj-linux-drajvera-dlia-nport-5150/page-3 работоспособность еще не проверил и по поводу совместимости в readme тоже ничего не нашел, но установка прошла без ошибок. Ниже прикрепил сразу файл для быстрого доступа. По поводу последнего архива npreal2_1.18.65_build_17062316.7z [root@ARM-61-4 /]# /moxa/kernel3.x/mxinst SP1_m64 awk: fatal: cannot open file `np_ver.h' for reading (No such file or directory) =============================================================================== Copyright (C) 2002-2015 Moxa Inc. All Rights Reserved. MOXA NPort Server Real TTY Driver Installation. System Information: Kernel 3.10.0-514.el7.x86_64; Machine x86_64. =============================================================================== There is an Real TTY Driver installed in your system. Continue to install will overwrite the old driver. Do you want to continue installing? [y/N]. y 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: *** No rule to make target `all'. Stop. Check Driver... FAILED !!! Install Not Completed ! npreal2_1.18.51_build_15051816.tgz
  3. Здраствуйте, столкнулся с проблемой при установке драйвера npreal2_1.18_Build_12020919.tgz на RED HAT 7.3 для MOXA Nport 6650-32. [user@ARM-61-4 ~]$ su Password: [root@ARM-61-4 user]# cd / [root@ARM-61-4 /]# cp /home/user/npreal2_1.18_Build_12020919.tgz / [root@ARM-61-4 /]# tar xvfz npreal2_1.18_Build_12020919.tgz tmp/ tmp/moxa/ tmp/moxa/Makefile tmp/moxa/npreal2.h tmp/moxa/redund_main.c tmp/moxa/README.TXT tmp/moxa/mxinst tmp/moxa/npreal2d.c tmp/moxa/include/ tmp/moxa/include/openssl/ tmp/moxa/include/openssl/md4.h tmp/moxa/include/openssl/comp.h tmp/moxa/include/openssl/lhash.h tmp/moxa/include/openssl/asn1.h tmp/moxa/include/openssl/krb5_asn.h tmp/moxa/include/openssl/blowfish.h tmp/moxa/include/openssl/ssl2.h tmp/moxa/include/openssl/dtls1.h tmp/moxa/include/openssl/e_os2.h tmp/moxa/include/openssl/des.h tmp/moxa/include/openssl/ssl23.h tmp/moxa/include/openssl/dsa.h tmp/moxa/include/openssl/tls1.h tmp/moxa/include/openssl/txt_db.h tmp/moxa/include/openssl/pkcs12.h tmp/moxa/include/openssl/bio.h tmp/moxa/include/openssl/rand.h tmp/moxa/include/openssl/sha.h tmp/moxa/include/openssl/ripemd.h tmp/moxa/include/openssl/asn1t.h tmp/moxa/include/openssl/x509_vfy.h tmp/moxa/include/openssl/store.h tmp/moxa/include/openssl/pq_compat.h tmp/moxa/include/openssl/ocsp.h tmp/moxa/include/openssl/des_old.h tmp/moxa/include/openssl/ossl_typ.h tmp/moxa/include/openssl/ecdh.h tmp/moxa/include/openssl/crypto.h tmp/moxa/include/openssl/bn.h tmp/moxa/include/openssl/engine.h tmp/moxa/include/openssl/ecdsa.h tmp/moxa/include/openssl/tmdiff.h tmp/moxa/include/openssl/ec.h tmp/moxa/include/openssl/asn1_mac.h tmp/moxa/include/openssl/rc2.h tmp/moxa/include/openssl/ebcdic.h tmp/moxa/include/openssl/rsa.h tmp/moxa/include/openssl/x509.h tmp/moxa/include/openssl/aes.h tmp/moxa/include/openssl/ui_compat.h tmp/moxa/include/openssl/rc4.h tmp/moxa/include/openssl/conf.h tmp/moxa/include/openssl/pem.h tmp/moxa/include/openssl/md2.h tmp/moxa/include/openssl/ssl3.h tmp/moxa/include/openssl/symhacks.h tmp/moxa/include/openssl/dh.h tmp/moxa/include/openssl/ssl.h tmp/moxa/include/openssl/idea.h tmp/moxa/include/openssl/stack.h tmp/moxa/include/openssl/opensslconf.h tmp/moxa/include/openssl/cast.h tmp/moxa/include/openssl/pkcs7.h tmp/moxa/include/openssl/dso.h tmp/moxa/include/openssl/ui.h tmp/moxa/include/openssl/pem2.h tmp/moxa/include/openssl/buffer.h tmp/moxa/include/openssl/kssl.h tmp/moxa/include/openssl/md5.h tmp/moxa/include/openssl/obj_mac.h tmp/moxa/include/openssl/x509v3.h tmp/moxa/include/openssl/safestack.h tmp/moxa/include/openssl/conf_api.h tmp/moxa/include/openssl/evp.h tmp/moxa/include/openssl/objects.h tmp/moxa/include/openssl/pqueue.h tmp/moxa/include/openssl/hmac.h tmp/moxa/include/openssl/err.h tmp/moxa/include/openssl/opensslv.h tmp/moxa/VERSION.TXT tmp/moxa/mxrmnod tmp/moxa/mxuninst tmp/moxa/mxloadsvr.c tmp/moxa/mxaddsvr.c tmp/moxa/npreal2d.cf tmp/moxa/mxcfmat.c tmp/moxa/npreal2.c tmp/moxa/mxmknod tmp/moxa/nport.h tmp/moxa/killp tmp/moxa/kernel2.6.txt tmp/moxa/mxsetsec.c tmp/moxa/redund.c tmp/moxa/redund.h tmp/moxa/npreal2d.h tmp/moxa/mxdelsvr.c [root@ARM-61-4 /]# /tmp/moxa/mxinst SP1_m64 =============================================================================== Copyright (C) 2002-2012 Moxa Inc. All Rights Reserved. MOXA NPort Server Real TTY Driver V1.18 Installation. System Imformation: Kernel 3.10.0-514.el7.x86_64; 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]. N make -C /lib/modules/3.10.0-514.el7.x86_64/build SUBDIRS=/tmp/moxa modules make[1]: Entering directory `/usr/src/kernels/3.10.0-514.el7.x86_64' CC [M] /tmp/moxa/npreal2.o /tmp/moxa/npreal2.c: In function ‘npreal_init_tty’: /tmp/moxa/npreal2.c:661:11: error: dereferencing pointer to incomplete type de->data = (void *) net_node; ^ /tmp/moxa/npreal2.c:663:11: error: dereferencing pointer to incomplete type de->proc_fops = &npreal_net_fops; ^ In file included from /tmp/moxa/npreal2.c:92:0: /tmp/moxa/npreal2.c: In function ‘npreal_init’: /tmp/moxa/npreal2.h:28:35: error: ‘struct tty_driver’ has no member named ‘termios_locked’ #define DRV_VAR_P(x) npvar_sdriver->x ^ /tmp/moxa/npreal2.c:779:5: note: in expansion of macro ‘DRV_VAR_P’ DRV_VAR_P(termios_locked) = npvar_termios_locked; ^ /tmp/moxa/npreal2.c: In function ‘npreal_open’: /tmp/moxa/npreal2.c:1064:13: error: invalid type argument of unary ‘*’ (have ‘struct ktermios’) *tty->termios = info->normal_termios; ^ /tmp/moxa/npreal2.c:1066:13: error: invalid type argument of unary ‘*’ (have ‘struct ktermios’) *tty->termios = info->callout_termios; ^ /tmp/moxa/npreal2.c:1080:8: error: ‘struct tty_struct’ has no member named ‘low_latency’ tty->low_latency = 1; ^ /tmp/moxa/npreal2.c: In function ‘npreal_close’: /tmp/moxa/npreal2.c:1170:32: error: invalid type argument of unary ‘*’ (have ‘struct ktermios’) info->normal_termios = *tty->termios; ^ /tmp/moxa/npreal2.c:1172:33: error: invalid type argument of unary ‘*’ (have ‘struct ktermios’) info->callout_termios = *tty->termios; ^ /tmp/moxa/npreal2.c: In function ‘npreal_ioctl’: /tmp/moxa/npreal2.c:1612:21: error: invalid type argument of ‘->’ (have ‘struct ktermios’) tty->termios->c_cflag = ((tty->termios->c_cflag & ~CLOCAL) | ^ /tmp/moxa/npreal2.c:1612:47: error: invalid type argument of ‘->’ (have ‘struct ktermios’) tty->termios->c_cflag = ((tty->termios->c_cflag & ~CLOCAL) | ^ /tmp/moxa/npreal2.c: In function ‘npreal_block_til_ready’: /tmp/moxa/npreal2.c:1962:26: error: invalid type argument of ‘->’ (have ‘struct ktermios’) if ( tty->termios->c_cflag & CLOCAL ) ^ /tmp/moxa/npreal2.c: In function ‘npreal_startup’: /tmp/moxa/npreal2.c:2155:27: error: invalid type argument of ‘->’ (have ‘struct ktermios’) if (info->tty->termios->c_cflag & CBAUD) ^ /tmp/moxa/npreal2.c: In function ‘npreal_shutdown’: /tmp/moxa/npreal2.c:2278:42: error: invalid type argument of ‘->’ (have ‘struct ktermios’) if (!info->tty || (info->tty->termios->c_cflag & HUPCL)) ^ /tmp/moxa/npreal2.c: In function ‘npreal_port_init’: /tmp/moxa/npreal2.c:2325:18: error: incompatible types when assigning to type ‘struct ktermios *’ from type ‘struct ktermios’ if (!(termio = info->tty->termios)) ^ /tmp/moxa/npreal2.c: In function ‘npreal_port_shutdown’: /tmp/moxa/npreal2.c:2700:18: error: incompatible types when assigning to type ‘struct ktermios *’ from type ‘struct ktermios’ if (!(termio = info->tty->termios)) ^ /tmp/moxa/npreal2.c: In function ‘tty_buffer_free’: /tmp/moxa/npreal2.c:3352:9: error: implicit declaration of function ‘kfree’ [-Werror=implicit-function-declaration] kfree(; ^ /tmp/moxa/npreal2.c:3355:22: error: ‘struct tty_struct’ has no member named ‘bu’ b->next = tty->buf.free; ^ /tmp/moxa/npreal2.c:3356:12: error: ‘struct tty_struct’ has no member named ‘bu’ tty->buf.free = b; ^ In file included from include/linux/seqlock.h:35:0, from include/linux/time.h:5, from include/linux/stat.h:18, from include/linux/module.h:10, from /tmp/moxa/npreal2.c:42: /tmp/moxa/npreal2.c: In function ‘npreal_flush_to_ldisc’: /tmp/moxa/npreal2.c:3424:31: error: ‘struct tty_struct’ has no member named ‘bu’ spin_lock_irqsave(&tty->buf.lock, flags); ^ include/linux/spinlock.h:202:34: note: in definition of macro ‘raw_spin_lock_irqsave’ flags = _raw_spin_lock_irqsave(lock); \ ^ /tmp/moxa/npreal2.c:3424:9: note: in expansion of macro ‘spin_lock_irqsave’ spin_lock_irqsave(&tty->buf.lock, flags); ^ /tmp/moxa/npreal2.c:3425:19: error: ‘struct tty_struct’ has no member named ‘bu’ head = tty->buf.head; ^ /tmp/moxa/npreal2.c:3428:16: error: ‘struct tty_struct’ has no member named ‘bu’ tty->buf.head = NULL; ^ /tmp/moxa/npreal2.c:3455:44: error: ‘struct tty_struct’ has no member named ‘bu’ spin_unlock_irqrestore(&tty->buf.lock, flags); ^ In file included from include/linux/seqlock.h:35:0, from include/linux/time.h:5, from include/linux/stat.h:18, from include/linux/module.h:10, from /tmp/moxa/npreal2.c:42: /tmp/moxa/npreal2.c:3461:39: error: ‘struct tty_struct’ has no member named ‘bu’ spin_lock_irqsave(&tty->buf.lock, flags); ^ include/linux/spinlock.h:202:34: note: in definition of macro ‘raw_spin_lock_irqsave’ flags = _raw_spin_lock_irqsave(lock); \ ^ /tmp/moxa/npreal2.c:3461:17: note: in expansion of macro ‘spin_lock_irqsave’ spin_lock_irqsave(&tty->buf.lock, flags); ^ /tmp/moxa/npreal2.c:3463:16: error: ‘struct tty_struct’ has no member named ‘bu’ tty->buf.head = head; ^ /tmp/moxa/npreal2.c:3465:36: error: ‘struct tty_struct’ has no member named ‘bu’ spin_unlock_irqrestore(&tty->buf.lock, flags); ^ /tmp/moxa/npreal2.c: In function ‘npreal_create_proc_entry’: /tmp/moxa/npreal2.c:3546:5: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration] return( create_proc_entry( name, mode, parent ) ); ^ /tmp/moxa/npreal2.c:3546:5: warning: return makes pointer from integer without a cast [enabled by default] /tmp/moxa/npreal2.c: In function ‘npreal_remove_proc_entry’: /tmp/moxa/npreal2.c:3554:26: error: dereferencing pointer to incomplete type remove_proc_entry(pde->name, pde->parent); ^ /tmp/moxa/npreal2.c:3554:37: error: dereferencing pointer to incomplete type remove_proc_entry(pde->name, pde->parent); ^ /tmp/moxa/npreal2.c: In function ‘npreal_net_open’: /tmp/moxa/npreal2.c:3606:5: error: implicit declaration of function ‘PDE’ [-Werror=implicit-function-declaration] de = PDE(inode); ^ /tmp/moxa/npreal2.c:3606:8: warning: assignment makes pointer from integer without a cast [enabled by default] de = PDE(inode); ^ /tmp/moxa/npreal2.c:3615:32: error: dereferencing pointer to incomplete type nd = (struct nd_struct *)de->data; ^ /tmp/moxa/npreal2.c: In function ‘npreal_net_write’: /tmp/moxa/npreal2.c:4255:18: error: ‘struct tty_struct’ has no member named ‘low_latency’ if(!info->tty->low_latency) ^ /tmp/moxa/npreal2.c:4283:5: warning: passing argument 1 of ‘tty_buffer_request_room’ from incompatible pointer type [enabled by default] if ((cnt = tty_buffer_request_room(tty, count)) <= 0) ^ In file included from /tmp/moxa/npreal2.c:57:0: include/linux/tty_flip.h:4:12: note: expected ‘struct tty_port *’ but argument is of type ‘struct tty_struct *’ extern int tty_buffer_request_room(struct tty_port *port, size_t size); ^ /tmp/moxa/npreal2.c:4296:17: error: ‘struct tty_struct’ has no member named ‘icanon’ if (!tty->icanon || tty->canon_data) ^ /tmp/moxa/npreal2.c:4296:32: error: ‘struct tty_struct’ has no member named ‘canon_data’ if (!tty->icanon || tty->canon_data) ^ /tmp/moxa/npreal2.c:4311:13: error: ‘struct tty_struct’ has no member named ‘icanon’ if (!tty->icanon || tty->canon_data) ^ /tmp/moxa/npreal2.c:4311:28: error: ‘struct tty_struct’ has no member named ‘canon_data’ if (!tty->icanon || tty->canon_data) ^ /tmp/moxa/npreal2.c:4313:52: error: ‘struct tty_struct’ has no member named ‘read_cnt’ if ((cnt = MIN(cnt,(N_TTY_BUF_SIZE-1) - tty->read_cnt )) <= 0) ^ /tmp/moxa/npreal2.c:117:26: note: in definition of macro ‘MIN’ #define MIN(a, ((a) < ( ? (a) : () ^ /tmp/moxa/npreal2.c:4313:52: error: ‘struct tty_struct’ has no member named ‘read_cnt’ if ((cnt = MIN(cnt,(N_TTY_BUF_SIZE-1) - tty->read_cnt )) <= 0) ^ /tmp/moxa/npreal2.c:117:38: note: in definition of macro ‘MIN’ #define MIN(a, ((a) < ( ? (a) : () ^ /tmp/moxa/npreal2.c:4347:5: warning: passing argument 1 of ‘tty_insert_flip_string’ from incompatible pointer type [enabled by default] if ((count = tty_insert_flip_string(tty, (unsigned char *)buf, cnt))) ^ In file included from /tmp/moxa/npreal2.c:57:0: include/linux/tty_flip.h:28:19: note: expected ‘struct tty_port *’ but argument is of type ‘struct tty_struct *’ static inline int tty_insert_flip_string(struct tty_port *port, ^ /tmp/moxa/npreal2.c:4349:9: warning: passing argument 1 of ‘tty_flip_buffer_pus’ from incompatible pointer type [enabled by default] tty_flip_buffer_push(tty); ^ In file included from /tmp/moxa/npreal2.c:57:0: include/linux/tty_flip.h:13:13: note: expected ‘struct tty_port *’ but argument is of type ‘struct tty_struct *’ extern void tty_flip_buffer_push(struct tty_port *port); ^ /tmp/moxa/npreal2.c: In function ‘npreal_process_notify’: /tmp/moxa/npreal2.c:4516:16: error: ‘struct tty_struct’ has no member named ‘low_latency’ if(!tty->low_latency) ^ /tmp/moxa/npreal2.c:4522:9: warning: passing argument 1 of ‘tty_insert_flip_cha’ from incompatible pointer type [enabled by default] tty_insert_flip_char(tty, 0, TTY_BREAK); ^ In file included from /tmp/moxa/npreal2.c:57:0: include/linux/tty_flip.h:16:19: note: expected ‘struct tty_port *’ but argument is of type ‘struct tty_struct *’ static inline int tty_insert_flip_char(struct tty_port *port, ^ /tmp/moxa/npreal2.c: In function ‘npreal_do_session_recovery’: /tmp/moxa/npreal2.c:4571:22: error: incompatible types when assigning to type ‘struct ktermios *’ from type ‘struct ktermios’ if (!(termio = info->tty->termios)) ^ cc1: some warnings being treated as errors make[2]: *** [/tmp/moxa/npreal2.o] Error 1 make[1]: *** [_module_/tmp/moxa] Error 2 make[1]: Leaving directory `/usr/src/kernels/3.10.0-514.el7.x86_64' make: *** [module] Error 2 Check Driver... FAILED !!! Install Not Completed ! [root@ARM-61-4 /]# Может я что-то не так делаю? Пробовал и драйвер с диска и драйвер с сайта. Делал все по инструкции.
×
×
  • Create New...