linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* MPC5200 ppc_md.set_rtc_time
@ 2005-12-16  0:15 bennett78
  2005-12-16 10:42 ` Andrey Volkov
  0 siblings, 1 reply; 5+ messages in thread
From: bennett78 @ 2005-12-16  0:15 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 871 bytes --]

Hi:
   How / when does "ppc_md.set_rtc_time" get filled
in for Lite5200?

Config for support /dev/rtc enables CONFIG_PPC_RTC
which enable driver/char/rtc.c which mentions CMOS_WRITE
panics the kernel!

I trying to use driver/char/genrtc.c.   I can set date
but not hwclock.

 > hwclock --set --date="9/22/96 16:45:05"
gen_set_rtc_irq_bit:exit
gen_rtc_ioctl RTC_SET_TIME 00000060
RTC_SET_TIME: Invalid argument
ioctl() to /dev/rtc to set the time failed.

bash-2.05b# cat /proc/driver/rtc
rtc_time        : 00:50339648:36914
rtc_date        : -1072186980-497--1073718072
rtc_epoch       : 1900
alarm           : 00:00:00
DST_enable      : no
BCD             : yes
24hr            : yes
square_wave     : no
alarm_IRQ       : no
update_IRQ      : no  <----- how can I hook one?
periodic_IRQ    : no
periodic_freq   : 0
batt_status     : okay


thanks,

*/Frank Bennett
/*


[-- Attachment #2: Type: text/html, Size: 1876 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: MPC5200 ppc_md.set_rtc_time
  2005-12-16  0:15 MPC5200 ppc_md.set_rtc_time bennett78
@ 2005-12-16 10:42 ` Andrey Volkov
  2005-12-16 15:33   ` bennett78
  0 siblings, 1 reply; 5+ messages in thread
From: Andrey Volkov @ 2005-12-16 10:42 UTC (permalink / raw)
  To: ML linuxppc-embedded

Hello Frank,

bennett78 wrote:
> Hi:
>    How / when does "ppc_md.set_rtc_time" get filled
> in for Lite5200?
> 
> Config for support /dev/rtc enables CONFIG_PPC_RTC
> which enable driver/char/rtc.c which mentions CMOS_WRITE
> panics the kernel!
> 
> I trying to use driver/char/genrtc.c.   I can set date
> but not hwclock.
> 
>> hwclock --set --date="9/22/96 16:45:05"
> gen_set_rtc_irq_bit:exit
> gen_rtc_ioctl RTC_SET_TIME 00000060
> RTC_SET_TIME: Invalid argument
> ioctl() to /dev/rtc to set the time failed.
> 
> bash-2.05b# cat /proc/driver/rtc
> rtc_time        : 00:50339648:36914
> rtc_date        : -1072186980-497--1073718072
> rtc_epoch       : 1900
> alarm           : 00:00:00
> DST_enable      : no
> BCD             : yes
> 24hr            : yes
> square_wave     : no
> alarm_IRQ       : no
> update_IRQ      : no  <----- how can I hook one?
> periodic_IRQ    : no
> periodic_freq   : 0
> batt_status     : okay
> 
> 
> thanks,
> 
> */Frank Bennett
> /*
For 2.6 kernel, check arch/ppc/syslib/lite5200.c, especially
platform_init() (at the end of file).

--
Regards
Andrey Volkov

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: MPC5200 ppc_md.set_rtc_time
  2005-12-16 10:42 ` Andrey Volkov
@ 2005-12-16 15:33   ` bennett78
  2005-12-16 15:42     ` bennett78
  0 siblings, 1 reply; 5+ messages in thread
From: bennett78 @ 2005-12-16 15:33 UTC (permalink / raw)
  To: Andrey Volkov; +Cc: ML linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 1643 bytes --]

Andrey Volkov wrote:

