I added some quick and dirty drivers to uClinux-coldfire a while back.
It was for the Dallas 1302 - should be pretty much in line with what
you've got on your board. In any case, you can see the files that I
added in Greg's distro.
I don't think that I did it "right", but it worked for my needs. The
startup code initialied the time from the clock, and there was a command
line program that allows you to set the clock and "lock" the clock.
If there's anything I can add, just ask, and I'll look back into it...
Tom Walsh wrote:
> Dai Katoh wrote:
>> I have two questions.
>> 1) Setting a real date and time
>> My simm lives in '70s!
>> The original date(1) command only shows date, and can't set real
>> Is there any good idea or workaround?
> This needs to be addressed with the implementation of a Real Time
> Interface that is a seperate from the kernel. As I believe, the
> current mechanism to set the time / date only affects the value the
> kernel keeps, this does not affect the hardware clock?
> Tom Walsh - Embedded Systems Consultant - tom over_at mytoys(.)com
> 'www.mytoys.com', 'www.openhardware.net', 'www.cyberiansoftware.com'
> "Windows? No thanks, I have work to do..."
This message resent by the email@example.com list server http://www.uClinux.com/
This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:34 EST