openwrt/target/linux/ipq40xx/files/arch/arm/boot/dts
Marcin Gajda 700c47a5f6 ipq40xx: Add support ZTE MF18A
Light and small router ( In Poland operators sells together with MC7010 outdoor modem to provide WIFI inside home).
Device specification

SoC Type: Qualcomm IPQ4019
RAM: 256 MiB
Flash: 128 MiB SPI NAND (Winbond W25N01GV)
ROM: 2MiB SPI Flash (GD25Q16)
Wireless 2.4 GHz (IP4019): b/g/n, 2x2
Wireless 5 GHz (QCA9982): a/n/ac, 3x3
Ethernet: 2xGbE (WAN/LAN1, LAN2)
USB ports: No
Button: 2 (Reset/WPS)
LEDs: 3 external leds: Power (blue) , WiFI (blue and red), SMARTHOME (blue and red) and 1 internal (blue) -- NOTE: Power controls all external led (if down ,all others also not lights even signal is up)
Power: 5VDC, 2,1A via USB-C socket
Bootloader: U-Boot
On board ZWave and Zigbee (EFR32 MG1P232GG..)  modules ( not supported by orginal software )
Installation

 1.Open MF18A case by ungluing rubber pad under the router and unscrew screws, and connect to serial console port,
   with the following pinout, starting from pin 1, which is the topmost pin when the board is upright (reset button on the bottom) :

    VCC (3.3V). Do not use unless you need to source power for the converer from it.
    TX
    RX
    GND

    Default port configuration in U-boot as well as in stock firmware is 115200-8-N-1.

 2.Place OpenWrt initramfs image for the device on a TFTP in the server's root. This example uses Server IP: 192.168.0.2

 3.Connect TFTP server to RJ-45 port (WAN/LAN1).

 4.Power on MF18A , stop in u-Boot (using ESC button) and run u-Boot commands:
    setenv serverip 192.168.0.2
    setenv ipaddr 192.168.0.1
    set fdt_high 0x85000000
    tftpboot 0x84000000 openwrt-ipq40xx-generic-zte_mf18a-initramfs-fit-zImage.itb
    bootm 0x84000000

 5.Please make backup of original partitions, if you think about revert to stock, specially mtd8 (Web UI) and mtd9 (rootFS). Use /tmp as temporary storage and do:

WEB PARITION

cat /dev/mtd8 > /tmp/mtd8.bin
scp /tmp/mtd8.bin root@YOURSERVERIP:/
rm /tmp/mtd8.bin
ROOT PARITION

cat /dev/mtd9 > /tmp/mtd9.bin
scp /tmp/mtd9.bin root@YOURSERVERIP:/
rm /tmp/mtd9.bin

If you are sure ,that you want to flash openwrt, from uBoot, before bootm, clean rootfs partition with command:
nand erase 0x1800000 0x1D00000

 6.Login via ssh or serial and remove stock partitions (default IP 192.168.1.1):
ubiattach -m 9 # it could return error if ubi was attached before or rootfs part was erased before
ubirmvol /dev/ubi0 -N ubi_rootfs # it could return error if rootfs part was erased before
ubirmvol /dev/ubi0 -N ubi_rootfs_data # some devices doesn't have it

 7. Install image via :
sysupgrade -n /tmp/openwrt-ipq40xx-generic-zte_mf18a-squashfs-sysupgrade.bin

previously wgeting bin. Sometimes it could print ubi attach error, but please ignore it if process goes forward.

Back to Stock (!!! need original dump taken from initramfs !!!) -------------

Place mtd8.bin and mtd9.bin initramfs image for the device on a TFTP in the server's root. This example uses Server IP: 192.168.0.2
Connect serial console (115200,8n1) to serial console connector .
Connect TFTP server to RJ-45 port (WAN/LAN1).
rename mtd8.bin to web.img and mtd9.bin to root_uImage_s
Stop in u-Boot (using ESC button) and run u-Boot commands:
This will erase Web and RootFS:
nand erase 0x1000000 0x800000
nand erase 0x1800000 0x1D00000

This will restore RootFS:
tftpboot 0x84000000 root_uImage_s
nand erase 0x1800000 0x1D00000
nand write 0x84000000 0x1800000 0x1D00000

This will restore Web Interface:
tftpboot 0x84000000 web.img
nand erase 0x1000000 0x800000
nand write 0x84000000 0x1000000 0x800000

After first boot on stock firwmare, do a factory reset. Push reset button for 5 seconds so all parameters will be reverted to the one printed on label on bottom of the router

