Looking at the kernel version (4.15.18+) it seems like you are running a
custom kernel. Does this problem happen also with the stock Ubuntu
kernel? Thanks.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1865129

Title:
  /dev/rtc missing despite having configs for RTC in kernel

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  At bootup following error is seen:
  [ 12.041110] rtc_cmos 00:02: RTC can wake from S4
  [ 12.098168] rtc_cmos: probe of 00:02 failed with error -16

  iotadmin@localhost:~$ cat /proc/version*
  Linux version 4.15.18+ ([email protected]) (gcc version 7.4.0 (Ubuntu 
7.4.0-1ubuntu1~18.04.1)) #1 SMP Thu Feb 27 21:58:50 PST 2020

  I have following configs in my kernel.

  CONFIG_RTC_LIB=y
  CONFIG_RTC_MC146818_LIB=y
  CONFIG_RTC_CLASS=y
  CONFIG_RTC_SYSTOHC=y
  CONFIG_RTC_NVMEM=y
  CONFIG_RTC_INTF_SYSFS=y
  CONFIG_RTC_INTF_PROC=y
  CONFIG_RTC_INTF_DEV=y
  CONFIG_RTC_I2C_AND_SPI=y
  CONFIG_RTC_DRV_CMOS=y

  iotadmin@localhost:~$ ls -l /dev/ | grep rtc
  iotadmin@localhost:~$

  iotadmin@localhost:~$ timedatectl
                        Local time: Fri 2020-02-28 09:58:20 UTC
                    Universal time: Fri 2020-02-28 09:58:20 UTC
                          RTC time: n/a
                         Time zone: n/a (UTC, +0000)
         System clock synchronized: yes
  systemd-timesyncd.service active: no
                   RTC in local TZ: no

  iotadmin@localhost:~$ hwclock --debug
  hwclock from util-linux 2.31.1
  System Time: 1582883907.124128
  Trying to open: /dev/rtc0
  Trying to open: /dev/rtc
  Trying to open: /dev/misc/rtc
  No usable clock interface found.
  hwclock: Cannot access the Hardware Clock via any known method.
  iotadmin@localhost:~$

  iotadmin@localhost:~$ uname -a
  Linux localhost 4.15.18+ #1 SMP Thu Feb 27 21:58:50 PST 2020 x86_64 x86_64 
x86_64 GNU/Linux
  iotadmin@localhost:~$

  iotadmin@localhost:~$ cat /proc/devices
  Character devices:
    1 mem
    4 /dev/vc/0
    4 tty
    4 ttyS
    5 /dev/tty
    5 /dev/console
    5 /dev/ptmx
    5 ttyprintk
    7 vcs
   10 misc
   13 input
   21 sg
   89 i2c
  128 ptm
  136 pts
  180 usb
  189 usb_device
  204 ttyMAX
  242 ptp
  243 pps
  244 rpmb
  245 ttyDBC
  246 bsg
  247 hmm_device
  248 watchdog
  249 rtc
  250 dax
  251 dimmctl
  252 ndctl
  253 tpm
  254 gpiochip

  Block devices:
    7 loop
    8 sd
   65 sd
   66 sd
   67 sd
   68 sd
   69 sd
   70 sd
   71 sd
  128 sd
  129 sd
  130 sd
  131 sd
  132 sd
  133 sd
  134 sd
  135 sd
  179 mmc
  259 blkext

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1865129/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to