[Driver] Serial Server Device

Installazione, configurazione e uso di programmi e strumenti.
Theophrastus
Prode Principiante
Messaggi: 201
Iscrizione: venerdì 27 luglio 2007, 13:43
Sesso: Maschile

[Driver] Serial Server Device

Messaggio da Theophrastus »

Ciao a tutti.
Per prima cosa chiedo scusa perchè non so se ho postato nella sezione giusta.
Avrei un problema. Riguarda l'installazione dei driver di un Serial Server Device, più precisamente una MOXA NPORT 5210.
Ho scaricato i driver per linux dal sito MOXA e ho seguito le indicazioni del file README.TXT che riporto qui sotto:

Codice: Seleziona tutto

[tt]6. Installing the Driver File

    a. Copy the driver file from the products CD-ROM or Moxa website.

    b. Log in to the console as a super user (root).

    c. Execute "cd /" to change to the root directory.

    d. Copy the driver file npreal2xx.tgz to the " / " directory.

    e. Execute "tar xvfz npreal2xx.tgz" to copy all files into the system.

    f. Execute "/tmp/moxa/mxinst".

	

    !!!!!!!!!!!!!!!!!!!!!!!!!!!! NOTE 1!!!!!!!!!!!!!!!!!!!!!!!!!!!!

	  For Red Hat AS/ES/WS and Fedora Core1, extra argument is 

	  needed: # /tmp/moxa/mxinst SP1 

    !!!!!!!!!!!!!!!!!!!!!!!!!!!! NOTE 1!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    

    !!!!!!!!!!!!!!!!!!!!!!!!!!!! NOTE 2!!!!!!!!!!!!!!!!!!!!!!!!!!!!

	  If you use driver in 64-bits environment, you may use extra 

	  argument m64, SP1_m64 or mppc64.(the SP1_m64 is for Red Hat 

	  AS/ES/WS and Fedora Core1 64-bits environment; The mppc64

          is for PowerPC64 only.) Ex.

	  # /tmp/moxa/mxinst m64

    !!!!!!!!!!!!!!!!!!!!!!!!!!!! NOTE 2!!!!!!!!!!!!!!!!!!!!!!!!!!!!



    g. The shell script will install the driver files automatically.



    After installing the driver, you will be able to see several 

    files in the "/usr/lib/npreal2/driver" folder, including:



     - mxaddsvr (Add Server, map tty port)

     - mxsetsec (Set secure communication mode)

     - mxdelsvr (Delete Server, un-map tty port)

     - mxloadsvr (Reload Server)

     - mxuninst (Remove tty port and driver files)



    At this point, you will be ready to map the NPort serial port to 

    the system tty port. See "7. Mapping TTY Ports" below for detailed 

    instructions.[/tt]
Il problema si verifica tra il punto f e il punto g: in poche parole l'installazione fallisce.
Posto qui sotto il risultato dell'installazione:

Codice: Seleziona tutto

root@ais-desktop:/# tar xvfz npreal2_1.16_Build_09030513.tgz

tmp/moxa/

tmp/moxa/mxaddsvr.c

tmp/moxa/VERSION.TXT

tmp/moxa/mxmknod

tmp/moxa/nport.h

tmp/moxa/modules.order

tmp/moxa/mxsetsec.c

tmp/moxa/killp

tmp/moxa/mxrmnod

tmp/moxa/mxdelsvr.c

tmp/moxa/Makefile

tmp/moxa/README.TXT

tmp/moxa/mxuninst

tmp/moxa/include/

tmp/moxa/include/openssl/

tmp/moxa/include/openssl/blowfish.h

tmp/moxa/include/openssl/dsa.h

tmp/moxa/include/openssl/buffer.h

tmp/moxa/include/openssl/ebcdic.h

tmp/moxa/include/openssl/md5.h

tmp/moxa/include/openssl/asn1.h

tmp/moxa/include/openssl/x509_vfy.h

