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

ipq807x-generic: add support for Xiaomi R-3600 #3032

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

Conversation

Djfe
Copy link
Contributor

@Djfe Djfe commented Oct 25, 2023

also known as Mi AIoT Router AX3600

Thanks to madez for providing the hardware :)

  • Must be flashable from vendor firmware
    • Web interface
    • TFTP
    • Other: see wiki for details
      • first obtain ssh access (hack)
      • then flash openwrt initramfs-factory.ubi via ubiformat
      • then sysupgrade -n to gluon
  • 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())')
      xiaomi-ax3600
  • 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)
    28:d1:27:fc:a6:2c
    • 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 Oct 25, 2023
@Djfe
Copy link
Contributor Author

Djfe commented Oct 25, 2023

three possible issues:

  • Gluon Config mode > Advanced > Info says:
    Switch Typ: none
  • Primary MAC is ok, but device uses random macs for most interfaces
  • I want to figure out how to do factory images for the target (if at all). Currently building of another device: Netgear WAX218 fails due to missing initramfs even with factory = false, being set. The Xiaomi has an actual factory image but the Wiki doesn't mention how it is supposed to be used.

@Djfe Djfe force-pushed the ax3600 branch 2 times, most recently from 8770f05 to 2daffb4 Compare October 25, 2023 01:23
@blocktrron
Copy link
Member

Please check the regdom of the Radio interfaces. My last information was ath11k self-manages the regdom which is read from the BDF, which i'm currently not sure of whether this is compatible with Gluon in all cases.

@rotanid
Copy link
Member

rotanid commented Jul 28, 2024

@Djfe have you tested this with latest openwrt changes and do you still want to work on this support?

@AiyionPrime
Copy link
Member

AiyionPrime commented Oct 31, 2024

@Djfe I built a firmware using your PR a month ago, wifi looks good.

I have not checked latest OpenWrt changes, but know that @cawi2001 would be available to test something, if there's something missing here and if he were provided with an image for the device.
The "IOT" triple radio is not worth waiting for (at least for this device) due to the ridiculous small possible throughput.

Deactivating it is very much fine, I'd say.

@Djfe
Copy link
Contributor Author

Djfe commented Oct 31, 2024

👍
should we continue this discussion in #3354?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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