On Wed, Sep 26, 2018 at 2:08 PM Tim M <[email protected]> wrote:
>
> How do I install a single overlay? I'm writing and building a device tree 
> overlay for a RTC chip (a DS1307) on a cape board that we designed. I want to 
> communicate with the chip over the I2C bus no. 2 on a beaglebone black.
>
> I know how to build the overlay using dtc, and I know I must copy the .dtbo 
> file to /lib/firmware. My question is, do I have to run update-initramfs as 
> well, or is it good enough to copy the .dtbo file to /lib/firmware?
> Anything else I need to do to install a single .dtbo?

debian@test-bbb-1:/opt/source/bb.org-overlays$ make
src/arm/BB-I2C2-RTC-DS1338.dtbo
  DTC     src/arm/BB-I2C2-RTC-DS1338.dtbo

sudo cp ./src/arm/BB-I2C2-RTC-DS1338.dtbo /lib/firmware/

>
> Another question: I see there is an overlay (BB-I2C2-RTC-DS1338.dts) 
> available on https://github.com/RobertCNelson/bb.org-overlays. Maybe this 
> will work for me with my DS1307 chip?

It should as long as you update these to ds1338 references to DS1307:

https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/BB-I2C2-RTC-DS1338.dts#L63-L64

>
> Or I could install all the overlays with sudo apt update; sudo apt install 
> bb-cape-overlays. Is it safe to install all the currently available overlays 
> from Robert Nelson's site on my system? I have an older version of Ubuntu 
> (16.04.3 LTS from Robert Nelson).

So this really depends the version of u-boot and kernel that you
currently utilize.

Git Master of bb.org-overlays

https://github.com/beagleboard/bb.org-overlays

Is currently targeting U-Boot Overlays with:

U-Boot v2018.03+
Kernel: v4.4.x -> v4.19.x

So, update-initramfs is no longer required, that was needed for
"Kernel Overlays", as the kernel needed access to the *.dtbo early in
bootup, but we've given up on supporting that.  Kernel Overlays are
also no longer even available in anything later then our v4.15.x
kernel branches.

When Debian Buster get's released next spring, bb.org-overlays will
get a new tag, and v4.4.x/v4.9.x support will be no longer guaranteed.
(There's a few "hacks" in there to help support v4.4.x kernel that are
getting in the way of new drivers in mainline)

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/CAOCHtYiSNj4Zwoa93Wma5tbaVYP648MWVYOd6C6J-R9aXkxWMg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to