mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-14 23:09:45 +01:00
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>
|
||
|---|---|---|
| .. | ||
| 007-ARM-dts-build-DT-for-MT7987-RFB.patch | ||
| 100-01-drivers-mtd-add-support-for-MediaTek-SPI-NAND-flash-.patch | ||
| 100-02-mtd-mtk-snand-add-support-for-SPL.patch | ||
| 100-03-mtd-add-a-new-mtd-device-type-for-NMBM.patch | ||
| 100-04-mtd-add-core-facility-code-of-NMBM.patch | ||
| 100-05-mtd-nmbm-add-support-for-mtd.patch | ||
| 100-06-common-board_r-add-support-to-initialize-NMBM-after-.patch | ||
| 100-07-cmd-add-nmbm-command.patch | ||
| 100-09-mtd-mtk-snand-add-NMBM-support-for-SPL.patch | ||
| 100-10-cmd-add-a-new-command-for-NAND-flash-debugging.patch | ||
| 100-11-env-add-support-for-NMBM-upper-MTD-layer.patch | ||
| 100-12-mtd-spi-nor-add-support-to-read-flash-unique-ID.patch | ||
| 100-13-cmd-sf-add-support-to-read-flash-unique-ID.patch | ||
| 100-14-common-spl-spl_nand-enable-CONFIG_SYS_NAND_U_BOOT_OF.patch | ||
| 100-16-board-mt7622-use-new-spi-nand-driver.patch | ||
| 100-17-board-mt7981-add-reference-board-using-new-spi-nand-.patch | ||
| 100-18-mtd-spi-nor-add-more-flash-ids.patch | ||
| 100-19-mtd-spi-nand-add-more-spi-nand-chips.patch | ||
| 100-20-mtd-spi-nand-add-support-for-FudanMicro-chips.patch | ||
| 100-21-mtd-spi-nand-add-CASN-page-support.patch | ||
| 100-22-mmc-mtk-sd-add-support-to-display-verbose-error-log.patch | ||
| 100-23-cmd-ubi-make-volume-find-create-remove-APIs-public.patch | ||
| 100-24-cmd-ubi-allow-creating-volume-with-all-free-spaces.patch | ||
| 100-25-env-ubi-add-support-to-create-environment-volume-if-.patch | ||
| 100-26-mtd-ubi-add-support-for-UBI-end-of-filesystem-marker.patch | ||
| 101-03-mtd-spinand-fix-support-for-FORESEE.patch | ||
| 102-mtd-spinand-esmt-add-support-for-F50L1G41LC.patch | ||
| 103-01-mt7622-enable-pstore.patch | ||
| 103-02-mt7981-enable-pstore.patch | ||
| 103-03-mt7986-enable-pstore.patch | ||
| 103-04-mt7988-enable-pstore.patch | ||
| 104-snfi-add-support-for-GD5F1GQ5UE.patch | ||
| 105-configs-add-usefull-stuff-to-mt7988-rfb.patch | ||
| 106-configs-sync-mt7981-rfb-storage.patch | ||
| 107-configs-add-useful-options-to-mt7981-rfb.patch | ||
| 108-dts-arm64-mt7981-rfb-add-mtd-partitions.patch | ||
| 109-snfi-FM35Q1GA-is-x4-only.patch | ||
| 120-use-xz-instead-of-lzma.patch | ||
| 129-board-mediatek-wire-up-NMBM-support.patch | ||
| 160-net-phy-add-support-for-Airoha-ethernet-PHY-driver.patch | ||
| 200-cmd-add-imsz-and-imszb.patch | ||
| 211-cmd-bootmenu-custom-title.patch | ||
| 220-cmd-env-readmem.patch | ||
| 230-cmd-add-pstore-check.patch | ||
| 250-fix-mmc-erase-timeout.patch | ||
| 280-image-fdt-save-name-of-FIT-configuration-in-chosen-node.patch | ||
| 300-mt7623-fix-mmc-get-env-dev.patch | ||
| 301-mt7622-generic-reset-button-ignore-env.patch | ||
| 302-mt7623-generic-reset-button-ignore-env.patch | ||
| 303-mt7986-generic-reset-button-ignore-env.patch | ||
| 304-mt7981-generic-reset-button-ignore-env.patch | ||
| 305-mt7988-generic-reset-button-ignore-env.patch | ||
| 306-mt7987-generic-reset-button-ignore-env.patch | ||
| 310-mt7988-select-rootdisk.patch | ||
| 311-mt7986-select-rootdisk.patch | ||
| 312-mt7622-select-rootdisk.patch | ||
| 313-mt7623-select-rootdisk.patch | ||
| 314-mt7981-select-rootdisk.patch | ||
| 315-mt7987-select-rootdisk.patch | ||
| 400-update-bpir2-defconfig.patch | ||
| 401-update-u7623-defconfig.patch | ||
| 402-update-bananapi-bpi-r64-device-tree.patch | ||
| 403-add-bananapi_bpi-r64-snand.patch | ||
| 404-add-bananapi_bpi-r64_defconfigs.patch | ||
| 405-dts-mt7623n-bpi-r2-fix-leds.patch | ||
| 406-dts-mt7623n-bpi-r2-uart0-force-highspeed.patch | ||
| 408-arm-mediatek-add-back-mt7622-LK-image-header.patch | ||
| 410-add-linksys-e8450.patch | ||
| 412-add-ubnt-unifi-6-lr.patch | ||
| 420-add-support-for-RAVPower-RP-WD009.patch | ||
| 421-zbtlink_zbt-wg3526-16m.patch | ||
| 429-add-netcore-n60.patch | ||
| 430-add-bpi-r3.patch | ||
| 431-add-xiaomi_redmi-ax6000.patch | ||
| 432-add-tplink-xdr608x.patch | ||
| 433-add-qihoo_360t7.patch | ||
| 434-add-xiaomi_mi-router-wr30u.patch | ||
| 435-add-h3c_magic-nx30-pro.patch | ||
| 436-add-glinet-mt6000.patch | ||
| 437-add-cmcc_rax3000m.patch | ||
| 438-add-jcg_q30-pro.patch | ||
| 439-add-zyxel_ex5601-t0.patch | ||
| 440-add-xiaomi_mi-router-ax3000t.patch | ||
| 441-add-jdcloud_re-cp-03.patch | ||
| 442-add-bpi-r3-mini.patch | ||
| 443-add-nokia_ea0326gmp.patch | ||
| 444-add-abt_asr3000.patch | ||
| 445-add-cudy_tr3000-v1.patch | ||
| 445-add-netis-nx31.patch | ||
| 445-add-netis-nx32u.patch | ||
| 446-add-cmcc_a10.patch | ||
| 447-add-konka_komi-a31.patch | ||
| 448-add-comfast_cf-wr632ax.patch | ||
| 449-add-cudy_wbr3000uax-v1.patch | ||
| 450-add-bpi-r4.patch | ||
| 451-add-tplink-xtr8488.patch | ||
| 452-add-xiaomi-redmi-ax6s.patch | ||
| 453-add-openwrt-one.patch | ||
| 454-add-glinet-x3000.patch | ||
| 456-add-arcadyan-mozart.patch | ||
| 457-initialized-the-watchdog-subsystem-later.patch | ||
| 458-add-GatoNetworks-GDSP.patch | ||
| 459-add-mercusys-mr90x-v1.patch | ||
| 460-add-routerich-ax3000.patch | ||
| 461-add-asus-zenwifi-bt8.patch | ||
| 461-add-netis-nx30v2.patch | ||
| 462-add-netcore-n60-pro.patch | ||
| 463-add-snr-snr-cpe-ax2.patch | ||
| 464-add-GL.iNet-GL-MT2500-Brume2.patch | ||
| 465-add-acer_predator-w6x.patch | ||
| 466-add-imou-hx21.patch | ||
| 467-add-routerich-be7200.patch | ||
| 470-add-bpi-r4-lite.patch | ||
| 500-adapt-mt7987-rfb.patch | ||
| 501-add-cmd-msize.patch | ||
| 502-add-bazis-ax3000wm.patch | ||