openwrt/target/linux/ipq40xx/files/arch/arm/boot/dts
Andreas Böhler e658eee813 ipq4019: add support for ZTE MF287 Pro aka DreiNeo Pro
The ZTE MF287 Pro is a LTE router used (exclusively?) by the network
operator "3". It is very similar to the MF287+, but the hardware layout
and partition layout have changed quite a bit.

Specifications
==============

SoC: IPQ4018
RAM: 256MiB
Flash: 8MiB SPI-NOR + 128MiB SPI-NAND
LAN: 4x GBit LAN
LTE: ZTE Cat12
WiFi: 802.11a/b/g/n/ac SoC-integrated
USB: 1x 2.0

MAC addresses
=============

LAN: from config + 2
WiFi 1: from config
WiFi 2: from config + 1

Installation
============

Option 1 - TFTP
---------------

TFTP installation using UART is preferred. Disassemble the device and
connect serial. Put the initramfs image as openwrt.bin to your TFTP server
and configure a static IP of 192.168.1.100. Load the initramfs image by
typing:

  setenv serverip 192.168.1.100
  setenv ipaddr 192.168.1.1
  tftpboot 0x82000000 openwrt.bin
  bootm 0x82000000

From this intiramfs boot you can take a backup of the currently installed
partitions as no vendor firmware is available for download:

  ubiattach -m17
  cat /dev/ubi0_0 > /tmp/ubi0_0
  cat /dev/ubi0_1 > /tmp/ubi0_1

Copy the files /tmp/ubi0_0 and /tmp/ubi0_1 somewhere save.

Once booted, transfer the sysupgrade image and run sysupgrade. You might
have to delete the stock volumes first:

  ubirmvol /dev/ubi0 -N ubi_rootfs
  ubirmvol /dev/ubi0 -N kernel

Option 2 - From stock firmware
------------------------------

The installation from stock requires an exploit first. The exploit consists
of a backup file that forces the firmware to download telnetd via TFTP from
192.168.0.22 and run it. Once exploited, you can connect via telnet and
login as admin:admin.

The exploit will be available at the device wiki page.

Once inside the stock firmware, you can transfer the -factory.bin file to
/tmp by using "scp" from the stock frmware or "tftp".

ZTE has blocked writing to the NAND. Fortunately, it's easy to allow write
access - you need to read from one file in /proc. Once done, you need to
erase the UBI partition and flash OpenWrt. Before performing the operation,
make sure that mtd13 is the partition labelled "rootfs" by calling
"cat /proc/mtd".

Complete commands:

  cd /tmp
  tftp -g -r factory.bin 192.168.0.22
  cat /proc/driver/sensor_id
  flash_erase /dev/mtd17 0 0
  dd if=/tmp/factory.bin of=/dev/mtdblock17 bs=131072

Afterwards, reboot your device and you should have a working OpenWrt
installation.

Restore Stock
=============

Option 1 - via UART
-------------------

Boot an OpenWrt initramfs image via TFTP as for the initial installation.
Transfer the two backed-up files to your box to /tmp.

Then, run the following commands - replace $kernel_length and $rootfs_size
by the size of ubi0_0 and ubi0_1 in bytes.

  ubiattach -m 17
  ubirmvol /dev/ubi0 -N kernel
  ubirmvol /dev/ubi0 -N rootfs
  ubirmvol /dev/ubi0 -N rootfs_data
  ubimkvol /dev/ubi0 -N kernel -s $kernel_length
  ubimkvol /dev/ubi0 -N ubi_rootfs -s $rootfs_size
  ubiupdatevol /dev/ubi0_0 /tmp/ubi0_0
  ubiupdatevol /dev/ubi0_1 /tmp/ubi0_1

Option 2 - from within OpenWrt
------------------------------

This option requires to flash an initramfs version first so that access
to the flash is possible. This can be achieved by sysupgrading to the
recovery.bin version and rebooting. Once rebooted, you are again in a
default OpenWrt installation, but no partition is mounted.

