aboutsummaryrefslogtreecommitdiffstats
path: root/README.html
blob: 2aa463d8e556b96fb170b927e8e6b38ce2b611f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<p>
This program sets the clock (date and time) on 3ware 9xxx series controllers
from the system clock, so that the BBU installation and test dates are
correct.
</p>

<p>
I'm not entirely sure what mechanism was intended to do this originally,
the linux driver only synchronizes time of week whilst the system is
running, and I didn't find any code to do this in the 3ware BIOS.
</p>

<p>
optional argument is the 3ware controller you wist to set the date on
otherwise it assumes /dev/twa0
</p>

<p>
The utility only sets the clock if it's wrong by more than 15 seconds.
</p>

<pre>
root@otherthing:~/projects/twa_t/twa_t/src# ./twa_t 
Controller time is: Sun Jan  1 13:29:27 1970
Controller time difference is 1484524828.0 seconds
Setting controller time
Controller time is: Sun Jan 16 12:29:55 2017
root@otherthing:~/projects/twa_t/twa_t/src# 
</pre>

<p>
A kernel patch which does much the same thing is included in the directory kernel-patch
</p>