Taperssection.com

Gear / Technical Help => Recording Gear => Topic started by: IpaqMan on December 23, 2006, 08:18:19 PM

Title: Iriver H120 mod to add a real-time clock
Post by: IpaqMan on December 23, 2006, 08:18:19 PM
I did not see any posts about the new RTC mod for the H120 here, so I thought I would post a link to it here.

http://forums.rockbox.org/index.php?topic=7605.0

This is in the Hardware forum of the Rockbox forum.

This involves connecting a RTC chip (5 leads) to five points on the H120/H140 mainboard and patching Rockbox to support the chip.  The patch adds a digital time display to Rockbox and provides date-time support to the file system.  Recorded files are named with the date and time.  The mod takes about one to two hours depending upon your soldering skills with small components.

The BIG result here is recordings named with the date and time in the filename.
Title: Re: Iriver H120 mod to add a real-time clock
Post by: petur on January 02, 2007, 07:52:19 AM
_and_ you will need to compile your own rockbox version to enable the clock chip use...
Title: Re: Iriver H120 mod to add a real-time clock
Post by: Chuck on February 02, 2007, 04:39:10 PM
Yeah, I have the Maxim chip, but I read through the guide on compiling and I'm lost. Can someone help me get Mmmm's latest version of Rockbox compiled with the RTC patch? I really like the idea of having a real time clock on my iHP-120. If I can get the software patched, I will be able to work on wiring the chip in this weekend.
Title: Re: Iriver H120 mod to add a real-time clock
Post by: Chuck on February 03, 2007, 03:08:48 PM
Well, I just installed the RTC chip following the great instructions by jmdearras:

http://forums.rockbox.org/index.php?topic=7605.30

I just need help getting the REP version of Rockbox patched with the RTC code.
Title: Re: Iriver H120 mod to add a real-time clock
Post by: petur on February 06, 2007, 03:53:43 AM
Well, I just installed the RTC chip following the great instructions by jmdearras:

http://forums.rockbox.org/index.php?topic=7605.30

I just need help getting the REP version of Rockbox patched with the RTC code.

You'll either need the dev toolchain or be nice to Mmmm in the RB forum and maybe he compiles you a version....
More info on compiling your own RB is on www.rockbox.org - check the wiki
Title: Re: Iriver H120 mod to add a real-time clock
Post by: Chuck on February 06, 2007, 09:23:40 AM
Thanks, I got it done.
Title: Re: Iriver H120 mod to add a real-time clock
Post by: flintstone on February 06, 2007, 07:58:19 PM
The iRivier H320/340 has a real time clock, correct?

So does it have the digital clock display and date/time
information in the file system using the standard Rockbox
release?  Or does the H320 also need the specially
modified Rockbox load?

Thanks.

Flintstone
Title: Re: Iriver H120 mod to add a real-time clock
Post by: Chuck on February 06, 2007, 08:09:55 PM
The iRivier H320/340 has a real time clock, correct?

So does it have the digital clock display and date/time
information in the file system using the standard Rockbox
release?  Or does the H320 also need the specially
modified Rockbox load?

Thanks.

Flintstone

After soldering in the RTC chip (Maxim DS3231s) and getting the software patched, my iHP-120 can show an analog or digital clock (via the plugin Clock). It also date and time stamps files, which is what appealed to me. I don't have a 300 series, so I can't comment on it.
Title: Re: Iriver H120 mod to add a real-time clock
Post by: petur on February 07, 2007, 04:12:09 AM
The iRivier H320/340 has a real time clock, correct?

So does it have the digital clock display and date/time
information in the file system using the standard Rockbox
release?  Or does the H320 also need the specially
modified Rockbox load?

H3x0 have an RTC chip which (official) RockBox uses: time is shown on the status bar, the filesystem uses the date and time, and when recording, date and time are in the filename. I figure this last feature is _the_ reason some people do  the H1x0 RTC modification ;)
Title: Re: Iriver H120 mod to add a real-time clock
Post by: Chuck on February 07, 2007, 09:18:45 AM
The iRivier H320/340 has a real time clock, correct?

So does it have the digital clock display and date/time
information in the file system using the standard Rockbox
release?  Or does the H320 also need the specially
modified Rockbox load?

H3x0 have an RTC chip which (official) RockBox uses: time is shown on the status bar, the filesystem uses the date and time, and when recording, date and time are in the filename. I figure this last feature is _the_ reason some people do  the H1x0 RTC modification ;)

Yeah, forgot to mention that the current time is displayed on the record screen on the RTC modded iHP-120.
Title: Re: Iriver H120 mod to add a real-time clock
Post by: Chuck on March 01, 2007, 10:58:38 AM
Good news. The Real Time Clock patch is being incorporated into the regular Rockbox builds now.
Title: Re: Iriver H120 mod to add a real-time clock
Post by: cgrooves on March 01, 2007, 11:22:14 AM
Good news. The Real Time Clock patch is being incorporated into the regular Rockbox builds now.
That's great news!  I'm getting the RTC chip installed on one of my units and I was a little worried about getting the patch installed correctly into a build.
Title: Re: Iriver H120 mod to add a real-time clock
Post by: TheMaestro on March 01, 2007, 05:46:30 PM
I just bought a couple RTCs.  I don't know when I'll get around to putting them in yet, but it's nice to see the mod being incorporated to the builds.
Title: Re: Iriver H120 mod to add a real-time clock
Post by: petur on March 01, 2007, 05:58:19 PM
Good news. The Real Time Clock patch is being incorporated into the regular Rockbox builds now.
The patch is in the current svn but is disabled, you need to build your own and just change one file: firmware\export\config-h120.h

