1,001

Odp: ZTE MF289F - Porting OpenWRT

No niby tak ale szukamy raczej procesu

1,002

Odp: ZTE MF289F - Porting OpenWRT

Możesz wyciągnąć pliki z backup'ów.

1,003 (edytowany przez Feromon 2024-02-18 08:04:57)

Odp: ZTE MF289F - Porting OpenWRT

Hi guys, I really need your help, how can I reset my modem to factory settings?  Because the modem is always in search mode and does not connect to the cell.  I don't know how this happened, but resetting OpenWRT to factory settings didn't help.


daemon.info [2722]: <info>  [modem0] simple connect started...
Sat Feb 17 07:50:49 2024 daemon.info [2722]: <info>  [modem0] simple connect state (4/10): wait to get fully enabled
Sat Feb 17 07:50:49 2024 daemon.info [2722]: <info>  [modem0] simple connect state (5/10): wait after enabled
Sat Feb 17 07:50:50 2024 daemon.info [2722]: <info>  [modem0] simple connect state (6/10): register
Sat Feb 17 07:51:50 2024 daemon.info [2722]: <info>  [modem0] 3GPP registration state changed (searching -> idle)
Sat Feb 17 07:51:50 2024 daemon.info [2722]: <info>  [modem0] state changed (searching -> enabled)
Sat Feb 17 07:51:50 2024 daemon.notice netifd: o2 (14317): error: couldn't connect the modem: 'GDBus.Error:org.freedesktop.ModemManager1.Error.MobileEquipment.NetworkTimeout: Network timeout'
Sat Feb 17 07:51:50 2024 daemon.notice netifd: o2 (14791): stopping network
Sat Feb 17 07:51:50 2024 daemon.notice netifd: o2 (14791): couldn't load bearer path: disconnecting anyway
Sat Feb 17 07:51:51 2024 daemon.notice netifd: Interface 'o2' is now down
Sat Feb 17 07:51:52 2024 daemon.warn odhcpd[2032]: No default route present, overriding ra_lifetime!

1,004

Odp: ZTE MF289F - Porting OpenWRT

Is this modem really in the proper state ?
can you show results of

cat /sys/kernel/debug/usb/devices

1,005

Odp: ZTE MF289F - Porting OpenWRT

MiG25 napisał/a:

Is this modem really in the proper state ?
can you show results of

cat /sys/kernel/debug/usb/devices

