aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/gemini/base-files/lib/preinit
Commit message (Collapse)AuthorAgeFilesLines
* gemini: Fix MAC address assignment for DIR-685Linus Walleij2019-09-041-0/+15
| | | | | | | | | | | | 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)
* gemini: Make a per-board case for ethernet MACLinus Walleij2019-09-041-12/+16
| | | | | | | | | The DNS-313 isn't the only special board so let's bite the bullet and create a case ladder in preparation for DIR-685. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [refreshed] (cherry picked from commit 38d85d2c9fd9a3fd061fb56823821834dd720516)
* gemini: Use library functions to assign MAC addressLinus Walleij2019-09-041-12/+20
| | | | | | | | | | | | | | | | | | | This simplifies the ethernet address extraction script by using standard library functions to locate the MTD partitions and extract ethernet address from a binary offset location in the flash. Furthermore, the aging ifconfig is replaced by the ip tool, which will now assign the MAC addresses. Suggested-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [ifconfig replacement, use -n instead of ! -z, -n requires string to be quoted within the test brackets, drop prepended "x" in check, add quotes, make local variables local, kill whitespaces] (cherry picked from commit cd6c3535cd2c7779a8d65f792c36082ee3822c11)
* gemini: switch to 4.14Roman Yeryomin2018-05-051-5/+20
| | | | | | | | | | | | | This introduces Device/ infrastructure and images for all boards available upstream. Changes from Linus submitted version: - fix Raidsonic image generation - remove redundant (old) image generation - remove redundant header tool for dns313 board Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Roman Yeryomin <roman@advem.lv>
* add preinit modularization work by Daniel Dickinson (cshore)Felix Fietkau2010-01-251-0/+13
SVN-Revision: 19331