ipq40xx: meraki: define DTB load address
authorRobert Marko <robimarko@gmail.com>
Mon, 14 Aug 2023 11:50:47 +0000 (13:50 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 15 Aug 2023 15:16:05 +0000 (17:16 +0200)
commit4956ff40c50f375ba72c6d834f913962afbb6c9e
treec9d4f60fa21d94aaa0d94ad500e0014b24e54c5d
parent5cecf9aec8a9a899472b801cc43126b5d875b9ee
ipq40xx: meraki: define DTB load address

It seems that the Meraki bootloader does not respect the kernel ARM booting
specification[1] that requires that address where DTB is located needs to
be 64-bit aligned and often places the DTB on a non 64-bit aligned address
and then kernel fails to find the DTB magic and fails to boot.
Even worse, there is no prints until early printk is enabled and then its
visible that kernel is trying to find the ATAG-s as DTB was not found or
is invalid.

Unifi 6 devices had the same issue and it can be solved by passing the
load adress as part of the FIT image.
It seems that the vendor was aware of the issue and is always relocating
the DTB to 0x89000000, so lets just do the same.

Now that booting is reliable, reenable default images for the Meraki MR33
and MR74 devices.

Reviewed-by: Lech Perczak lech.perczak@gmail.com
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit f1c80445bd7e3b2f7fc3e4c8136402b30834d4e9)
target/linux/ipq40xx/image/generic.mk