On Monday, 24 August 2020 00:12:39 UTC+3, Alexander Zangerl wrote: > > On Thu, 20 Aug 2020 00:40:38 -0700, Niresh Kumar writes: > >1). I have placed the following lines in the /etc/rc.local, and system > >time gets updated with external RTC DS3231 automatically at every reboot > > > >*echo ds3231 0x68 > /sys/class/i2c-adapter/i2c-1/new_device* > ... > > > >2) I have put the line *dtb_overlay = > >/lib/firmware/BB-I2C2-RTC-DS3231.dtbo * in /boot/uEnv.txt but it does > not > > > the overlay you're using won't work because your rtc chip is > on i2c bus one: as its name (...I2C2...) indicates it's for a > clock chip being on i2c bus two. > > use dtc to decompile that overlay, edit for i2c1 and dtc it back into > binary form. > > Good catch, although it's probably not necessary to decompile binary trees as the source is available here together with a nice makefile to build a single overlay: https://github.com/beagleboard/bb.org-overlays
Without having tested it, I might imagine a process similar to this one: $ git clone https://github.com/beagleboard/bb.org-overlays.git $ cd bb.org-overlays $ cp src/arm/BB-I2C2-RTC-DS3231.dts src/arm/BB-I2C1-RTC-DS3231.dts $ vim src/arm/BB-I2C1-RTC-DS3231.dts ... update I2C bus number ... $ make src/arm/BB-I2C1-RTC-DS3231.dtbo $ cp src/arm/BB-I2C1-RTC-DS3231.dtbo /lib/firmware -- Kind regards, Tarmo -- 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/ffd21cc3-37ea-4526-80da-b4e1ae428d66o%40googlegroups.com.
