aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@lamia.panaceas.james.local>2017-01-16 12:30:43 +0000
committerroot <root@lamia.panaceas.james.local>2017-01-16 12:30:43 +0000
commit44b0be4c54c8c2ec2dfa5926e17523bbe23f4b4a (patch)
treeb1cf76d552a4b12b6b4742f30678f9bdd21aaeec
parente2fe1e8bfb315526cbe789736d504d126a8f3b34 (diff)
downloadtwa_t-44b0be4c54c8c2ec2dfa5926e17523bbe23f4b4a.tar.gz
twa_t-44b0be4c54c8c2ec2dfa5926e17523bbe23f4b4a.tar.bz2
twa_t-44b0be4c54c8c2ec2dfa5926e17523bbe23f4b4a.zip
Add readme.md file
-rw-r--r--README.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..189aff5
--- /dev/null
+++ b/README.md
@@ -0,0 +1,21 @@
+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
+coorrect.
+
+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.
+
+optional argument is the 3ware controller you wist to set the date on
+otherwise it assumes /dev/twa0
+
+The utility only sets the clock if it's wrong by more than 15 seconds.
+
+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#
+
+