On 19 November 2012 00:52, Leo Yan leoy@marvell.com wrote:
Now when i debug the Linux kernel on Fast Model (A15x1+A7x1), i found the generic timer's frequency cannot work properly.
In the boot-wrapper, it has set the frequency as 24MHz; and i also use the modeldebugger to confirm it has been set successfully. But after the linux kernel bootup, i saw the counter register increased quicker than 24MHz, so that the kernel cannot get the correct timestamp.
I'm not sure it's a issue originally come from the model? Or i miss something. There have method to fix this issue? Any suggestion will be appreciate.
The timer on the model is not wall-clock (or real) time. It increments based on the number of instructions executed and it quickly gets out of sync with the real time. We found that 100MHz got closer but it is highly dependent on the host machine.