Package: src:linux Version: 3.16.7-ckt7-1 Severity: wishlist Tags: newcomer
Whenever I reset my cubox-i4Pro by disconnecting the power plug, the hardware real-time-clock gets reset to midnight UTC, Dec 31, 1970. Even though the SolidRun literature says that the i4Pro has a battery backed RTC. A bit of googling reveals that this is related to the following fact (Quoted from the SolidRun forums) >There are two RTC inside CuBox-i >1. One connected to the SNVS rail (internal i.MX6) which is not battery backed >and typically goes to /dev/rtc0 >2. Second is NXP PFC8523 based and that one has battery backup (/dev/rtc1) >SolidRun Engineering >user rabeeh in #cubox on Freenode IRC >by rabeeh » Sat Jan 25, 2014 7:04 pm >It's a standard non rechargeable lithium 3.3v coin cell. >Available only on the models that has RTC. >SolidRun Engineering >user rabeeh in #cubox on Freenode IRC Curiously, when I look at the Debian Jessie system running on the box, I find that there is only one /dev/rtc* device, and that seems to be associated with the SNVS clock. The PFC8523 clock is not available⦠Checking /boot/config-3.16.0-4-armmp, I see what I think is an explanation, because # CONFIG_RTC_DRV_PCF8523 is not set and CONFIG_RTC_DRV_SNVS=y Other Linux systems (e.g. Arch) appear (according to the above mentioned googling) to have their kernel compiled so as to provide both /dev/rtc0 attached to the SNVS clock, and /dev/rtc1 attached to the PFC8523 clock. Would it be possible to configure the default Debian Jessie kernel to do the same? Ideally, the PFC8523 clock should show up as /dev/rtc0, linked to /dev/rtc, so that the battery backed clock is used by default to set the system clock at boot-time. Failing that, it may be possible to address this by setting HCTOSYS_DEVICE in /etc/default/hwclock appropriately. Or maybe one could tweak a rule in /etc/udev ? Karsten Merker commented via email: Yes, that should just need enabling the appropriate module. The device-tree instantiates the pcf8523 clock chip: &i2c3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_cubox_i_i2c3>; status = "okay"; rtc: pcf8523@68 { compatible = "nxp,pcf8523"; reg = <0x68>; }; }; So if the module is available, it should be loaded automatically. Please file a wishlist bug against "Source: linux, Version: 3.16.7-ckt9-1" so that the kernel maintainers can enable the module for the next kernel upload. -- Package-specific info: ** Version: Linux version 3.16.0-4-armmp (debian-ker...@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt7-1 (2015-03-01) ** Command line: console=ttymxc0,115200 quiet ** Tainted: C (1024) * Module from drivers/staging has been loaded. ** Kernel log: [ 3.659929] IR RC5(x) protocol handler initialized [ 3.661235] IR SANYO protocol handler initialized [ 3.682273] [drm] Initialized drm 1.1.0 20060810 [ 3.684385] ipu_smfc_init: ioremap 0x02650000 -> f05a8000 [ 3.685339] imx-ipuv3 2400000.ipu: IPUv3H probed [ 3.685411] lirc_dev: IR Remote Control driver registered, major 243 [ 3.685844] ipu_smfc_init: ioremap 0x02a50000 -> f05c2000 [ 3.685851] leds_pwm pwmleds: unable to request PWM for imx6:red:front: -517 [ 3.685879] platform pwmleds: Driver leds_pwm requests probe deferral [ 3.694394] imx-ipuv3 2800000.ipu: IPUv3H probed [ 3.722182] i2c i2c-1: IMX I2C adapter registered [ 3.726369] rc rc0: lirc_dev: driver ir-lirc-codec (gpio-rc-recv) registered at minor = 0 [ 3.726389] IR LIRC bridge handler initialized [ 3.735281] i2c i2c-2: IMX I2C adapter registered [ 3.764961] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 3.768187] imxdrm: module is from the staging directory, the quality is unknown, you have been warned. [ 3.769810] imxdrm: module is from the staging directory, the quality is unknown, you have been warned. [ 3.775554] imx_hdmi: module is from the staging directory, the quality is unknown, you have been warned. [ 3.794884] imx_ipuv3_crtc: module is from the staging directory, the quality is unknown, you have been warned. [ 3.794888] imx_ipuv3_crtc: module is from the staging directory, the quality is unknown, you have been warned. [ 3.794893] imx_ipuv3_crtc: module is from the staging directory, the quality is unknown, you have been warned. [ 3.796261] imx_ipuv3_crtc: module is from the staging directory, the quality is unknown, you have been warned. [ 3.799664] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 3.799677] [drm] No driver support for vblank timestamp query. [ 3.799852] imx-drm display-subsystem: bound imx-ipuv3-crtc.0 (ops .LANCHOR0 [imx_ipuv3_crtc]) [ 3.799942] imx-drm display-subsystem: bound imx-ipuv3-crtc.1 (ops .LANCHOR0 [imx_ipuv3_crtc]) [ 3.800053] imx-drm display-subsystem: bound imx-ipuv3-crtc.4 (ops .LANCHOR0 [imx_ipuv3_crtc]) [ 3.800140] imx-drm display-subsystem: bound imx-ipuv3-crtc.5 (ops .LANCHOR0 [imx_ipuv3_crtc]) [ 3.803857] imx-hdmi 120000.hdmi: Detected HDMI controller 0x13:0xa:0xa0:0xc1 [ 3.803988] imx-drm display-subsystem: bound 120000.hdmi (ops imx_hdmi_driver_exit [imx_hdmi]) [ 3.804259] imx-drm display-subsystem: No connectors reported connected with modes [ 3.804281] [drm] Cannot find any crtc or sizes - going 1024x768 [ 3.817733] Console: switching to colour frame buffer device 128x48 [ 3.823989] imx-drm display-subsystem: fb0: frame buffer device [ 3.824000] imx-drm display-subsystem: registered panic notifier [ 3.828588] ci_hdrc ci_hdrc.0: ChipIdea HDRC found, lpm: 0; cap: f05d6100 op: f05d6140 [ 3.831603] ci_hdrc ci_hdrc.0: It is OTG capable controller [ 3.832312] ci_hdrc ci_hdrc.0: EHCI Host Controller [ 3.832615] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1 [ 3.840802] [drm] Initialized imx-drm 1.0.0 20120507 on minor 0 [ 3.845042] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00 [ 3.845417] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 3.845433] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 3.845444] usb usb1: Product: EHCI Host Controller [ 3.845453] usb usb1: Manufacturer: Linux 3.16.0-4-armmp ehci_hcd [ 3.845462] usb usb1: SerialNumber: ci_hdrc.0 [ 3.846395] hub 1-0:1.0: USB hub found [ 3.847405] hub 1-0:1.0: 1 port detected [ 3.848220] imx-spdif sound-spdif: ASoC: CPU DAI (null) not registered [ 3.848797] ci_hdrc ci_hdrc.1: ChipIdea HDRC found, lpm: 0; cap: f08de300 op: f08de340 [ 3.851788] ci_hdrc ci_hdrc.1: doesn't support gadget [ 3.851801] ci_hdrc ci_hdrc.1: EHCI Host Controller [ 3.852088] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2 [ 3.856891] imx-spdif sound-spdif: snd_soc_register_card failed: -517 [ 3.861759] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00 [ 3.862039] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002 [ 3.862047] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 3.862053] usb usb2: Product: EHCI Host Controller [ 3.862059] usb usb2: Manufacturer: Linux 3.16.0-4-armmp ehci_hcd [ 3.862064] usb usb2: SerialNumber: ci_hdrc.1 [ 3.862858] hub 2-0:1.0: USB hub found [ 3.862899] hub 2-0:1.0: 1 port detected [ 3.865053] platform sound-spdif: Driver imx-spdif requests probe deferral [ 3.867127] imx-spdif sound-spdif: snd-soc-dummy-dai <-> 2004000.spdif mapping ok [ 4.145618] EXT4-fs (mmcblk0p1): mounting ext2 file system using the ext4 subsystem [ 4.151597] EXT4-fs (mmcblk0p1): mounted filesystem without journal. Opts: (null) [ 6.192754] usb 1-1: new high-speed USB device number 2 using ci_hdrc [ 7.875989] usb 1-1: New USB device found, idVendor=125f, idProduct=db8a [ 7.876007] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 7.876019] usb 1-1: Product: ADATA USB Flash Drive [ 7.876027] usb 1-1: Manufacturer: ADATA [ 7.876037] usb 1-1: SerialNumber: 1392322132240030 [ 7.907821] random: nonblocking pool is initialized [ 7.924091] usb-storage 1-1:1.0: USB Mass Storage device detected [ 7.924565] scsi1 : usb-storage 1-1:1.0 [ 7.925054] usbcore: registered new interface driver usb-storage [ 14.737099] scsi 1:0:0:0: Direct-Access ADATA USB Flash Drive 0.00 PQ: 0 ANSI: 6 [ 14.772153] sd 1:0:0:0: [sda] 30344192 512-byte logical blocks: (15.5 GB/14.4 GiB) [ 14.773018] sd 1:0:0:0: [sda] Write Protect is off [ 14.773036] sd 1:0:0:0: [sda] Mode Sense: 23 00 00 00 [ 14.773888] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 14.780155] sda: sda1 sda2 sda3 [ 14.784511] sd 1:0:0:0: [sda] Attached SCSI removable disk [ 14.790693] sd 1:0:0:0: Attached scsi generic sg0 type 0 [ 15.060633] Adding 4417868k swap on /dev/sda3. Priority:-1 extents:1 across:4417868k FS [ 15.258456] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) [ 15.396790] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null) [ 15.579178] systemd-journald[156]: Received request to flush runtime journal from PID 1 [ 15.933963] fec 2188000.ethernet eth0: Freescale FEC PHY driver [Atheros 8035 ethernet] (mii_bus:phy_addr=2188000.ethernet:00, irq=-1) [ 15.934067] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 16.557232] RPC: Registered named UNIX socket transport module. [ 16.557247] RPC: Registered udp transport module. [ 16.557254] RPC: Registered tcp transport module. [ 16.557262] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 16.578407] FS-Cache: Loaded [ 16.627065] FS-Cache: Netfs 'nfs' registered for caching [ 16.684515] Installing knfsd (copyright (C) 1996 o...@monad.swb.de). [ 19.532045] warning: process `colord-sane' used the deprecated sysctl system call with 8.1.2. [ 19.933117] fec 2188000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 19.933152] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready ** Model information Hardware : Freescale i.MX6 Quad/DualLite (Device Tree) Revision : 0000 ** Loaded modules: nfsd auth_rpcgss oid_registry nfs_acl nfs lockd fscache sunrpc sg sd_mod crc_t10dif crct10dif_generic crct10dif_common usb_storage snd_soc_fsl_spdif evdev snd_soc_imx_spdif imx_pcm_dma snd_soc_core ci_hdrc_imx ci_hdrc imx_ipuv3_crtc(C) snd_compress usbmisc_imx snd_pcm_dmaengine imx_hdmi(C) imxdrm(C) ehci_hcd ir_lirc_codec i2c_imx drm_kms_helper snd_pcm pwm_imx lirc_dev imx_ipu_v3 drm ir_sanyo_decoder ir_rc5_decoder ir_nec_decoder ir_sony_decoder ir_jvc_decoder ir_mce_kbd_decoder ir_sharp_decoder snd_timer imx2_wdt ir_rc6_decoder snd leds_pwm gpio_ir_recv soundcore autofs4 ext4 crc16 mbcache jbd2 ahci_imx libahci_platform libahci libata scsi_mod sdhci_esdhc_imx sdhci_pltfm sdhci phy_mxs_usb at803x ** PCI devices: ** USB devices: Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 125f:db8a A-DATA Technology Co., Ltd. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub -- System Information: Debian Release: 8.0 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: armhf (armv7l) Kernel: Linux 3.16.0-4-armmp (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages linux-image-3.16.0-4-armmp depends on: ii debconf [debconf-2.0] 1.5.56 ii initramfs-tools [linux-initramfs-tool] 0.119 ii kmod 18-3 ii linux-base 3.5 Versions of packages linux-image-3.16.0-4-armmp recommends: ii firmware-linux-free 3.3 pn irqbalance <none> Versions of packages linux-image-3.16.0-4-armmp suggests: pn debian-kernel-handbook <none> pn fdutils <none> pn linux-doc-3.16 <none> Versions of packages linux-image-3.16.0-4-armmp is related to: pn firmware-atheros <none> pn firmware-bnx2 <none> pn firmware-bnx2x <none> pn firmware-brcm80211 <none> pn firmware-intelwimax <none> pn firmware-ipw2x00 <none> pn firmware-ivtv <none> pn firmware-iwlwifi <none> pn firmware-libertas <none> ii firmware-linux 0.43 ii firmware-linux-nonfree 0.43 pn firmware-myricom <none> pn firmware-netxen <none> pn firmware-qlogic <none> pn firmware-ralink <none> pn firmware-realtek <none> pn xen-hypervisor <none> -- debconf information: linux-image-3.16.0-4-armmp/prerm/removing-running-kernel-3.16.0-4-armmp: true linux-image-3.16.0-4-armmp/postinst/depmod-error-initrd-3.16.0-4-armmp: false linux-image-3.16.0-4-armmp/postinst/mips-initrd-3.16.0-4-armmp: -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org