You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/target/linux
Adrian Schmutzler 85aef6f627 ath79: fix MAC addresses for ethernet on ZyXEL NBG6716
MAC addresses of the ethernet devices (eth0 & eth1) are randomly set at
boot time by the ag71xx driver, because it is currently not possible to
retrieve MAC addresses in ASCII format within the DTS file.
This commit works around this behaviour by setting the MAC addresses
during the preinit phase.

The same has been implemented recently for the Siemens WS-AP3610 in
d2b8ccb1c0 ("ath79: add support for Siemens WS-AP3610").

MAC assignment in vendor firmware is as follows:

use   vendor   address     OpenWrt
2g    wifi0    ethaddr     -> wlan1
5g    wifi1    ethaddr +1  -> wlan0
lan   eth1     ethaddr +2  -> eth0
wan   eth0     ethaddr +3  -> eth1

ethaddr is retrieved by $(mtd_get_mac_ascii u-boot-env ethaddr)

Note that both Wifi and ethernet indexing is swapped in OpenWrt
compared to vendor firmware.

Suggested-by: Guillaume Lefebvre <guillaume@zelig.ch>
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Tested-by: Kevin Gagnon <kevin_gagnon@videotron.ca>
4 years ago
..
apm821xx treewide: Don't diverge from upstream default HZ settings on 4.19 4 years ago
ar71xx ar71xx: Fix gigabit switch support for Mikrotik RB951G-2HnD 4 years ago
arc770 treewide: remove maintainer variable from targets 4 years ago
archs38 archs38: switch to kernel 5.4 by default 4 years ago
armvirt kernel: move TEO governor to generic config 4 years ago
at91 treewide: remove maintainer variable from targets 4 years ago
ath25 treewide: remove maintainer variable from targets 4 years ago
ath79 ath79: fix MAC addresses for ethernet on ZyXEL NBG6716 4 years ago
bcm27xx bcm27xx: update 5.4 patches from RPi foundation 4 years ago
bcm47xx treewide: remove maintainer variable from targets 4 years ago
bcm53xx bcm53xx: add support for Luxul FullMAC WiFi devices 4 years ago
bcm63xx treewide: gather DEVICE_VARS into one place 4 years ago
cns3xxx treewide: remove maintainer variable from targets 4 years ago
gemini gemini: Bump kernel to v5.4 4 years ago
generic generic: backport Wistron Neweb D19Q1 patches 4 years ago
imx6 imx6: bootscript: use partition UUID for rootfs if possible 4 years ago
ipq40xx ipq40xx: fix DAP-2610 boot failure 4 years ago
ipq806x ipq806x: remove support for kernel 4.14 4 years ago
ipq807x treewide: remove maintainer variable from targets 4 years ago
kirkwood kirkwood: fix DTS partitions for Pogoplug E02 4 years ago
lantiq kernel: bump 5.4 to 5.4.28 4 years ago
layerscape treewide: remove maintainer variable from targets 4 years ago
malta malta: Remove kernel 4.14 support 4 years ago
mediatek mediatek: set v5.4 as default 4 years ago
mpc85xx treewide: Don't diverge from upstream default HZ settings on 4.19 4 years ago
mvebu mvebu: cortexa9: correct cpu subtype 4 years ago
mxs kernel: bump 5.4 to 5.4.28 4 years ago
octeon treewide: remove maintainer variable from targets 4 years ago
octeontx octeontx: switch to kernel 5.4 4 years ago
omap treewide: gather DEVICE_VARS into one place 4 years ago
oxnas oxnas: some improvements for Shuttle KD20 4 years ago
pistachio treewide: remove maintainer variable from targets 4 years ago
ramips ramips: add support for D-Link DWR-960 4 years ago
rb532 treewide: remove maintainer variable from targets 4 years ago
samsung treewide: remove maintainer variable from targets 4 years ago
sunxi kernel: bump 5.4 to 5.4.28 4 years ago
tegra tegra: correct cpu subtype 4 years ago
uml treewide: Remove self from MAINTAINER entries 5 years ago
x86 x86/64: add cdrom and iso9660 drivers 4 years ago
zynq zynq: switch to kernel 5.4 4 years ago
Makefile