parisc hardware clock
On my Gentoo hppa systems with custom kernels, I get the following error on bootup:
* Setting system clock using the hardware clock [UTC] ...
hwclock: settimeofday() failed: Invalid argument
* Failed to set the system clock
Once the system has booted up, hwclock --hctosys and hwclock --systohc work fine. Maybe something related to gentoo /etc/init.d/hwclock but before reporting it there I want to understand it first.
What RTC driver and options should be selected in the kernel for RTC operations to work?
I have only RTC_DRV_GENERIC set for RTC drivers.
CONFIG_RTC_LIB=yCONFIG_RTC_CLASS=yCONFIG_RTC_HCTOSYS=yCONFIG_RTC_HCTOSYS_DEVICE="rtc0"CONFIG_RTC_SYSTOHC=yCONFIG_RTC_SYSTOHC_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set
#
# RTC interfaces
#CONFIG_RTC_INTF_SYSFS=yCONFIG_RTC_INTF_PROC=yCONFIG_RTC_INTF_DEV=yCONFIG_RTC_INTF_DEV_UIE_EMUL=y
# CONFIG_RTC_DRV_TEST is not set
#
# I2C RTC drivers
#
#
# SPI RTC drivers
#
#
# SPI and I2C RTC drivers
#
#
# Platform RTC drivers
#
# CONFIG_RTC_DRV_DS1286 is not set
# CONFIG_RTC_DRV_DS1511 is not set
# CONFIG_RTC_DRV_DS1553 is not set
# CONFIG_RTC_DRV_DS1685_FAMILY is not set
# CONFIG_RTC_DRV_DS1742 is not set
# CONFIG_RTC_DRV_DS2404 is not set
# CONFIG_RTC_DRV_STK17TA8 is not set
# CONFIG_RTC_DRV_M48T86 is not set
# CONFIG_RTC_DRV_M48T35 is not set
# CONFIG_RTC_DRV_M48T59 is not set
# CONFIG_RTC_DRV_MSM6242 is not set
# CONFIG_RTC_DRV_BQ4802 is not set
# CONFIG_RTC_DRV_RP5C01 is not set
# CONFIG_RTC_DRV_V3020 is not set
#
# on-CPU RTC drivers
#CONFIG_RTC_DRV_GENERIC=y
#
# HID Sensor RTC drivers
#
Signature · 1 line
Meelis Roos ([email protected])
Quoted 6 lines · Meelis Roos
On my Gentoo hppa systems with custom kernels, I get the following error on bootup:
* Setting system clock using the hardware clock [UTC] ...
hwclock:settimeofday()failed: Invalid argument
* Failed to set the system clock
I don't see this on debian...
Quoted 9 lines
Once the system has booted up, hwclock --hctosys and hwclock --systohc work fine. Maybe something related to gentoo
/etc/init.d/hwclockbut before reporting it there I want to understand it first.What RTC driver and options should be selected in the kernel for RTC operations to work?
I have only
RTC_DRV_GENERICset for RTC drivers.
I have pretty much the same config options:CONFIG_RTC_LIB=yCONFIG_RTC_CLASS=yCONFIG_RTC_HCTOSYS=yCONFIG_RTC_HCTOSYS_DEVICE="rtc0"CONFIG_RTC_SYSTOHC=yCONFIG_RTC_SYSTOHC_DEVICE="rtc0"CONFIG_RTC_INTF_SYSFS=yCONFIG_RTC_INTF_PROC=yCONFIG_RTC_INTF_DEV=yCONFIG_RTC_I2C_AND_SPI=yCONFIG_RTC_DRV_GENERIC=y
The only difference seems to be that I don't have
CONFIG_RTC_INTF_DEV_UIE_EMUL=y
Helge
Quoted 54 lines
CONFIG_RTC_LIB=yCONFIG_RTC_CLASS=yCONFIG_RTC_HCTOSYS=yCONFIG_RTC_HCTOSYS_DEVICE="rtc0"CONFIG_RTC_SYSTOHC=yCONFIG_RTC_SYSTOHC_DEVICE="rtc0"
#CONFIG_RTC_DEBUGis not set#
# RTC interfaces
#CONFIG_RTC_INTF_SYSFS=yCONFIG_RTC_INTF_PROC=yCONFIG_RTC_INTF_DEV=yCONFIG_RTC_INTF_DEV_UIE_EMUL=y
#CONFIG_RTC_DRV_TESTis not set
#
# I2C RTC drivers
##
# SPI RTC drivers
##
# SPI and I2C RTC drivers
##
# Platform RTC drivers
#
#CONFIG_RTC_DRV_DS1286is not set
#CONFIG_RTC_DRV_DS1511is not set
#CONFIG_RTC_DRV_DS1553is not set
#CONFIG_RTC_DRV_DS1685_FAMILYis not set
#CONFIG_RTC_DRV_DS1742is not set
#CONFIG_RTC_DRV_DS2404is not set
#CONFIG_RTC_DRV_STK17TA8is not set
#CONFIG_RTC_DRV_M48T86is not set
#CONFIG_RTC_DRV_M48T35is not set
#CONFIG_RTC_DRV_M48T59is not set
#CONFIG_RTC_DRV_MSM6242is not set
#CONFIG_RTC_DRV_BQ4802is not set
#CONFIG_RTC_DRV_RP5C01is not set
#CONFIG_RTC_DRV_V3020is not set#
# on-CPU RTC drivers
#CONFIG_RTC_DRV_GENERIC=y#
# HID Sensor RTC drivers
Quoted 9 lines · Helge Deller
Quoted 6 lines · Meelis Roos
On my Gentoo hppa systems with custom kernels, I get the following error on bootup:
* Setting system clock using the hardware clock [UTC] ...
hwclock:settimeofday()failed: Invalid argument
* Failed to set the system clockI don't see this on debian...
I see it at shutdown (32bit kernel):
hwclock: ioctl(RTC_SET_TIME) to /dev/rtc0 to set the time failed.: Invalid argument
Helge