moxa-gpio-pca953x-driver
Moxa gpio pca953x driver
moxa-gpio-pca953x-driver
: Derived from drivers/i2c/chips/pca9539.c
Clone ource from: https://github.com/torvalds/linux/blob/master/drivers/gpio/gpio-pca953x.c
Support Models
- DA Series:
- V Series
- EXPC Series
Source Code Link
For Kernel Version = 3.x
For Kernel Version = 4.x
For Kernel Version = 5.x
What Tools Depend On?
Usage (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,
gpio-pca953x.ko
could be found under current directory - Run
make install
to install kernel module on/usr/lib/modules/$(uname -r)/
- Run
Usage (Ubuntu 20.04)
gpio-pca953x.ko
driver is default pre-installed in linux-modules-$(uname -r)
package
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,
gpio-pca953x.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.
Last updated on 2023-02-15 by Wilson Huang