User Tools

Site Tools


code:work:lvisf:2022:centos65minimal:nport5250a

Moxa NPort 5250A

Two port RS-232/422/485 serial device servers

Instructions for Version 1.18.57 Build 16081213

Received this version via email from support.us@moxa.com Joe delaCruz 2016.10.24 8:53PM

Latest version is in the repository now original under tars and the uncompressed version under src/moxa

  1. cd to location
    cd /opt/lvisf/src/moxa/kernel2.x
  2. modify the code so that it compiles properly on SL (Scientific Linux), compiles fine on CentOS 6.5
    1. Uncomment line 742 of npreal2.c
      1. Change this
        #if (LINUX_VERSION_CODE >= VERSION_CODE(2,4,0))
                        //init_MUTEX(&tty_node->tx_lock);
        #if (LINUX_VERSION_CODE < VERSION_CODE(2,6,39))
      2. To this
        #if (LINUX_VERSION_CODE >= VERSION_CODE(2,4,0))
                        init_MUTEX(&tty_node->tx_lock);
        #if (LINUX_VERSION_CODE < VERSION_CODE(2,6,39))
    2. Comment out line 744 of npreal2.c
      1. Change this
        #if (LINUX_VERSION_CODE < VERSION_CODE(2,6,39))
                        tty_node->tx_lock = SPIN_LOCK_UNLOCKED;
        #else
      2. To this
        #if (LINUX_VERSION_CODE < VERSION_CODE(2,6,39))
                        // tty_node->tx_lock = SPIN_LOCK_UNLOCKED;
        #else
    3. Edit line 109 of npreal2.c to lower the version number
      1. Change this
        #if (LINUX_VERSION_CODE > VERSION_CODE(2,6,36))
      2. To this
        #if (LINUX_VERSION_CODE > VERSION_CODE(2,4,0))
  3. if the driver has been previously installed, run the unintaller first
    sudo ./mxuninst
  4. run the install script with 64 bit environment variable set
    sudo ./mxinst m64
  5. answer this NO to this question Do you want to enable secure function? [y/N] N
  6. ./mxinst fails
    The device driver does not build correctly on our SL system, need to modify npreal2.c
    Uncomment line 742
    Comment line 744
    Line 109 - change (2,6,36) to (2,4,0)
    Then:
    sudo ./mxinst
  7. From a Windows machine, run the Nport search program and assign IP address
    DMYancich - assigned - 10.4.1.168 (From DHCP, then made static)
  8. ./mxinst will install config program in /usr/lib/npreal2, cd to /usr/lib/npreal2
    sudo ./mxaddsvr 10.4.1.198 2 # (ip from below, and 2 serial ports)

Found these two devices when testing out the CentOS build

code/work/lvisf/2022/centos65minimal/nport5250a.txt · Last modified: 2022/02/18 23:32 by david