Results 1 to 15 of 57

Thread: Real time clock with Oleg's firmware

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Could you please share your source?

    Seems like you've expected preconfigured scl/sda gpios, which is in fact should not be touched by watchdog...

  2. #2
    Join Date
    May 2007
    Location
    Germany - Stuttgart
    Posts
    20
    Quote Originally Posted by Oleg View Post
    Could you please share your source?
    Ok, here it is. Note that I've already modified the code to the best of my knowledge to comply with your changed function calls.

    Seems like you've expected preconfigured scl/sda gpios, which is in fact should not be touched by watchdog...
    That might be true. I stopped thinking about whether or not I've implemented it correct when I got the response that the driver was working.
    Attached Files Attached Files
    Last edited by andi; 11-11-2007 at 19:18.

  3. #3
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Thanks. BTW, which RTC chip is used by WL-HDD?

  4. #4
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Here is it. Someone should try it.
    Attached Files Attached Files

  5. #5
    Join Date
    Nov 2007
    Location
    Germany - near Ulm
    Posts
    4

    Smile

    Thanks Oleg, it works:

    [admin@WL-HDD harddisk]$ /tmp/harddisk/hwclock.sh --hctosys
    Sun Nov 11 20:51:49 MEZ 2007


    is it possible, to get it in the next Update for WL-HDD ?

  6. #6
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Yes, perhaps. Well, tried on my WL-700gE and it also works (the only change is SDA gpio pin). It use the same ricoh chip.

    Well, looks like we need to make general purpose: i.e. allow to specify sda/scl as module parameters.

    Btw, does 24h switch destroys current clock setting completely? Or just hour value?

  7. #7
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Also, this driver should have automatic devfs registration...

  8. #8
    Join Date
    May 2007
    Location
    Germany - Stuttgart
    Posts
    20
    Quote Originally Posted by Oleg View Post
    Well, looks like we need to make general purpose: i.e. allow to specify sda/scl as module parameters.
    That shouldn't be a problem to implement. I assume you can do this yourself .

    Btw, does 24h switch destroys current clock setting completely? Or just hour value?
    The switch to 24h mode doesn't really destroy the setting. Depending on the current time, it just leads to invalid time values within the chip. And according to the data sheet: "Any carry from lower digits with the writing of non-existent time may cause the time counters to malfunction." In any case, I don't think it's worth optimizing this, as it is only relevant the very first time you load the module.

    Also, this driver should have automatic devfs registration...
    The driver uses misc_register(), which already does devfs registration.

    BTW.: Did you need to make any adjustments to my code, or was it already correct?
    Last edited by andi; 11-11-2007 at 20:54.

  9. #9
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    Hi all,

    thanks for your great work!
    Quote Originally Posted by Oleg View Post
    Yes, perhaps. Well, tried on my WL-700gE and it also works (the only change is SDA gpio pin). It use the same ricoh chip.
    The WL-700gE has a RTC? I have to update my HowTo.
    Can anybody tell me if the new driver will work with an older oleg firmware?
    I am not able to test it atm.

    wengi
    Übersicht aller HowTos --- HowTo Overview (mostly german)
    WL-HDD mit diesem Setup. --- WL-HDD with this setup.
    Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
    Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)

  10. #10
    Join Date
    May 2007
    Location
    Germany - Stuttgart
    Posts
    20
    Quote Originally Posted by Oleg View Post
    Thanks. BTW, which RTC chip is used by WL-HDD?
    Ricoh RV 5C386A
    Last edited by Omega; 10-05-2013 at 16:41. Reason: fixed

Similar Threads

  1. oleg's firmware vs openwrt
    By sophana in forum WL-500g Custom Development
    Replies: 5
    Last Post: 15-07-2005, 17:46
  2. Hoe is filestructuur van OLEG's firmware?
    By newbie in forum Dutch Discussion - Nederlands
    Replies: 4
    Last Post: 24-06-2005, 14:23
  3. Real-time bandwidth use
    By gwl in forum WL-500g Q&A
    Replies: 8
    Last Post: 12-01-2005, 03:16
  4. Flashing Oleg's Firmware in WL HDD
    By hugo in forum WL-HDD Custom Development
    Replies: 29
    Last Post: 21-10-2004, 14:55

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •