Which system do you use? Android, Ubuntu, OOWOW or others?
Others: Yocto (Khadas Yocto SDK, vims-yocto-sdk)
Which version of system do you use? Please provide the version of the system here:
Khadas Yocto SDK: <repo/branch/commit> Kernel: 5.15.137 (mesong12b-kvim3-k5.15)
Please describe your issue below:
I want to use a DTB overlay (ltc2947.dtbo, an LTC2947 on I2C3 at 0x5c) on VIM3 with the Yocto SDK.
I placed the overlay and the env file in the rootfs under /boot, the same way the Khadas Doc: /boot/dtb/amlogic/kvim3.dtb.overlays/ltc2947.dtbo /boot/dtb/amlogic/kvim3.dtb.overlay.env (content: fdt_overlays= ltc2947)
The overlay is not applied. /sys/bus/i2c/devices/ has no 3-005c (only 3-0034, 4-xxxx).
Questions: 1. In the Yocto SDK, which component is supposed to read the overlay env file and apply the overlays? 2. Does the U-Boot in the SDK (v2015.01, kvim3_config) support overlays (fdt apply)? If so, where is it configured? 3. If not, what is the recommended way to enable DTB overlays in the Yocto SDK (patching U-Boot, or adding the node to the kernel DTS)?
Post a console log of your issue below:
root@yocto-vim3:~# ls /boot/dtb/amlogic/kvim3.dtb.overlays/
4k2k_fb.dtbo disable-i2c3.dtbo disable-ts050.dtbo i2s.dtbo ltc2947.dtbo m2x-eth.dtbo
onewire.dtbo os08a10.dtbo panfrost.dtbo pwm_f.dtbo spdifout.dtbo spi1.dtbo
uart3.dtbo watchdog.dtbo
root@yocto-vim3:~# cat /boot/dtb/amlogic/kvim3.dtb.overlay.env
fdt_overlays= ltc2947
root@yocto-vim3:~# strings /boot/dtb/amlogic/kvim3.dtb.overlays/ltc2947.dtbo
fragment@0
__overlay__
okay
ltc2947@5c
adi,ltc2947
okay
__fixups__
/fragment@0:target:0
target
status
compatible
i2c3
root@yocto-vim3:~# ls /sys/bus/i2c/devices/
3-0034 4-000c 4-000e 4-0018 4-0020 4-006c i2c-3 i2c-4
root@kyocto-vim3:~# ls /boot
dtb uEnv.txt