apm821xx: WNDR4700: fix broken sysupgrade, factory images
authorChristian Lamparter <chunkeey@gmail.com>
Fri, 20 Oct 2023 14:20:27 +0000 (16:20 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Fri, 20 Oct 2023 16:13:57 +0000 (18:13 +0200)
commitd6a11833ad67c33ad10dadf396f6c30bb44ef30f
tree8d2c9fd37cd2bdda6cacb995f05dc19af063251d
parent0ba5c0bdc1ebddb50ab34806343d77baf54044be
apm821xx: WNDR4700: fix broken sysupgrade, factory images

prepend-dtb got extended to handle the Meraki devices too,
the problem here was that the Netgear WNDR4700 expects an
u-boot header in front of the DTB, whereas Meraki devices
don't.

Since the header was dropped, the WNDR4700's uboot started
to complain:
  Bad Magic Number,it is forbidden to be written to flash!!

when flashing the factory.img since it expects an u-boot
header there.

Fixes: 5dece2d9355a ("apm821xx: switch over from DTB_SIZE to DEVICE_DTC_FLAGS")
Reported-by: @kisgezenguz
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
target/linux/apm821xx/image/nand.mk