Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
translations translations
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  iriver h1x0 - RTC (real time clock) mod
« previous next »
  • Print
Pages: 1 ... 7 8 [9] 10

Author Topic: iriver h1x0 - RTC (real time clock) mod  (Read 84281 times)

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 349
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #120 on: April 15, 2007, 12:30:49 PM »
Quote from: crypt@ on April 15, 2007, 12:03:22 PM
Just a thought, shuffle is seeded by Mersenne Twister dued to lack of RTC on h1X0. Now that RTC on iriver is possible, is there a chance that the RTC can be used to seed the shuffle list?

I am not sure I follow. Mersenne Twister is the algorithm, not the seed. And all of rockbox's RTC features should work now, so if RTC is used on other targets to seed the generator, it is for the modded h1x0.

Congratulations by the way. I have added you to The List. :)
Logged

Offline crypt@

  • Member
  • *
  • Posts: 21
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #121 on: April 16, 2007, 12:29:41 AM »
Oops, I actully meant to ask "if RTC is used in srand to provide the seed for Mersenne Twister"?
Logged

Offline safetydan

  • Developer
  • Member
  • *
  • Posts: 248
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #122 on: April 16, 2007, 12:35:20 AM »
From a quick look at the code it looks like the seed for the playlist shuffle is actually the current_tick not the current time. The current_tick is the number of ticks since the player was booted and updates at 100Hz if I remember correctly. So it should be pretty random regardless of whether the target has an RTC or not.

So to answer your question, no the RTC is not used to seed the shuffle randomness, but it doesn't matter anyway as what is used to seed it is good enough.
Logged

Offline Heriver

  • Member
  • *
  • Posts: 21
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #123 on: June 06, 2007, 10:05:50 AM »
Hello.

First:
I've compile the soure with the RTC enable and after a few try's, it must be good.
No error's but only 2 remarks.
I have installed to the H120 and it start-up ,wow, try some thing's looks good,
and i see an empty time, only this --:--
and thats my problem now, how do i get these IC's?
Some visit at Maxim's site doesn't sound good.
EDIT: I have r'ved  these DS3231S IC's finaly!
« Last Edit: July 21, 2007, 12:03:02 PM by Heriver »
Logged

Offline TaperChuck

  • Member
  • *
  • Posts: 61
    • CoTapers
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #124 on: June 06, 2007, 05:13:52 PM »
Has anyone patched the 05-13 build of Mmmm's REP with the RTC code?
I haven't been able to run the RTC after I had some problems with an older REP build and would like to get the RTC up and running again. I tried reading through the stuff on patching and gave up  :(
Logged
Chuck

Offline Heriver

  • Member
  • *
  • Posts: 21
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #125 on: June 06, 2007, 07:45:47 PM »
Hello TaperChuck.

Within 24 hr (and a night over) I've installed CygWin, and followed the instructions
mentioned in the Wiki.
I have stopped to that point before the Patch-command, i've looked if i have these utils
downloaded and installed, and i have!
But it is not usefull for me to go further because i can't test without the Dallas chip's.
Compiling the source is also time consuming, it was about 1h15 and 100% CPU-load.
But your question was,how to patch
This commands must/can be used:

cd to/source/root ; (maybe a dummy)

and follow by:

patch < patchfile  

I don't know if this right,
because Cygwin give already an error with this command ../tools/configure , caused by the double dots ../
But i'm not sure if these are the only commands, or maybe more commands to follow.
I see we have both or worries!
Logged

Offline TaperChuck

  • Member
  • *
  • Posts: 61
    • CoTapers
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #126 on: June 06, 2007, 07:59:34 PM »
Yeah, I don't have the patience to do the patch. After my initial attempt, I gave up. All I can hope for now, is that a kind soul will share a patched version.
Logged
Chuck

Offline Davide-NYC

  • Member
  • *
  • Posts: 429
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #127 on: June 06, 2007, 09:41:28 PM »
I would be willing to do it the day Mmmm releases a new version. No later.
Otherwise the code is likely to be too far out of sync for me to bother.
I'm not a dev! I just love the rockbox.

