Re: path for overlays

From: Nick Kostyria <nick_at_i11.co>
Date: Tue, 12 Jul 2022 03:27:25 UTC
On Mon, 11 Jul 2022 00:18:59 -0300
"Dr. Rolf Jansen" <freebsd-rj@cyclaero.com> wrote:


> 
> Anyway, for enabling I2C5 (we may choose from I2C3, I2C4, I2C5 and I2C6) on a Raspberry Pi 4, we do:
> 
> # fetch https://github.com/raspberrypi/linux/blob/rpi-5.15.y/arch/arm/boot/dts/overlays/i2c5-overlay.dts
> # dtc -I dts -O dtb -b0 -@ -o /boot/msdos/overlays/i2c5.dtbo i2c5-overlay.dts
> 
> Then we add the following 2 lines to /boot/msdos/config.txt:
> 
>   gpio=12,13=a5
>   dtoverlay=i2c5,pins_12_13
> 

Hello.

I see you use /boot/msdos/overlays/ for overlays.
I have a question for a long time and I can't find an answer.

What is the difference between /boot/msdos/overlays/ and /boot/dtb/overlays/ (fdt_overlays in /boot/loader.conf).

What is more correct?
What should be used?

/boot/msdos/overlays/ or /boot/dtb/overlays/
/boot/msdos/config.txt or /boot/loader.conf

Thanks.