Adding OpenWrt support for Zyxel EX5601-T0

Gotcha, is there a way to switch from uboot-mod to stock partitioning?

Yes you have to manually restore the original partitions and than flash the stock version of the firmware. (Doesn't give any advantage anyways)

1 Like

Any reason why i can't write to

mtd write openwrt-mediatek-filogic-zyxel_ex5601-t0-ubootmod-p
reloader.bin bl2

Could not open mtd device: bl2
Can't open device for writing!

root@OpenWrt:/dev# cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00040000 "bl2"
mtd1: 00080000 00040000 "u-boot-env"
mtd2: 00200000 00040000 "Factory"
mtd3: 00200000 00040000 "fip"
mtd4: 00040000 00040000 "zloader"
mtd5: 1da80000 00040000 "ubi"

In general MTDs are write protected so you need to unlock them.

Look for this

insmod mtd-rw.ko i_want_a_brick=1

1 Like

Thank you @skyscreaper

This it possible to write the stock images to the mtd instead of the ubootmod versions?

@bmork What does the iwinfo phyX freqlist command return for the 6G interface on your Telenor EX5700 router if you set the country to US?

root@OpenWrt:~# iw reg set US
root@OpenWrt:~# iw reg get
global
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)

root@OpenWrt:~# iwinfo phy1 freqlist
  5.955 GHz (Band: 6 GHz, Channel 1) [NO_HT40-, NO_IR, INDOOR_ONLY]
  5.975 GHz (Band: 6 GHz, Channel 5) [NO_IR, INDOOR_ONLY]
  5.995 GHz (Band: 6 GHz, Channel 9) [NO_IR, INDOOR_ONLY]
  6.015 GHz (Band: 6 GHz, Channel 13) [NO_IR, INDOOR_ONLY]
  6.035 GHz (Band: 6 GHz, Channel 17) [NO_IR, INDOOR_ONLY]
  6.055 GHz (Band: 6 GHz, Channel 21) [NO_IR, INDOOR_ONLY]
  6.075 GHz (Band: 6 GHz, Channel 25) [NO_IR, INDOOR_ONLY]
  6.095 GHz (Band: 6 GHz, Channel 29) [NO_IR, INDOOR_ONLY]
  6.115 GHz (Band: 6 GHz, Channel 33) [NO_IR, INDOOR_ONLY]
  6.135 GHz (Band: 6 GHz, Channel 37) [NO_IR, INDOOR_ONLY]
  6.155 GHz (Band: 6 GHz, Channel 41) [NO_IR, INDOOR_ONLY]
  6.175 GHz (Band: 6 GHz, Channel 45) [NO_IR, INDOOR_ONLY]
  6.195 GHz (Band: 6 GHz, Channel 49) [NO_IR, INDOOR_ONLY]
  6.215 GHz (Band: 6 GHz, Channel 53) [NO_IR, INDOOR_ONLY]
  6.235 GHz (Band: 6 GHz, Channel 57) [NO_IR, INDOOR_ONLY]
  6.255 GHz (Band: 6 GHz, Channel 61) [NO_IR, INDOOR_ONLY]
  6.275 GHz (Band: 6 GHz, Channel 65) [NO_IR, INDOOR_ONLY]
  6.295 GHz (Band: 6 GHz, Channel 69) [NO_IR, INDOOR_ONLY]
  6.315 GHz (Band: 6 GHz, Channel 73) [NO_IR, INDOOR_ONLY]
  6.335 GHz (Band: 6 GHz, Channel 77) [NO_IR, INDOOR_ONLY]
  6.355 GHz (Band: 6 GHz, Channel 81) [NO_IR, INDOOR_ONLY]
  6.375 GHz (Band: 6 GHz, Channel 85) [NO_IR, INDOOR_ONLY]
  6.395 GHz (Band: 6 GHz, Channel 89) [NO_IR, INDOOR_ONLY]
  6.415 GHz (Band: 6 GHz, Channel 93) [NO_IR, INDOOR_ONLY]
  6.435 GHz (Band: 6 GHz, Channel 97) [NO_IR, INDOOR_ONLY]
  6.455 GHz (Band: 6 GHz, Channel 101) [NO_IR, INDOOR_ONLY]
  6.475 GHz (Band: 6 GHz, Channel 105) [NO_IR, INDOOR_ONLY]
  6.495 GHz (Band: 6 GHz, Channel 109) [NO_IR, INDOOR_ONLY]
  6.515 GHz (Band: 6 GHz, Channel 113) [NO_IR, INDOOR_ONLY]
  6.535 GHz (Band: 6 GHz, Channel 117) [NO_IR, INDOOR_ONLY]
  6.555 GHz (Band: 6 GHz, Channel 121) [NO_IR, INDOOR_ONLY]
  6.575 GHz (Band: 6 GHz, Channel 125) [NO_IR, INDOOR_ONLY]
  6.595 GHz (Band: 6 GHz, Channel 129) [NO_IR, INDOOR_ONLY]
  6.615 GHz (Band: 6 GHz, Channel 133) [NO_IR, INDOOR_ONLY]
  6.635 GHz (Band: 6 GHz, Channel 137) [NO_IR, INDOOR_ONLY]
  6.655 GHz (Band: 6 GHz, Channel 141) [NO_IR, INDOOR_ONLY]
  6.675 GHz (Band: 6 GHz, Channel 145) [NO_IR, INDOOR_ONLY]
  6.695 GHz (Band: 6 GHz, Channel 149) [NO_IR, INDOOR_ONLY]
  6.715 GHz (Band: 6 GHz, Channel 153) [NO_IR, INDOOR_ONLY]
  6.735 GHz (Band: 6 GHz, Channel 157) [NO_IR, INDOOR_ONLY]
  6.755 GHz (Band: 6 GHz, Channel 161) [NO_IR, INDOOR_ONLY]
  6.775 GHz (Band: 6 GHz, Channel 165) [NO_IR, INDOOR_ONLY]
  6.795 GHz (Band: 6 GHz, Channel 169) [NO_IR, INDOOR_ONLY]
  6.815 GHz (Band: 6 GHz, Channel 173) [NO_IR, INDOOR_ONLY]
  6.835 GHz (Band: 6 GHz, Channel 177) [NO_IR, INDOOR_ONLY]
  6.855 GHz (Band: 6 GHz, Channel 181) [NO_IR, INDOOR_ONLY]
  6.875 GHz (Band: 6 GHz, Channel 185) [NO_IR, INDOOR_ONLY]
  6.895 GHz (Band: 6 GHz, Channel 189) [NO_IR, INDOOR_ONLY]
  6.915 GHz (Band: 6 GHz, Channel 193) [NO_IR, INDOOR_ONLY]
  6.935 GHz (Band: 6 GHz, Channel 197) [NO_IR, INDOOR_ONLY]
  6.955 GHz (Band: 6 GHz, Channel 201) [NO_IR, INDOOR_ONLY]
  6.975 GHz (Band: 6 GHz, Channel 205) [NO_IR, INDOOR_ONLY]
  6.995 GHz (Band: 6 GHz, Channel 209) [NO_IR, INDOOR_ONLY]
  7.015 GHz (Band: 6 GHz, Channel 213) [NO_IR, INDOOR_ONLY]
  7.035 GHz (Band: 6 GHz, Channel 217) [NO_IR, INDOOR_ONLY]
  7.055 GHz (Band: 6 GHz, Channel 221) [NO_IR, INDOOR_ONLY]
  7.075 GHz (Band: 6 GHz, Channel 225) [NO_IR, INDOOR_ONLY]
  7.095 GHz (Band: 6 GHz, Channel 229) [NO_IR, INDOOR_ONLY]
  7.115 GHz (Band: 6 GHz, Channel 233) [NO_HT40+, NO_IR, INDOOR_ONLY]

