Specifications

APPENDIX A. INSTALLATION 30
A.4.1 The GPS card driver
The GPS kernel module is provided by Meinberg we are using MBGtools for Linux
v0.2.3beta. On the local master computers you need to install the GPS kernel module
mbgclock.o . The solution was tested with Linux kernels 2.4.4 and 2.4.6. It seems that
the Meinberg kernel module does not work on Linux 2.4.2.
The module has to be compiled first for the local kernel version. You have to go into the
directory mbgtools-lx-0.2.3- beta and type make . After this you can install the
module using insmod mbgtools-lx-0.2.3-beta/mbgclock/mbgclock.o .
Check the file /var/log/messages to see if the module loaded successfully. The device
associated with the GPS card is /dev/mbclk . To check that the GPS is working - run the
script gps status.sh . You should see something like in the Figure A.1:
Figure A.1: The GPS status window
A.4.2 The clock card kernel module
The module for the clock card has to be also compiled and installed. You have to go to the
directory hslclock module and type compile.sh . The compilation of the clock module
consists of two phases:
The compilation of the firmware (in Handel-C) that produces the file hslclock -
module/hslclock.ttf . This compilation uses Razvan Beuran’s computer and should
be done only once on any machine because it does not use any kernel information.
See [4] for more information.
The actual compilation of the kernel module it produces the file hslclock mod-
ule/hslclock.o This file depends on the current kernel.
After the compilation ends, you load the module using insmod hslclock module/
hslclock.o . Check also /var/log/messages for any errors. The devices associated
to the clock cards are /dev/hslclock0, /dev/hslclock1, ...
After the modules are loaded you should check that the clock is counting. The initial state
of the board does not allow time readings. To enable this you have to run the command