(Just purchased a Toshiba Gigabeat F today! W00t!)
Logged
Currently: iRiver H132-RTC-CFMod

Offline TaperChuck

  • Member
  • *
  • Posts: 61
    • CoTapers
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #128 on: June 06, 2007, 09:51:38 PM »
Quote from: Davide-NYC on June 06, 2007, 09:41:28 PM
I would be willing to do it the day Mmmm releases a new version. No later.
Otherwise the code is likely to be too far out of sync for me to bother.
I'm not a dev! I just love the rockbox.

(Just purchased a Toshiba Gigabeat F today! W00t!)


Cool. Please post here if you do patch the next build. I'd be happy to have any of the post 05-01 Mmmm REP builds patched with the RTC code...
Logged
Chuck

Offline ItsJustMe

  • Member
  • *
  • Posts: 6
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #129 on: June 08, 2007, 09:53:21 PM »
Me too! ;D
Mmmm, please release a new version. I have some problems with version 07/05/13.
Logged

Offline bpfiguer

  • Member
  • *
  • Posts: 24
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #130 on: June 24, 2007, 01:35:50 AM »
I just finished the real-time clock mod in my iRiver H140.
Could somebody provide me a Rockbox build that has the real-time clock driver enable? I don't know how to compile Rockbox. Thank you
Logged

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 349
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #131 on: June 24, 2007, 09:14:54 AM »
Quote from: bpfiguer on June 24, 2007, 01:35:50 AM
I just finished the real-time clock mod in my iRiver H140.
Could somebody provide me a Rockbox build that has the real-time clock driver enable? I don't know how to compile Rockbox. Thank you

http://roolku.pwp.blueyonder.co.uk/rockbox-r13696M-070624.zip

Better learn how to compile as this will go out of date in no time... ;)

Which RTC chip did you use?
Logged

Offline bpfiguer

  • Member
  • *
  • Posts: 24
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #132 on: June 24, 2007, 10:40:56 AM »
Quote from: roolku on June 24, 2007, 09:14:54 AM
Quote from: bpfiguer on June 24, 2007, 01:35:50 AM
I just finished the real-time clock mod in my iRiver H140.
Could somebody provide me a Rockbox build that has the real-time clock driver enable? I don't know how to compile Rockbox. Thank you

http://roolku.pwp.blueyonder.co.uk/rockbox-r13696M-070624.zip

Better learn how to compile as this will go out of date in no time... ;)

Which RTC chip did you use?


Thanks for your help, I used the DS3231S chip. Now the RTC is working.
« Last Edit: June 24, 2007, 11:20:37 AM by bpfiguer »
Logged

Offline Heriver

  • Member
  • *
  • Posts: 21
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #133 on: July 23, 2007, 01:27:42 PM »
Finaly.
EDIT: I have mounted 2 RTC-chip's (3 to go,if...) topside-up.
I've bend a bit the pin's up so they are free from the PCB, but they are not flat!
At the location i used insulation tape and glued the chip on.
I've used Wire-Wrapping wire and pre-solder it first then soldered at the desired pin locations.

I have used a RTC enable-build from begin june, that i have already compiled (as a studycase),
and the RTC is working now.
« Last Edit: July 25, 2007, 01:09:39 PM by Heriver »
Logged

Offline johnp_g

  • Member
  • *
  • Posts: 8
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #134 on: October 09, 2008, 02:56:29 PM »
Hello!

At last I bit the bullet and did the RTC mod to my H120!
 :)

I got 2 free samples of DS3231SN from Maxim, sent to the UK and have just installed the chip, upside down as per the original mod sheet, using enamelled copper wire 0.25mm dia.

I just checked out the latest r18756 and compiled with RTC support.

Amazing, works first time and seems to complete the perfect H120!

Thanks for the mod and the compilation config to allow it to be enabled easily.

Cheers,

John
 

Logged

  • Print
Pages: 1 ... 7 8 [9] 10
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  iriver h1x0 - RTC (real time clock) mod
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.169 seconds with 22 queries.