tmp/moxa/include/openssl/safestack.h

tmp/moxa/include/openssl/ssl3.h

tmp/moxa/include/openssl/pq_compat.h

tmp/moxa/include/openssl/rsa.h

tmp/moxa/include/openssl/err.h

tmp/moxa/include/openssl/md4.h

tmp/moxa/include/openssl/e_os2.h

tmp/moxa/include/openssl/ocsp.h

tmp/moxa/include/openssl/ripemd.h

tmp/moxa/include/openssl/asn1_mac.h

tmp/moxa/include/openssl/txt_db.h

tmp/moxa/include/openssl/lhash.h

tmp/moxa/include/openssl/cast.h

tmp/moxa/include/openssl/ssl23.h

tmp/moxa/include/openssl/rc2.h

tmp/moxa/include/openssl/bn.h

tmp/moxa/include/openssl/ecdh.h

tmp/moxa/include/openssl/ui.h

tmp/moxa/include/openssl/pkcs7.h

tmp/moxa/include/openssl/pem2.h

tmp/moxa/include/openssl/asn1t.h

tmp/moxa/include/openssl/conf_api.h

tmp/moxa/include/openssl/opensslconf.h

tmp/moxa/include/openssl/ossl_typ.h

tmp/moxa/include/openssl/dh.h

tmp/moxa/include/openssl/aes.h

tmp/moxa/include/openssl/sha.h

tmp/moxa/include/openssl/hmac.h

tmp/moxa/include/openssl/pem.h

tmp/moxa/include/openssl/ec.h

tmp/moxa/include/openssl/stack.h

tmp/moxa/include/openssl/conf.h

tmp/moxa/include/openssl/x509v3.h

tmp/moxa/include/openssl/dso.h

tmp/moxa/include/openssl/des.h

tmp/moxa/include/openssl/engine.h

tmp/moxa/include/openssl/comp.h

tmp/moxa/include/openssl/tmdiff.h

tmp/moxa/include/openssl/des_old.h

tmp/moxa/include/openssl/objects.h

tmp/moxa/include/openssl/store.h

tmp/moxa/include/openssl/ui_compat.h

tmp/moxa/include/openssl/crypto.h

tmp/moxa/include/openssl/evp.h

tmp/moxa/include/openssl/pqueue.h

tmp/moxa/include/openssl/rc4.h

tmp/moxa/include/openssl/obj_mac.h

tmp/moxa/include/openssl/tls1.h

tmp/moxa/include/openssl/bio.h

tmp/moxa/include/openssl/x509.h

tmp/moxa/include/openssl/kssl.h

tmp/moxa/include/openssl/symhacks.h

tmp/moxa/include/openssl/pkcs12.h

tmp/moxa/include/openssl/ecdsa.h

tmp/moxa/include/openssl/md2.h

tmp/moxa/include/openssl/dtls1.h

tmp/moxa/include/openssl/ssl.h

tmp/moxa/include/openssl/opensslv.h

tmp/moxa/include/openssl/ssl2.h

tmp/moxa/include/openssl/idea.h

tmp/moxa/include/openssl/krb5_asn.h

tmp/moxa/include/openssl/rand.h

tmp/moxa/npreal2.c

tmp/moxa/Module.markers

tmp/moxa/npreal2d.c

tmp/moxa/kernel2.6.txt

tmp/moxa/mxinst

tmp/moxa/npreal2.h

tmp/moxa/mxcfmat.c

tmp/moxa/npreal2d.cf

tmp/moxa/mxloadsvr.c

root@ais-desktop:/# tmp/moxa/mxinst



===============================================================================

Copyright (C) 2002-2007  Moxa Technologies Co., Ltd.

All Rights Reserved.



MOXA NPort Server Real TTY Driver V1.16 Installation.

System Imformation: Kernel 2.6.32-22-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.32-22-generic/build SUBDIRS=/tmp/moxa modules