As reference was taken MF289F support by Giammarco Marzano stich86@gmail.com and MF286D by Pawel Dembicki paweldembicki@gmail.com

Signed-off-by: Marcin Gajda <mgajda@o2.pl>
2023-01-14 19:19:36 +01:00
..
qcom-ipq4018-a42.dts ipq40xx: utilize nvmem-cells for openmesh,a42 2022-11-12 18:15:55 +01:00
qcom-ipq4018-ap120c-ac.dts ipq40xx: convert some boards to DSA 2022-10-02 23:04:39 +02:00
qcom-ipq4018-cap-ac.dts ipq40xx: convert some boards to DSA 2022-10-02 23:04:39 +02:00
qcom-ipq4018-cs-w3-wd1200g-eup.dts ipq40xx: drop ESSEDMA + AR40xx DTS nodes 2022-10-02 23:04:38 +02:00
qcom-ipq4018-dap-2610.dts ipq40xx: D-Link DAP-2610: convert to DSA 2022-11-12 18:15:55 +01:00
qcom-ipq4018-ea6350v3.dts ipq40xx: re-enable EA6350v3, EA8300, MR8300 builds 2022-12-31 05:02:38 -08:00
qcom-ipq4018-eap1300.dts ipq40xx: drop ESSEDMA + AR40xx DTS nodes 2022-10-02 23:04:38 +02:00
qcom-ipq4018-ecw5211.dts ipq40xx: convert some boards to DSA 2022-10-02 23:04:39 +02:00
qcom-ipq4018-emd1.dts ipq40xx: drop ESSEDMA + AR40xx DTS nodes 2022-10-02 23:04:38 +02:00
qcom-ipq4018-emr3500.dts ipq40xx: drop ESSEDMA + AR40xx DTS nodes 2022-10-02 23:04:38 +02:00
qcom-ipq4018-ens620ext.dts ipq40xx: drop ESSEDMA + AR40xx DTS nodes 2022-10-02 23:04:38 +02:00
qcom-ipq4018-ex61x0v2.dtsi ipq40xx: drop ESSEDMA + AR40xx DTS nodes 2022-10-02 23:04:38 +02:00
qcom-ipq4018-ex6100v2.dts ipq40xx: tidy up dts-v1 statements 2020-09-25 21:10:41 +02:00
qcom-ipq4018-ex6150v2.dts ipq40xx: tidy up dts-v1 statements 2020-09-25 21:10:41 +02:00
qcom-ipq4018-fritzbox-4040.dts ipq40xx: convert some boards to DSA 2022-10-02 23:04:39 +02:00
qcom-ipq4018-gl-a1300.dts ipq40xx: fix usb driver not loaded for GL-A1300 2022-12-11 03:06:54 +01:00
qcom-ipq4018-gl-ap1300.dts ipq40xx: drop ESSEDMA + AR40xx DTS nodes 2022-10-02 23:04:38 +02:00
qcom-ipq4018-hap-ac2.dts ipq40xx: convert some boards to DSA 2022-10-02 23:04:39 +02:00
qcom-ipq4018-jalapeno.dts
qcom-ipq4018-jalapeno.dtsi ipq40xx: convert some boards to DSA 2022-10-02 23:04:39 +02:00
qcom-ipq4018-magic-2-wifi-next.dts ipq40xx: disable nodes instead of deleting them 2022-10-02 23:04:38 +02:00
qcom-ipq4018-meshpoint-one.dts ipq40xx: remove model name from LED labels 2020-10-07 01:31:37 +02:00
qcom-ipq4018-nbg6617.dts ipq40xx: convert some boards to DSA 2022-10-02 23:04:39 +02:00
qcom-ipq4018-pa1200.dts ipq40xx: Convert plasmacloud,pa1200 to DSA 2022-11-13 15:26:34 +01:00
qcom-ipq4018-rt-ac58u.dts ipq40xx: convert some boards to DSA 2022-10-02 23:04:39 +02:00
qcom-ipq4018-rutx10.dts ipq40xx: Add support for Teltonika RUTX10 2021-11-28 18:39:01 +01:00
qcom-ipq4018-rutx.dtsi ipq40xx: drop ESSEDMA + AR40xx DTS nodes 2022-10-02 23:04:38 +02:00
qcom-ipq4018-sxtsq-5-ac.dts ipq40xx: convert some boards to DSA 2022-10-02 23:04:39 +02:00
qcom-ipq4018-wac510.dts ipq40xx: convert some boards to DSA 2022-10-02 23:04:39 +02:00
qcom-ipq4018-wap-ac-lte.dts ipq40xx: add support for Mikrotik wAP R ac / LTE / LTE6 2022-11-27 13:28:22 +00:00
qcom-ipq4018-wap-ac.dts ipq40xx: add support for Mikrotik wAP R ac / LTE / LTE6 2022-11-27 13:28:22 +00:00
qcom-ipq4018-wap-ac.dtsi ipq40xx: add support for Mikrotik wAP R ac / LTE / LTE6 2022-11-27 13:28:22 +00:00
qcom-ipq4018-wap-r-ac.dts ipq40xx: add support for Mikrotik wAP R ac / LTE / LTE6 2022-11-27 13:28:22 +00:00
qcom-ipq4018-whw01.dts ipq40xx: migrate Linksys WHW01 to DSA and re-enable 2022-12-31 05:02:38 -08:00
qcom-ipq4018-wr-1.dts ipq40xx: pakedge_wr-1: convert to DSA 2022-10-05 19:16:52 +02:00
qcom-ipq4018-wre6606.dts ipq40xx: drop ESSEDMA + AR40xx DTS nodes 2022-10-02 23:04:38 +02:00
qcom-ipq4018-wrtq-329acn.dts ipq40xx: luma_wrtq-329acn: convert to DSA 2022-10-05 19:10:28 +02:00
qcom-ipq4019-a62.dts ipq40xx: utilize nvmem-cells for openmesh,a62 2022-11-12 18:15:55 +01:00
qcom-ipq4019-cm520-79f.dts ipq40xx: convert to DSA and enable mobipromo,cm520-79f 2022-10-23 01:45:52 +02:00
qcom-ipq4019-e2600ac-c1.dts ipq40xx: update E2600AC c1/c2 board 2022-03-25 18:14:13 +01:00
qcom-ipq4019-e2600ac-c2.dts ipq40xx: update E2600AC c1/c2 board 2022-03-25 18:14:13 +01:00
qcom-ipq4019-e2600ac.dtsi ipq40xx: drop ESSEDMA + AR40xx DTS nodes 2022-10-02 23:04:38 +02:00
qcom-ipq4019-ea8300.dts ipq40xx: remove model name from LED labels 2020-10-07 01:31:37 +02:00
qcom-ipq4019-eap2200.dts ipq40xx: drop ESSEDMA + AR40xx DTS nodes 2022-10-02 23:04:38 +02:00
qcom-ipq4019-fritzbox-7530.dts ipq40xx: convert some boards to DSA 2022-10-02 23:04:39 +02:00
qcom-ipq4019-fritzrepeater-1200.dts ipq40xx: convert some boards to DSA 2022-10-02 23:04:39 +02:00
qcom-ipq4019-fritzrepeater-3000.dts ipq40xx: drop ESSEDMA + AR40xx DTS nodes 2022-10-02 23:04:38 +02:00
qcom-ipq4019-gl-b2200.dts generic: fix silicon labs spidev bindings 2023-01-06 16:01:10 +01:00
qcom-ipq4019-habanero-dvk.dts ipq40xx: convert some boards to DSA 2022-10-02 23:04:39 +02:00
qcom-ipq4019-hap-ac3-lte6-kit.dts ipq40xx: add support for MikroTik hAP ac3 LTE6 kit 2022-10-30 23:14:45 +01:00
qcom-ipq4019-hap-ac3.dts ipq40xx: convert some boards to DSA 2022-10-02 23:04:39 +02:00
qcom-ipq4019-lhgg-60ad.dts ipq40xx: convert some boards to DSA 2022-10-02 23:04:39 +02:00
qcom-ipq4019-map-ac2200.dts ipq40xx: convert some boards to DSA 2022-10-02 23:04:39 +02:00
qcom-ipq4019-mf18a.dts ipq40xx: Add support ZTE MF18A 2023-01-14 19:19:36 +01:00
qcom-ipq4019-mf286d.dts ipq40xx: dts: remove leftover nodes after DSA conversion 2022-11-13 15:31:54 +01:00
qcom-ipq4019-mf289f.dts ipq40xx: Fix wrong GPIO for internal status LED on ZTE MF289F 2022-10-12 00:59:39 +02:00
qcom-ipq4019-mr8300.dts ipq40xx: remove model name from LED labels 2020-10-07 01:31:37 +02:00
qcom-ipq4019-ncp-hg100-cellular.dts ipq40xx: convert to DSA and enable Sony NCP-HG100/Cellular 2022-10-09 22:45:06 +02:00
qcom-ipq4019-oap100.dts ipq40xx: drop ESSEDMA + AR40xx DTS nodes 2022-10-02 23:04:38 +02:00
qcom-ipq4019-orbi.dtsi ipq40xx: convert to DSA and enable Netgear Orbi devices 2022-10-25 02:34:46 +02:00
qcom-ipq4019-pa2200.dts ipq40xx: Convert plasmacloud,pa2200 to DSA 2022-11-13 15:26:34 +01:00
qcom-ipq4019-r619ac-64m.dts ipq40xx: add support for P&W R619AC (aka G-DOCK 2.0) 2021-11-14 14:28:34 +01:00
qcom-ipq4019-r619ac-128m.dts ipq40xx: add support for P&W R619AC (aka G-DOCK 2.0) 2021-11-14 14:28:34 +01:00
qcom-ipq4019-r619ac.dtsi ipq40xx: convert some boards to DSA 2022-10-02 23:04:39 +02:00
qcom-ipq4019-rbr50.dts ipq40xx: add support for Netgear SRR60/SRS60 and RBR50/RBS50 2021-11-01 00:56:51 +01:00
qcom-ipq4019-rbs50.dts ipq40xx: add support for Netgear SRR60/SRS60 and RBR50/RBS50 2021-11-01 00:56:51 +01:00
qcom-ipq4019-rt-ac42u.dts ipq40xx: convert to DSA and enable asus,rt-ac42u 2022-10-22 20:09:58 +08:00
qcom-ipq4019-rtl30vw.dts ipq40xx: convert some boards to DSA 2022-10-02 23:04:39 +02:00
qcom-ipq4019-srr60.dts ipq40xx: add support for Netgear SRR60/SRS60 and RBR50/RBS50 2021-11-01 00:56:51 +01:00
qcom-ipq4019-srs60.dts ipq40xx: add support for Netgear SRR60/SRS60 and RBR50/RBS50 2021-11-01 00:56:51 +01:00
qcom-ipq4019-u4019-32m.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4019-u4019.dtsi ipq40xx: drop ESSEDMA + AR40xx DTS nodes 2022-10-02 23:04:38 +02:00
qcom-ipq4019-wifi.dts ipq40xx: Convert Google Wifi to DSA, reenable 2022-10-23 08:27:40 +02:00
qcom-ipq4019-wpj419.dts ipq40xx: drop ESSEDMA + AR40xx DTS nodes 2022-10-02 23:04:38 +02:00
qcom-ipq4019-wtr-m2133hp.dts ipq40xx: drop ESSEDMA + AR40xx DTS nodes 2022-10-02 23:04:38 +02:00
qcom-ipq4019-x1pro.dts ipq40xx: drop ESSEDMA + AR40xx DTS nodes 2022-10-02 23:04:38 +02:00
qcom-ipq4019-x1pro.dtsi ipq40xx: drop ESSEDMA + AR40xx DTS nodes 2022-10-02 23:04:38 +02:00
qcom-ipq4019-xx8300.dtsi ipq40xx: re-enable EA6350v3, EA8300, MR8300 builds 2022-12-31 05:02:38 -08:00
qcom-ipq4028-wpj428.dts ipq40xx: convert some boards to DSA 2022-10-02 23:04:39 +02:00
qcom-ipq4029-ap-303.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4029-ap-303h.dts ipq40xx: fix wlan mac address for Aruba AP-303H 2023-01-04 19:17:56 +01:00
qcom-ipq4029-ap-365.dts ipq40xx: add Aruba AP-365 specific BDF 2022-06-02 16:50:12 +02:00
qcom-ipq4029-aruba-glenmorangie.dtsi ipq40xx: convert some boards to DSA 2022-10-02 23:04:39 +02:00
qcom-ipq4029-gl-b1300.dts ipq40xx: glinet-b1300: fix LAN and WAN MAC address assigments 2022-10-03 08:06:43 +02:00
qcom-ipq4029-gl-s1300.dts generic: fix silicon labs spidev bindings 2023-01-06 16:01:10 +01:00
qcom-ipq4029-insect-common.dtsi ipq40xx: Meraki MR33: convert MAC addresses to nvmem 2022-10-02 23:04:39 +02:00
qcom-ipq4029-mr33.dts ipq40xx: add support for Meraki MR74 2022-06-19 12:31:02 +02:00
qcom-ipq4029-mr74.dts ipq40xx: add support for Meraki MR74 2022-06-19 12:31:02 +02:00
qcom-ipq4029-ws-ap3915i.dts ipq40xx: drop ESSEDMA + AR40xx DTS nodes 2022-10-02 23:04:38 +02:00