Arch Linux Arm - external RTC problem
#1
I have connected an external RTC module (ds3231) to a Rock 64/4g.

I've loaded i2c-dev modules and rtc-ds1307 modules but my rtc mod is not detected by i2c (i2cdetect shows nothing connected at address 68)

Hardware is ok (if I boot with ayurfan distro I can see the external RTC module).

Could it be a kernel configuration problem? Has anyone had similar experience?

My Linux distro is Arch Linux Arm.

Regards

Max
  Reply
#2
if anyone would be interested I managed to make it all work.

- i've modified, recompiled and overwrite to original one (in /boot/dtb) rk3328-rock64.dts, adding this fragment of code

Code:
  &i2c0 {
      status = "okay";
      ds1307: ds1307@68 {
        compatible = "maxim,ds1307";
        reg = <0x68>;
        status = "okay";
      };
      ds3231: ds3231@68 {
        compatible = "maxim,ds3231";
        reg = <0x68>;
        status = "okay";
      };
};

to enable i2c0 bus and to let automatically discovered the rtc device by the kernel at boot time.

- blacklisted rock64 rtc module (rtc_rk808)

- added rtc_ds1307 module to automatic module loading system


After reboot rtc device will be created and the rtc module enabled
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Looking for guidance on setting up with external RTC Ditchmagnet 0 527 05-13-2022, 05:22 PM
Last Post: Ditchmagnet
  MIPI-CSI IMX214 on Linux NO SUCCESS zeus666 0 743 02-04-2022, 02:11 AM
Last Post: zeus666
  Linux 5.15 Kernel - openSuse mark1250 0 883 12-02-2021, 04:36 PM
Last Post: mark1250
  Alpine Linux isndw 12 14,782 08-12-2021, 05:41 PM
Last Post: pix
Lightbulb RK3399 Linux rtl8822cu module bluetooth not working shivarj89 0 979 07-29-2021, 07:19 AM
Last Post: shivarj89
Information Linux Mainline ayufan 63 77,674 05-14-2021, 10:41 AM
Last Post: Wizzard
  External hard drive problem k8Va 17 18,890 03-09-2021, 02:31 PM
Last Post: calinb
  Linux Images (ROCK64) pineadmin 164 241,350 02-12-2021, 10:14 AM
Last Post: useful64
  Linux laptop does not detect the board when plugged in via USB soupy 0 3,000 10-07-2020, 02:51 PM
Last Post: soupy
  Arch Linux Arm --> Kernel 5.8 breaks installation as365n4 12 9,772 08-31-2020, 01:41 AM
Last Post: as365n4

Forum Jump:


Users browsing this thread: 1 Guest(s)