Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 57

Thread: Real time clock with Oleg's firmware

  1. #31
    Join Date
    Nov 2007
    Location
    Germany - near Ulm
    Posts
    4
    @andi

    hi Andi,

    i use your rtc3 with OLEG 1.9.2.7-7g and it works fine. Thank you very much.

    But after the upgrade to OLEG 1.9.2.7-8 it didn't work. I don't remember the error message because i switched back to -7g again.

    Could you please check this ?

    greets
    simplyred

  2. #32
    Join Date
    May 2007
    Location
    Germany - Stuttgart
    Posts
    20
    Quote Originally Posted by simplyred View Post
    But after the upgrade to OLEG 1.9.2.7-8 it didn't work. I don't remember the error message because i switched back to -7g again.

    Could you please check this ?
    That seems to be difficult without an error message. If you followed this thread from where I jumped in, you might have noticed that I don't run Oleg's firmware on my box, so I can't verify this here. And from Oleg's announcement, I don't see which of his changes might be the cause for the problem.

    Sorry for not being of much help here at the moment.

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

    Thumbs up

    I switched to OLEG 1.9.2.7-8 again and tried to set the time with putty.
    here is the result:

    [admin@WL-HDD harddisk]$ /tmp/harddisk/hwclock.sh --hctosys
    date: invalid date `-91-91-91-911809.-91'


    In the syslog i also found the following errors:

    Jan 1 01:28:50 kernel: SCL pin should be low
    Jan 1 01:28:50 kernel: SCL pin should be low
    Jan 1 01:28:50 kernel: SCL pin should be low
    Jan 1 01:28:50 kernel: SCL pin should be low
    Jan 1 01:28:50 kernel: SCL pin should be low
    Jan 1 01:28:50 kernel: SCL pin should be low
    Jan 1 01:28:50 kernel: SCL pin should be low
    Jan 1 01:28:50 kernel: SCL pin should be low
    Jan 1 01:28:50 kernel: SCL pin should be low
    Jan 1 01:28:50 kernel: ***RTC BATTERY FAILURE***

    Any idea ? Is there a problem with the new image ?

  4. #34
    Join Date
    May 2007
    Location
    Germany - Stuttgart
    Posts
    20
    Quote Originally Posted by simplyred View Post
    I switched to OLEG 1.9.2.7-8 again and tried to set the time with putty.
    here is the result:

    [admin@WL-HDD harddisk]$ /tmp/harddisk/hwclock.sh --hctosys
    date: invalid date `-91-91-91-911809.-91'
    That means that the time/date read from the RTC is invalid.

    In the syslog i also found the following errors:

    Jan 1 01:28:50 kernel: SCL pin should be low
    Jan 1 01:28:50 kernel: SCL pin should be low
    Jan 1 01:28:50 kernel: SCL pin should be low
    Jan 1 01:28:50 kernel: SCL pin should be low
    Jan 1 01:28:50 kernel: SCL pin should be low
    Jan 1 01:28:50 kernel: SCL pin should be low
    Jan 1 01:28:50 kernel: SCL pin should be low
    Jan 1 01:28:50 kernel: SCL pin should be low
    Jan 1 01:28:50 kernel: SCL pin should be low
    Jan 1 01:28:50 kernel: ***RTC BATTERY FAILURE***
    Since it is working with the previous firmware release, this means that the I2C communication to the RTC chip doesn't work.

    I've downloaded the source code of Oleg's patches and checked what he has changed. And in fact, he (indirectly and incompatibly) changed the access to the gpio pins (two gpio pins are used to communicate with the RTC). From what I see, the necessary changes to my driver seem to be trivial, but I'm currently unable to compile the driver myself because this also requires an updated toolchain (or at least updated kernel headers).

  5. #35
    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...

  6. #36
    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.

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

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

  9. #39
    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

  10. #40
    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 ?

  11. #41
    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?

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

  13. #43
    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.

  14. #44
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Quote Originally Posted by andi View Post
    That shouldn't be a problem to implement. I assume you can do this yourself .
    Yes.

    The driver uses misc_register(), which already does devfs registration.
    Ghm... Right. /dev/misc/rtc is available. I've added hwclock applet to busybox and it works fine.

    BTW.: Did you need to make any adjustments to my code, or was it already correct?
    It was correct.

    Well, do we still need compatibility with original asus code? I mean reading/writing via /dev/rtc?

  15. #45
    Join Date
    May 2007
    Location
    Germany - Stuttgart
    Posts
    20
    Quote Originally Posted by Oleg View Post
    Well, do we still need compatibility with original asus code? I mean reading/writing via /dev/rtc?
    In my opinion, this isn't needed at all. The reason why I implemented it compatible to the original asus code was just the missing hwclock applet.

Page 3 of 4 FirstFirst 1234 LastLast

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
  •