MPC5200 ppc_md.set_rtc_time
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.
Quoted 1 line
hwclock --set --date="9/22/96 16:45:05"
gen_set_rtc_irq_bit:exitgen_rtc_ioctl RTC_SET_TIME 00000060RTC_SET_TIME: Invalid argumentioctl() to /dev/rtc to set the time failed.
bash-2.05b# cat /proc/driver/rtcrtc_time : 00:50339648:36914rtc_date : -1072186980-497--1073718072rtc_epoch : 1900
alarm : 00:00:00DST_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
/*
Hello Frank,
Quoted 33 lines · bennett78 wrote:
Hi:
How / when does "ppc_md.set_rtc_time" get filled
in for Lite5200?Config for support
/dev/rtcenablesCONFIG_PPC_RTCwhich enabledriver/char/rtc.cwhich mentionsCMOS_WRITEpanics the kernel!I trying to use
driver/char/genrtc.c. I can set date
but not hwclock.Quoted 1 line
hwclock --set --date="9/22/96 16:45:05"
gen_set_rtc_irq_bit:exit
gen_rtc_ioctlRTC_SET_TIME00000060RTC_SET_TIME: Invalid argumentioctl()to/dev/rtcto set the time failed.bash-2.05b# cat
/proc/driver/rtcrtc_time: 00:50339648:36914rtc_date: -1072186980-497--1073718072rtc_epoch: 1900
alarm : 00:00:00DST_enable: no
BCD : yes24hr : yes square_wave : no alarm_IRQ : no update_IRQ : no <----- how can I hook one? periodic_IRQ : no periodic_freq : 0 batt_status : okay
Quoted 4 lines
thanks,
*/Frank Bennett
/*
For 2.6 kernel, check arch/ppc/syslib/lite5200.c, especially platform_init() (at the end of file).
--
Regards
Andrey Volkov
Quoted 42 lines · Andrey Volkov
Hello Frank,
Quoted 37 lines · bennett78 wrote:
Hi:
How / when does "ppc_md.set_rtc_time" get filled
in for Lite5200?Config for support
/dev/rtcenablesCONFIG_PPC_RTCwhich enabledriver/char/rtc.cwhich mentionsCMOS_WRITEpanics the kernel!I trying to use
driver/char/genrtc.c. I can set date
but not hwclock.Quoted 3 lines
hwclock --set --date="9/22/96 16:45:05"
gen_set_rtc_irq_bit:exit
gen_rtc_ioctlRTC_SET_TIME00000060RTC_SET_TIME: Invalid argumentioctl()to/dev/rtcto set the time failed.bash-2.05b# cat
/proc/driver/rtcrtc_time: 00:50339648:36914rtc_date: -1072186980-497--1073718072rtc_epoch: 1900
alarm : 00:00:00DST_enable: no
BCD : yes24hr : yes square_wave : no alarm_IRQ : no update_IRQ : no <----- how can I hook one? periodic_IRQ : no periodic_freq : 0 batt_status : okay
Quoted 10 lines
Quoted 6 lines
thanks,
*/Frank Bennett
/*For 2.6 kernel, check
arch/ppc/syslib/lite5200.c, especiallyplatform_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
Quoted 14 lines
--
Regards
Andrey Volkov_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Quoted 46 lines · bennett78 wrote:
Quoted 44 lines · Andrey Volkov
Hello Frank,
Quoted 39 lines · bennett78 wrote:
Hi:
How / when does "ppc_md.set_rtc_time" get filled
in for Lite5200?Config for support
/dev/rtcenablesCONFIG_PPC_RTCwhich enabledriver/char/rtc.cwhich mentionsCMOS_WRITEpanics the kernel!I trying to use
driver/char/genrtc.c. I can set date
but not hwclock.Quoted 3 lines
hwclock --set --date="9/22/96 16:45:05"
gen_set_rtc_irq_bit:exit
gen_rtc_ioctlRTC_SET_TIME00000060RTC_SET_TIME: Invalid argumentioctl()to/dev/rtcto set the time failed.bash-2.05b# cat
/proc/driver/rtcrtc_time: 00:50339648:36914rtc_date: -1072186980-497--1073718072rtc_epoch: 1900
alarm : 00:00:00DST_enable: no
BCD : yes24hr : yes square_wave : no alarm_IRQ : no update_IRQ : no <----- how can I hook one? periodic_IRQ : no periodic_freq : 0 batt_status : okaythanks,
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
*/Frank Bennett
/*For 2.6 kernel, check
arch/ppc/syslib/lite5200.c, especiallyplatform_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
Quoted 34 lines
Quoted 2 lines
Andrey:
Thanks, sorry I forgot to mention I'm on DENXlinuxppc_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 BennettQuoted 7 lines
--
Regards
Andrey VolkovQuoted 7 lines
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded------------------------------------------------------------------------
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Quoted 56 lines · bennett78 wrote:
Quoted 46 lines · bennett78 wrote:
Quoted 44 lines · Andrey Volkov
Hello Frank,
Quoted 39 lines · bennett78 wrote:
Hi:
How / when does "ppc_md.set_rtc_time" get filled
in for Lite5200?Config for support
/dev/rtcenablesCONFIG_PPC_RTCwhich enabledriver/char/rtc.cwhich mentionsCMOS_WRITEpanics the kernel!I trying to use
driver/char/genrtc.c. I can set date
but not hwclock.Quoted 3 lines
hwclock --set --date="9/22/96 16:45:05"
gen_set_rtc_irq_bit:exit
gen_rtc_ioctlRTC_SET_TIME00000060RTC_SET_TIME: Invalid argumentioctl()to/dev/rtcto set the time failed.bash-2.05b# cat
/proc/driver/rtcrtc_time: 00:50339648:36914rtc_date: -1072186980-497--1073718072rtc_epoch: 1900
alarm : 00:00:00DST_enable: no
BCD : yes24hr : yes square_wave : no alarm_IRQ : no update_IRQ : no <----- how can I hook one? periodic_IRQ : no periodic_freq : 0 batt_status : okaythanks,
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
*/Frank Bennett
/*For 2.6 kernel, check
arch/ppc/syslib/lite5200.c, especiallyplatform_init()(at the end of file).
Quoted 7 lines
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.
Quoted 1 line
I don't see any
arch/ppc/syslib/lite5200.c
But, sorry, from which file are you quotating prev code ;)?
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Andrey:
Thanks, sorry I forgot to mention I'm on DENXlinuxppc_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
Quoted 3 lines
Quoted 3 lines
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