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
Information Linux Mainline ayufan 64 42,835 04-04-2021, 11:38 PM
Last Post: noahbenz
  External hard drive problem k8Va 17 8,911 03-09-2021, 02:31 PM
Last Post: calinb
  Linux Images (ROCK64) pineadmin 164 139,824 02-12-2021, 10:14 AM
Last Post: useful64
  Linux laptop does not detect the board when plugged in via USB soupy 1 1,041 10-08-2020, 09:07 AM
Last Post: jamie22
  Arch Linux Arm --> Kernel 5.8 breaks installation as365n4 12 4,215 08-31-2020, 01:41 AM
Last Post: as365n4
  Arch Linux ARM on the Rock64 V3 justinweiss 2 1,750 08-24-2020, 05:16 PM
Last Post: justinweiss
  Read-only problem mikedhoore 5 2,384 07-14-2020, 11:41 AM
Last Post: zein
Sad Is there a none-headless Linux OS that really works now for Rock64? AkiraSensei 7 2,961 07-09-2020, 10:02 PM
Last Post: nethammer
Question bluetooth rock64 problem deta 3 1,585 05-06-2020, 11:29 PM
Last Post: deta
  Fedora 31 crosscompilation fdt problem mimics debian 888789 kf5zmi 2 1,216 01-20-2020, 12:25 PM
Last Post: kf5zmi

Forum Jump:


Users browsing this thread: 1 Guest(s)