[Driver] Serial Server Device
Inviato: mercoledì 2 giugno 2010, 7:23
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:
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:
Qualcuno ha idea di dove sia il problema?
Grazie a tutti per l'aiuto.
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]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 !Grazie a tutti per l'aiuto.