On Tue, Feb 20, 2018 at 6:01 PM, ferdster <[email protected]> wrote: > Hi, > > I'm running the "Debian 9.3 2018-01-28 4GB SD IoT" image and added a PCF8523 > RTC to the i2c2 bus. Specifically, I am working with this board from > Adafruit: > https://www.adafruit.com/product/3295 > > Everything works fine manually: > config-pin P9_19 i2c > config-pin P9_20 i2c > echo pcf8523 0x68 > /sys/class/i2c-adapter/i2c-2/new_device > [ 473.652063] rtc-pcf8523 2-0068: rtc core: registered rtc-pcf8523 as > rtc1 > [ 473.663924] i2c i2c-2: new_device: Instantiated device pcf8523 at > 0x68 > hwclock -w -f /dev/rtc1 > hwclock -r -f /dev/rtc1 > 2018-02-20 22:04:30.521921+0000 > > I wanted to have it come up automatically by using the > BB-I2C2-PCF8523-00A0.dts as mentioned in this thread, but that causes > 'config-pin' to stop working for setting up my other pins. I think this has > something to do with the universal overlay now being disabled? What is the > correct way to get all this working together?
I've been working on this for a few weeks. While it isn't 100% ready, it's ready for what you just asked here ^... ********************************************** Step 1: Install this version of U-Boot: sudo /opt/scripts/tools/developers/update_bootloader.sh --beta Step 2: Install this kernel: sudo /opt/scripts/tools/update_kernel.sh --bone-channel --exp Step 3: Update Overlays: cd /opt/source/bb.org-overlays/ git pull make sudo make install Step 4: Add Overlay to /boot/uEnv.txt uboot_overlay_addr0=/lib/firmware/BB-I2C2-PCF8523-00A0.dtbo (or whatever addrX) Step 5: Reboot sudo reboot Step 6: Verify these 3 things: sudo /opt/scripts/tools/version.sh | grep bootloader dmesg | grep rtc ls /sys/devices/platform/ocp/ | grep pinmux ********************************************** 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/CAOCHtYgBbDRHVT6utEbr4VDSzY093NJhS9_%3DZSdndZyX%2BdD1yg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
