How to Install and Test PCI8255 Card on Linux
(1) Instalation : Download driver from as follows:
Download the driver to /tmp
(2)
Please follow as follows to install:
This sample is under REDHAT 8.0 KERNEL 2.4.18-14.
Step1: Extract the file
Step 2: DIP Switch
The switch is used to identify card number, default setting is card 1. There are two methods to
set the card number:
A.PnP
mode
Just plug in PCI bus adapter into PCI slot, the PCI BIOS will allocate I/O
address to each
adapter automatically and assign card number start from 0 to each adapter. However, if you
plug in more than one adapter,please set whole adapters to card number 1 (default setting),
then use software tools to distinguish port id.
B.Manual mode
Set card number by card identifier switch, the PCI BIOS will assign pre-allocated I/O address to each adapter. Please set different card number to each adapter (do not duplicate card number setting).
Step 3: Execute the install file to install
Step 4: Please use "lsmod" command to check
(3)Please edit /etc/rc.local to add a command line as follows:
(4)Please reboot systems.
(5)Please use 'lsmod' to check after system restarted. You can find PCI 8255 .
2.About uninstall
3. About Test:
Sixteen LEDs indicate when I/O is operating.
(1)The test program
The device driver already includes three test programs.
1.test.c:
Auto tests Output ON/OFF.
2.test1.c: Auto tests Output and Input.
3.test2.c: Manuly tests Output.
(2)Please
compile the 'test.c' 'test1.c' 'test2.c' files as following step:
Then it will create the 'test' 'test1' 'test2' file.
(3)Please execute the 'test' file to test output. You will see Led light from L1 to L16 Auto ON and OFF .
The test.c's content is as follows:
(4) Please execute 'test1' to test input and output. The result is as follows:
The test1.c's content is as follows:
(5) Please execute 'test2' to manuly test output. The result is as follows:
The test2.c's content is as follows: