Well, rtc0 is most likely the on AM335x on die real time clock, which will not persist time across reboots.
On Thu, Jul 27, 2017 at 7:54 PM, William B <wbbena...@gmail.com> wrote: > Finally I got ... the last hint from William Hermans indicated me > something about the device name, which could be "rtcX", which made me > execute: "ls -la /dev/rtc*": > > root@beaglebone:~# ls -la /dev/rtc* > lrwxrwxrwx 1 root root 4 May 21 2016 /dev/rtc -> rtc0 > crw------- 1 root root 254, 0 May 21 2016 /dev/rtc0 > > 1) Replace "rtc1" with "rtc0" in the commands and everything works! (the > system date and time were already correct): > > hwclock -w -f /dev/rtc0 > > 2) To test if it worked and if the date and time were actually adjusted, I > changed the system time, restarted the BBB and disconnected it from the > internet to ensure the date and time would not be auto-tuned. After > restarting it, I checked if the system time was still wrong and then read > the RTC time (which must be correct!). > > hwclock -r -f /dev/rtc0 > > It works!!! RTC date and time were correct. > > I don't even know how to thank everyone for their help. It should be > simple to solve this problem, but it takes a lot of time, especially for > those who don't have experience like me. > > Thank you very much! > > > > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to beagleboard+unsubscr...@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/beagleboard/9c2b0a36-e70d-4fec-a904-6a0f6b5e0a49%40googlegroups.com > <https://groups.google.com/d/msgid/beagleboard/9c2b0a36-e70d-4fec-a904-6a0f6b5e0a49%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CALHSORrnv9o8x6kTfvKJpXCkQNQOUNKz3eN2Cf9syXOibW3%2B9A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.