RK 3328cc and rtc ds3231

Hello, i use 3328cc and i need use module rtc ds3231.
I connect rtc to pin SCL1, SDA1, 5V, GND.
The RTC module is already present on the board. And is registered rk808-rtc as rtc0.
My module rtc ds3231 shulde be registered as /dev/rtc1, But this does not happen.
If I use “i2cdetect -y -r 1”, then the module is determined by the address “0x68”
To setup device i use command
“echo ds3231 0x68 > /sys/class/i2c-adapter/i2c-1/new_device”
But nothing happens. Device is not defined as /dev/rtc1
And the address “0x68” has not changed to “UU”

Question. Will the board 3328cc work with this module ds3231?
What do i need to do? Install additional drivers?
Thank you.

ds3231 is a simple i2c device, and it should be okay to work with the roc-rk3328-cc board.

The kernel driver is drivers/rtc/rtc-ds1307.c.
So you need to enable CONFIG_RTC_DRV_DS1307 in kernel config,
and add the corresponding i2c node in the device tree.

Have you done that and reflashed the kernel?

Thanks for the answer.
I did not reflash the kernel. And I need help on this.
I installed the original image ROC-RK3328-CC_Ubuntu16.04_Arch64_20180514.img.xz and work with a sd card.
I found the .config file in the /usr/src/linux-headers-4.4.114-00003-g78cbf59-dirty folder
How do I properly add information about the RTS module and update the kernel?
Thank you.

Hi @SergeyTkachev

You need to checkout this guide:

http://wiki.t-firefly.com/en/Firefly-RK3399/linux_compile_gpt.html

Download the sdk, and compile the kernel.

你是否正在為通過SAP C_ACDET_2506認證考試而奮鬥?想早點實現通過SAP C_ACDET_2506認證考試的目標嗎?你可以選擇我們的NewDumps為你提供的培訓資料。如果你選擇了NewDumps,通過SAP C_ACDET_2506認證考試不再是一個夢想。

After reading this article, I feel that I’ve made progress in both thinking and actions. Take advantage of AP-221 formal test, full of valuable content, available for free.

It was such a valuable learning experience. Enhance your IT skills with free Exam Salesforce-Media-Cloud Cost. Best wishes for your exams!

This article is absolutely enlightening, thank you for sharing! CSCP authorized certification test questions now available for free. Good luck with your exams!

Instant like for this brilliant content. Reliable composite test MB-335 gives you a wealth of free content, created to assist you.