look for the line that says

/* Set to 1 if you want to build with RTC support */

and change the line below it to

#if 1

and rebuild.

EDIT: there's a discussion going on about offering a separate H1x0 build on the official rockbox site... keep your eyes open ;)
Title: Re: Iriver H120 mod to add a real-time clock
Post by: Chuck on March 01, 2007, 07:58:24 PM
Good news. The Real Time Clock patch is being incorporated into the regular Rockbox builds now.
The patch is in the current svn but is disabled, you need to build your own and just change one file: firmware\export\config-h120.h

look for the line that says

/* Set to 1 if you want to build with RTC support */

and change the line below it to

#if 1

and rebuild.

EDIT: there's a discussion going on about offering a separate H1x0 build on the official rockbox site... keep your eyes open ;)

The current RTC patch has auto detect, why disable it in the build? I don't know how to compile and don't have any interest in learning how to do it. WTF?
Title: Re: Iriver H120 mod to add a real-time clock
Post by: petur on March 02, 2007, 06:18:22 AM
The current RTC patch has auto detect, why disable it in the build? I don't know how to compile and don't have any interest in learning how to do it. WTF?
Current policy is that all 'mods' done by more than one person can be in the svn but must be enabled explicitly.
As I said, they are looking into creating a separate h1x0 build where the mod is enabled.

Don't look/shoot at me, I'm just the messenger...
Title: Re: Iriver H120 mod to add a real-time clock
Post by: Chuck on March 02, 2007, 09:11:08 AM
No worries petur...
Please keep us updated...
Is it possible to enable RTC, without re-compiling? Like changing a value in the .cfg file? I can do that, if that is all it is...
Title: Re: Iriver H120 mod to add a real-time clock
Post by: petur on March 02, 2007, 10:36:37 AM
No worries petur...
Please keep us updated...
Is it possible to enable RTC, without re-compiling? Like changing a value in the .cfg file? I can do that, if that is all it is...
no, sorry...

but I'll represent your voice when I see discussion about it on the rockbox irc channel (or you can come nagging yourself ;) )
Title: Re: Iriver H120 mod to add a real-time clock
Post by: Chuck on July 16, 2007, 06:58:14 PM
A very kind guy has compiled a recent REP with RTC mod patch version of Rockbox.  If you download it, thank Peter200lx over on the Rockbox Technical Forums.

Get it here:

http://rockbox.dreamhosters.com/rep_rtc_build/

The file you want is: rockbox_rep_rtc_7_15_07.zip

Title: Re: Iriver H120 mod to add a real-time clock
Post by: cgrooves on July 17, 2007, 11:17:08 AM
To add to Chuck's thread:
The standard daily build also supports the RTC mod (or at least it did a few months back and I assume it still does).
Title: Re: Iriver H120 mod to add a real-time clock
Post by: Chuck on July 17, 2007, 01:20:22 PM
To add to Chuck's thread:
The standard daily build also supports the RTC mod (or at least it did a few months back and I assume it still does).

But don't you haver to re-compile it somehow to activate it?
Title: Re: Iriver H120 mod to add a real-time clock
Post by: cgrooves on July 17, 2007, 01:48:15 PM
To add to Chuck's thread:
The standard daily build also supports the RTC mod (or at least it did a few months back and I assume it still does).

But don't you haver to re-compile it somehow to activate it?

Nope.  All I did was download the daily build (from approx. 2-3 months ago) and it supported RTC.  My RTC mod unit is not in my possession right now, so I'm unable to confirm with the current daily build.
Title: Re: Iriver H120 mod to add a real-time clock
Post by: petur on July 17, 2007, 05:16:25 PM
I can't find the RTC define in the current h1x0 build config so I assume the current official build doesn't support it, but I would just try it, maybe somebody added autodetection?

EDIT: it turns out that the mod is an option in the build configure script these days. So you do not need a patch, but you do need to build yourself or have somebody do it for you. There seem to be not enough users of it to offer a build on rockbox.org.
Title: Re: Iriver H120 mod to add a real-time clock
Post by: cgrooves on July 18, 2007, 10:04:59 AM
I can't find the RTC define in the current h1x0 build config so I assume the current official build doesn't support it, but I would just try it, maybe somebody added autodetection?

EDIT: it turns out that the mod is an option in the build configure script these days. So you do not need a patch, but you do need to build yourself or have somebody do it for you. There seem to be not enough users of it to offer a build on rockbox.org.

All that I did was install a daily build, and it supported my RTC modded unit.  I did have a REP build with RTC support installed prior to installing the daily build, so it may be possible that the RTC support was a remnant that somehow remained on the player.  When I get my RTC modded unit back in my possession, I will install the current daily build and reply back with the results.
Title: Re: Iriver H120 mod to add a real-time clock
Post by: petur on July 18, 2007, 02:31:31 PM
All that I did was install a daily build, and it supported my RTC modded unit.  I did have a REP build with RTC support installed prior to installing the daily build, so it may be possible that the RTC support was a remnant that somehow remained on the player.  When I get my RTC modded unit back in my possession, I will install the current daily build and reply back with the results.

For a short moment, the official build featured RTC detection, but it was removed again because it had to follow the rule of all other supported mods, being an option and not mainstream...

Feel free to nag some devs in the irc channel ;)