0.7.8 Linux release from ayufan for Rock64
#28
Hi Guys, my RTC PCF8523(https://www.adafruit.com/product/3386) is not working on the Rock64.
It is working on the RPI3B:

root@rpi3b01:~# uname -a
Linux rpi3b01 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux
root@rpi3b01:~# modinfo rtc-pcf8523
filename:       /lib/modules/4.14.79-v7+/kernel/drivers/rtc/rtc-pcf8523.ko
license:        GPL v2
description:    NXP PCF8523 RTC driver
author:         Thierry Reding <thierry.reding@avionic-design.de>
srcversion:     88403DCB7B29428A4B359BE
alias:          i2c:pcf8523
alias:          of:N*T*Cnxp,pcf8523C*
alias:          of:N*T*Cnxp,pcf8523
depends:        
intree:         Y
name:           rtc_pcf8523
vermagic:       4.14.79-v7+ SMP mod_unload modversions ARMv7 p2v8 
root@rpi3b01:~# i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- -- 

It works and being used.

root@rock64:~# uname -a                                                                                                                                                                                                                      
Linux rock64 4.4.154-1128-rockchip-ayufan-g61b4b1151f9a #1 SMP Tue Dec 25 14:31:31 UTC 2018 aarch64 GNU/Linux                                                                                                                                
root@rock64:~# modinfo rtc-pcf8523                                                                                                                                                                                                           
filename:       /lib/modules/4.4.154-1128-rockchip-ayufan-g61b4b1151f9a/kernel/drivers/rtc/rtc-pcf8523.ko                                                                                                                                    
license:        GPL v2                                                                                                                                                                                                                       
description:    NXP PCF8523 RTC driver                                                                                                                                                                                                       
author:         Thierry Reding <thierry.reding@avionic-design.de>                                                                                                                                                                            
alias:          i2c:pcf8523                                                                                                                                                                                                                  
alias:          of:N*T*Cnxp,pcf8523*                                                                                                                                                                                                         
depends:        
vermagic:       4.4.154-1128-rockchip-ayufan-g61b4b1151f9a SMP mod_unload aarch64

Enabling i2c0:

root@rock64:~# enable_dtoverlay i2c0 i2c@ff150000 okay
Applying...
/dts-v1/;
/ {
        fragment@0 {
                target-path = "/i2c@ff150000";
                __overlay__ {
                        status="okay";
                };
        };
};
Warning (unit_address_vs_reg): Node /fragment@0 has a unit name, but no reg property
Applied!

Right now it the RTC module is not plugged in:

root@rock64:~# i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 
10: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 
20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 
30: -- -- -- -- -- -- -- -- 38 39 3a 3b 3c 3d 3e 3f 
40: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 
70: 70 71 72 73 74 75 76 77

If I add the RTC PCF8523. It does not pop at 0x68 as on my RPI3B.

What else should be done in order to get the RTC module working?

Thnx for your help!


Messages In This Thread
RE: 0.7.8 Linux release from ayufan for Rock64 - by Ice - 01-27-2019, 03:19 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  irradium (based on crux linux) Rock64 riscv64, aarch64 mara 11 16,175 12-06-2025, 01:32 PM
Last Post: mara
  Xen hypervisor on Rock64 tumbleweed 6 10,066 11-03-2025, 09:25 AM
Last Post: darkfader
  Rock64 - not booting after Armbian update helpmerock 6 3,874 03-27-2025, 08:26 AM
Last Post: wdt
  can rock64 4gb ram run entirely on free software? heocb 1 2,444 01-07-2025, 05:47 AM
Last Post: KC9UDX
  Upgrading ancient Rock64 timxjr1300 1 2,572 11-26-2024, 09:47 AM
Last Post: dmitrymyadzelets
  arch rock64 does not boot nemnob 1 3,659 09-20-2024, 11:18 AM
Last Post: AwU2HBg
  DietPi OS for ROCK64 MichaIng 42 71,444 09-01-2024, 06:43 AM
Last Post: RaymondDay
Smile First Lakka image for Rock64! Luke 47 101,277 09-01-2024, 06:05 AM
Last Post: RaymondDay
  Rock64 v2 - did not work song / audio sqw200zu 2 4,680 03-14-2024, 03:09 AM
Last Post: dmitrymyadzelets
  Rock64 won't boot dstallmo 0 2,701 12-27-2023, 10:34 AM
Last Post: dstallmo

Forum Jump:


Users browsing this thread: 2 Guest(s)