-
-
Save Gadgetoid/57084ec5817142a118ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dts-v1/; | |
/ { | |
compatible = "brcm,bcm2709"; | |
fragment@0 { | |
target-path = "/timer"; | |
__overlay__ { | |
always-on; | |
}; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NOTE
This is an old fix to a temporary problem with the first official release of Raspbian, it's no longer required nor recommended.
It is presented here only for posterity:
This is a minimalist fix for the temporary Raspbian timer issue on Raspberry Pi 2.
The Problem
This bug involves timing of things like usleep, and only occurs with device-tree enabled in Raspbian on the Raspberry Pi 2. To check if you're having this issue create time.c:
Then time it:
gcc time.c -o timetest time ./timetest
You will generally see this take about 1.08sec without the bug, and around 20sec with.
The ( Temporary ) Fix
Compile with Device Tree Compiler:
Install it into your overlays folder:
Enable by adding this line in /boot/config.txt