I’m trying to boot a newer Linux kernel (branch 5.4-2.0.x-imx from GitHub - Freescale/linux-fslc: Linux kernel source tree make defconfig), but so far fail to boot it. I succeeded in compiling the toradex branch (toradex_4.14-2.0.x-imx) and booting this using the following steps from u-boot:
setenv bootargs console=ttyLP1,115200 earlycon=lpuart32,0x5a070000,115200,115200 root=/dev/mmcblk0p2 rootwait rw video=imxdpufb5:off video=imxdpufb6:off video=imxdpufb7:off fatload mmc 0:1 0x84000000 fsl-imx8qm-apalis-eval.dtb fatload mmc 0:1 0x82000000 Image booti 0x82000000 - 0x84000000
Doing the same with the newer kernel image results in:
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
As far as I understand this is due to the image being larger in size and overwriting the memory region of the dtb. I tried to change the memory regions but without success. Mostly I hit “Synchronous Abort” handler and the system reboots or it just hands after Starting kernel…
I’m sure I do something stupidly wrong . Any help is appreciated.