Yocto + beaglebone green + LCD5

I have a “beaglebone green” with “5 Inch BeagleBone Green LCD Cape with Resistive Touch” SKU 104990262.

I want to use the poky-zeus linux distribution with “core-image-sato” configuration to have grapphics desktop on my 5" LCD cape.

I have all repository updated.

Build is ok.
When I start linux from SD, the LCD is not working.

With command
cat /proc/device-tree/model
reply is:
TI AM335x BeagleBone Black

Question:
1- how to inform uboot and kernel that I have a beaglebone green ? I try to add in uEnv.txt the line:
dtb=am335x-bonegreen–5.6.3-r0-beaglebone-20200414113512.dtb
but don’t work.

2- why cape is not recognize ? Have I to add any package ?

Thanks in advance
Giuliano

@Giuliz72 Yocto does not have a Cape auto-recognition mechanism inside. You need to add the LCD device tree to the main device tree.

Ok. Only for test purpose I add “dtb=am335x-bonegreen–5.6.3-r0-beaglebone-20200414113512.dtb” line in uEnv.txt.
But after a reboot with “cat /proc/device-tree/model” the answer is “am335x-boneblack.dtb” and not “am335x-bonegreen.dtb”.

Is this way rigth to load a dtb ?

If this works, then I can try to load the dtb for LCD.

" add “dtb=am335x-bonegreen–5.6.3-r0-beaglebone-20200414113512.dtb” line in uEnv.txt" This is how beagle bone USES the device tree.Does Yocto use the same method?