Author Topic: Its Not 1970 Anymore!  (Read 5706 times)

Miami_Bob

  • Sr. Member
  • ****
  • Posts: 483
    • View Profile
Its Not 1970 Anymore!
« on: February 08, 2005, 05:47:28 pm »
I decided to give OZ/Opie another shot.

It there EVER going to be a release where the date does NOT revert to 01 Jan 1970 EACH & EVERY time the user is forced to reboot (like at the frequent lock ups!)?

I, for one, do not consider this a "trivial" bug.
Bob W - Miami FL
--------------------
"The legs of the duck are short and
 cannot be lengthened without distress
 to the duck.

The legs of the crane are long and
 cannot be shortened without distress
 to the crane."

Chuang-tzu

--------------------
C860 main - Sharp 1.40 JP ROM
Language conversion by hand

alts: Cacko 1.22 / OZ 3.5.1 / pdaXrom
512Mb SanDisk SD (x2) / 512Mb SanDisk CF (x2)
Lexar 1Gb CF / AmbiCom WL1100C-CF 802.11b WiFi

Out of Hp200LX, from HP100LX, via HP95LX
--------------------
Desktop MegaTower c/ twin DataPort HD racks;
12 removable HDs with multi OSs - no waiting.

--------------------

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Its Not 1970 Anymore!
« Reply #1 on: February 08, 2005, 06:16:33 pm »
(double post)
« Last Edit: February 08, 2005, 06:17:38 pm by Mickeyl »
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Its Not 1970 Anymore!
« Reply #2 on: February 08, 2005, 06:17:06 pm »
I don't like your agressive tone, but anyway, the sltime utility should fix that. If it bugs you that much, why not try to dive into the cause and giving a shot at fixing it? After all, that's what Open Source is about - fixing issues and sharing.
« Last Edit: February 08, 2005, 06:18:33 pm by Mickeyl »
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Its Not 1970 Anymore!
« Reply #3 on: February 08, 2005, 07:05:11 pm »
I agree with this (the time not defaulting to 1970) - the opie time applet should default to 1/1/2005 IMHO.

I also agree with Mickeyl, it's not hard to fix, a simple one line code change, but it needs to be submitted to the opie folks I imagine.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Its Not 1970 Anymore!
« Reply #4 on: February 08, 2005, 08:07:11 pm »
Well, the issue here is not only the default date, but also the reverting at all - which is (as you all know of course) a hardware bug. So, the question is how to workaround in the most sane way. One way is what the sltime utility does, saving the time into flash on shutdown/reboot and restoring during rcS. This won't help against forced resets though.
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

Miami_Bob

  • Sr. Member
  • ****
  • Posts: 483
    • View Profile
Its Not 1970 Anymore!
« Reply #5 on: February 09, 2005, 02:00:42 am »
Quote
I don't like your agressive tone,

Geee, here I thought that I was simply making a long overdue point.

Quote
but anyway, the sltime utility should fix that. If it bugs you that much, why not try to dive into the cause and giving a shot at fixing it? After all, that's what Open Source is about - fixing issues and sharing.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=66194\"][{POST_SNAPBACK}][/a][/div]

Well, up until the week before Xmas last I was portal to portal 12-15 hrs a work day on employment where programming and computers were not related to my primary job function.

Also, I have serious vision impairments and a serious progressive essential tremor of the left hand & arm.

Does THAT offer a little clue, Mr Agressive Tone?

You get pretty short tempered yourself with most anyone who finds any short comings in or makes suggestions about OZ/Opie, IMHO.

