On 18 January 2012 13:31, Siji Sunny <[email protected]> wrote:

> On Wed, Jan 18, 2012 at 1:21 PM, Pravinkumar Chavan <
> [email protected]> wrote:
>
> > HI All,
> >
> > I have enabled the rtc for my device now I want to set rtc register to
> > standard time so that I can update my system time.
> > Any one have any clue how can I do that with shell script.
> > The idea is :
> > 1. to connect central server
> > 2. get the date and time from there
> > 3. use that date and time to configure RTC register
> >
>
> You may able to implement it by using NTP (Network Time Protocol).
>
> http://www.ntp.org/
>
> Thanks for your reply..
I am trying with NTP but its not install on my embedded device...
So I downloaded from ntp website.
did following:
1. extracted at downloads
2. read install script...
3. ./configure --prefix=path...(where I want to get files)
4. make CC=mipsel-linux-gcc

but here I got the error...

So in make file I change CC = mipsel-linux-gcc  earlier it was CC = gcc
-std=gnu99
I dont understand what option means..
As my system is mipsel based I need to crosscompile it...
But while make is executing it still shows gcc not mipsel-linux-gcc

Can you please tell me how to cross compile it for mipsel-linux-system
My gcc is mipsel-linux-gcc v3.4.4

Also I just want to set the time for RTC on device once as per the standard
time ....so is there any other way to do this from server and shell script?

>
> >
> > Thank in advanced..
> >
> > --
> > **
> > _________________________
> >
> > Pravinkumar Chavan
> > Software Engineer
> > +919867107370
> > En Route Media Pvt. Ltd.
> >
> >
> > **
> > *_________________________*
> > *
> > *
> > --
> > http://mm.ilug-bom.org.in/mailman/listinfo/linuxers
> >
>
>
>
> --
> Siji Sunny
> --
> http://mm.ilug-bom.org.in/mailman/listinfo/linuxers
>



-- 
**
_________________________

Pravinkumar Chavan
Software Engineer
+919867107370
En Route Media Pvt. Ltd.


**
*_________________________*
*
*
--
http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

Reply via email to