Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mediatek-mt7622: add support for Ubiquiti UniFi 6 LR v3 #2982

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Djfe
Copy link
Contributor

@Djfe Djfe commented Sep 13, 2023

  • Must be flashable from vendor firmware
  • Must support upgrade mechanism
    • Must have working sysupgrade
      • Must keep/forget configuration (sysupgrade [-n], firstboot)
    • Gluon profile name matches autoupdater image name
      (lua -e 'print(require("platform_info").get_image_name())')
      ubiquiti-unifi-6-lr-v3
  • Reset/WPS/... button must return device into config mode
  • Primary MAC address should match address on device label (or packaging)
    (https://gluon.readthedocs.io/en/latest/dev/hardware.html#hardware-support-in-packages)
    60:22:32:6a:37:d5
    • When re-adding a device that was supported by an earlier version of Gluon, a
      factory reset must be performed before checking the primary MAC address, as
      the setting from the old version is not reset otherwise.
  • Wired network
    • should support all network ports on the device
    • must have correct port assignment (WAN/LAN)
      • if there are multiple ports but no WAN port:
        • the PoE input should be WAN, all other ports LAN
        • otherwise the first port should be declared as WAN, all other ports LAN
  • Wireless network (if applicable)
    • Association with AP must be possible on all radios
    • Association with 802.11s mesh must work on all radios
    • AP+mesh mode must work in parallel on all radios
  • LED mapping
    • Power/system LED
    • Radio LEDs
      • Should map to their respective radio
      • Should show activity
    • Switch port LEDs
      • Should map to their respective port (or switch, if only one led present)
      • Should show link state and activity
  • Outdoor devices only:
    • Added board name to is_outdoor_device function in package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua
  • Cellular devices only:
    • Added board name to is_cellular_device function in package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua
    • Added board name with modem setup function setup_ncm_qmi to package/gluon-core/luasrc/lib/gluon/upgrade/250-cellular
  • Docs:
    • Added Device to docs/user/supported_devices.rst

@github-actions github-actions bot added 3. topic: docs Topic: Documentation 3. topic: hardware Topic: Hardware Support labels Sep 13, 2023
@Djfe

This comment was marked as outdated.

@blocktrron
Copy link
Member

Please drop the v2 from this PR in case you were not able to complete the checklist.

@Djfe
Copy link
Contributor Author

Djfe commented Sep 14, 2023

done

@Djfe
Copy link
Contributor Author

Djfe commented Sep 14, 2023

from stock rom:

cat /proc/ubnthal/system.info 
cpu=MT7622_SOC
cpuid=410fd034
flashSize=67108864
ramsize=536870911
vendorid=0777
systemid=a620
boardrevision=33
serialno=6022326a37d5
manufid=003d
mfgweek=202235
qrid=a4PhfN
eth0.macaddr=60:22:32:6a:37:d5
radio0.name=MT7622
radio1.name=MT7915
device.hashid=2a7d8f3210a2f9bf
device.anonid=a6b3940a-40b5-4502-8a7d-8f3210a2f9bf
ra0.macaddr=60:22:32:6a:37:d6
rai0.macaddr=60:22:32:6a:37:d7
bt0.macaddr=60:22:32:6a:37:d8
regdmn[]=0000ffffffffffffffffffffffffffff
cpu_rev_id=00007622

I suspect ra0 and rai0 to be radio macs.
bt0 bluetooth mac

Would it be important to get OpenWrt to actually know these two wifi MACs so gluon can take advantage of them?
I have a backup of all partitions available. I could take a look at them in a hexviewer

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br-wan state UP group default qlen 1000
    link/ether 60:22:32:6a:37:d5 brd ff:ff:ff:ff:ff:ff
3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 16:2d:0f:ea:4e:45 brd ff:ff:ff:ff:ff:ff
4: teql0: <NOARP> mtu 1500 qdisc noop state DOWN group default qlen 100
    link/void 
7: br-wan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 2a:73:1c:60:69:00 brd ff:ff:ff:ff:ff:ff
    inet 192.168.44.17/24 brd 192.168.44.255 scope global br-wan
       valid_lft forever preferred_lft forever
    inet6 fe80::2873:1cff:fe60:6900/64 scope link 
       valid_lft forever preferred_lft forever
8: local-port@local-node: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-client state UP group default qlen 1000
    link/ether 60:22:32:6a:37:d5 brd ff:ff:ff:ff:ff:ff
9: local-node@local-port: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether ac:41:95:40:f7:dc brd ff:ff:ff:ff:ff:ff
    inet6 fdac::ac/128 scope global deprecated 
       valid_lft forever preferred_lft 0sec
    inet6 fe80::ae41:95ff:fe40:f7dc/64 scope link 
       valid_lft forever preferred_lft forever
10: br-client: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 60:22:32:6a:37:d5 brd ff:ff:ff:ff:ff:ff
    inet6 2a03:2260:3006:215:6222:32ff:fe6a:37d5/64 scope global dynamic noprefixroute 
       valid_lft 574sec preferred_lft 4sec
    inet6 2a03:2260:3006:115:6222:32ff:fe6a:37d5/64 scope global dynamic noprefixroute 
       valid_lft 573sec preferred_lft 3sec
    inet6 fdac::6222:32ff:fe6a:37d5/64 scope global dynamic noprefixroute 
       valid_lft 86235sec preferred_lft 14235sec
    inet6 fe80::6222:32ff:fe6a:37d5/64 scope link 
       valid_lft forever preferred_lft forever
11: wg_mesh: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000
    link/none 
    inet6 fe80::237:80ff:fec9:fb21/128 scope link 
       valid_lft forever preferred_lft forever
12: bat0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-client state UNKNOWN group default qlen 1000
    link/ether 60:22:32:6a:37:d5 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::6222:32ff:fe6a:37d5/64 scope link 
       valid_lft forever preferred_lft forever
13: mesh1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1532 qdisc noqueue master bat0 state UP group default qlen 1000
    link/ether 2a:73:1c:60:69:05 brd ff:ff:ff:ff:ff:ff permaddr 62:22:32:6a:37:d5
    inet6 fe80::2873:1cff:fe60:6905/64 scope link 
       valid_lft forever preferred_lft forever
14: client1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-client state UP group default qlen 1000
    link/ether 2a:73:1c:60:69:04 brd ff:ff:ff:ff:ff:ff permaddr 62:22:32:6a:37:d5
    inet6 fe80::2873:1cff:fe60:6904/64 scope link 
       valid_lft forever preferred_lft forever
15: mesh0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1532 qdisc noqueue master bat0 state UP group default qlen 1000
    link/ether 2a:73:1c:60:69:01 brd ff:ff:ff:ff:ff:ff permaddr 60:22:32:6a:37:d5
    inet6 fe80::2873:1cff:fe60:6901/64 scope link 
       valid_lft forever preferred_lft forever
16: client0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-client state UP group default qlen 1000
    link/ether 2a:73:1c:60:69:00 brd ff:ff:ff:ff:ff:ff permaddr 60:22:32:6a:37:d5
    inet6 fe80::2873:1cff:fe60:6900/64 scope link 
       valid_lft forever preferred_lft forever
17: primary0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1532 qdisc noqueue master bat0 state UNKNOWN group default qlen 1000
    link/ether 2a:73:1c:60:69:03 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::2873:1cff:fe60:6903/64 scope link 
       valid_lft forever preferred_lft forever
18: mesh-vpn: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1350 qdisc noqueue master bat0 state UNKNOWN group default qlen 1000
    link/ether 92:4e:95:58:23:16 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::904e:95ff:fe58:2316/64 scope link 
       valid_lft forever preferred_lft forever

permaddr of all wifi interfaces are either
62:22:32:6a:37:d5 or
60:22:32:6a:37:d5

but they don't end on d6 or d7

@blocktrron
Copy link
Member

I don't understand your last comment. If the primary MAC address matches and Gluon assigns Wireless MACs, why should these addresses be required?

@blocktrron blocktrron added the 2. status: waiting-on-author Waiting on some action from the author label Dec 12, 2023
@neocturne
Copy link
Member

neocturne commented Dec 12, 2023

@Djfe

  • Which MAC addresses are used for WLAN on plain Openwrt?
  • Which on the stock firmware?
  • Which MAC address is printed on the device label / packaging?

@Djfe
Copy link
Contributor Author

Djfe commented Dec 16, 2023

  • Which MAC addresses are used for WLAN on plain Openwrt?
    still a todo
    I have to ask my friend to flash stock openwrt

  • Which on the stock firmware?

eth0.macaddr=60:22:32:6a:37:d5
ra0.macaddr=60:22:32:6a:37:d6
rai0.macaddr=60:22:32:6a:37:d7
bt0.macaddr=60:22:32:6a:37:d8
  • Which MAC address is printed on the device label / packaging?
    Gluon Primary Mac: 60:22:32:6a:37:d5
    Label on the AP's backside: 60:22:32:6A:37:D5
    Label on the packaging: 60:22:32:6A:37:D5

@rotanid
Copy link
Member

rotanid commented Jul 28, 2024

@Djfe could you check with plain openwrt?
and did you see the question by blocktrron?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. status: waiting-on-author Waiting on some action from the author 3. topic: docs Topic: Documentation 3. topic: hardware Topic: Hardware Support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants