gemini: Fix MAC address assignment for DIR-685
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 11 Jun 2019 21:06:55 +0000 (23:06 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 15 Jun 2019 17:55:31 +0000 (19:55 +0200)
commit86098ea87e8ef4051da5f3a1d7f75737e36df512
treef77e597a3d46307ad38b0037449422b8b2f8b314
parent38d85d2c9fd9a3fd061fb56823821834dd720516
gemini: Fix MAC address assignment for DIR-685

The DIR-685 has the MAC addresses in the RedBoot code just like
DNS-313. Check some magic numbers to determine that the MAC
address is where we want it and extract it from RedBoot.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
[replaced ifconfig with ip, ! -z = -n, added string quotes]
target/linux/gemini/base-files/lib/preinit/05_set_ether_mac_gemini