Thanks for checking.
So for US it is impossible to start the AP due to NO_IR?

Yes, looks that way. I tested

config wifi-device 'radio1'
        option type 'mac80211'
        option path 'soc/11280000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0+1'
        option disabled '0'
        option country 'US'
        option htmode 'HE80'
        option band '6g'
        option channel '1'

and it fails with

Thu Apr  4 11:00:57 2024 daemon.notice hostapd: phy1-ap0: interface state UNINITIALIZED->COUNTRY_UPDATE
Thu Apr  4 11:00:57 2024 daemon.notice hostapd: Frequency 5955 (primary) not allowed for AP mode, flags: 0x10003 NO-IR
Thu Apr  4 11:00:57 2024 daemon.err hostapd: Primary frequency not allowed
Thu Apr  4 11:00:57 2024 daemon.warn hostapd: phy1-ap0: IEEE 802.11 Configured channel (1) or frequency (5955) (secondary_channel=1) not found from the channel list of the current mode (2) IEEE 802.11a
Thu Apr  4 11:00:57 2024 daemon.warn hostapd: phy1-ap0: IEEE 802.11 Hardware does not support configured channel
Thu Apr  4 11:00:57 2024 daemon.err hostapd: Could not select hw_mode and channel. (-3)
Thu Apr  4 11:00:57 2024 daemon.notice hostapd: phy1-ap0: interface state COUNTRY_UPDATE->NO_IR
Thu Apr  4 11:00:57 2024 daemon.notice hostapd: phy1-ap0: AP-NO_IR

Changing country to 'NO' and it says

Thu Apr  4 11:02:06 2024 daemon.notice hostapd: phy1-ap0: interface state UNINITIALIZED->COUNTRY_UPDATE
Thu Apr  4 11:02:06 2024 daemon.notice hostapd: phy1-ap0: interface state COUNTRY_UPDATE->ENABLED
Thu Apr  4 11:02:06 2024 daemon.notice hostapd: phy1-ap0: AP-ENABLED

I still don't have any 6GHz clients so I can't verify that it actually works.

I wonder if this will change in the future or will it stay as it is...