DryIce , RTC not working on imx53.
From: Alexandre Belloni <hidden>
Date: 2017-11-14 10:26:14
Also in:
linux-rtc
+Cc Juergen On 14/11/2017 at 08:12:03 -0200, Fabio Estevam wrote:
Hi Patrick, On Tue, Nov 14, 2017 at 3:00 AM, Patrick Br?nn [off-list ref] wrote:quoted
quoted
From: Fabio Estevam [mailto:festevam at gmail.com] Sent: Montag, 13. November 2017 19:57quoted
I don't recall of any recent change in this area.I don't think the behavior changed recently. I tried a kernel 4.4.65 and it shows the same symptoms. I guess Noel really means 3.19-> 4.0.Or maybe by 'old kernel' he meant the vendor 2.6.35 kernel. I have the impression that the dryice driver has never worked in mainlune for mx53.
I doubt that because it seems to have been used by Pengutronix.
quoted
Unfortunately no. Did you run hwclock or rtctest?Yes, this is what I get: # hwclock -r -D hwclock from util-linux 2.31 System Time: 14.876372 Trying to open: /dev/rtc0 Using the rtc interface to the clock. Last drift adjustment done at 2167 seconds after 1969 Last calibrat[ 14.892484] imxdi_rtc 53fa4000.srtc: Write-wait timeout val = 08 ion done at 2167 seconds after 1969 Hardware clock is on UTC time Assuming hardware clock is kept in UTC time. Waiting for clock tick... hwclock: select() to /dev/rtc0 to wait for clock tick timed out ...synchronization failedquoted
I still see: root at CX9020:~# cat /proc/interrupts | grep rtc 40: 0 tzic 24 Edge 53fa4000.srtc 41: 0 tzic 25 Edge 53fa4000.srtc root at CX9020:~# hwclock -D -r hwclock from util-linux 2.29.2 Using the /dev interface to the clock. Last drift adjustment done at 1490885082 seconds after 1969 Last calibration done at 1490885082 seconds after 1969 Hardware clock is on UTC time Assuming hardware clock is kept in UTC time. Waiting for clock tick... [ 41.035269] irq 40: nobody cared (try booting with the "irqpoll" option) [ 41.042514] handlers: [ 41.044847] [<c06031e0>] dryice_irq [ 41.048398] Disabling IRQ #40This error I don't get with the 2.31 hwclock version I tried.
-- Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com