Installing Linux Driver Software
Document Number 3PCI-0712m
Chapter 5
19
make -C /lib/modules/2.6.32-24-generic/build M=/home/username/MIport-
3.0.0 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-24-generic'
CC [M] /home/username/MIport-3.0.0/MIport.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/username/MIport-3.0.0/MIport.mod.o
LD [M] /home/username/MIport-3.0.0/MIport.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-24-generic'
7. Determine the present working directory. The output may be different than shown
below.
username@computer$ pwd
↲
/home/username/MIport-3.0.0
8. Install the MIport device driver. The part after ―PWD=‖ of the command below should
match the output from the command above.
username@computer$ sudo make install PWD=/home/username/MIport-3.0.0
↲
make -C /lib/modules/2.6.32-24-generic/build M=/home/username/MIport-
3.0.0 modules_install
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-24-generic'
INSTALL /home/username/MIport-3.0.0/MIport.ko
DEPMOD 2.6.32-24-generic
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-24-generic'
cp ./rc.MIport /etc/rc.MIport
chmod 755 /etc/rc.MIport
9. Start the MIport driver.
username@computer$ sudo /etc/rc.MIport
↲
Searching for MIport driver in: ...
The MIport driver was found in: ...
The MIport driver is loaded.
Making special nodes for MIport.
Making /dev/ttyM0 /dev/cum0
Making /dev/ttyM1 /dev/cum1
Making /dev/ttyM2 /dev/cum2
Making /dev/ttyM3 /dev/cum3
Making /dev/ttyM4 /dev/cum4
Making /dev/ttyM5 /dev/cum5
Making /dev/ttyM6 /dev/cum6
Making /dev/ttyM7 /dev/cum7
10. Verify that the device driver is running. If the output is similar to what is shown
below, then the MIport driver is running. If the output is blank, then the MIport driver is
not running.
Содержание 3PCIOU1
Страница 53: ...Connector Pinouts Document Number 3PCI 0712m Appendix B B 1 Figure 31 2 Wire RS 485 Wiring...
Страница 54: ......