make[1]: ingresso nella directory «/usr/src/linux-headers-2.6.32-22-generic»

  CC [M]  /tmp/moxa/npreal2.o

/tmp/moxa/npreal2.c: In function ‘npreal_do_softint’:

/tmp/moxa/npreal2.c:885: error: request for member ‘ops’ in something not a structure or union

/tmp/moxa/npreal2.c:886: error: request for member ‘ops’ in something not a structure or union

/tmp/moxa/npreal2.c: In function ‘npreal_open’:

/tmp/moxa/npreal2.c:1000: error: implicit declaration of function ‘task_session_nr’

/tmp/moxa/npreal2.c: In function ‘npreal_close’:

/tmp/moxa/npreal2.c:1127: error: request for member ‘ops’ in something not a structure or union

/tmp/moxa/npreal2.c:1128: error: request for member ‘ops’ in something not a structure or union

/tmp/moxa/npreal2.c: In function ‘npreal_flush_buffer’:

/tmp/moxa/npreal2.c:1345: error: request for member ‘ops’ in something not a structure or union

/tmp/moxa/npreal2.c:1346: error: request for member ‘ops’ in something not a structure or union

/tmp/moxa/npreal2.c: In function ‘npreal_ldisc_flush_buffer’:

/tmp/moxa/npreal2.c:1392: error: request for member ‘ops’ in something not a structure or union

/tmp/moxa/npreal2.c:1393: error: request for member ‘ops’ in something not a structure or union

/tmp/moxa/npreal2.c: In function ‘npreal_ioctl’:

/tmp/moxa/npreal2.c:1454: error: request for member ‘ops’ in something not a structure or union

/tmp/moxa/npreal2.c:1455: error: request for member ‘ops’ in something not a structure or union

/tmp/moxa/npreal2.c:1463: error: request for member ‘ops’ in something not a structure or union

/tmp/moxa/npreal2.c:1464: error: request for member ‘ops’ in something not a structure or union

/tmp/moxa/npreal2.c: In function ‘npreal_net_read’:

/tmp/moxa/npreal2.c:4009: error: request for member ‘ops’ in something not a structure or union

/tmp/moxa/npreal2.c:4010: error: request for member ‘ops’ in something not a structure or union

make[2]: *** [/tmp/moxa/npreal2.o] Errore 1

make[1]: *** [_module_/tmp/moxa] Errore 2

make[1]: uscita dalla directory «/usr/src/linux-headers-2.6.32-22-generic»

make: *** [module] Errore 2

Check Driver...

FAILED !!!

 

Install Not Completed !
Qualcuno ha idea di dove sia il problema?
Grazie a tutti per l'aiuto.
Ultima modifica di Theophrastus il giovedì 3 giugno 2010, 10:59, modificato 1 volta in totale.
Ubuntu Mate 21.04
Theophrastus
Prode Principiante
Messaggi: 201
Iscrizione: venerdì 27 luglio 2007, 13:43
Sesso: Maschile

Re: [Driver] Serial Server Device

Messaggio da Theophrastus »

Nessuna Idea raga?
Ubuntu Mate 21.04
Theophrastus
Prode Principiante
Messaggi: 201
Iscrizione: venerdì 27 luglio 2007, 13:43
Sesso: Maschile

Re: [Driver] Serial Server Device

Messaggio da Theophrastus »

Nessuna idea?
Ubuntu Mate 21.04
Theophrastus
Prode Principiante
Messaggi: 201
Iscrizione: venerdì 27 luglio 2007, 13:43
Sesso: Maschile

Re: [Driver] Serial Server Device

Messaggio da Theophrastus »

Novità.
Ho ricevuto la risposta alla mia richiesta di assistenza al produttore:

Thank you for using MOXA products. It's our pleasure to serve you.
Our suggested solution is as follows:
The compile error messages like your system didn't install kernel source.
You need to install kernel source then install our Linux driver.

Qualche consiglio?
Grazie
Ubuntu Mate 21.04
gdivito
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1007
Iscrizione: venerdì 4 giugno 2010, 11:53

Re: [Driver] Serial Server Device

Messaggio da gdivito »

quel driver è già compreso nel kernel:

modinfo moxa
filename:      /lib/modules/2.6.34-4-generic/kernel/drivers/char/moxa.ko
firmware:      c320tunx.cod
firmware:      cp204unx.cod
firmware:      c218tunx.cod
license:        GPL
description:    MOXA Intellio Family Multiport Board Device Driver
author:        William Chen
srcversion:    1EA17656A47C9E539DAD350
alias:          pci:v00001393d00002040sv*sd*bc*sc*i*
alias:          pci:v00001393d00003200sv*sd*bc*sc*i*
alias:          pci:v00001393d00002180sv*sd*bc*sc*i*
depends:       
vermagic:      2.6.34-4-generic SMP mod_unload modversions 586
parm:          type:card type: C218=2, C320=4 (array of uint)
parm:          baseaddr:base address (array of ulong)
parm:          numports:numports (ignored for C218) (array of uint)
parm:          ttymajor:int
It's a UNIX system! I know this! (Jurassic Park)
Theophrastus
Prode Principiante
Messaggi: 201
Iscrizione: venerdì 27 luglio 2007, 13:43
Sesso: Maschile

Re: [Driver] Serial Server Device

Messaggio da Theophrastus »

Grazie per la risposta.
Anch'io ricevo le stesse informazioni che hai postato tu ma dev'esserci qualche errore.
Nel file README allegato al driver, al punto g, c'è scritto che, una volta installato il driver, dovrei trovare diversi file di configurazione nella cartella /usr/lib/npreal2/driver ma la cartella non esiste (/npreal2/driver naturalmente!).
Inoltre l'installazione mi da sempre "Install Not Completed !".
Ho provato ad installare il kernel 2.6.34 ma l'unica cosa che sono riuscito ad ottenere è stata quella di perdere i driver fglrx.
Ubuntu Mate 21.04
gdivito
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1007
Iscrizione: venerdì 4 giugno 2010, 11:53

Re: [Driver] Serial Server Device

Messaggio da gdivito »

evidentemente, oltre al driver, ci sarà un programma di supporto.
It's a UNIX system! I know this! (Jurassic Park)
gdivito
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1007
Iscrizione: venerdì 4 giugno 2010, 11:53

Re: [Driver] Serial Server Device

Messaggio da gdivito »

gdivito ha scritto: evidentemente, oltre al driver, ci sarà un programma di supporto.

p.s. se vuoi installare il driver dal loro file hai comunque bisogno degli headers del kernel in uso.
It's a UNIX system! I know this! (Jurassic Park)
Theophrastus
Prode Principiante
Messaggi: 201
Iscrizione: venerdì 27 luglio 2007, 13:43
Sesso: Maschile

Re: [Driver] Serial Server Device

Messaggio da Theophrastus »

Come dicevo prima ho installato il kernek 2.6.34 seguendo questa guida:

http://www.chimerarevo.com/2010/05/21/ubuntu-10-04-installare-il-kernel-2-6-34/

Ho scaricato anche gli headers ma il problema persiste.
Ubuntu Mate 21.04
gdivito
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1007
Iscrizione: venerdì 4 giugno 2010, 11:53

Re: [Driver] Serial Server Device

Messaggio da gdivito »

cioè ti dà lo stesso errore?
It's a UNIX system! I know this! (Jurassic Park)
Theophrastus
Prode Principiante
Messaggi: 201
Iscrizione: venerdì 27 luglio 2007, 13:43
Sesso: Maschile

Re: [Driver] Serial Server Device

Messaggio da Theophrastus »

Stesso errore, non cambia nulla.
L'unica cosa che è cambiata è che ora non riesco più ad installare fglrx.
Ubuntu Mate 21.04
gdivito
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1007
Iscrizione: venerdì 4 giugno 2010, 11:53

