Installing Linux Driver Software
Document Number 3PCI-0712m
Chapter 5
23
11. Change the current working directory to where the MIport driver source code is
located.
username@computer$ cd MIport-3.0.0
↲
12. Compile the MIport device driver.
username@computer$ make
↲
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'
13. Determine the present working directory. The output may be different than shown
below.
username@computer$ pwd
↲
/home/username/MIport-3.0.0
14. 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
15. Start the MIport driver.
username@computer$ sudo /etc/rc.MIport
↲
Содержание 3PCIOU1
Страница 53: ...Connector Pinouts Document Number 3PCI 0712m Appendix B B 1 Figure 31 2 Wire RS 485 Wiring...
Страница 54: ......