BusyBox v1.36.1 (2023-11-15 10:00:19 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------------------------------
 |                                                                           |
 | OpenWrt 23.05-SNAPSHOT, r23743-b79583c975                                 |
 |                                                                           |
 | Build time: 2024-02-10 11:13 CET                                          |
 | Cezary Jackiewicz, https://eko.one.pl                                     |
 |                                                                           |
 -----------------------------------------------------------------------------
 | Machine: ZTE MF289F                                                       |
 | Uptime: 0d, 04:55:55                                                      |
 | Load: 0.09 0.03 0.01                                                      |
 | Flash: total: 12.7MB, free: 5.7MB, used: 52%                              |
 | Memory: total: 242.4MB, free: 144.9MB, used: 40%                          |
 | Leases: 1                                                                 |
 | lan: static, 192.168.1.1                                                  |
 | o2: modemmanager, ?                                                       |
 | wg0: wireguard, ?                                                         |
 | radio0: lan, mode: ap, ssid: OpenWrt, channel: 1, conn: 0                 |
 | radio1: lan, mode: ap, ssid: OpenWrt, channel: 36, conn: 1                |
 -----------------------------------------------------------------------------
root@OpenWrt:~# cat /sys/kernel/debug/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 5.15
S:  Manufacturer=Linux 5.15.147 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=xhci-hcd.0.auto
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev= 5.15
S:  Manufacturer=Linux 5.15.147 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=xhci-hcd.0.auto
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=5000 MxCh= 0
D:  Ver= 3.20 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs=  1
P:  Vendor=19d2 ProdID=1432 Rev=58.11
S:  Manufacturer=ZTE,Incorporated
S:  Product=ZTE Mobile Broadband
S:  SerialNumber=P685M135MZTED000000
C:* #Ifs= 5 Cfg#= 1 Atr=80 MxPwr=896mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=83(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=85(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
E:  Ad=86(I) Atr=03(Int.) MxPS=   8 Ivl=32ms
E:  Ad=8e(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=0f(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none)
E:  Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=87(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms

T:  Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 5.15
S:  Manufacturer=Linux 5.15.147 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=xhci-hcd.1.auto
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 0
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev= 5.15
S:  Manufacturer=Linux 5.15.147 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=xhci-hcd.1.auto
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms
root@OpenWrt:~#

1,006

Odp: ZTE MF289F - Porting OpenWRT

So maybe standard commands to check status:

uqmi -d /dev/cdc-wdm0 --uim-get-sim-state
uqmi -d /dev/cdc-wdm0 --get-serving-system
uqmi -d /dev/cdc-wdm0 --get-system-info
ifstatus wan

1,007

Odp: ZTE MF289F - Porting OpenWRT

MiG25 napisał/a:

So maybe standard commands to check status:

uqmi -d /dev/cdc-wdm0 --uim-get-sim-state
uqmi -d /dev/cdc-wdm0 --get-serving-system
uqmi -d /dev/cdc-wdm0 --get-system-info
ifstatus wan
root@OpenWrt:~# uqmi -d /dev/cdc-wdm0 --uim-get-sim-state
{
        "card_application_state": "ready",
        "pin1_status": "disabled",
        "pin1_verify_tries": 3,
        "pin1_unlock_tries": 10,
        "pin2_status": "not_verified",
        "pin2_verify_tries": 3,
        "pin2_unlock_tries": 10
}
root@OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-serving-system
{
        "registration": "searching",
        "plmn_mcc": 262,
        "plmn_mnc": 2,
        "plmn_description": "",
        "roaming": false
}
root@OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-system-info
{
        "gsm": {
                "service_status": "none",
                "true_service_status": "none",
                "preferred_data_path": false
        },
        "wcdma": {
                "service_status": "none",
                "true_service_status": "none",
                "preferred_data_path": false
        },
        "lte": {
                "service_status": "limited",
                "true_service_status": "none",
                "preferred_data_path": false,
                "domain": "none",
                "service": "cs-ps",
                "roaming_status": "off",
                "forbidden": false,
                "mcc": "262",
                "mnc": "02",
                "tracking_area_code": 45157,
                "enodeb_id": 53457,
                "cell_id": 2,
                "cell_access_status": "all calls",
                "registration_restriction": 0,
                "registration_domain": 0
        }
}
root@OpenWrt:~# ifstatus wan
Interface wan not found
root@OpenWrt:~# ifstatus wwan0
Interface wwan0 not found
root@OpenWrt:~# ifstatus
Usage: /sbin/ifstatus <interface>
root@OpenWrt:~# ifstatus o2
{
        "up": false,
        "pending": false,
        "available": true,
        "autostart": false,
        "dynamic": false,
        "proto": "modemmanager",
        "data": {

        },
        "errors": [
                {
                        "subsystem": "modemmanager",
                        "code": "MM_CONNECT_FAILED"
                }
        ]
}
root@OpenWrt:~#

1,008

Odp: ZTE MF289F - Porting OpenWRT

"registration": "searching",

Not connected, not registered to ISP. Wrong SIM card, disabled or you are out of coverage?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

1,009 (edytowany przez Feromon 2024-02-18 14:14:23)

Odp: ZTE MF289F - Porting OpenWRT

Cezary napisał/a:

"registration": "searching",

Not connected, not registered to ISP. Wrong SIM card, disabled or you are out of coverage?

No, the SIM card works fine in the phone.  And I tried 2 different SIM cards, but the result was the same.  Until yesterday evening, this SIM card worked without problems for more than six months.

1,010

Odp: ZTE MF289F - Porting OpenWRT

So maybe it's a problem with the modem or antennas.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

1,011 (edytowany przez Feromon 2024-02-18 14:58:17)

Odp: ZTE MF289F - Porting OpenWRT

Cezary napisał/a:

So maybe it's a problem with the modem or antennas.

And how can I check this?  But why then can I scan the network?

root@OpenWrt:~# mmcli -m 3 --3gpp-scan --timeout=300
  ---------------------
  3GPP scan | networks: 26203 - o2 - de (lte, forbidden)
            |           26201 - TDG (lte, forbidden)
            |           26202 - Vodafone (lte, current)

mmcli -m 4 --simple-connect="apn=web.vodafone.de"        error: couldn't connect the modem: 'Timeout was reached'

1,012

Odp: ZTE MF289F - Porting OpenWRT

SIM card is from which operator? Vodafone?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

1,013

Odp: ZTE MF289F - Porting OpenWRT

Cezary napisał/a:

SIM card is from which operator? Vodafone?

I tried both o2 and Vodafone.

1,014

Odp: ZTE MF289F - Porting OpenWRT

If I go back to the stock firmware, will this help or should I throw out the modem?

1,015

Odp: ZTE MF289F - Porting OpenWRT

I have read that this router has 128Mb of flash NAND. Is it normal that I have only 10Mb for packages in /overlay? This is the result of df -h:

 Filesystem                Size      Used Available Use% Mounted on
/dev/root                 9.3M      9.3M         0 100% /rom
tmpfs                   121.2M      2.3M    118.9M   2% /tmp
/dev/ubi0_2              10.3M      4.7M      5.0M  49% /overlay
overlayfs:/overlay       10.3M      4.7M      5.0M  49% /
tmpfs                   512.0K         0    512.0K   0% /dev

What is your output of df -h?

1,016

Odp: ZTE MF289F - Porting OpenWRT

Because of flash layout and other zte partitions.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

1,017

Odp: ZTE MF289F - Porting OpenWRT

Nie dałoby się tego jakoś inaczej podzielić ?

[    2.135387] spi-nand spi0.1: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 128
[    2.141108] 12 fixed-partitions partitions found on MTD device spi0.1
[    2.176415] Creating 12 MTD partitions on "spi0.1":
[    2.182608] 0x000000000000-0x0000000a0000 : "fota-flag"
[    2.189847] 0x0000000a0000-0x000000120000 : "ART"
[    2.194678] 0x000000120000-0x0000001a0000 : "mac"
[    2.199702] 0x0000001a0000-0x000000260000 : "reserved2"
[    2.204916] 0x000000260000-0x000000660000 : "cfg-param"
[    2.219581] 0x000000660000-0x000000a60000 : "log"
[    2.231989] 0x000000a60000-0x000000b00000 : "oops"
[    2.234602] 0x000000b00000-0x000001000000 : "reserved3"
[    2.251330] 0x000001000000-0x000001800000 : "web"
[    2.275441] 0x000001800000-0x000003500000 : "rootfs"
[    2.361576] mtd: setting mtd17 (rootfs) as root device
[    2.363050] mtdsplit: no squashfs found in "rootfs"
[    2.365638] 0x000003500000-0x000004e00000 : "data"
[    2.445086] 0x000004e00000-0x000008000000 : "fota"

web - 8M, rootfs - 29M, data - 25M

1,018

Odp: ZTE MF289F - Porting OpenWRT

Trzeba byłoby się nakombinować. Tutaj kernel jest ładowan z wewnątrz wolumenu UBI, który już oryginalnie na flashu był i nie można zmienić jego lokalizacji, w odróżnieniu od poprzednich wersji na MIPS, gdzie kernel był na surowej partycji.

1,019

Odp: ZTE MF289F - Porting OpenWRT

Jeśli potrzeba więcej,  to trick z R6220 z partycją fota jako overlay....

1,020 (edytowany przez rybirek 2024-03-04 13:40:30)

Odp: ZTE MF289F - Porting OpenWRT

MiG25 napisał/a:

Jeśli potrzeba więcej,  to trick z R6220 z partycją fota jako overlay....

Jakaś podpowiedź ?
Fota to potencjalnie 50M
To ?
https://sebawnek.com/it/netgear-r6220-i … ved-space/

Nie można zmienić dts'a i połączyć te 3 partycje ?

[    2.275441] 0x000001800000-0x000003500000 : "rootfs"
[    2.365638] 0x000003500000-0x000004e00000 : "data"
[    2.445086] 0x000004e00000-0x000008000000 : "fota"

1,021

Odp: ZTE MF289F - Porting OpenWRT

W R6220 można. Zmienia się dts, zrobi się concat na partycjach i działa.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

1,022

Odp: ZTE MF289F - Porting OpenWRT

W obu przypadkach( R6220 czy MF289F)zmiana DTSa pewnie pomoże,tyle że kompilacja już samemu ....
Z PR do openwrt mogłoby być ciężko.

1,023

Odp: ZTE MF289F - Porting OpenWRT

To jest właśnie ten problem. Bo z jednej strony openwrt stara sie zachować oryginalny podział, z drugiej strony - zdarza się że wciągają DTSy które mają połączenie partycje, gość pisze że w partycjach są śmieci, dlatego concat i ti przechodzi. Teoretycznie więc można by trzasnąć odpowiedniego PR, a czy to przejdzie - to już sprawa dyskusyjna.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

1,024

Odp: ZTE MF289F - Porting OpenWRT

Na R6220 można sobie na to pozwolić, ponieważ kernel jest osobną partycją. Na MF286D i MF289F - nie. Jest wolumenem UBI, którego lokację i rozmiar zna też U-boot i jest zapisana w nim na stałe.
Być może dałoby się załatwić to loaderem i podłożoną partycją UBI zawierającą tylko jego, a ładującą kernel z docelowej zwiększonej, ale jest przy tym sporo dłubania. Nie wiem, czy coś takiego zostało już użyte w praktyce w OpenWrt.

1,025

Odp: ZTE MF289F - Porting OpenWRT

Coś takiego: https://github.com/openwrt/openwrt/pull/14770 ?