1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-13 18:53:52 +02:00
openwrt/target/linux/ipq806x
Mark Mentovai 565814a5ee ipq806x: ubnt,unifi-ac-hd: reorder eth0 and eth1
The Ubiquiti UniFi AC HD (UAP-AC-HD, UAP301) has two Ethernet ports,
labeled MAIN and SECONDARY, connected to gmac2 and gmac1, respectively.
The standard probe order results in gmac1/SECONDARY being eth0 and
gmac2/MAIN being eth1. This does not match the stock firmware, is
contrary to user expectation, causes the wrong (high) MAC address to be
used in a bridged configuration (the default for this device), and makes
the gmac2/MAIN port unusable in the preinit environment (such as for
failsafe). Until a recent patch, gmac1/SECONDARY (eth0) was not even
usable.

This reorders the ports so that gmac2/MAIN is eth0, and the now-working
gmac1/SECONDARY is eth1. eth0 has the low MAC address and eth1 has the
high; when bridged, the bridge takes on the correct low MAC address.
This matches the stock firmware. The MAIN port is usable for failsafe
during preinit.

This device does not have a switch on board, so there's no possibility
to remap ports via switch configuration. "ip link set $interface name"
is used instead, during preinit before networking is configured.

Signed-off-by: Mark Mentovai <mark@moxienet.com>
Build-tested: ipq806x/ubnt,unifi-ac-hd
Run-tested: ipq806x/ubnt,unifi-ac-hd
2021-05-07 07:05:16 +02:00
..
base-files ipq806x: ubnt,unifi-ac-hd: reorder eth0 and eth1 2021-05-07 07:05:16 +02:00
files/arch/arm/boot/dts ipq806x: ubnt,unifi-ac-hd: reorder eth0 and eth1 2021-05-07 07:05:16 +02:00
generic ipqx0xx: add Generic subtarget 2019-08-22 21:15:28 +02:00
image ipq806x: work-around borked QCA SDK bootloader 2021-03-06 19:05:53 +00:00
patches-5.4 ipq806x: dwmac: clear forced speed during probe 2021-05-07 07:05:16 +02:00
config-5.4 treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
Makefile treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
modules.mk kernel: usb: move phy-qcom-ipq806x-usb to ipq806x modules.mk 2020-08-13 02:12:12 +02:00