beautypg.com

B&B Electronics 3PCIOU4 - Manual User Manual

Page 26

background image

Installing Linux Driver Software

20

Chapter 5

Document Number 3PCI-0712m

username@computer$ dmesg | grep MIport

[ 271.828182] B&B Electronics PCI MIport serial driver Revision: 4.5
[ 314.159265] MIport 0000:07:05:05.0: PCI INT A -> GSI 26 (level, low)
-> IRQ 26

11. [optional] If recording was started in Step 2, stop recording. The file ~/MIport.script
contains all output recorded from the terminal.

username@computer$ exit

exit

Script done on Tue 31 Aug 2010 03:58:48 AM CDT

12. Test serial communications using gtkterm. Change the serial port under Configration
| Ports and set the port to /dev/ttyM0 (for each serial port, increment the number at the
end of the name; e.g., /dev/ttyM1).

username@computer$ gtkterm &

13. If the driver works correctly, modify /etc/rc.local to automatically load the driver when
the operating system starts.

username@computer$ sudo gedit /etc/rc.local

Add the following code to the file (before the "exit 0" statement):

if [ -f /etc/rc.MIport ] ; then
exec /etc/rc.MIport
fi

An example of the code to add to /etc/rc.local is in the MIport driver folder in the file
rc.local.

14. Restart the computer, and then test serial communications again with gtkterm.