Re: [Driver] Serial Server Device

Messaggio da gdivito »

ma non ho capito perché hai messo il kernel 2.6.34...
It's a UNIX system! I know this! (Jurassic Park)
Theophrastus
Prode Principiante
Messaggi: 201
Iscrizione: venerdì 27 luglio 2007, 13:43
Sesso: Maschile

Re: [Driver] Serial Server Device

Messaggio da Theophrastus »

Ufficialmente come prova, ufficiosamente perchè ho tendenze sado-masochistiche e mia madre è spesso caduta di pancia quando era incinta.
Ubuntu Mate 21.04
gdivito
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1007
Iscrizione: venerdì 4 giugno 2010, 11:53

Re: [Driver] Serial Server Device

Messaggio da gdivito »

Comunque temo che il modulo sia troppo vecchio e non si compili... ma hai un link? almeno vedo di che parliamo...
It's a UNIX system! I know this! (Jurassic Park)
Theophrastus
Prode Principiante
Messaggi: 201
Iscrizione: venerdì 27 luglio 2007, 13:43
Sesso: Maschile

Re: [Driver] Serial Server Device

Messaggio da Theophrastus »

Certo.

http://www.moxa.com/support/search_result.aspx?prod_id=100

c'è da selezionare il sistema operativo (linux 2.6.x - x86).

Ho scaricato il file "npreal2_1.16_Build_09030513.tgz (286 KB)" e seguito passo passo quello che c'è scritto nel README.
Il mio output da terminale l'ho postato nel primo messaggio; nonostante il nuovo kernel, gli headers, e l'aggiunta di pacchetti "consigiati" nulla è cambiato.
Qualunque idea tu abbia è ben accetta.
Ubuntu Mate 21.04
gdivito
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1007
Iscrizione: venerdì 4 giugno 2010, 11:53

Re: [Driver] Serial Server Device

Messaggio da gdivito »

anche io ricevo gli stessi errori.

Sul sito parla di ubuntu 8.10 come ultima versione testata...
It's a UNIX system! I know this! (Jurassic Park)
Theophrastus
Prode Principiante
Messaggi: 201
Iscrizione: venerdì 27 luglio 2007, 13:43
Sesso: Maschile

Re: [Driver] Serial Server Device

Messaggio da Theophrastus »

Ho visto. Credevo/speravo che andasse bene anche su lucid, in fin dei conti i requisiti li ho tutti.
Anzi, a dire il vero c'è uno dei pacchetti richiesti che non ho ma neppure riesco a trovarlo.
Si tratta di un certo "ld.so-1.7.14". Tu hai idea di cosa sia o di come poterlo sostituire?
Ubuntu Mate 21.04
gdivito
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1007
Iscrizione: venerdì 4 giugno 2010, 11:53

Re: [Driver] Serial Server Device

Messaggio da gdivito »

ld è il linker, ce l'hai di sicuro :D
It's a UNIX system! I know this! (Jurassic Park)
Theophrastus
Prode Principiante
Messaggi: 201
Iscrizione: venerdì 27 luglio 2007, 13:43
Sesso: Maschile

Re: [Driver] Serial Server Device

Messaggio da Theophrastus »

Ecco il niubbo che è in me uscire candidamente!
Ubuntu Mate 21.04
Theophrastus
Prode Principiante
Messaggi: 201
Iscrizione: venerdì 27 luglio 2007, 13:43
Sesso: Maschile

Re: [Driver] Serial Server Device

Messaggio da Theophrastus »

Ripristinato il vecchio kernel e i driver della scheda video, ma il problema persiste.
Non si riesce ad installare i driver per la centralina.
Ubuntu Mate 21.04
Scrivi risposta

Ritorna a “Applicazioni”

Chi c’è in linea

Visualizzano questa sezione: Google [Bot] e 12 ospiti