i ma using Armbian 23.02.2 Bullseye with Linux 5.15.93-rockchip64. i connected the rtc ds1307, the ran
i2cdetect -y 1
. That does not show the any connected module.
I checked in /boot/config-5.15.93-rockchip64
, and there CONFIG_RTC_DRV_DS1307=y
.
Am I missing something? why it is finding the rtc module?
RTC ds1307 is not connecting rockpi4c+
Probably you did not load the I²C overlay. Lookup the pinout of the board, check where you have connected your RTC (I²C 7 typically), enable it. In Armbian, run
$ sudo armbian-config
select System|Hardware, tick the I²C bus, reboot.
Note that the RTC driver will occupy the addresses of your RTC, i.e. i2cdetect will show UU.
in this OS, the armbian-config
config is not available. probably the reason is that it is a minimal version of os. how can I do that without armbian-config? or can I even install armbian-config ?
I doubt there are Armbian images without armbian-config. Sure you did
sudo armbian-config ?
Otherwise I would suggest to install it:
sudo apt install armbian-config
If you really want to do it by hand, die Armbian documentation is your friend, for instance
Hello everyone,
I’m trying also to connect the RTC ds1307 in RockPi4C+, but it isn’t detecting by I2C.
Informations:
- RTC ds1307 used: https://www.seeedstudio.com/Pi-RTC-DS1307.html
- Armbian OS version: 25.2
- Kernel version: 6.12.10-current-rockchip64
- i2c-7 enabled on armbian-config (> System > Kernel > SY210 > rockchip-rk3399-i2c7)
- When I run the command: sudo i2cdetect -y 7 shows the error Error: Could not open file
/dev/i2c-7' or
/dev/i2c/7’: No such file or directory - When I run the command: sudo i2cdetect -l shows:
i2c-0 i2c rk3x-i2c I2C adapter
i2c-3 i2c rk3x-i2c I2C adapter
Is someone can help to solve this problem?
Thanks
Does the image you are using have the relevant device tree blob (dtb) configured to enable the real-time clock (rtc)? The rock4c+ does not have the rtc function by itself. It is possible that the default Armbian image does not add support for device tree source (dts).
I used Armbian_community_25.2.0-trunk.377_Rockpi-4cplus_bookworm_current_6.12.10_minimal.img from here: https://github.com/armbian/community/releases/tag/25.2.0-trunk.377
Do you have any suggestion?
Thanks.
It already works!
In the file /boot/armbianEnv.txt, I had overlays=i2c1 i2c2 rockchip-rk3399-i2c7.
It was necessary to remove “rockchip” from rockchip-rk3399-i2c7, and then that line became: overlays=i2c1 i2c2 rk3399-i2c7
Thank you.
You are excellent.