openwrt/package/boot/uboot-mediatek/patches
Fil Dunsky 0f713d5d11
Some checks are pending
Build Kernel / Build all affected Kernels (push) Waiting to run
Build all core packages / Build all core packages for selected target (push) Waiting to run
mediatek: add support for netis NX32U
This PR adds support for netis NX32U router.

Specification
-------------
- SoC       : MediaTek MT7981BA dual-core ARM Cortex-A53 1.3 GHz
- RAM       : 256 MiB DDR3
- Flash     : SPI-NAND 128 MiB (ESMT)
- WLAN      : MediaTek MT7976CN dual-band WiFi 6
  - 2.4 GHz : b/g/n/ax, MIMO 2x2
  - 5 GHz   : a/n/ac/ax, MIMO 2x2
- Ethernet  : 10/100/1000 Mbps x3 (LAN, MediaTek MT7531AE)
              10/100/1000 Mbps x1 (WAN, SoC internal phy)
- USB       : 3.0
- Buttons   : Mesh, Reset
- LEDs      : 1x Power (green), unmanaged
              1x Internet (green), gpio-controlled
              1x WPS (green), gpio-controlled
              1x WiFi 2.4 GHz (green), gpio-controlled
              1x WiFi 5 GHz (green), gpio-controlled
              1x LAN activity (green), switch-controlled
              1x WAN activity (green), switch-controlled
              1x USB (green), gpio-controlled
- Power     : 12 VDC, 1 A

Installation
------------
1. Connect to the router using ssh (user: admin, pass: web interface
   password)
2. Backup:
```
cat /dev/mtd0 | gzip -1 -c > /tmp/mtd0_spi0.0.bin.gz
cat /dev/mtd1 | gzip -1 -c > /tmp/mtd1_BL2.bin.gz
cat /dev/mtd2 | gzip -1 -c > /tmp/mtd2_u-boot-env.bin.gz
cat /dev/mtd3 | gzip -1 -c > /tmp/mtd3_Factory.bin.gz
cat /dev/mtd4 | gzip -1 -c > /tmp/mtd4_FIP.bin.gz
cat /dev/mtd5 | gzip -1 -c > /tmp/mtd5_ubi.bin.gz
```
3. Download mtd backup from the /tmp dir of the router to your PC using
   scp protocol
4. Upload OpenWrt 'bl31-uboot.fip', 'preloader.bin' images to the /tmp
   dir of the router using scp protocol
5. Write FIP and BL2 (replace bootloader):
```
mtd write /tmp/openwrt-mediatek-filogic-netis_nx32u-bl31-uboot.fip FIP
mtd write /tmp/openwrt-mediatek-filogic-netis_nx32u-preloader.bin BL2
```
6. Place OpenWrt
   'openwrt-mediatek-filogic-netis_nx32u-initramfs-recovery.itb' image on
   the tftp server (IP: 192.168.1.254)
7. Erase 'ubi' partition and reboot the router:
   mtd erase ubi
   reboot
8. U-Boot automatically boot OpenWrt recovery image from tftp server to
   the RAM
9. Upload OpenWrt 'sysupgrade.itb' image to the /tmp dir of the router
   (IP: 192.168.1.1) using scp protocol
10. Connect to the router using ssh and run:
```
ubidetach -p /dev/mtd4; ubiformat /dev/mtd4 -y; ubiattach -p /dev/mtd4
ubimkvol /dev/ubi0 -n 0 -N ubootenv -s 128KiB
ubimkvol /dev/ubi0 -n 1 -N ubootenv2 -s 128KiB
sysupgrade -n openwrt-mediatek-filogic-netis_nx32u-squashfs-sysupgrade.itb
```

Recovery
--------
1. Place OpenWrt
   'openwrt-mediatek-filogic-netis_nx32u-initramfs-recovery.itb' image on
   the tftp server (IP: 192.168.1.254)
2. Press “Reset” button and power on the router. After ~10 sec release
   the button.
3. Use OpenWrt initramfs system for recovery

