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)
committerJo-Philipp Wich <jo@mein.io>
Wed, 4 Sep 2019 11:10:00 +0000 (13:10 +0200)
commit0b1f62a27722d1dfa417fc63fe0d7c49ecdcafe0
tree577fc968beaf80c4762f064833dfe140a6d2c0cf
parentb790e346b969c32524c82b6941f3c893c3d9c516
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]

(cherry picked from commit 86098ea87e8ef4051da5f3a1d7f75737e36df512)
target/linux/gemini/base-files/lib/preinit/05_set_ether_mac_gemini