Clock synchronization not working using syscall adjtimex

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Clock synchronization not working using syscall adjtimex

720 Views
fred35
Contributor I

Hello,

I am trying to synchronize imx6 cpu clock with the one of a NTP server using NTP protocol. It seems to work using settimeofday (step mode), however I need to implement the slew mode feature (using adjtime) in order to avoid the clock to be suddenly changed. The kernel discipline is performed with the adjtimex syscall. Can someone confirm that this feature cannot work with imx6 hardware?

Analysing the source code, I understand the tick timer is used to make the cpu clock go faster or slower. I suppose the issue is because the clock_event_device is registered with the CLOCK_EVT_FEAT_ONESHOT feature instead of CLOCK_EVT_FEAT_PERIODIC in the tick timer driver (/arch/arm/mach-imx/time.c). The timer is operating in free-running mode.

imx6q SoC

kernel imx_3.10.17_1.0.0_ga

Thank you.

Frederic

Labels (2)
0 Kudos
1 Reply

551 Views
igorpadykov
NXP Employee
NXP Employee

Hi Frederic

3.10.17 release is quite old, one can try 3.14.28 or 3.14.28 from

SABRE Board Reference Design|Freescale

Best regards

igor

0 Kudos