Used the standard slackwareaarch64-current image to set up an RPi4. No SARPI.
This Slackware installer hardcodes the ds1307 clock module, which is not installed in my RPi. Instead I have the pcf8523.
After quite some digging around I extracted the initrd contents (initrd-armv8-6.1.27), and made changes to it to reference pcf8523 instead, and the correct module loads now but hwclock still fails to get data from the module. On a previous installation I used SARPI and that worked great with this same module, once I enabled the appropriate line in /boot/config.txt
File "load_kernel_modules.scr/platform/aarch64/bcm2711"
Code:
...
MOD_RTC="rtc-pcf8523"
...
echo pcf8523 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
...
File "bcm2837"
Code:
MOD_RTC="rtc-pcf8523"
Code:
[root@rpi1a ~]# dmesg|grep -i rtc
[Thu Jan 1 02:00:14 1970] rtc-pcf8523 1-0068: registered as rtc0
[Thu Jan 1 02:00:14 1970] rtc-pcf8523 1-0068: hctosys: unable to read the hardware clock
[Thu Jan 1 02:00:19 1970] vc4-drm gpu: bound fe206000.pixelvalve (ops vc4_crtc_ops [vc4])
[Thu Jan 1 02:00:19 1970] vc4-drm gpu: bound fe207000.pixelvalve (ops vc4_crtc_ops [vc4])
[Thu Jan 1 02:00:19 1970] vc4-drm gpu: bound fe20a000.pixelvalve (ops vc4_crtc_ops [vc4])
[Thu Jan 1 02:00:19 1970] vc4-drm gpu: bound fe216000.pixelvalve (ops vc4_crtc_ops [vc4])
[root@rpi1a ~]# hwclock
hwclock: ioctl(RTC_RD_TIME) to /dev/rtc0 to read the time failed: Invalid argument
[root@rpi1a ~]# ls -al /dev/rtc*
lrwxrwxrwx 1 root root 4 Jan 1 02:00 /dev/rtc -> rtc0
crw-r--r-- 1 root root 251, 0 Jan 1 02:00 /dev/rtc0
[root@rpi1a ~]# lsmod|grep rtc
rtc_pcf8523 16384 0
Thanks for any hints!