+---------+-------------------+-----------+
|         | MAC               | Algorithm |
+---------+-------------------+-----------+
| LAN     | dc:xx:xx:d1:xx:18 | label     |
| WAN     | dc:xx:xx:d1:xx:1a | label+2   |
| WLAN 2g | de:xx:xx:11:xx:19 |           |
| WLAN 5g | de:xx:xx:71:xx:19 |           |
+---------+-------------------+-----------+
The LAN MAC was found in 'Factory', 0x1fef20
The WAN MAC was found in 'Factory', 0x1fef26
The WLAN 2g/5g MAC prototype was found in 'Factory', 0x4

Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21368
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-02-12 23:02:05 +01:00
..
007-ARM-dts-build-DT-for-MT7987-RFB.patch uboot-mediatek: add builds for the MediaTek MT7987 reference board 2025-11-05 14:19:39 +00:00
100-01-drivers-mtd-add-support-for-MediaTek-SPI-NAND-flash-.patch uboot-mediatek: update to v2026.01 2026-01-24 00:17:22 +00:00
100-02-mtd-mtk-snand-add-support-for-SPL.patch uboot-mediatek: sync with mtk-openwrt/u-boot 20250711 2025-07-19 02:59:16 +01:00
100-03-mtd-add-a-new-mtd-device-type-for-NMBM.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
100-04-mtd-add-core-facility-code-of-NMBM.patch uboot-mediatek: update to v2026.01 2026-01-24 00:17:22 +00:00
100-05-mtd-nmbm-add-support-for-mtd.patch uboot-mediatek: sync with mtk-openwrt/u-boot 20250711 2025-07-19 02:59:16 +01:00
100-06-common-board_r-add-support-to-initialize-NMBM-after-.patch uboot-mediatek: update to v2026.01 2026-01-24 00:17:22 +00:00
100-07-cmd-add-nmbm-command.patch uboot-mediatek: update to v2026.01 2026-01-24 00:17:22 +00:00
100-09-mtd-mtk-snand-add-NMBM-support-for-SPL.patch uboot-mediatek: sync with mtk-openwrt/u-boot 20250711 2025-07-19 02:59:16 +01:00
100-10-cmd-add-a-new-command-for-NAND-flash-debugging.patch uboot-mediatek: update to v2026.01 2026-01-24 00:17:22 +00:00
100-11-env-add-support-for-NMBM-upper-MTD-layer.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
100-12-mtd-spi-nor-add-support-to-read-flash-unique-ID.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
100-13-cmd-sf-add-support-to-read-flash-unique-ID.patch uboot-mediatek: update to v2026.01 2026-01-24 00:17:22 +00:00
100-14-common-spl-spl_nand-enable-CONFIG_SYS_NAND_U_BOOT_OF.patch uboot-mediatek: sync with mtk-openwrt/u-boot 20250711 2025-07-19 02:59:16 +01:00
100-16-board-mt7622-use-new-spi-nand-driver.patch uboot-mediatek: sync with mtk-openwrt/u-boot 20250711 2025-07-19 02:59:16 +01:00
100-17-board-mt7981-add-reference-board-using-new-spi-nand-.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
100-18-mtd-spi-nor-add-more-flash-ids.patch uboot-mediatek: sync with mtk-openwrt/u-boot 20250711 2025-07-19 02:59:16 +01:00
100-19-mtd-spi-nand-add-more-spi-nand-chips.patch uboot-mediatek: update to v2026.01 2026-01-24 00:17:22 +00:00
100-20-mtd-spi-nand-add-support-for-FudanMicro-chips.patch uboot-mediatek: update to v2026.01 2026-01-24 00:17:22 +00:00
100-21-mtd-spi-nand-add-CASN-page-support.patch uboot-mediatek: update to v2026.01 2026-01-24 00:17:22 +00:00
100-22-mmc-mtk-sd-add-support-to-display-verbose-error-log.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
100-23-cmd-ubi-make-volume-find-create-remove-APIs-public.patch uboot-mediatek: sync with mtk-openwrt/u-boot 20250711 2025-07-19 02:59:16 +01:00
100-24-cmd-ubi-allow-creating-volume-with-all-free-spaces.patch uboot-mediatek: sync with mtk-openwrt/u-boot 20250711 2025-07-19 02:59:16 +01:00
100-25-env-ubi-add-support-to-create-environment-volume-if-.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
100-26-mtd-ubi-add-support-for-UBI-end-of-filesystem-marker.patch uboot-mediatek: sync with mtk-openwrt/u-boot 20250711 2025-07-19 02:59:16 +01:00
101-03-mtd-spinand-fix-support-for-FORESEE.patch uboot-mediatek: update to v2026.01 2026-01-24 00:17:22 +00:00
102-mtd-spinand-esmt-add-support-for-F50L1G41LC.patch uboot-mediatek: update to v2026.01 2026-01-24 00:17:22 +00:00
103-01-mt7622-enable-pstore.patch uboot-mediatek: adjust the reserved memory regions 2025-08-24 13:22:09 +02:00
103-02-mt7981-enable-pstore.patch uboot-mediatek: adjust the reserved memory regions 2025-08-24 13:22:09 +02:00
103-03-mt7986-enable-pstore.patch uboot-mediatek: adjust the reserved memory regions 2025-08-24 13:22:09 +02:00
103-04-mt7988-enable-pstore.patch uboot-mediatek: adjust the reserved memory regions 2025-08-24 13:22:09 +02:00
104-snfi-add-support-for-GD5F1GQ5UE.patch uboot-mediatek: sync with mtk-openwrt/u-boot 20250711 2025-07-19 02:59:16 +01:00
105-configs-add-usefull-stuff-to-mt7988-rfb.patch uboot-mediatek: update to v2026.01 2026-01-24 00:17:22 +00:00
106-configs-sync-mt7981-rfb-storage.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
107-configs-add-useful-options-to-mt7981-rfb.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
108-dts-arm64-mt7981-rfb-add-mtd-partitions.patch uboot-mediatek: update to v2026.01 2026-01-24 00:17:22 +00:00
109-snfi-FM35Q1GA-is-x4-only.patch uboot-mediatek: sync with mtk-openwrt/u-boot 20250711 2025-07-19 02:59:16 +01:00
120-use-xz-instead-of-lzma.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
129-board-mediatek-wire-up-NMBM-support.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
160-net-phy-add-support-for-Airoha-ethernet-PHY-driver.patch uboot-mediatek: update to v2026.01 2026-01-24 00:17:22 +00:00
200-cmd-add-imsz-and-imszb.patch uboot-mediatek: update to v2026.01 2026-01-24 00:17:22 +00:00
211-cmd-bootmenu-custom-title.patch uboot-mediatek: bump to v2025.04 2025-05-31 21:16:41 +02:00
220-cmd-env-readmem.patch uboot-mediatek: update to v2026.01 2026-01-24 00:17:22 +00:00
230-cmd-add-pstore-check.patch uboot-mediatek: update to U-Boot 2024.01 release 2024-02-15 19:06:37 +00:00
250-fix-mmc-erase-timeout.patch uboot-mediatek: update to v2025.07 2025-07-19 02:59:15 +01:00
280-image-fdt-save-name-of-FIT-configuration-in-chosen-node.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
300-mt7623-fix-mmc-get-env-dev.patch uboot-mediatek: update to U-Boot 2024.10 2024-10-13 03:00:45 +01:00
301-mt7622-generic-reset-button-ignore-env.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
302-mt7623-generic-reset-button-ignore-env.patch uboot-mediatek: update to U-Boot 2024.10 2024-10-13 03:00:45 +01:00
303-mt7986-generic-reset-button-ignore-env.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
304-mt7981-generic-reset-button-ignore-env.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
305-mt7988-generic-reset-button-ignore-env.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
306-mt7987-generic-reset-button-ignore-env.patch uboot-mediatek: add builds for the MediaTek MT7987 reference board 2025-11-05 14:19:39 +00:00
310-mt7988-select-rootdisk.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
311-mt7986-select-rootdisk.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
312-mt7622-select-rootdisk.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
313-mt7623-select-rootdisk.patch mediatek: mt7623: phase out uImage.FIT partition parser 2024-02-24 03:02:35 +00:00
314-mt7981-select-rootdisk.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
315-mt7987-select-rootdisk.patch uboot-mediatek: add builds for the MediaTek MT7987 reference board 2025-11-05 14:19:39 +00:00
400-update-bpir2-defconfig.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
401-update-u7623-defconfig.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
402-update-bananapi-bpi-r64-device-tree.patch uboot-mediatek: fix factory/reset button 2023-04-20 11:40:24 +01:00
403-add-bananapi_bpi-r64-snand.patch mediatek: mt7622: convert BPi-R64 to all-UBI layout and fitblk 2024-02-15 19:30:08 +00:00
404-add-bananapi_bpi-r64_defconfigs.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
405-dts-mt7623n-bpi-r2-fix-leds.patch uboot-mediatek: fix factory/reset button 2023-04-20 11:40:24 +01:00
406-dts-mt7623n-bpi-r2-uart0-force-highspeed.patch uboot-mediatek: fix factory/reset button 2023-04-20 11:40:24 +01:00
408-arm-mediatek-add-back-mt7622-LK-image-header.patch uboot-mediatek: fix mt7622 rfb1 build 2025-07-19 02:59:15 +01:00
410-add-linksys-e8450.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
412-add-ubnt-unifi-6-lr.patch uboot-mediatek: update to v2026.01 2026-01-24 00:17:22 +00:00
420-add-support-for-RAVPower-RP-WD009.patch uboot-mediatek: update to v2025.07 2025-07-19 02:59:15 +01:00
421-zbtlink_zbt-wg3526-16m.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
429-add-netcore-n60.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
430-add-bpi-r3.patch uboot-mediatek: update to v2026.01 2026-01-24 00:17:22 +00:00
431-add-xiaomi_redmi-ax6000.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
432-add-tplink-xdr608x.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
433-add-qihoo_360t7.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
434-add-xiaomi_mi-router-wr30u.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
435-add-h3c_magic-nx30-pro.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
436-add-glinet-mt6000.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
437-add-cmcc_rax3000m.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
438-add-jcg_q30-pro.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
439-add-zyxel_ex5601-t0.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
440-add-xiaomi_mi-router-ax3000t.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
441-add-jdcloud_re-cp-03.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
442-add-bpi-r3-mini.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
443-add-nokia_ea0326gmp.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
444-add-abt_asr3000.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
445-add-cudy_tr3000-v1.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
445-add-netis-nx31.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
445-add-netis-nx32u.patch mediatek: add support for netis NX32U 2026-02-12 23:02:05 +01:00
446-add-cmcc_a10.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
447-add-konka_komi-a31.patch mediatek: add Konka KOMI A31 support 2025-10-23 00:00:04 +02:00
448-add-comfast_cf-wr632ax.patch uboot-mediatek: comfast,cf-wr632ax: fix missing escape sequence 2025-12-30 22:34:20 +01:00
449-add-cudy_wbr3000uax-v1.patch mediatek: add ubootmod layout for Cudy WBR3000UAX v1 2025-12-30 22:20:33 +01:00
450-add-bpi-r4.patch uboot-mediatek: fix malformed patch 2026-01-25 13:55:50 +01:00
451-add-tplink-xtr8488.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
452-add-xiaomi-redmi-ax6s.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
453-add-openwrt-one.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
454-add-glinet-x3000.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
456-add-arcadyan-mozart.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
457-initialized-the-watchdog-subsystem-later.patch uboot-mediatek: update to v2026.01 2026-01-24 00:17:22 +00:00
458-add-GatoNetworks-GDSP.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
459-add-mercusys-mr90x-v1.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
460-add-routerich-ax3000.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
461-add-asus-zenwifi-bt8.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
461-add-netis-nx30v2.patch uboot-mediatek: update to v2026.01 2026-01-24 00:17:22 +00:00
462-add-netcore-n60-pro.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
463-add-snr-snr-cpe-ax2.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
464-add-GL.iNet-GL-MT2500-Brume2.patch uboot-mediatek: update to U-Boot v2025.10 2025-10-10 16:35:58 +01:00
465-add-acer_predator-w6x.patch mediatek: Add support for Acer Predator Connect W6x Ubootmod 2025-10-31 09:40:07 +00:00
466-add-imou-hx21.patch mediatek: add support for Imou HX21 2025-11-21 01:43:09 +01:00
467-add-routerich-be7200.patch mediatek: add support for Routerich BE7200 2026-01-02 23:30:27 +01:00
470-add-bpi-r4-lite.patch uboot-mediatek: update to v2026.01 2026-01-24 00:17:22 +00:00
500-adapt-mt7987-rfb.patch uboot-mediatek: add builds for the MediaTek MT7987 reference board 2025-11-05 14:19:39 +00:00
501-add-cmd-msize.patch uboot-mediatek: add command for getting size of ram 2026-01-24 22:15:29 +01:00
502-add-bazis-ax3000wm.patch mediatek: filogic: add support for Bazis AX3000WM 2026-02-07 22:25:47 +01:00