On Wed, Feb 5, 2020 at 8:39 AM Harke Smits <[email protected]> wrote:
>
> Hello,
>
> Is there a recipe that works to install the RTC (DS3231/1307)? I googled and 
> tried a lot of things but can not make it work. I succeeded on older Debian 
> versions but now I am lost.
> I have Debian 2018-10-07. The hw works as proved by i2cdetect -y -r 2. At 
> address 0x68. "echo ds1307 0x68 >/sys/class/i2c-adapter/i2c-2/new_device" 
> gives: permission denied.
> Looks like I need to do something with overlay files? But uEnv.txt does not 
> need to be modified, right? ls -al /dev/rtc*: only gives two entries for rtc0.
> Please help.

Which DS* device? we have an overlay for both devices..

So assuming DS1307 and i2c2:

https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/BB-I2C2-RTC-DS1307.dts

uboot_overlay_addr0=/lib/firmware/BB-I2C2-RTC-DS1307.dtbo

and this swaps the Beagle RTC0 with this one, so normal linux tools
will use the DS1307 as rtc0

If it doesn't work, please run and report:

sudo /opt/scripts/tools/version.sh

So we can see what's "old" with your setup..

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYhA0wW%3DSKajnpEqXuciaEnp2t63r7_j%3DLoF8F%3DM5MkOhg%40mail.gmail.com.

Reply via email to