gemini: Fix up firmware checksum on DIR-685
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 15 May 2019 20:37:26 +0000 (22:37 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 18 May 2019 14:37:30 +0000 (16:37 +0200)
commit76338fded0df44450cb4ecc55689341ef6b7a70f
tree1230f2b70580a1a40f14ceeeac0b47bfb9743a7e
parent30b4b7ee0961033ef4b25215c38fd5aa8af459bd
gemini: Fix up firmware checksum on DIR-685

Using the same method as the D-Link DAP-2695 A1 we use
the "mtd" tool to augment the firmware checkum in flash
on first boot of a new firmware on the D-Link DIR-685.
We need to augment the Makefile for "mtd" to build in
the special WRGG fixup support for Gemini as well.

This works around the problem of the machine not booting
after factory install unless the sysupgrade is applied
immediately.

Based on commit e3875350f3e4185020b64e0588bba521cd1d6e64
"ar71xx: add support for D-Link DAP-2695 rev. A1"

Cc: Stijn Tintel <stijn@linux-ipv6.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
package/system/mtd/src/Makefile
target/linux/gemini/base-files/etc/uci-defaults/09_fix-checksum [new file with mode: 0644]