linux4sam / at91bootstrap

Second level bootloader for Microchip SoC (aka AT91)
https://www.linux4sam.org/linux4sam/bin/view/Linux4SAM/AT91Bootstrap4
112 stars 232 forks source link

Fixes RTC precision loss in ACMESYSTEMS boards #108

Closed mrjimenez closed 4 years ago

mrjimenez commented 4 years ago

CONFIG_SCLK does not get set even though it is the default option due to incorrect defconfig files.

https://www.acmesystems.it/ts_timelost

RTC time lost Problem description After setting the hardware RTC with the command:

# hwclock -w

after just few minutes the RTC already lost seconds with the command:

# hwclock -r

Solution This problem is due to an error in the AT91Bootstrap configuration. We missing to set this flag during the make menuconfig setup (see Compile AT91Bootstrap).

The right configuration is this:

Slow Clock Configuration Options ---> [*] Use external 32KHZ oscillator as source of slow clock [ ] Use external 32kHz clock as source of slow clock

Signed-off-by: Marcelo Roberto Jimenez marcelo.jimenez@gmail.com

ehristev commented 4 years ago

Hi, Thanks for this fix ! I edited your short commit message and pushed your changes directly