I share whatever I can and think that I'm doing not so bad with less than one year's worth of real Linux & Zaurus experience under my belt (of course having about 25 years of NON Linux/Zaurus experience, including 80x86 machine code programming doesn't hurt in that regards).

Lighten up, Mickeyl. You will get a lot more users by working with us rather than being so defensive, IMHO.

Now, since I get no hits on it, care to expand just a tinsy bit on the use, care & feeding of the sltime utility?
Bob W - Miami FL
--------------------
"The legs of the duck are short and
 cannot be lengthened without distress
 to the duck.

The legs of the crane are long and
 cannot be shortened without distress
 to the crane."

Chuang-tzu

--------------------
C860 main - Sharp 1.40 JP ROM
Language conversion by hand

alts: Cacko 1.22 / OZ 3.5.1 / pdaXrom
512Mb SanDisk SD (x2) / 512Mb SanDisk CF (x2)
Lexar 1Gb CF / AmbiCom WL1100C-CF 802.11b WiFi

Out of Hp200LX, from HP100LX, via HP95LX
--------------------
Desktop MegaTower c/ twin DataPort HD racks;
12 removable HDs with multi OSs - no waiting.

--------------------

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

dz

  • Administrator
  • Hero Member
  • *****
  • Posts: 589
    • View Profile
    • http://www.dangerz.net
Its Not 1970 Anymore!
« Reply #7 on: February 09, 2005, 07:56:16 am »
Right.  How about we drop the whole personal issues here and discuss fixing the time bug.  

I can see this heading in the wrong direction very quickly.  After my post, no more personal attacks.

Thanks.
http://www.dangerz.net
c860 : Cacko
The greatest experience we can have is the mysterious.
- Albert Einstein

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Its Not 1970 Anymore!
« Reply #8 on: February 09, 2005, 02:14:36 pm »
huh. I'm kinda surprised this is an issue, but while the thread is up...

I had always wondered why 1970, particularly. My experience in the date/time reset stuff has mostly been bios , though some software, that reverts to the day it was buned/published. That always made me wonder if some really ancient bit o unix was lurking in OZ that had gone stable in 1970, hence the consistant use of that year. ( i realize it is far fetched, but you have to admit the consistency is striking and invites wild speculation)

On the other hand, there are things much further up my agenda for my Z, and for OZ, I suspect.
(like the hostap, kernel 2.6 and hitachi video acceleration for the 6k that I just know is being feverishly persued at this very moment)
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Its Not 1970 Anymore!
« Reply #10 on: February 09, 2005, 02:20:37 pm »
lmao. I was on the right track after all.
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

Miami_Bob

  • Sr. Member
  • ****
  • Posts: 483
    • View Profile
Its Not 1970 Anymore!
« Reply #11 on: February 09, 2005, 06:35:18 pm »
Quote
Some sltime links:

 (.............)

Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=66257\"][{POST_SNAPBACK}][/a][/div]

 Thanks, Si. I must have misspelled. Damn left side tremor is getting to be a major keyboard PITA. Couple it with major vision problems and even triple checking sometimes fails to catch the typos.

Quote
Right. How about we drop the whole personal issues here and discuss fixing the time bug.

Sorry about the snap back, dz. Compensating for being multiple disabled can at times be frustrating in the extreme. Flame off.
Bob W - Miami FL
--------------------
"The legs of the duck are short and
 cannot be lengthened without distress
 to the duck.

The legs of the crane are long and
 cannot be shortened without distress
 to the crane."

Chuang-tzu

--------------------
C860 main - Sharp 1.40 JP ROM
Language conversion by hand

alts: Cacko 1.22 / OZ 3.5.1 / pdaXrom
512Mb SanDisk SD (x2) / 512Mb SanDisk CF (x2)
Lexar 1Gb CF / AmbiCom WL1100C-CF 802.11b WiFi

Out of Hp200LX, from HP100LX, via HP95LX
--------------------
Desktop MegaTower c/ twin DataPort HD racks;
12 removable HDs with multi OSs - no waiting.

--------------------

lpotter

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
    • http://qtopia.net
Its Not 1970 Anymore!
« Reply #12 on: February 09, 2005, 06:45:06 pm »
try putting this into your /etc/init.d/ directory, naming it date.sh and then
ln -s /etc/init.d/date.sh /etc/rc2.d/S22date.sh

Code: [Select]
#!/bin/bash
DATEFILE=/etc/default/lastdate
case "$1" in
  start)
    if [ ! -e $DATEFILE ]; then
    LASTDATETIME=010108002005
    else
    . $DATEFILE
    fi
    date -u $LASTDATETIME
      ;;
  stop)
    echo "LASTDATETIME=`/bin/date -u +%m%d%H%M%G`" > $DATEFILE
       ;;
  restart)
        $0 stop
        $0 start
       ;;
  *)
        echo "Usage: date.sh {start|stop|restart}"
        exit 1
esac

exit 0
Software Engineer, Systems Group, MES, Trolltech
irc.freenode.net #qtopia
http://qtopia.net

Miami_Bob

  • Sr. Member
  • ****
  • Posts: 483
    • View Profile
Its Not 1970 Anymore!
« Reply #13 on: February 10, 2005, 04:55:04 pm »
Quote
try putting this into your /etc/init.d/ directory, naming it date.sh and then
ln -s /etc/init.d/date.sh /etc/rc2.d/S22date.sh

  (..............)

[div align=\"right\"][a href=\"index.php?act=findpost&pid=66343\"][{POST_SNAPBACK}][/a][/div]

Thanks for the tip. I'll definitely patch this in the next time that I restore and NAND of OZ/Opie.
Bob W - Miami FL
--------------------
"The legs of the duck are short and
 cannot be lengthened without distress
 to the duck.

The legs of the crane are long and
 cannot be shortened without distress
 to the crane."

Chuang-tzu

--------------------
C860 main - Sharp 1.40 JP ROM
Language conversion by hand

alts: Cacko 1.22 / OZ 3.5.1 / pdaXrom
512Mb SanDisk SD (x2) / 512Mb SanDisk CF (x2)
Lexar 1Gb CF / AmbiCom WL1100C-CF 802.11b WiFi

Out of Hp200LX, from HP100LX, via HP95LX
--------------------
Desktop MegaTower c/ twin DataPort HD racks;
12 removable HDs with multi OSs - no waiting.

--------------------