Title: RK 3328cc and rtc ds3231 [Print This Page] Author: SergeyTkachev Time: 3/20/2019 23:47 Title: 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.Author: penguin Time: 3/21/2019 16:00
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? Author: SergeyTkachev Time: 3/21/2019 18:43
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.Author: penguin Time: 3/25/2019 16:27
Hi @SergeyTkachev