title: How to use MOXA N5110 device under Raspbian Jessie?
body: <p>I tried installing the moxa real tty driver for linux, downloadable from moxa.com (<a href="http://www.moxa.com/product/NPort_5110.htm" rel="nofollow">http://www.moxa.com/product/NPort_5110.htm</a>) on my raspbery pi 3... but failed at it.</p>
  
  <p>Looks like compilation needs kernel sources, and i ran rpi-sources to install them (found instructions in last post here <a href="https://www.raspberrypi.org/forums/viewtopic.php?f=66&amp;t=121644" rel="nofollow">https://www.raspberrypi.org/forums/viewtopic.php?f=66&amp;t=121644</a>) ...</p>
  
  <p>then mxinst command did not stop, but ran, but still get bunch of errors...</p>
  
  <p>Has anyone successfully installed nport driver from moxa on raspberry pi 3?
  how?</p>
  
  <blockquote>
    <p>jack@raspberrypi:~/tmp/moxa $ sudo ./mxinst</p>
  </blockquote>
  
  <p>===============================================================================
  Copyright (C) 2002-2012  Moxa Inc.
  All Rights Reserved.</p>
  
  <p>MOXA NPort Server Real TTY Driver V1.18 Installation.</p>
  
  <h1>System Imformation: Kernel 4.4.11-v7+; Machine armv7l.</h1>
  
  <p>Tar files, please wait ... OK!
  Building driver...</p>
  
  <p>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].</p>
  
  <p>make -C /lib/modules/4.4.11-v7+/build SUBDIRS=/home/jack/tmp/moxa modules
  make[1]: Entering directory '/root/linux-233755da0e7903fccb41f0b8c14e1da5244b69ec'
    CC [M]  /home/jack/tmp/moxa/npreal2.o
  /home/jack/tmp/moxa/npreal2.c: In function ‘npreal_init_tty’:
  /home/jack/tmp/moxa/npreal2.c:661:11: error: dereferencing pointer to incomplete type
           de->data = (void <em>) net_node;
             ^
  /home/jack/tmp/moxa/npreal2.c:663:11: error: dereferencing pointer to incomplete type
           de->proc_fops = &amp;npreal_net_fops;
             ^
  In file included from /home/jack/tmp/moxa/npreal2.c:92:0:
  /home/jack/tmp/moxa/npreal2.c: In function ‘npreal_init’:
  /home/jack/tmp/moxa/npreal2.h:28:35: error: ‘struct tty_driver’ has no member named ‘termios_locked’
   #define DRV_VAR_P(x) npvar_sdriver->x
                                     ^
  /home/jack/tmp/moxa/npreal2.c:779:5: note: in expansion of macro ‘DRV_VAR_P’
       DRV_VAR_P(termios_locked) = npvar_termios_locked;
       ^
  /home/jack/tmp/moxa/npreal2.c: In function ‘npreal_open’:
  /home/jack/tmp/moxa/npreal2.c:1064:13: error: invalid type argument of unary ‘</em>’ (have ‘struct ktermios’)
               *tty->termios = info->normal_termios;
               ^</p>