Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Hardware] RK 3328cc and rtc ds3231

21

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
21

【Hardware】 RK 3328cc and rtc ds3231

Posted at 3/20/2019 23:47:41      View:4104 | Replies:3        Print      Only Author   [Copy Link] 1#
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.
Reply

Use props Report

1396

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1396
Posted at 3/21/2019 16:00:30        Only Author  2#
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?
Reply

Use props Report

21

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
21
Posted at 3/21/2019 18:43:31        Only Author  3#
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.
Reply

Use props Report

1396

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1396
Posted at 3/25/2019 16:27:39        Only Author  4#
Hi @SergeyTkachev

You need to checkout this guide:

   http://wiki.t-firefly.com/en/Fir ... ux_compile_gpt.html

Download the sdk, and compile the kernel.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list