moxa-it87-gpio-driver
Moxa IT87 GPIO Driver
moxa-it87-gpio-driver
: GPIO interface for IT87xx Super I/O chips
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 dmidecode
apt install --no-install-recommends -qqy linux-headers-$(uname -r)
- Build kernel module
- Run
make
to build kernel module - Once build successful,
gpio-it87.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 install dmidecode
yum groupinstall "Development Tools"
- Build kernel module
- Run
make
to build kernel module - Once build successful,
gpio-it87.ko
could be found under current directory - Run
make install
to install kernel module on/usr/lib/modules/$(uname -r)/
- Reboot the system
- 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.
Troubleshooting (CentOS 7.9)
Device or resource busy when load gpio-it87 driver
- Add
acpi_enforce_resources=lax
on boot parameter
# Edit grub config
vi /etc/default/grub
GRUB_CMDLINE_LINUX="[...] acpi_enforce_resources=lax"
# If you change this file, run 'grub2-mkconfig' afterwards to update
grub2-mkconfig -o /etc/grub2.cfg
grub2-mkconfig -o /etc/grub2-efi.cfg- Add
Enforce to use it87 series driver instead of iTCO driver (if necessary)
# edit `/lib/modprobe.d/iTCO-blacklist.conf`
blacklist iTCO_wdt
blacklist iTCO_vendor_support
Last updated on 2023-02-15 by Wilson Huang