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

    Real time clock with Oleg's firmware

    Hi,

    I was wondering how I could get the hardware clock from my WL HDD using Oleg's latest firmwares. I can't see any /dev/rtc devices, but this is something in hardware. This would be very usefull for using the WL without any internet connection and still log correct timestamps.

    Does it need a kernel module? I can find the one from WL-hdd root fs, but it doesn't create any devices (as splink_led)
    Last edited by hugo; 03-02-2005 at 15:52.

  2. #2
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Yes, kernel module is required, but I've no idea how this works - probably they've changed something in the kernel.
    The module itself contains bunch of code, which is providing I2C access via GPIO pins to the RTC.
    Have you determined name of RTC chip?

    BTW, I'm pretty sure, that this code is subject to GPL, but ASUS is violating it as USUAL.

  3. #3
    Ok, here is the answer:

    Use the module attached
    insmod rtcdrv.o

    then
    mknod /dev/rtc c 12 0

    Using cat /dev/rtc, you get the real time. Just have to set up some progs to use it, and maybe set this as an option in firmware?
    Attached Files Attached Files

  4. #4
    should this work for wl-500g?
    [root@WL500G:/]# insmod rtcdrv.o
    rtcdrv.o: kernel-module version mismatch
    rtcdrv.o was compiled for kernel version 2.4.5
    while this kernel is version 2.4.20.
    [root@WL500G:/]# insmod -f rtcdrv.o
    Warning: kernel-module version mismatch
    rtcdrv.o was compiled for kernel version 2.4.5
    while this kernel is version 2.4.20
    Warning: loading rtcdrv.o will taint the kernel: no license
    See http://www.tux.org/lkml/#export-tainted for information about tainted modules
    Warning: loading rtcdrv.o will taint the kernel: forced load
    Module rtcdrv loaded, with warnings
    [root@WL500G:/]# mknod /dev/rtc c 12 0
    [root@WL500G:/]# cat /dev/rtc
    20ff:7f:ff:ff:ff:ff:ff[root@WL500G:/]#

  5. #5
    Join Date
    Nov 2003
    Location
    Eindhoven
    Posts
    2,407
    Quote Originally Posted by Alice
    should this work for wl-500g?
    no, the wl500g does not have a RTC

    My little Asus Collection: Too much to fit inhere, my 2 babies:WL500w 1.9.2.7-10(OLEG) VX2SE Yellow Lamborghini notebook



    WL500g Forum Asus Files OpenDir

    Asusforum.NL -- Asusforum.DE -- Asusforum.RU -- Asusforum.PL -- Asusforum.NET -- Asusforum.EU -- Asusforum.BE -- Asusforum.ES -- Asusforum.INFO

  6. #6
    For the owners of Wl-HDD using Oleg firmwares, you don't have real time clock available. I still cannot set time (so you need to use normal Wl-hdd firmware for that), but here is an how -to to get your clock set on boot up if you are not connected to internet:

    First read my previous post, and place the rtcdrv.o in a folder on hd.

    You must also get the full busybox from the forum, or from the package (use ipkg.sh install busybox)
    Check you can get awk working using busybox awk command.

    Then edit your post-mount like this:

    Code:
    [admin@wl-hdd sbin]$ cat post-mount
    #!/bin/sh
    insmod /tmp/hd/wl-hdd/lib/modules/2.4.20/rtcdrv.o
    mknod /dev/rtc c 12 0
    date -s "`/tmp/hd/conf/bin/busybox awk 'BEGIN {FS=":"}; {print $2"/"$3"/"$1" "$5":"$6":"$7}' /dev/rtc`"
    Be sure to change path to your module path.

    I think date command is from the coreutils package. You might check compatibility with standard one.

    Also, using sed might be lighter, not using the full busybox.
    Also, use copy and paste, as i'm using 3 different quote types.

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
  •