376

Odp: ZTE MF289F - Porting OpenWRT

Nie masz repo od luci wpisanego w konfigu. Dopisz sobie odpowiednio do repo tego urla:

https://downloads.openwrt.org/snapshots/packages/arm_cortex-a7_neon-vfpv4/luci/

Tylko zrób to analogicznie jak inne repo - nazwy itd.

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

377

Odp: ZTE MF289F - Porting OpenWRT

Dodałem do /etc/opkg/customfeeds.conf i mam:

root@OpenWrt:~# opkg update
Downloading https://downloads.openwrt.org/snapshots … ackages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/snapshots … ckages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots … ackages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/snapshots … ckages.sig
Signature check passed.
Collected errors:
* opkg_conf_parse_file: /etc/opkg/customfeeds.conf:5: Ignoring invalid line: `https://downloads.openwrt.org/snapshots/packages/arm_cortex-a7_neon-vfpv4/luci/'
root@OpenWrt:~#


Dodałem do /etc/opkg/distfeeds.conf czyli:

src/gz openwrt_core https://downloads.openwrt.org/snapshots … c/packages
src/gz openwrt_base https://downloads.openwrt.org/snapshots … vfpv4/base
src/gz openwrt_base https://downloads.openwrt.org/snapshots … fpv4/luci/


mam to:

root@OpenWrt:~# opkg update
Downloading https://downloads.openwrt.org/snapshots … ackages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/snapshots … ckages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots … ackages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/snapshots … ckages.sig
Signature check passed.
Collected errors:
* opkg_conf_parse_file: Duplicate src declaration (openwrt_base https://downloads.openwrt.org/snapshots … v4/luci/). Skipping.
root@OpenWrt:~#

378

Odp: ZTE MF289F - Porting OpenWRT

Naprawdę nie widzisz co robisz? Masz podwójną nazwę openwrt_base, zmień to na openwrt_luci w repo dla luci. Coś mało uważny jesteś w tym co robisz.

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

379

Odp: ZTE MF289F - Porting OpenWRT

Dziękuję. Poszło do przodu ale ta Lucyna to uparta kobieta;)

root@OpenWrt:~# opkg update
Downloading https://downloads.openwrt.org/snapshots … ackages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/snapshots … ckages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots … ackages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/snapshots … ckages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots … ackages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/snapshots … ckages.sig
Signature check passed.
root@OpenWrt:~# opkg install luci
Installing luci (git-20.074.84698-ead5e81) to root...
Downloading https://downloads.openwrt.org/snapshots … 81_all.ipk
Collected errors:
* pkg_hash_check_unresolved: cannot find dependency cgi-io for luci-base
* pkg_hash_fetch_best_installation_candidate: Packages for luci-base found, but incompatible with the architectures configured
* pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.71-1-2077c02765e51da2553fbc0b99fad999) for kmod-nf-ipt
* pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-ipt found, but incompatible with the architectures configured
* pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.71-1-2077c02765e51da2553fbc0b99fad999) for kmod-ipt-core
* pkg_hash_fetch_best_installation_candidate: Packages for kmod-ipt-core found, but incompatible with the architectures configured
* pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.71-1-2077c02765e51da2553fbc0b99fad999) for kmod-ipt-conntrack
* pkg_hash_fetch_best_installation_candidate: Packages for kmod-ipt-conntrack found, but incompatible with the architectures configured
* pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.71-1-2077c02765e51da2553fbc0b99fad999) for kmod-ipt-nat
* pkg_hash_fetch_best_installation_candidate: Packages for kmod-ipt-nat found, but incompatible with the architectures configured
* satisfy_dependencies_for: Cannot satisfy the following dependencies for luci:
*      cgi-io
* opkg_install_cmd: Cannot install package luci.
root@OpenWrt:~#

380

Odp: ZTE MF289F - Porting OpenWRT

Mówiłem żebyś nie instalował luci. Teraz musisz dodać sobie także repo kernela w odpowiedniej wersji:

https://downloads.openwrt.org/snapshots/targets/ipq40xx/generic/kmods/5.15.71-1-2077c02765e51da2553fbc0b99fad999/

I usunąć repo oznaczone jako openwrt_core, bo się będzie gryzło.

A co do cgi-io - jak go nie ma to się zbuduje za jakiś czas i musisz poczekać. Albo zainstaluj ze 22.03-snapshot, powinien raczje działać.

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

381 (edytowany przez tango38317 2022-10-10 09:54:31)

Odp: ZTE MF289F - Porting OpenWRT

Cezary napisał/a:

These are two lines, not one.

tftp openwrt-ipq40xx-generic-zte_mf289f-initramfs-fit-zImage.itb<enter>
bootm $loadaddr<enter>


Hi,
may thanks Cezary for clarifiying, was able to flash Openwrt 20640. Router is booting and i´m able to enter console and also Webinterface.
One issue i see:
i bought this router without simlock - but did not test it before reflashing (my fault).
i added a sim card into the device, but i get an error:
unknown error (pin_status_failed) - but this card should not have a sim pin - do you have an idea?

EDIT: ok - found issue - sim card is not detected... will verify it.

if device is working i can also try to flash latest version you have added in this forum.
br
Chris

382

Odp: ZTE MF289F - Porting OpenWRT

tango38317 napisał/a:

One issue i see:
i bought this router without simlock - but did not test it before reflashing (my fault).
i added a sim card into the device, but i get an error:
unknown error (pin_status_failed) - but this card should not have a sim pin - do you have an idea?

if device is working i can also try to flash latest version you have added in this forum.
br
Chris

Remove option pincode from config (if exists)?

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

383 (edytowany przez smereka 2022-10-10 09:59:06)

Odp: ZTE MF289F - Porting OpenWRT

Zostawiam na Twoim testowym bez upartej Lucyny i tak ta płyta leżała już bodaj ponad miesiąc nie ruszana to dalej będzie leżeć i czekać na pełnosprawny openwrt a na razie może być z protezą. To i tak kolejny rezerwowy po zyxelu sprzęt. Dzięki

384

Odp: ZTE MF289F - Porting OpenWRT

Teraz aż chciało by się znów powiedzieć - szukajcie następnego sprzętu który być może da się przerobić...

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

385

Odp: ZTE MF289F - Porting OpenWRT

O i to jest dobra puenta smile

386

Odp: ZTE MF289F - Porting OpenWRT

Cezary napisał/a:
tango38317 napisał/a:

One issue i see:
i bought this router without simlock - but did not test it before reflashing (my fault).
i added a sim card into the device, but i get an error:
unknown error (pin_status_failed) - but this card should not have a sim pin - do you have an idea?

if device is working i can also try to flash latest version you have added in this forum.
br
Chris

Remove option pincode from config (if exists)?

OK - additional reboot was required - after reboot sim goes online, and public ip is there.

I found this version in this blog: https://dl.eko.one.pl/test/openwrt-ipq4 … pgrade.bin
any special to test?
br
Chris

387

Odp: ZTE MF289F - Porting OpenWRT

tango38317 napisał/a:

I found this version in this blog: https://dl.eko.one.pl/test/openwrt-ipq4 … pgrade.bin
any special to test?

No, just wait for builds from openwrt.

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

388

Odp: ZTE MF289F - Porting OpenWRT

Obrazy z openwrt są już dostępne. Swoje testy usuwam, używajcie normalnie oficjalnego wydania.

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

389

Odp: ZTE MF289F - Porting OpenWRT

Wgrany obraz z openwrt.org , także działa , choć luci się nie instaluje smile

Collected errors:
 * check_data_file_clashes: Package libnl-tiny2022-05-17 wants to install file /                                                                                                                     usr/lib/libnl-tiny.so
        But that file is already provided by package  * libnl-tiny2022-05-23
 * opkg_install_cmd: Cannot install package luci.

Czy to znczy ,że teraz też będą Twoje obrazy ? (Szczególnie interesuje mnie mifi ).

390

Odp: ZTE MF289F - Porting OpenWRT

Nie, ten model nie został przeniesiony do wydania stabilnego.

easyconfig możesz sobie doinstalować ode mnie z repo, prawie będzie to samo co gotowe mifi.

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

391

Odp: ZTE MF289F - Porting OpenWRT

To stąd ? https://dl.eko.one.pl/openwrt-22.03/pac … fpv4/base/
Bo jakoś za dużo informacji o sieci tam nie ma...

No i co trzeba zrobić ,żeby był przeniesiony do wersji sabilnej i były Twoje buildy ?

392

Odp: ZTE MF289F - Porting OpenWRT

Przygotowałem cały opis o easyconfig: https://eko.one.pl/?p=easyconfig jak to zainstalować, co trzeba doinstalować, jak to można skonfigurowac pod siebie. Więc nie wiem jakim cudem piszesz że "Bo jakoś za dużo informacji o sieci tam nie ma".

Tak, może być i z tego katalogu, jest tam aktualna wersja.

Żeby dane urządzenie było w wydaniu stabilnym to jakiś deweloper musi go po prostu przenieść. Można zgłosić PR żeby to włączyć do wydania stabilnego, ale czy i kiedy będzie to już zalezy o widzimisie jednego z ludzi który maja prawa do commitowania w repo.

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

393

Odp: ZTE MF289F - Porting OpenWRT

Takim cudem piszę , że jak nacisnę "więcej parametrów" ,to w wyskakującym oknie pojawia się tylko MCC MNC 260 02 ( a zdaje się , powinno się pojawić i parametry sygnału , i agregacja), myślałem ,że może jakaś stara wersja (data sugeruje lipiec).

394

Odp: ZTE MF289F - Porting OpenWRT

Parametry są brane z dodatkowych plików, jak zainstalowałeś easyconfig z paczki to siłą rzeczy tych plików nie ma. W /usr/share/3ginfo/ podmień sobie pliki z https://github.com/obsy/packages/tree/m … nfig/addon
(po podmiany jest plik 3ginfo.sh oraz zrob katalog /usr/share/3ginfo/3ginfo-addon i wrzuć tam pliki z https://github.com/obsy/packages/tree/m … info-addon )

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

395

Odp: ZTE MF289F - Porting OpenWRT

Nie no jeszcze czegoś brakuje , bo ciągle to samo .
Z tego katalogu zainstalowałem po kolei: 3ginfo-lite , 3ginfo-text , 3ginfo , easyconfig , sms-tool , no i pózniej skopiowalem caly katalog addon , ustawilem plik 3ginfo.sh na 0755 i dalej to samo...

396

Odp: ZTE MF289F - Porting OpenWRT

A podmieniłeś 3ginfo.sh? Jeżeli tak to wykonaj i pokaż

/usr/share/3ginfo/3ginfo.sh
Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

397

Odp: ZTE MF289F - Porting OpenWRT

Tak,podmieniłem:

root@OpenWrt:~# /usr/share/3ginfo/3ginfo.sh
{
"csq":"20",
"signal":"64",
"operator_name":"T-Mobile T-Mobile.pl",
"operator_mcc":"260",
"operator_mnc":"02",
"mode":"LTE",
"registration":"1",
"lac_dec":"0",
"lac_hex":"0",
"cid_dec":"0",
"cid_hex":"0",
"addon":[]
}

398

Odp: ZTE MF289F - Porting OpenWRT

sh -x  /usr/share/3ginfo/3ginfo.sh
Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

399

Odp: ZTE MF289F - Porting OpenWRT

root@OpenWrt:~# sh -x  /usr/share/3ginfo/3ginfo.sh
+ RES=/usr/share/3ginfo-lite
+ uci -q get '3ginfo.@3ginfo[0].device'
+ DEVICE=
+ '[' x '=' x ]
+ touch /tmp/modem
+ cat /tmp/modem
+ DEVICE=/dev/ttyUSB2
+ '[' x/dev/ttyUSB2 '=' x ]
+ '[' x/dev/ttyUSB2 '=' x ]
+ sms_tool -D -d /dev/ttyUSB2 at 'AT+CSQ;+CPIN?;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?'
+ O='
+CSQ: 19,99

+CPIN: READY

+COPS: 0,0,"T-Mobile T-Mobile.pl",7

+COPS: 0,2,"26002",7

+CREG: 2,1

'K
+ echo '
+CSQ: 19,99

+CPIN: READY

+COPS: 0,0,"T-Mobile T-Mobile.pl",7

+COPS: 0,2,"26002",7

+CREG: 2,1

'K
+ awk '-F[, ]' '/^\+(csq|CSQ)/ {print $2}'
+ CSQ=19
+ '[' x19 '=' x ]
+ '[' 19 -ge 0 -a 19 -le 31 ]
+ CSQ_PER=61
+ echo '
+CSQ: 19,99

+CPIN: READY

+COPS: 0,0,"T-Mobile T-Mobile.pl",7

+COPS: 0,2,"26002",7

+CREG: 2,1

'+ awk '-F["]' '/^\+COPS: .,2/ {print $2}'

+ COPS_NUM=26002
+ '[' x26002 '=' x ]
+ COPS_MCC=260
+ COPS_MNC=02
+ awk '-F[;]' '/26002/ {print $2}' /usr/share/3ginfo-lite/mccmnc.dat
+ COPS=T-Mobile
+ '[' xT-Mobile '=' x ]
+ '[' -z  ]
+ echo '
+CSQ: 19,99

+CPIN: READY

+COPS: 0,0,"T-Mobile T-Mobile.pl",7

+COPS: 0,2,"26002",7

+CREG: 2,1

'+ awk '-F["]' '/^\+COPS: .,0/ {print $2}'

+ T='T-Mobile T-Mobile.pl'
+ '[' 'xT-Mobile T-Mobile.pl' '!=' x ]
+ COPS='T-Mobile T-Mobile.pl'
+ echo '
+CSQ: 19,99

+CPIN: READY

+COPS: 0,0,"T-Mobile T-Mobile.pl",7

+COPS: 0,2,"26002",7

+CREG: 2,1

'K
+ awk '-F[,]' '/^\+CREG/ {gsub(/[[:space:]"]+/,"");printf "T=\"%d\";LAC_HEX=\"%X\";CID_HEX=\"%X\";LAC_DEC=\"%d\";CID_DEC=\"%d\";MODE_NUM=\"%d\"", $2, "0x"$3, "0x"$4, "0x"$3, "0x"$4, $5}'
+ eval 'T="1";LAC_HEX="0";CID_HEX="0";LAC_DEC="0";CID_DEC="0";MODE_NUM="0"'
+ T=1
+ LAC_HEX=0
+ CID_HEX=0
+ LAC_DEC=0
+ CID_DEC=0
+ MODE_NUM=0
+ REG=1
+ '[' -z 0 ]
+ '[' x0 '=' x0 ]
+ echo '
+CSQ: 19,99

+CPIN: READY

+COPS: 0,0,"T-Mobile T-Mobile.pl",7

+COPS: 0,2,"26002",7

+CREG: 2,1

'K
+ awk '-F[,]' '/^\+COPS/ {print $4;exit}'
' MODE_NUM='7
+ MODE=LTE
+ echo '
+CSQ: 19,99

+CPIN: READY

+COPS: 0,0,"T-Mobile T-Mobile.pl",7

+COPS: 0,2,"26002",7

+CREG: 2,1

'K
+ awk '-F[, ]' '/^\+CME ERROR:/ {print $0;exit}'
+ T=
+ '[' -n  ]
+ echo '
+CSQ: 19,99

+CPIN: READY

+COPS: 0,0,"T-Mobile T-Mobile.pl",7

+COPS: 0,2,"26002",7

+CREG: 2,1

'K
+ awk '-F[, ]' '/^\+CPIN:/ {print $0;exit}'
+ xargs
+ T='+CPIN: READY'
+ '[' -n '+CPIN: READY' ]
+ '[' '+CPIN: READY' '=' '+CPIN: READY' ]
+ awk '/Vendor=/{gsub(/.*Vendor=| ProdID=| Rev.*/,"");print}' /sys/kernel/debug/usb/devices
+ sort -u
+ _DEVS='19d21432
1d6b0002
1d6b0003'
+ '[' -e /usr/share/3ginfo-lite/3ginfo-addon/19d21432 ]
+ '[' -e /usr/share/3ginfo-lite/3ginfo-addon/1d6b0002 ]
+ '[' -e /usr/share/3ginfo-lite/3ginfo-addon/1d6b0003 ]
+ '[' x19 '=' x- ]
+ cat
{
"csq":"19",
"signal":"61",
"operator_name":"T-Mobile T-Mobile.pl",
"operator_mcc":"260",
"operator_mnc":"02",
"mode":"LTE",
"registration":"1",
"lac_dec":"0",
"lac_hex":"0",
"cid_dec":"0",
"cid_hex":"0",
"addon":[]
}
+ exit 0
root@OpenWrt:~#

400

Odp: ZTE MF289F - Porting OpenWRT

Nie ma pliku /usr/share/3ginfo-lite/3ginfo-addon/19d21432. Jeżeli włożyłeś to powinien być. Sprawdź

PS. I ustaw sobie

uci set easyconfig.modem.force_plmn='1'
uci commit

Bo ci pokazuje dwukrotnie nazwę T-Mobile w operatorze.

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