Follow the commands from Option 1 to flash back to stock.

LTE Modem
=========

The LTE modem is similar to other ZTE devices and controls some more LEDs
and battery management.

Configuring the connection using uqmi works properly, the modem
provides three serial ports and a QMI CDC ethernet interface.

Other Notes
===========

Contrary to the stock firmware, the USB port on the back can be used.

There is one GPIO Switch "Power button blocker" which, if enabled, does not
trigger a reset of the SoC if the modem reboots. If disabled, the SoC is
rebooted along with the modem. The modem can be rebooted via the exported
GPIO "modem-reset" in /sys/class/gpio.

Signed-off-by: Andreas Böhler <dev@aboehler.at>
(cherry picked from commit edfe91372a)
2023-08-21 21:41:12 +02:00
..
qcom-ipq40x9-dr40x9.dts ipq40xx: add support for Wallystech DR40x9 2023-03-21 16:38:23 +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: convert EZVIZ CS-W3-WD1200G-EUP to DSA 2023-05-20 15:19:14 +02:00
qcom-ipq4018-dap-2610.dts ipq4019: fix dts white-space 2023-02-08 02:29: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: convert Netgear EX6100/EX6150 v2 to DSA 2023-03-08 02:19:01 +01: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 ipq4019: fix dts white-space 2023-02-08 02:29:55 +01:00
qcom-ipq4018-gl-ap1300.dts ipq40xx: convert GL-AP1300 to DSA 2023-04-24 18:32:26 +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 ipq40xx: consolidate DTS files 2020-06-23 21:02:26 +02:00
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-mf287.dtsi ipq4019: add support for ZTE MF287 Pro aka DreiNeo Pro 2023-08-21 21:41:12 +02:00
qcom-ipq4018-mf287plus.dts ipq4019: add support for ZTE MF287 Pro aka DreiNeo Pro 2023-08-21 21:41:12 +02:00
qcom-ipq4018-mf287pro.dts ipq4019: add support for ZTE MF287 Pro aka DreiNeo Pro 2023-08-21 21:41:12 +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: move Teltonika RUT STM32 IO to specific DTS 2023-07-26 15:37:56 +02:00
qcom-ipq4018-rutx50.dts ipq40xx: add support for Teltonika RUTX50 2023-07-26 15:37:56 +02:00
qcom-ipq4018-rutx.dtsi ipq40xx: move Teltonika RUT STM32 IO to specific DTS 2023-07-26 15:37:56 +02:00
qcom-ipq4018-sxtsq-5-ac.dts ipq4019: fix dts white-space 2023-02-08 02:29:55 +01: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: add e2600ac c1 to dsa 2023-05-31 23:14:25 +02:00
qcom-ipq4019-e2600ac-c2.dts ipq40xx: add e2600ac c2 to dsa 2023-05-31 23:14:32 +02: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: add DSL support for FritzBox 7530 2023-01-16 23:41:41 +00: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 ipq4019: fix support for AVM FRITZ!Repeater 3000 2023-07-27 13:54:55 +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 ipq4019: fix dts white-space 2023-02-08 02:29:55 +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: mf18a: rename wifi0 calibration variant to ZTE-MF18A 2023-03-18 12:47:48 +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: fix assignment of lan port numbers for Cell C RTL30VW 2023-02-06 13:26:58 +01: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-whw03v2.dts ipq4019: fix dts white-space 2023-02-08 02:29:55 +01:00
qcom-ipq4019-wifi.dts ipq40xx: add LED functions for Google WiFi 2023-03-31 19:39:36 +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: convert Buffalo WTR-M2133HP to DSA 2023-06-08 15:33:14 +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: fix dts whitespace 2023-02-09 03:03:47 +01:00
qcom-ipq4019-xx8300.dtsi ipq40xx: Linksys MR8300: fix the USB port power 2023-02-25 20:33:40 +01: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 ipq4019: fix dts white-space 2023-02-08 02:29:55 +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 ipq4019: fix dts white-space 2023-02-08 02:29:55 +01:00