Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4484

Compute Module • RTC PCF8523 issues

$
0
0
Hello everyone,

I'm asking for your help because a friend of mine is having issues with his PCF8523 :

We did everything I did for it to run well, but at one point, he got errors. We first checked if it was detected by using the

Code:

i2cdetect -y 5
, it was just like me.

So the next step was to edit this file using

Code:

sudo nano /boot/config.txt
and add pcf8523 to the list (dtoverlay=i2c-rtc,pcf8523,i2c5)

We also commented those every lines in "/lib/udev/hwclock-set" even if the RPi isn't connected to the internet (it's a camera project), but even not commented, the issue was still there.

Then, we tried a simple

Code:

sudo hwclock -r
and it returned

Code:

hwclock: Cannot access the Hardware Clock via any known method
and it told us to use --verbose to see what was going on, so we did :

Code:

sudo hwclock --verbosehwclock from util-linux 2.36.1System Time 1733725044.760249Trying to open: /dev/rtc0Trying to open: /dev/rtcTrying to open: /dev/misc/rtcNo usable clock interface found.hwclock: Cannot access the Hardware Clock via any known method
then we tried :

Code:

find /sys -name "*rtc*"find: '/sys/kernel/tracing': Permission denied find: ‘/sys/kernel/debug': Permission denied/sys/class/rtc/sys/devices/platform/soc/fe201000.serial/tty/ttyAMAO/uartclk/sys/devices/platform/serial8250/tty/ttyS0/uartclkfind: '/sys/fs/pstore': Permission denied find: '/sys/fs/bpf': Permission denied /sys/bus/platform/drivers/vc4_crtc /sys/bus/i2c/drivers/rtc-pcf8523 /sys/module/vc4/drivers/platform:vc4_crtc/sys/module/rtc_pcf8523/sys/module/rtc_pcf8523/drivers/i2c: rtc-pcf8523
That's where it's odd, there are a lot of "permission denied", some topics I've looked into before suggested the RTC might be defective...

My working PCF8523 is returning that for this command :

Code:

find /sys -name "*rtc*"find: ‘/sys/kernel/tracing’: Permission deniedfind: ‘/sys/kernel/debug’: Permission denied/sys/class/rtc/sys/class/rtc/rtc0/sys/devices/platform/soc/fe205a00.i2c/i2c-5/5-0068/rtc/sys/devices/platform/soc/fe205a00.i2c/i2c-5/5-0068/rtc/rtc0/sys/devices/platform/soc/fe201000.serial/tty/ttyAMA0/uartclk/sys/devices/platform/serial8250/tty/ttyS0/uartclkfind: ‘/sys/fs/pstore’: Permission deniedfind: ‘/sys/fs/bpf’: Permission denied/sys/bus/platform/drivers/vc4_crtc/sys/bus/i2c/drivers/rtc-pcf8523/sys/module/vc4/drivers/platform:vc4_crtc/sys/module/rtc_pcf8523/sys/module/rtc_pcf8523/drivers/i2c:rtc-pcf8523
That's where we stopped because we're newbies and I was stucked...

Thank you for your help (something I forgot to say, the .img flashed on the SD card if from a one year ago alpha version, but we have the same .img)

Statistics: Posted by Oceanique — Sat Dec 14, 2024 12:34 pm — Replies 0 — Views 18



Viewing all articles
Browse latest Browse all 4484

Trending Articles