moxa-it87-serial-driver
Moxa IT87 Serial Driver
moxa-it87-serial-driver
:
IT8786 support six standard serial ports and RS485 automatic direction control.
This driver provide an interface under misc device for controlling serial register.
Support Models
Source Code Link
What Tools Depend On?
Usage (Ubuntu 20.04/Debian 11)
- Install required packages
apt update
apt install --no-install-recommends -qqy build-essential
apt install --no-install-recommends -qqy linux-headers-$(uname -r)
- Build kernel module
- Run
make
to build kernel module - Once build successful,
it87_serial.ko
could be found under current directory - Run
make install
to install kernel module on/usr/lib/modules/$(uname -r)/
- Run
Usage (CentOS 7.9)
- Sync the latest version available from any enabled repository and reboot system
yum distro-sync
reboot
- Install required packages
yum install "kernel-devel-$(uname -r)"
yum install "kernel-headers-$(uname -r)"
yum groupinstall "Development Tools"
- Build kernel module
- Run
make
to build kernel module - Once build successful,
it87_serial.ko
could be found under current directory - Run
make install
to install kernel module on/usr/lib/modules/$(uname -r)/
- Run
note
CentOS 7 latest kernel moved from "kernel.ko" to "kernel.ko.xz", please ensure target "kernel.ko.xz" is removed or moved as a backup.
Example after probing modules
- /sys/class/misc/it87_serial/
dev power serial1 serial2 subsystem uevent
- /sys/class/misc/it87_serial/serial1
For initial version, provide an interface to control RS485 mode control.
serial1_rs485
Last updated on 2023-02-15 by Wilson Huang