Olimex SAM9-L9260 losing considerable time

Hi,

I am working on an Olimex SAM9-L9260- Uses Linux 2.6.23 (debian) with u-boot(1.20) and at91 bootstrap loader

I am having considerable difficulty in trying to keep the time in synch with ntp servers-

I have proceeded as follows:

  1. ntpdate 192.96.5.5 (do a crude adjustment to the time since the RTC does not work)

  2. set up ntp daemon

  3. Ran ntp daemon for 2 days to try and use ntp.drift- although I know this has a max of 500ppm

  4. Still out by a long way (talking about 3 second/minute)

  5. used tickadj 11000 (previous tick was 10000). This help quite a bit but still not perfect- this suggests to me that linux is getting the wrong crystal frequency from U-Boot or something along these lines- cat /proc/cpuinfo gives me no information on CPU clock

  6. Tried to look at U-boot frequency by using bdinfo but this command does not appear to be available on my version of u-boot (1.20)

Any suggestion gratefully accepted

Hi- This issue has been solved by upgrading kernel- I believe U-boot was not passing a suitable CPU clock frequency to the kernel for some reasons-

cat /proc/cpuinfo did not give a CPU speed- the new kernel 2.6.26.2 that I am using gives BogoMIPS as a output to /proc/cpuinfo and the board keeps time beautifully-

I am now just trying to get the RTC working- hopefully this will not be too difficult.