Installing the GPIO Controller Driver for Linux
Technical Note 7027
Applicable Model(s)
IPC2210A
Title
Installing the GPIO Controller Driver for Linux
Date
03/27/2024
Rev
01
P/N
0907-7027
Summary
This document describes how to install the GPIO controller driver specifically designed for the Maple Systems IPC2210A units with the Linux Operating System.
NOTE: Your Linux operating system should be on the 6.2.0-35-generic kernel version or better
Solution
1.
Download the Linux GPIO controller driver for the IPC2210A from the Software and Upgrades section of the Maple Systems website.
2.
Create a subdirectory inside the /home/user/Documents directory labeled “Linux”.
3.
Right-click the compressed Linux GPIO for 2210A directory and click “extract to” the /home/user/Documents/Linux directory.
4.
Confirm the directory path is as follows: /home/user/Documents/Linux/EApi_innodisk_sample_1.1.7
5.
Use the following commands inside the terminal to install two required software packages:
- sudo apt-get install gcc-12-multilib
- sudo apt-get install build-essential
6.
Enter the following commands into the Linux terminal while in the /home/user/Documents/Linux/EApi_innodisk_sample_1.1.7 directory.
- make clean
- make
7.
Confirm that the files are present in the EApi_innodisk_sample_1.1.7 directory as show in the following screenshot:
8.
Enter the following commands into the Linux terminal while in the /home/user/Documents/Linux/EApi_innodisk_sample_1.1.7 directory:
- sudo cp innoeapi.ko /lib/modules/$(uname -r)/kernel/drivers
- sudo depmod -a
- sudo modprobe innoeapi
9.
Once the GPIO controller driver installation is complete, the EApi api package is now ready to use. Enter the following command:
- sudo ./EApi_Test
NOTE: You will be required to be root or use the sudo command to execute the EApi_Test program.
See Technical Note 7028 – “IPC2210A GPIO Controller Driver Basics” for more information on how to use the GPIO controller driver.