>Hello Frank,
>
>bennett78 wrote:
>  
>
>>Hi:
>>   How / when does "ppc_md.set_rtc_time" get filled
>>in for Lite5200?
>>
>>Config for support /dev/rtc enables CONFIG_PPC_RTC
>>which enable driver/char/rtc.c which mentions CMOS_WRITE
>>panics the kernel!
>>
>>I trying to use driver/char/genrtc.c.   I can set date
>>but not hwclock.
>>
>>    
>>
>>>hwclock --set --date="9/22/96 16:45:05"
>>>      
>>>
>>gen_set_rtc_irq_bit:exit
>>gen_rtc_ioctl RTC_SET_TIME 00000060
>>RTC_SET_TIME: Invalid argument
>>ioctl() to /dev/rtc to set the time failed.
>>
>>bash-2.05b# cat /proc/driver/rtc
>>rtc_time        : 00:50339648:36914
>>rtc_date        : -1072186980-497--1073718072
>>rtc_epoch       : 1900
>>alarm           : 00:00:00
>>DST_enable      : no
>>BCD             : yes
>>24hr            : yes
>>square_wave     : no
>>alarm_IRQ       : no
>>update_IRQ      : no  <----- how can I hook one?
>>periodic_IRQ    : no
>>periodic_freq   : 0
>>batt_status     : okay
>>
>>
>>thanks,
>>
>>*/Frank Bennett
>>/*
>>    
>>
>For 2.6 kernel, check arch/ppc/syslib/lite5200.c, especially
>platform_init() (at the end of file).
>  
>
Andrey:
    Thanks, sorry I forgot to mention I'm on DENX linuxppc_2_4_devel.
Where is the linuxppc 2.6.x distribution?
Is anyone maintaining a checklist of working features for imbedded 2.6?
Is this mail list searchable? (other than a month at a time?)

Merry Christmas
Frank Bennett

>--
>Regards
>Andrey Volkov
>
>
>
>
>_______________________________________________
>Linuxppc-embedded mailing list
>Linuxppc-embedded@ozlabs.org
>https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
>  
>



[-- Attachment #2: Type: text/html, Size: 2441 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: MPC5200 ppc_md.set_rtc_time
  2005-12-16 15:33   ` bennett78
@ 2005-12-16 15:42     ` bennett78
  2005-12-16 16:13       ` Andrey Volkov
  0 siblings, 1 reply; 5+ messages in thread
From: bennett78 @ 2005-12-16 15:42 UTC (permalink / raw)
  To: Frank Bennett; +Cc: ML linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 2251 bytes --]

bennett78 wrote:

> Andrey Volkov wrote:
>
>>Hello Frank,
>>
>>bennett78 wrote:
>>  
>>
>>>Hi:
>>>   How / when does "ppc_md.set_rtc_time" get filled
>>>in for Lite5200?
>>>
>>>Config for support /dev/rtc enables CONFIG_PPC_RTC
>>>which enable driver/char/rtc.c which mentions CMOS_WRITE
>>>panics the kernel!
>>>
>>>I trying to use driver/char/genrtc.c.   I can set date
>>>but not hwclock.
>>>
>>>    
>>>
>>>>hwclock --set --date="9/22/96 16:45:05"
>>>>      
>>>>
>>>gen_set_rtc_irq_bit:exit
>>>gen_rtc_ioctl RTC_SET_TIME 00000060
>>>RTC_SET_TIME: Invalid argument
>>>ioctl() to /dev/rtc to set the time failed.
>>>
>>>bash-2.05b# cat /proc/driver/rtc
>>>rtc_time        : 00:50339648:36914
>>>rtc_date        : -1072186980-497--1073718072
>>>rtc_epoch       : 1900
>>>alarm           : 00:00:00
>>>DST_enable      : no
>>>BCD             : yes
>>>24hr            : yes
>>>square_wave     : no
>>>alarm_IRQ       : no
>>>update_IRQ      : no  <----- how can I hook one?
>>>periodic_IRQ    : no
>>>periodic_freq   : 0
>>>batt_status     : okay
>>>
>>>
>>>thanks,
>>>
>>>*/Frank Bennett
>>>/*
>>>    
>>>
>>For 2.6 kernel, check arch/ppc/syslib/lite5200.c, especially
>>platform_init() (at the end of file).
>>    
>>
is this your point?
linux-2.6.12/arch/ppc/platforms/lite5200.c
      /* No time keeper on the LITE5200 */
    ppc_md.time_init    = NULL;
    ppc_md.get_rtc_time = NULL;
    ppc_md.set_rtc_time = NULL;

I don't see any arch/ppc/syslib/lite5200.c

>>  
>>
> Andrey:
>     Thanks, sorry I forgot to mention I'm on DENX linuxppc_2_4_devel.
> Where is the linuxppc 2.6.x distribution?
> Is anyone maintaining a checklist of working features for imbedded 2.6?
> Is this mail list searchable? (other than a month at a time?)
>
> Merry Christmas
> Frank Bennett
>
>>--
>>Regards
>>Andrey Volkov
>>
>>
>>
>>
>>_______________________________________________
>>Linuxppc-embedded mailing list
>>Linuxppc-embedded@ozlabs.org
>>https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>>
>>  
>>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Linuxppc-embedded mailing list
>Linuxppc-embedded@ozlabs.org
>https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>



[-- Attachment #2: Type: text/html, Size: 3648 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: MPC5200 ppc_md.set_rtc_time
  2005-12-16 15:42     ` bennett78
@ 2005-12-16 16:13       ` Andrey Volkov
  0 siblings, 0 replies; 5+ messages in thread
From: Andrey Volkov @ 2005-12-16 16:13 UTC (permalink / raw)
  To: Frank Bennett; +Cc: ML linuxppc-embedded

bennett78 wrote:
> bennett78 wrote:
> 
>> Andrey Volkov wrote:
>>
>>>Hello Frank,
>>>
>>>bennett78 wrote:
>>>  
>>>
>>>>Hi:
>>>>   How / when does "ppc_md.set_rtc_time" get filled
>>>>in for Lite5200?
>>>>
>>>>Config for support /dev/rtc enables CONFIG_PPC_RTC
>>>>which enable driver/char/rtc.c which mentions CMOS_WRITE
>>>>panics the kernel!
>>>>
>>>>I trying to use driver/char/genrtc.c.   I can set date
>>>>but not hwclock.
>>>>
>>>>    
>>>>
>>>>>hwclock --set --date="9/22/96 16:45:05"
>>>>>      
>>>>>
>>>>gen_set_rtc_irq_bit:exit
>>>>gen_rtc_ioctl RTC_SET_TIME 00000060
>>>>RTC_SET_TIME: Invalid argument
>>>>ioctl() to /dev/rtc to set the time failed.
>>>>
>>>>bash-2.05b# cat /proc/driver/rtc
>>>>rtc_time        : 00:50339648:36914
>>>>rtc_date        : -1072186980-497--1073718072
>>>>rtc_epoch       : 1900
>>>>alarm           : 00:00:00
>>>>DST_enable      : no
>>>>BCD             : yes
>>>>24hr            : yes
>>>>square_wave     : no
>>>>alarm_IRQ       : no
>>>>update_IRQ      : no  <----- how can I hook one?
>>>>periodic_IRQ    : no
>>>>periodic_freq   : 0
>>>>batt_status     : okay
>>>>
>>>>
>>>>thanks,
>>>>
>>>>*/Frank Bennett
>>>>/*
>>>>    
>>>>
>>>For 2.6 kernel, check arch/ppc/syslib/lite5200.c, especially
>>>platform_init() (at the end of file).
>>>    
>>>
> is this your point?
> linux-2.6.12/arch/ppc/platforms/lite5200.c
>       /* No time keeper on the LITE5200 */
>     ppc_md.time_init    = NULL;
>     ppc_md.get_rtc_time = NULL;
>     ppc_md.set_rtc_time = NULL;
> 
Yes.

> I don't see any arch/ppc/syslib/lite5200.c
But, sorry, from which file are you quotating prev code ;)?

> 
>>>  
>>>
>> Andrey:
>>     Thanks, sorry I forgot to mention I'm on DENX linuxppc_2_4_devel.
>> Where is the linuxppc 2.6.x distribution?
Check here http://www.denx.de/cgi-bin/gitweb.cgi?p=linux-2.6-denx.git

>> Is anyone maintaining a checklist of working features for imbedded 2.6?
>> Is this mail list searchable? (other than a month at a time?)
>>
AFAIK - no. By very simple reason - all drivers in vanilla kernel MUST
be work, if some code not in Linus git, then it (usually) unstable or in
the pending stage.

--
Regards
Andrey Volkov

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-12-16 16:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-16  0:15 MPC5200 ppc_md.set_rtc_time bennett78
2005-12-16 10:42 ` Andrey Volkov
2005-12-16 15:33   ` bennett78
2005-12-16 15:42     ` bennett78
2005-12-16 16:13       ` Andrey Volkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).