Configurazione Moxa su Ubuntu 15.10

Installazione di Ubuntu su macchina virtuale (Virtualbox, Vmware, Qemu, Parallels, KVM, Xen, Virtual pc, ecc.), configurazione del software e gestione del sistema virtualizzato.
govvilla
Prode Principiante
Messaggi: 13
Iscrizione: sabato 25 luglio 2009, 11:49

Configurazione Moxa su Ubuntu 15.10

Messaggio da govvilla »

Ciao a tutti, ho nuovamente bisogno del vostro aiuto. Dopo anni di onorato servizio sto dismettendo un server fisico dove ho installato il servizio fax di Hylafax.

Sul nuovo fax Server, che sarà una virtual machine VMWare (Ubuntu Desktop 15.10 64Bit) ho la necessità di mappare un MOXA NPort 5210A.

Sul MOXA ho mappato le 2 porte COM in modalità RealCOM, generando 2 porte COM virtuali COM5 e COM6.

Avrei necessità di sapere se esiste modo di mappare queste porte COM virtuale sul server via IP, in quanto i drivers in dotazione sono stati testati solamente su kernel 2.6.x ed infatti quando seguo la procedura di installazione mi vanno in errore.

Qui di seguito il codice che mi genera l'errore

Codice: Seleziona tutto

xxx@xxxFAX01:~$ su
Password: 
root@xxxFAX01:/home/xxx# cd ..
root@xxxFAX01:/home# cd ..

root@xxxFAX01:/# /tmp/moxa/mxinst m64

===============================================================================
Copyright (C) 2002-2012  Moxa Inc.
All Rights Reserved.

MOXA NPort Server Real TTY Driver V1.18 Installation.
System Imformation: Kernel 4.2.0-21-generic; 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].
y
make -C /lib/modules/4.2.0-21-generic/build SUBDIRS=/tmp/moxa modules
make[1]: ingresso nella directory "/usr/src/linux-headers-4.2.0-21-generic"
  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 ‘struct proc_dir_entry’
         de->data = (void *) net_node;
           ^
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(b);
         ^
/tmp/moxa/npreal2.c:3355:22: error: ‘struct tty_struct’ has no member named ‘buf’
         b->next = tty->buf.free;
                      ^
/tmp/moxa/npreal2.c:3356:12: error: ‘struct tty_struct’ has no member named ‘buf’
         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 ‘buf’
         spin_lock_irqsave(&tty->buf.lock, flags);
                               ^
include/linux/spinlock.h:218: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 ‘buf’
         head = tty->buf.head;
                   ^
/tmp/moxa/npreal2.c:3428:16: error: ‘struct tty_struct’ has no member named ‘buf’
             tty->buf.head = NULL;
                ^
/tmp/moxa/npreal2.c:3452:26: error: ‘struct tty_buffer’ has no member named ‘char_buf_ptr’
                 cp = head->char_buf_ptr + head->read;
                          ^
/tmp/moxa/npreal2.c:3453:26: error: ‘struct tty_buffer’ has no member named ‘flag_buf_ptr’
                 fp = head->flag_buf_ptr + head->read;
                          ^
/tmp/moxa/npreal2.c:3455:44: error: ‘struct tty_struct’ has no member named ‘buf’
                 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 ‘buf’
                 spin_lock_irqsave(&tty->buf.lock, flags);
                                       ^
include/linux/spinlock.h:218: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 ‘buf’
             tty->buf.head = head;
                ^
/tmp/moxa/npreal2.c:3465:36: error: ‘struct tty_struct’ has no member named ‘buf’
         spin_unlock_irqrestore(&tty->buf.lock, flags);
                                    ^
/tmp/moxa/npreal2.c: In function ‘npreal_create_proc_entry’:
/tmp/moxa/npreal2.c:3546:13: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]
     return( create_proc_entry( name, mode, parent ) );
             ^
/tmp/moxa/npreal2.c:3546:11: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return( create_proc_entry( name, mode, parent ) );
           ^
/tmp/moxa/npreal2.c: In function ‘npreal_net_open’:
/tmp/moxa/npreal2.c:3606:10: 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 [-Wint-conversion]
     de = PDE(inode);
        ^
/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:40: warning: passing argument 1 of ‘tty_buffer_request_room’ from incompatible pointer type [-Wincompatible-pointer-types]
     if ((cnt = tty_buffer_request_room(tty, count)) <= 0)
                                        ^
In file included from /tmp/moxa/npreal2.c:57:0:
include/linux/tty_flip.h:6: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,b) ((a) < (b) ? (a) : (b))
                          ^
/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,b) ((a) < (b) ? (a) : (b))
                                      ^
/tmp/moxa/npreal2.c:4347:41: warning: passing argument 1 of ‘tty_insert_flip_string’ from incompatible pointer type [-Wincompatible-pointer-types]
     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:32: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:30: warning: passing argument 1 of ‘tty_flip_buffer_push’ from incompatible pointer type [-Wincompatible-pointer-types]
         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_wait_command_completed’:
/tmp/moxa/npreal2.c:4462:13: error: implicit declaration of function ‘interruptible_sleep_on_timeout’ [-Werror=implicit-function-declaration]
             interruptible_sleep_on_timeout(&nd->cmd_rsp_wait,timeout);
             ^
/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:30: warning: passing argument 1 of ‘tty_insert_flip_char’ from incompatible pointer type [-Wincompatible-pointer-types]
         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
