Ok, so I have this fixed now.

Turns out he rtc driver was not being started in the board specific
kernel file. Once you have an RTC driver started in the kernel and
registered properly Google Android detects this when starting up. (I
assume because it sees /dev/rtc or something likened to that)

At that point Android creates the device /dev/alarm which is required
to properly set the time from the Android interface. Once you have
that the displayed time and date can all be manually set from the
"Settings" app.


-kieran

On Aug 17, 12:52 pm, 52x15 <[email protected]> wrote:
> Below is the relevant logcat from an attempt to set the time.
>
> .......
> D/dalvikvm( 1777): GC freed 3122 objects / 193048 bytes in 108ms
> D/dalvikvm( 1805): GC freed 1913 objects / 117352 bytes in 83ms
> D/KeyguardViewMediator( 1739): pokeWakelock(5000)
> I/ARMAssembler( 1739): generated
> scanline__00000077:03545404_00000A04_00000000 [ 29 ipp] (51 ins) at
> [0x2s
> I/ActivityManager( 1739): Start proc com.android.inputmethod.latin for
> service com.android.inputmethod.la}
> D/dalvikvm( 1878): Trying to load lib /system/lib/libjni_latinime.so
> 0x4364bd80
> D/dalvikvm( 1878): Added shared lib /system/lib/libjni_latinime.so
> 0x4364bd80
> D/dalvikvm( 1785): GC freed 1866 objects / 98984 bytes in 104ms
> D/dalvikvm( 1785): GC freed 393 objects / 22288 bytes in 78ms
> I/ActivityManager( 1739): Starting activity: Intent
> { action=android.intent.action.MAIN categories={andro}
> I/ActivityManager( 1739): Start proc com.android.settings for activity
> com.android.settings/.Settings: pi}
> D/dalvikvm( 1715): GC freed 277 objects / 10392 bytes in 108ms
> D/dalvikvm( 1715): GC freed 50 objects / 2144 bytes in 87ms
> D/dalvikvm( 1715): GC freed 2 objects / 48 bytes in 87ms
> W/IInputConnectionWrapper( 1785): showStatusIcon on inactive
> InputConnection
> I/ActivityManager( 1739): Displayed activity
> com.android.settings/.Settings: 973 ms
> D/dalvikvm( 1785): GC freed 291 objects / 13840 bytes in 76ms
> I/ActivityManager( 1739): Starting activity: Intent
> { action=android.intent.action.MAIN comp={com.android}
> I/ActivityManager( 1739): Displayed activity
> com.android.settings/.DateTimeSettings: 877 ms
> D/dalvikvm( 1886): GC freed 4242 objects / 225384 bytes in 78ms
> I/ARMAssembler( 1739): generated
> scanline__00000077:03515104_00000000_00000000 [ 27 ipp] (41 ins) at
> [0x2s
> I/ARMAssembler( 1739): generated
> scanline__00000077:03515104_00001001_00000000 [ 64 ipp] (84 ins) at
> [0x2s
> D/dalvikvm( 1739): GREF has increased to 301
> D/SystemClock( 1886): Setting time of day to sec=631152240
> W/SystemClock( 1886):Unabletoopenalarmdriver: No such file or
> directory
> D/dalvikvm( 1739): GC freed 7089 objects / 326256 bytes in 123ms
> D/dalvikvm( 1878): GC freed 6045 objects / 376224 bytes in 170ms
> D/dalvikvm( 1878): GC freed 9473 objects / 580152 bytes in 85ms
> D/dalvikvm( 1878): GC freed 791 objects / 46048 bytes in 74ms
> D/dalvikvm( 1878): GC freed 1219 objects / 73648 bytes in 139ms
> I/ARMAssembler( 1739): generated
> scanline__00000077:03515104_00001A01_00000000 [ 46 ipp] (68 ins) at
> [0x2s
> D/dalvikvm( 1886): GC freed 13704 objects / 573592 bytes in 104ms
> D/SystemClock( 1886): Setting time of day to sec=489542668
> W/SystemClock( 1886):Unabletoopenalarmdriver: No such file or
> directory
>
> On Aug 14, 2:25 pm, 52x15 <[email protected]> wrote:
>
> > Does anyone know what the recommended process is for porting the set
> > time/date function of Android?
>
> > I haven't really found any recommendations or solutions to the issue.
> > Everything is referencing the actual G1 which is on a cell network.
> > I'd like to change the backend to use ntp or just let me set the time/
> > date manually.
>
> > Currently attempting to do this fails.
>
> > Thanks in advance for your help/suggestions.
>
> > -kieran
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to