On 18 January 2012 14:24, Siji Sunny <[email protected]> wrote:

> On Wed, Jan 18, 2012 at 2:03 PM, Pravinkumar Chavan <
> [email protected]> wrote:
>
> > 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.
> >
>
> Am sure debian repo. should contain binary (deb) package of NTP.
> have a look into  http://packages.debian.org/
>
>
> 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
> >
>
> Where is your tool chain definition for cross compiling this for MIPS ?
> Since you are trying to compile NTP from i386-linux host PC, you should
> define target system (MIPS) with a appropriate cross compiler.
>
> My toolchain is located at /opt/crosstoll-0.43
Please correct me if am wrong... While compiling other too called i2c I did
same thing i.e make CC=mipsellinux-gcc and it done properly.
While executing make its showing that mipsel-linux-gcc inst-ed of just gcc.
Can you please guide me...

>
>
> > 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
> >
> Refer http://www.linux-mips.org/wiki/Toolchains For how to setup up cross
> compilation environment for MIPS.
> Or explore setup OpenEmbeded or Scratch Box.
> I have set up the cross tool under /opt
>
>
> >
> > 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
> >
>
>
>
> --
> 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