I'm trying to use ntp_adjtime() in nanokernel, but it was clear to me
that what to pass for the tick_update parameter.
nanokernel suggests that ntp_tick_adjust() to be called every tick for
precision time adjustment, so I hook ntp_tick_adjust() to the tick
interrupt function. The question I have n
On Nov 30, 11:24 pm, Harlan Stenn <[EMAIL PROTECTED]> wrote:
> >>> In article <[EMAIL PROTECTED]>, Aggie <[EMAIL PROTECTED]> writes:
>
> Aggie> I think I found out where the problem is. VxWorks doesn't have
> Aggie> adjtime( ), and the one w
I think I found out where the problem is.
VxWorks doesn't have adjtime( ), and the one we wrote wasn't doing
anything. That's what makes the drift to increase to +500 (I think).
Does that make sense??
We would like to know what adjtime( ) actually does, so we can rewrite
it for VxWorks correctly.
Harlan,
I changed hz to 100 and ran it overnight yesterday. It seemed like it
had affect on the drift file problem, because normally the drift file
would have already been created after 10 hrs, and complained about 500
value in the drift file. But now the drift file still has not been
created yet,
Harlan,
I have been usign the -g option everytime i run ntpd.
> Do I recall you said you were using HZ=60? If so, I recommend trying HZ=100
> instead.
Ok, I will try that tomorrow. I'm testing how many second I gain
without runninig ntpd. Btw, what is the HZ for? what does it do?
> If you loo
David,
> That sounds like a permissions error. I did see something similar in
> Windows some time back. On Windows, at least, you can read the ntp.drift
> file almost any time.
Thank you very much. But I don't think it is a permission error,
because I'm using "target server" thing which allow m
Steve,
> Restart ntpd after deleting the drift file.
I did that. But when I ran it overnight, the drift file with 500 was
created, (but the ntp was still running). Last time when I ran it for
3 days, the drift file had a value of -500 in the end, and ntp had
stopped sync-ing the clock on the clie
Richard.
> If the hardware is under warranty, you ask the vendor to fix it! If
> not, you have a problem! If it's a PC more than three years old,
> consider replacing it! PCs will usually last a lot longer than three
> years but technology moves so fast that three years is almost synonymous
> w
David,
> What happens if you delete the drift file and leave it for a few hours?
After I deleted the drift file and left it run overnight, the drift
file was not created in the first couple hours and when I checked this
morning. ntp.drift and ntp.drift.TEMP were created. ntp.drift couldn't
be open
On Nov 26, 10:54 pm, "David J Taylor" <[EMAIL PROTECTED]
this-bit.nor-this-bit.co.uk> wrote:
> Aggie wrote:
> > After running NTPD on VxWorks for a couple days, the ntp.drift file
> > was set to -500, that made it jump to the infinite loop trying to call
> >
I don't know how much it lose/gain per day yet. I will run it
overnight today. If it is indeed a hardware problem, how can I fix it?
If it is not, what other problem may it be? I saw someone in the forum
who could resolve this problem by changing the HZ varilable in the
kernel to 250. But his origi
After running NTPD on VxWorks for a couple days, the ntp.drift file
was set to -500, that made it jump to the infinite loop trying to call
adjtime(), but VxWorks doesn't have adjtime().
I read the ntp documentation. It suggests to disable the time-of-year
(TOY) clock chip. How do I disable this cl
Brian:
Yes, ntpd wasn't run until after the clock change.
David:
I'm using ntp-dev-4.2.5p83.tar.gz
David:
I'm using option -g, so i can step more than 1000s.
Dear all,
I modified the ntp_io.c and undefine HAVE_TIMESTAMP and
USE_TIMESTAMP_CMSG by adding #if 0, like the following:
/*#if defined(
On Oct 30, 3:51 pm, [EMAIL PROTECTED] (Hal
Murray) wrote:
> >I'm very confused on how ntp do the timestamp. I'm running ntpd on
> >vxworks. It seems to me that the receive timestamp and the Transmit
> >timestamp are using two different clocks, because when I use ethereal/
> >wireshark to look up th
On Oct 30, 4:01 pm, [EMAIL PROTECTED] (David
Woolley) wrote:
> In article <[EMAIL PROTECTED]>,
>
> Aggie <[EMAIL PROTECTED]> wrote:
> > To have NTPD run on VxWorks and Windows. Set VxWorks as the Server
> > couple minutes, the clock on Windows was changed to 5
Dear all,
I'm very confused on how ntp do the timestamp. I'm running ntpd on
vxworks. It seems to me that the receive timestamp and the Transmit
timestamp are using two different clocks, because when I use ethereal/
wireshark to look up the information of the ntp packet,
the Recevie Time Stamp is:
Here's what I want to do:
To have NTPD run on VxWorks and Windows. Set VxWorks as the Server
and Windows as the Client. My Ulitmate goal is the sync these two
clocks.
Here's the scenario:
Whenever I power cycle VxWorks, it will set the clock to 00:00, Jan
1, 1970. It's default. I wrote a simpl
Sorry for posting the whole output messages.
When I run ntpd with the debug option, I get the followings: //please
take a quick look.
If you do the search on "calling getaddrinfo(192.168.0.2,...)" from
the following log, you will see
getnetnum: calling getaddrinfo(192.168.0.2,...)
reval before =
Dear all,
I have been trying to port ntp to vxworks. I finally got it compiled
and semi-running on vxworks last week. But here's come another
problem. I couldn't start the ntpd service on vxworks. It just got
stuck at the infinite loop. Here's what I saw at the
1 Jan 00:00:35 ntpd[49458416]: ntpd
Hey, Thanks, I got it to work. I just needed to reset the environment
variable. Thanks...
___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions
After I "make" the ntpd, I found out the executable generated from
"make" can't handle datatype double. Whenever I printf or do any
caculation with double, ntpd will hang.
Then I wrote a simple hello world program to printf double, it also
hangs with regular gcc command.
For example:
//test.c
#i
Dear all,
I know this may sound stupid =D, but I have been trying for awhile, so
here it goes.
How to run NTPD on VxWorks. VxWorks is a RTOS, and sp means spawn
process.
I typed:
-> sp(ntpd, "-c", "/romfs/ntp.conf")// at the command prompt,
but it gave me this:
=
On Aug 9, 11:33 pm, [EMAIL PROTECTED] (David
Woolley) wrote:
> In article <[EMAIL PROTECTED]>,
>
> Aggie <[EMAIL PROTECTED]> wrote:
> > Machine Check
>
> Machine check should never be the result of software problems (except
> kernel ones which leave the hardw
Thank you, everyone!! =D
___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions
Thanks Vivian!! It works now. I don't know why mine didn't work
before. Thanks a lot.
___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions
Hi Viven,
How long did it take you to generate the files?? I'm working on the
similar things as u. But I couldn't generate any files. Alright,
Thanks.
___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions
Thank you very much. I still don't see any file generated.
Here's my ntp.conf:
driftfile "C:\Program Files\NTP\etc\ntp.drift"
server 192.168.1.2 prefer minpoll 4 maxpoll 4
enable stats
statistics clockstats peerstats loopstats rawstats sysstats
statsdir "C:\Program Files\NTP\etc\"
filegen clock
Hi Vivien,
Can you post ur ntp.conf here? Thanks.
Kevin Lam
___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions
Thank you everyone for the input. I know I suck. After all the advices
and suggestion, I think of two problems:
1.) VxWorks doesn't have getpagesize() or _SC_PAGESIZE, so basically I
just guess the value. I check the kernel configuration of the VxWorks,
and saw the VM page size is 4096. I "assume"
Basically, what i need is how to add to the ntp.conf to record
statistics. Thanks =D
___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions
On Aug 10, 12:15 pm, [EMAIL PROTECTED] (Per Hedeland) wrote:
> In article <[EMAIL PROTECTED]>
>
> [EMAIL PROTECTED] (David Woolley) writes:
> >In article <[EMAIL PROTECTED]>,
> >Aggie <[EMAIL PROTECTED]> wrote:
>
> >> Machine Check
>
> >M
Harlan Stenn,
I'm still working on the porting. I will add content to the link as
soon as i figure it out. Thanks.
___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions
Dear all,
Here's what I want to do. I want to change the clock on my client
machine will automatically adjust when I change the clock on my server
machine. And I also want to record the statistics.
Here's what I did: I use an ethernet cable connect directly between
these two machine. And I'm not
Oh, NO! But it works if I didn't import ntpd. It works if I just want
to display hello world on the lcd and blinking the led...
___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions
Thanks Harlan Stenn,
After I edited the adjtime.c with casey's cote, I'm able to load ntpd
with no warning about the unresolved symbol. What's next?? How do I
test if this ntpd is working or not? I tried to just type ntpd at the
prompt and see if it runs, but it gave me error, here's what shown:
What do you mean by "followed the SYS_VXWORKS" code in the tree?
I just found out that there's a variable called nofork in ntp, i think
i will just need to set this variable to 1, then i won't need to use
fork().
Wait() and pipe() are only called in makeshell.cWhat does this
file do?? Do i ha
Dear All,
I have been working on porting NTP to VxWorks. When I load the ntpd
to
the target, it gives me a list of unresolved symbols. Here's the
list:
SetLastError, getpagesize, sys_nerr, adjtime, pipe, wait, fork,
sys_errlist, getaddrinfo, cannonicalize_file_name, _exit.
The list was longer when
37 matches
Mail list logo