Hi, I’m using meta-mender master branch for rpi4 integration. Build pass without issue. When flashed board cannot boot due to then fact that MENDER_DEVICETREE is not properly set (it’s set to overlay_map.dtb):
boot
Failed to load '/boot/overlay_map.dtb'
24070656 bytes read in 1028 ms (22.3 MiB/s)
Moving Image from 0x80000 to 0x200000, end=19f0000
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
I checked but overlay_map.dtb is there for quite some time.
KERNEL_DEVICETREE looks like:
KERNEL_DEVICETREE=" broadcom/bcm2711-rpi-4-b.dtb broadcom/bcm2711-rpi-400.dtb broadcom/bcm2711-rpi-cm4.dtb overlays/overlay_map.dtb overlays/at86rf233.dtbo overlays/disable-bt.dtbo overlays/dwc2.dtbo overlays/gpio-ir.dtbo overlays/gpio-ir-tx.dtbo overlays/gpio-key.dtbo overlays/hifiberry-amp.dtbo overlays/hifiberry-dac.dtbo overlays/hifiberry-dacplus.dtbo overlays/hifiberry-digi.dtbo overlays/justboom-both.dtbo overlays/justboom-dac.dtbo overlays/justboom-digi.dtbo overlays/i2c-rtc.dtbo overlays/imx219.dtbo overlays/imx477.dtbo overlays/iqaudio-dac.dtbo overlays/iqaudio-dacplus.dtbo overlays/mcp2515-can0.dtbo overlays/mcp2515-can1.dtbo overlays/miniuart-bt.dtbo overlays/pitft22.dtbo overlays/pitft28-capacitive.dtbo overlays/pitft28-resistive.dtbo overlays/pitft35-resistive.dtbo overlays/pps-gpio.dtbo overlays/rpi-ft5406.dtbo overlays/rpi-poe.dtbo overlays/vc4-fkms-v3d.dtbo overlays/vc4-kms-v3d.dtbo overlays/vc4-kms-v3d-pi4.dtbo overlays/vc4-kms-dsi-7inch.dtbo overlays/w1-gpio.dtbo overlays/w1-gpio-pullup.dtbo overlays/wm8960-soundcard.dtbo overlays/uart0.dtbo overlays/uart1.dtbo overlays/uart2.dtbo overlays/uart3.dtbo overlays/uart4.dtbo overlays/uart5.dtbo overlays/pcie-32bit-dma.dtbo overlays/gpio-shutdown.dtbo overlays/i2c-rtc.dtbo "
but in mender_get_clean_kernel_devicetree
method in meta-mender-core/classes/mender-helpers.bbclass it seems it pick wrong dtb due to that.Ideas? Thanks.