====== 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** - cd to location cd /opt/lvisf/src/moxa/kernel2.x - modify the code so that it compiles properly on SL (Scientific Linux), compiles fine on CentOS 6.5 - Uncomment line 742 of **npreal2.c** - 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)) - 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)) - Comment out line 744 of **npreal2.c** - Change this #if (LINUX_VERSION_CODE < VERSION_CODE(2,6,39)) tty_node->tx_lock = SPIN_LOCK_UNLOCKED; #else - To this #if (LINUX_VERSION_CODE < VERSION_CODE(2,6,39)) // tty_node->tx_lock = SPIN_LOCK_UNLOCKED; #else - Edit line 109 of **npreal2.c** to lower the version number - Change this #if (LINUX_VERSION_CODE > VERSION_CODE(2,6,36)) - To this #if (LINUX_VERSION_CODE > VERSION_CODE(2,4,0)) - if the driver has been previously installed, run the unintaller first sudo ./mxuninst - run the install script with 64 bit environment variable set sudo ./mxinst m64 - answer this NO to this question **Do you want to enable secure function? [y/N]** N - ./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 - From a Windows machine, run the Nport search program and assign IP address DMYancich - assigned - 10.4.1.168 (From DHCP, then made static) - ./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 {{facility:subsystem:datasystem:dev:hardware:moxa:nport5250a:20180420_lvisf_moxa_configuration.png?400|}}