scripts/Makefile.build:264: set di istruzioni per l'obiettivo "/tmp/moxa/npreal2.o" non riuscito
make[2]: *** [/tmp/moxa/npreal2.o] Errore 1
Makefile:1398: set di istruzioni per l'obiettivo "_module_/tmp/moxa" non riuscito
make[1]: *** [_module_/tmp/moxa] Errore 2
make[1]: uscita dalla directory "/usr/src/linux-headers-4.2.0-21-generic"
Makefile:65: set di istruzioni per l'obiettivo "module" non riuscito
make: *** [module] Errore 2
Check Driver...
FAILED !!!
 
Install Not Completed !
 


Grazie in anticipo per il supporto

Alessandro
govvilla
Prode Principiante
Messaggi: 13
Iscrizione: sabato 25 luglio 2009, 11:49

Re: Configurazione Moxa su Ubuntu 15.10

Messaggio da govvilla »

Ciao a tutti, ho ricevuto supporto dal servizio di assistenza di MOXA, purtroppo il kernel della 15.10 non è ancora supportato dai loro drivers quindi dovrò installare una versione più datata.

Mi hanno inviato una loro beta version di drivers per kernel 3.16.0, su che versione è installato? Se possibile preferirei una LTS a questo punto così riuscirei a gestire il supporto a lungo termine

Grazie in anticipo

Alessandro
Avatar utente
Mdfalcubo
Moderatore Globale
Moderatore Globale
Messaggi: 20418
Iscrizione: venerdì 26 dicembre 2008, 11:17
Desktop: Solo XFCE
Distribuzione: Xubuntu 64 bit
Sesso: Maschile

Re: Configurazione Moxa su Ubuntu 15.10

Messaggio da Mdfalcubo »

Sposto in macchine virtuali.
"Il genere umano è stimolante, è la gente che non sopporto,, (Linus - Peanuts)
dadexix86
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 16364
Iscrizione: domenica 22 marzo 2009, 19:58
Desktop: Unity
Distribuzione: Ubuntu 18.04 x86_64
Località: Paris, France

Re: Configurazione Moxa su Ubuntu 15.10

Messaggio da dadexix86 »

L'ultima col 3.16 era trusty (che è LTS) ( http://kernel.ubuntu.com/~kernel-ppa/mainline/ ), ma è un kernel ormai vecchio anche per trusty, che con gli aggiornamenti monta il 3.19 ( http://packages.ubuntu.com/trusty-updates/kernel/ ).
Non si dà supporto tramite mp in forum
L'utilizzo del tasto [Code] quando scrivi in forum risolve i 2/3 dei tuoi problemi
Per problemi con Skype rivolgersi qui. | Un Matematico Migrante
Pike
Rampante Reduce
Rampante Reduce
Messaggi: 5460
Iscrizione: domenica 20 gennaio 2008, 1:13
Desktop: Kubuntu
Distribuzione: 20.04 x64
Contatti:

Re: Configurazione Moxa su Ubuntu 15.10

Messaggio da Pike »

Una domanda, govvilla: se sai che deve fare il server, perchè hai scelto una "rolling" e non una LTS?
Sono colui che fa cose che non servono...
Secondo Principio di Dilbert, di Scott Adams. "Si parte dalla certezza che siamo tutti idioti". Ed alcuni su questo mi ab-battono alla grande.
Come certificato dalla moderazione, incivile e maleducato. You have been warned.
govvilla
Prode Principiante
Messaggi: 13
Iscrizione: sabato 25 luglio 2009, 11:49

Re: Configurazione Moxa su Ubuntu 15.10

Messaggio da govvilla »

Pike [url=http://forum.ubuntu-it.org/viewtopic.php?p=4837670#p4837670][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto:Una domanda, govvilla: se sai che deve fare il server, perchè hai scelto una "rolling" e non una LTS?
Hai ragione Pike, è che hylagfax è un servizio talmente solido che non ho ritenuto "obbligatoria" la LTS.

cmq ho notato che anche installando la 14.04 in effetti il kernel che mi monta è il 3.19. A questo punto come faccio a portarlo al 3.16 (necessariamente mi servirebbe montare quello)?

Grazie
Pike
Rampante Reduce
Rampante Reduce
Messaggi: 5460
Iscrizione: domenica 20 gennaio 2008, 1:13
Desktop: Kubuntu
Distribuzione: 20.04 x64
Contatti:

Re: Configurazione Moxa su Ubuntu 15.10

Messaggio da Pike »

Non so se la 15.10 lo consente... Secondo le release punta addirittura a 4/4.2....
Sono colui che fa cose che non servono...
Secondo Principio di Dilbert, di Scott Adams. "Si parte dalla certezza che siamo tutti idioti". Ed alcuni su questo mi ab-battono alla grande.
Come certificato dalla moderazione, incivile e maleducato. You have been warned.
govvilla
Prode Principiante
Messaggi: 13
Iscrizione: sabato 25 luglio 2009, 11:49

Re: Configurazione Moxa su Ubuntu 15.10

Messaggio da govvilla »

Pike [url=http://forum.ubuntu-it.org/viewtopic.php?p=4839342#p4839342][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto:Non so se la 15.10 lo consente... Secondo le release punta addirittura a 4/4.2....
No, intendevo utilizzando la 14.04 LTS con kernel 3.19.0, alla fine parlando con il supporto tecnico, mi hanno inviato dei drivers Beta per kernel 3.16.0

grazie
govvilla
Prode Principiante
Messaggi: 13
Iscrizione: sabato 25 luglio 2009, 11:49

Re: Configurazione Moxa su Ubuntu 15.10

Messaggio da govvilla »

Ciao a tutti, chi mi riesce a linkare il download del kernel 3.16.0 per downgradare quello della LTS 14.04 (3.19.0)? Io ho provato a cercarlo ma non ho trovato nulla

grazie

Alessandro
Scrivi risposta

Ritorna a “Ubuntu su macchina virtuale”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 1 ospite