no rtc

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

    • Hi,

      bitte in der /etc/default/ntpdate datei UPDATE_HWCLOCK="no" option setzen.
      hwclock funktioniert nicht weil keine rtc verfügbar ist, der halbstündige cronjob wirft immer ne fhlermeldung aus.




      Quellcode

      1. root@et10000:~# cat /etc/cron/root
      2. 30 * * * * /usr/bin/ntpdate-sync silent





      Quellcode

      1. root@et10000:~# /usr/bin/ntpdate-sync
      2. root@et10000:~# hwclock: Cannot access the Hardware Clock via any known method.
      3. hwclock: Use the --debug option to see the details of our search for an access method.




      Quellcode

      1. ...
      2. /usr/sbin/ntpdate -s $OPTS $NTPSERVERS 2>/dev/null; then
      3. if [ "$UPDATE_HWCLOCK" = "yes" ]; then
      4. hwclock --systohc || :
      5. fi
      6. fi
      7. ...



      Quellcode

      1. root@et10000:~# cat /etc/default/ntpdate
      2. # Configuration script used by ntpdate-sync script
      3. NTPSERVERS="pool.ntp.org"
      4. # Set to "yes" to write time to hardware clock on success
      5. UPDATE_HWCLOCK="yes"


      /usr/sbin/ntpdate -s pool.ntp.org -> OK

      hwclock --systohc -> hwclock not found

      Quellcode

      1. root@et10000:~# hwclock --systohc --debug
      2. hwclock from util-linux 2.23.2
      3. hwclock: cannot open /dev/rtc: No such file or directory
      4. No usable clock interface found.
      5. hwclock: Cannot access the Hardware Clock via any known method.

    Unsere Partnerboards

    ^
    Flag Counter