Adding OpenWrt support for Extreme Network AP3935i

Just got 3935i-ROW device and installed Snapshot on it. Has anyone tried to setup 160 Mhz channel bandwidth? On this device it is not available. Also, it seems to not accepting country code in kernel log:

[ 9893.066382] ath: EEPROM regdomain: 0x80f6
[ 9893.066420] ath: EEPROM indicates we should expect a country code
[ 9893.069382] ath: doing EEPROM country->regdmn map search
[ 9893.075566] ath: country maps to regdmn code: 0x37
[ 9893.080901] ath: Country alpha2 being used: FI
[ 9893.085435] ath: Regpair used: 0x37
[ 9893.089861] ath: regdomain 0x80f6 dynamically updated by user
[ 9893.093352] ath: EEPROM regdomain: 0x80f6
[ 9893.099149] ath: EEPROM indicates we should expect a country code
[ 9893.103227] ath: doing EEPROM country->regdmn map search
[ 9893.109220] ath: country maps to regdmn code: 0x37
[ 9893.114660] ath: Country alpha2 being used: FI
[ 9893.119201] ath: Regpair used: 0x37
[ 9893.123688] ath: regdomain 0x80f6 dynamically updated by user
root@OpenWrt:~# iw reg get
global
country FI: DFS-ETSI
(2400 - 2483 @ 40), (N/A, 20), (N/A)
(5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR, AUTO-BW
(5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
(5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS
(5725 - 5875 @ 80), (N/A, 13), (N/A)
(5945 - 6425 @ 160), (N/A, 23), (N/A), NO-OUTDOOR
(57000 - 66000 @ 2160), (N/A, 40), (N/A)

phy#1
country US: DFS-FCC
(902 - 904 @ 2), (N/A, 30), (N/A)
(904 - 920 @ 16), (N/A, 30), (N/A)
(920 - 928 @ 8), (N/A, 30), (N/A)
(2400 - 2472 @ 40), (N/A, 30), (N/A)
(5150 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
(5250 - 5350 @ 80), (N/A, 24), (0 ms), DFS, AUTO-BW
(5470 - 5730 @ 160), (N/A, 24), (0 ms), DFS
(5730 - 5850 @ 80), (N/A, 30), (N/A), AUTO-BW
(5850 - 5895 @ 40), (N/A, 27), (N/A), NO-OUTDOOR, AUTO-BW, PASSIVE-SCAN
(5925 - 7125 @ 320), (N/A, 12), (N/A), NO-OUTDOOR, PASSIVE-SCAN
(57240 - 71000 @ 2160), (N/A, 40), (N/A)

phy#0
country US: DFS-FCC
(902 - 904 @ 2), (N/A, 30), (N/A)
(904 - 920 @ 16), (N/A, 30), (N/A)
(920 - 928 @ 8), (N/A, 30), (N/A)
(2400 - 2472 @ 40), (N/A, 30), (N/A)
(5150 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
(5250 - 5350 @ 80), (N/A, 24), (0 ms), DFS, AUTO-BW
(5470 - 5730 @ 160), (N/A, 24), (0 ms), DFS
(5730 - 5850 @ 80), (N/A, 30), (N/A), AUTO-BW
(5850 - 5895 @ 40), (N/A, 27), (N/A), NO-OUTDOOR, AUTO-BW, PASSIVE-SCAN
(5925 - 7125 @ 320), (N/A, 12), (N/A), NO-OUTDOOR, PASSIVE-SCAN
(57240 - 71000 @ 2160), (N/A, 40), (N/A)

Using default ath10k-firmware-qca99x0-ct firmware

Oh well, qca9990 doesn't support 160 nor 80+80 MHz channel bandwidths.

With non-ct firmware wifi performance was bad. Installed ath10k-firmware-qca99x0-ct-full-htt and seems to work fine. Though, still having region issue.

The majority of the issues above are related to the two Ethernet ports and a very minor issue in the definition files.

First, the LAN/WAN designation is switched between two of the files (correct assignment: LAN = eth0, WAN = eth1) and another issue arises where the interfaces are listed as eth0 and eth2 (rather than eth0 and eth1).

Also, I've had to add the "watchdog" settings into the boot script. Without this extra step, the box will overwrite occasionally (if you reboot a half dozen times and it should overwrite at least once).

Updated Install Notes: Extreme Networks WS-AP3935i
Much of this is similar to the original instructions albeit more detailed; however, there are a few minor fixes:

  1. Download OpenWRT "Install" and "Upgrade" firmware images. Renaming to a consistent/simple name is best, eg- "wrt-initramfs.bin" and "wrt-sysupgrade.bin"

  2. Run (a) your TFTP server, (b) Terminal w/Serial connection (Putty, Kitty, etc) and (c) SCP client (WinSCP, Filezilla, etc)

  3. Copy the Install (not Upgrade) OpenWRT firmware to your TFTP Server.

  4. Use a RJ45 (Cisco style) serial cable to the Console port
    Connect Ethernet to the LAN1 port
    Connect at 115,200 ,8,1,None,None

  5. First time you boot, hold the reset button in for 6 seconds and let it cycle, to be sure the default credentials are restored.

  6. Watch as the device resets. Press the space button frequently, you'll miss the prompt that offers a break to U-Boot so the easiest option is pressing ahead of the break.

  7. If you miss the prompt to get into U-Boot, just login (user: admin, pass: new2date) and "reset" to reboot. This is much easier than cycling power because the U-Boot break opportunity is within seconds of powering-up.

  8. Set serverip to TFTP IP:
    set serverip 10.1.1.11

  9. Set ipaddr of the WiFi Box:
    set ipaddr 10.1.1.20

  10. Configure U-Boot & load OpenWRT over TFTP

    setenv MOSTRECENTKERNEL 0
    setenv WATCHDOG_COUNT 0
    setenv WATCHDOG_LIMIT 0
    setenv boot_flash "bootm 0x42000000;"
    set bootcmd 'setenv MOSTRECENTKERNEL 0; setenv WATCHDOG_COUNT 0; setenv WATCHDOG_LIMIT 0; ping 10.1.1.11; run boot_flash'
    saveenv
    
    
  11. Copy the "Install" firmware from your TFTP server, to WiFi Box:
    tftpboot 0x42000000 initramfs.bin

  12. Once it's complete, boot to that new firmware:
    bootm 0x42000000

  13. After the reboot process you should see the OpenWRT ASCII art banner page. You will now login with "root" and there will be no password until you set it with passwd.

  14. Run an "ifconfig" to see the status of your network adapters. Because you're connected to LAN1, you should see "br-lan" (bridged LAN), "eth0" (LAN), "eth1" (WAN), and "lo" (the loopback adapter).

  15. Assign a dynamic IP address with DHCP:
    udhcpc -i br-lan
    ...or setup a static IP...
    ifconfig eth0 10.1.1.20 255.255.255.0

  16. In you SCP client, create a new session and double-check that it's an "SCP" session (not SFTP, which is often the default). Using the SCP client, copy the firmware Upgrade file to the /tmp directory of the WiFi Box.

  17. Reset the watchdog commands again

	fw_setenv MOSTRECENTKERNEL 0
	fw_setenv WATCHDOG_COUNT 0
	fw_setenv WATCHDOG_LIMIT 0
	
	echo "nameserver 8.8.8.8" > /etc/resolv.conf         # Temp DNS for pkg update
	sed -i 's/https/http/g' /etc/opkg/distfeeds.conf		# Use HTTP not HTTPS
	opkg update      # If you'd like to install the Web UI (easier to upgrade)
	opkg install luci  # Same
  1. Confirm the Upgrade firmware is in the temp directory on the WiFi box
    li /tmp/sysupgrade.bin
    ...If everything looks good, upgrade to permanently install OpenWRT...
    sysupgrade -n -F /tmp/sysupgrade.bin

You're finished (once the minor bugs are fixed)

However, if the minor bugs remain in the definitions file, you'll run into some problems with the LAN1/LAN2.

I'll try to submit the changes to the definition file in hopes it will address this issue.

1 Like

@DevGirl

Can you please post your fixed dts file. Thanks!