Odp: ZTE MF286A - Openwrt
@Cezary, @Leo-PL
Super wieści ![]()
Lada moment będę się zabierał aa rozbieranie mojego 286A
Czy mam zrobić jakiś backup na wszelki wypadek ?
Jeśli tak to porszę o info jak ![]()
Nie jesteś zalogowany. Proszę się zalogować lub zarejestrować.
eko.one.pl → Sprzęt / Hardware → ZTE MF286A - Openwrt
Strony Poprzednia 1 2 3 4 5 … 21 Następna
Zaloguj się lub zarejestruj by napisać odpowiedź
@Cezary, @Leo-PL
Super wieści ![]()
Lada moment będę się zabierał aa rozbieranie mojego 286A
Czy mam zrobić jakiś backup na wszelki wypadek ?
Jeśli tak to porszę o info jak ![]()
To zalezy czy chcesz zachować w razie czego oryginał.
Czyli po UART:
Method 2: using stock firmware:
- Connect an external USB drive formatted with FAT or ext4 to the USB
- The drive will be auto-mounted to /var/usb_disk
- Copy over all MTD partitions, for example by executing the following:
for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16; do cat /dev/mtd$i > /var/usb_disk/mtd$i; done
cat /proc/mtd > /var/usb_disk/mtd.txt
sync
umount /var/usb_disk
- Store the files in safe place if you ever plan to return to stock
firmware. This is especially important, because stock firmware for
this device is not available publicly, and is usually customized by
the mobile providers.
Tak, będę robił na wszelki backup ![]()
Dobra poproszę o dodanie braków do opisu flaszowania bo pierwotny od MF286 jest strasznie nieczytelny
Tu jest juz poprawione IP:
Method 2: using serial console:
- Have TFTP server running, exposing the OpenWrt initramfs image, and
set your computer's IP address as 192.168.1.22. This is the default
expected by U-boot. You may wish to change that, and alter later
commands accordingly.
- Connect the serial console if you haven't done so already,
- Interrupt boot sequence by pressing any key in U-boot when prompted
- Use the following commands to boot OpenWrt initramfs through TFTP:
setenv serverip 192.168.1.22
setenv ipaddr 192.168.1.1
tftpboot 0x81000000 openwrt-ath79-nand-zte_mf286a-initramfs-kernel.bin
bootm 0x81000000
Ja nie znalazłem nigdzie w jasny sposób jak to potem zapisać
Co zapisać? Jak uruchomisz już obraz w pamięci, to zwykły plik sysupgrade* wrzucasz do /tmp np. przy pomocy winscp, i na routerze robisz
sysupgrade -n /tmp/nazwa-tego-obrazu
Tak po prostu.
No właśnie zapisac do nandu. Mowisz o sysupgrade a słowa o tym nie widze w opisie z MF286.
NA razie bazuje na opisach właśnie z PR od tamtej wersji.
Czyli rozumiem, że po tftp wstanie router na openwrt i juz
po ssh/scp wrzucamy do /tmp/ obraz w wersji sysupgrade.bin
a potem
sysupgrade -n /tmp/nazwa-tego-obrazu-sysupgrade.bin
Opisałem. Nie ma tu już kroków pośrednich. A w opisie to owszem jest:
STEP 4: Actual installation:
- scp the sysupgrade image to the device:scp openwrt-ath79-nand-zte_mf286-squashfs-sysupgrade.bin \
root@192.168.1.1:/tmp/- ssh into the device and execute sysupgrade:
sysupgrade -n /tmp/openwrt-ath79-nand-zte_mf286-squashfs-sysupgrade.bin
- Wait for router to reboot to full OpenWrt.
To znowu mam jakis inny opis. Nie wazne ![]()
Juz wiadomo co robić
Zapodaj link do PR do "A"
Jeszcze nie ma. Jak @Leo-PL to wypchnie to będzie. Na razie masz źródła i jego commity w poście 12.
Pierwszy boot z tftp, zaraz ciąg dalszy:
----------------------------------
ath> tftpboot 0x81000000 openwrt-21.02-snapshot-r16475-6d266ef158-ath79-nand-zte _mf286a-initramfs-kernel.bin
Trying eth0
ath_gmac_phy_link
ath_gmac_phy_duplex
ath_gmac_phy_speed
dup 1 speed 1000
Using eth0 device
TFTP from server 192.168.0.22; our IP address is 192.168.0.1
Filename 'openwrt-21.02-snapshot-r16475-6d266ef158-ath79-nand-zte_mf286a-initram fs-kernel.bin'.
Load address: 0x81000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
##############################################
done
Bytes transferred = 5892660 (59ea34 hex)
ath> bootm 0x81000000
## Booting image at 81000000 ...
Image Name: MIPS OpenWrt Linux-5.4.171
Created: 2022-02-10 19:06:04 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 5892596 Bytes = 5.6 MB
Load Address: 80060000
Entry Point: 80060000
Verifying Checksum at 0x81000040 ...OK
Uncompressing Kernel Image ...
OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 134217728
Starting kernel ...
[ 0.000000] Linux version 5.4.171 (cezary@eko.one.pl) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r15816-b95f3caaa1)) #0 Thu Feb 10 19:06:04 2022
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[ 0.000000] MIPS: machine is ZTE MF286A
[ 0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff]
........................................
BusyBox v1.33.2 (2022-01-14 22:15:05 UTC) built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------------------------------
| |
| OpenWrt 21.02-SNAPSHOT, r16475-6d266ef158 |
| |
| Build time: 2022-02-11 07:41 CET |
| Cezary Jackiewicz, [url]https://eko.one.pl[/url] |
| |
-----------------------------------------------------------------------------
| Machine: ZTE MF286A |
| Uptime: 0d, 00:03:57 |
| Load: 0.03 0.10 0.05 |
| Flash: |
| Memory: total: 120.2MB, free: 108.0MB, used: 10% |
| Leases: 0 |
| lan: static, 192.168.1.1 |
-----------------------------------------------------------------------------
=== WARNING! ================================================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
-----------------------------------------------------------------------------
root@OpenWrt:/#Uzywaj tagów [ code ] [ /code ] (bez spacji). Będzie to bardziej czytelne.
Opisz za pamięci procedure "restore factory "
Opisz za pamięci procedure "restore factory "
Masz to w commicie opisane: https://github.com/Leo-PL/openwrt/commi … a91c5a5078
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------------------------------
| |
| OpenWrt 21.02-SNAPSHOT, r16475-6d266ef158 |
| |
| Build time: 2022-02-11 07:41 CET |
| Cezary Jackiewicz, https://eko.one.pl |
| |
-----------------------------------------------------------------------------
| Machine: ZTE MF286A |
| Uptime: 0d, 00:11:53 |
| Load: 0.00 0.01 0.00 |
| Flash: |
| Memory: total: 120.2MB, free: 107.6MB, used: 10% |
| Leases: 0 |
| lan: static, 192.168.1.1 |
-----------------------------------------------------------------------------
=== WARNING! ================================================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
-----------------------------------------------------------------------------
root@OpenWrt:~# cd /tmp
root@OpenWrt:/tmp# ls
TZ luci-21.02-snapshot-r16475-6d266ef158-ath79-nand-zte_mf286a-squashfs-sysupgrade.bin
board.json resolv.conf
dhcp.leases resolv.conf.d
dnsmasq.d run
etc shm
hosts state
lib sysinfo
lock tmp
log
root@OpenWrt:/tmp# sysupgrade -n /tmp/luci-21.02-snapshot-r16475-6d266ef158-ath79-nand-zte_mf286a-squashfs-sysupgrade.bin
Thu Feb 10 20:20:22 CET 2022 upgrade: Commencing upgrade. Closing all shell sessions.
Remote side unexpectedly closed network connection
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Session stopped
- Press <return> to exit tab
- Press R to restart session
- Press S to save terminal output to filei zaczął mrugac ledem na środu PCB. czekamy tak 1-2 minuty az sie uspokoi
I teraz tak.
Domyslna podsiec tftp to 192.168.0.0/24 a openwrt to 192.168.1.0/24
Dobrze jest wiec jednak tftp robić juz w tej samej podsieci co openwrt
czyli przed tftp trzeba to przestawic przez :
setenv serverip 192.168.1.22
setenv ipaddr 192.168.1.1
Obraz luci wstał. teraz czas na zabawę ![]()
To teraz sprawdzaj po kolei wszystko co napisałem. Do wieczora masz czas, bo ew. poprawkę będę robił jak wrócę z pracy.
w kwestii mac:
root@OpenWrt:~# ip l
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
link/ether 60:14:66:xx:xx:35 brd ff:ff:ff:ff:ff:ff
4: wwan0: <POINTOPOINT,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN qlen 1000
link/[65534]
5: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 12:34:56:78:90:12 brd ff:ff:ff:ff:ff:ff
6: wlan1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 60:14:66:xx:xx:35 brd ff:ff:ff:ff:ff:ff
7: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether 60:14:66:xx:xx:35 brd ff:ff:ff:ff:ff:ff
8: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
link/ether 60:14:66:xx:xx:35 brd ff:ff:ff:ff:ff:ffJuż widać że nie ma adresu poprawnego adresu mac dla wifi0 (5GHz), to jest do poprawy bo czegoś zapomniałem.
A te z lan i wifi 2.4 zgadzają się z oryginałem?
Podpowie ktoś jak zacząć otwieranie obudowy tego cholerstwa
?
Jak na razie to tylko odkręciłem śrubkę z miejsca na baterię....
Podpowie ktoś jak zacząć otwieranie obudowy tego cholerstwa
?
Jak na razie to tylko odkręciłem śrubkę z miejsca na baterię....
Zdejmujesz klapkę od strony ethernetów, tam sa zatrzaski. Karta płatnicza w dłoń i jedziesz na około.
W kwestii wifi to łączy sie zarówno na 2,4 jak i na 5 GHz.
W głównym wątku opisywałem jak otwierac drewnianym nożem do masła.
Kartą pokaleczysz
w kwestii mac to 60:14:66:xx:xx:35 jest zgodny z oryginałem
Celowo zmieniłem na xx:xx ale to jest raczej jasne ![]()
A to z GUIw temacie wifi 2,4:
-63/-112 dBm
SSID: OpenWrt | Mode: Master
BSSID: 12:34:56:78:90:12 | Encryption: mixed WPA2/WPA3 PSK, SAE (CCMP)
i wifi 5:
---/-95 dBm
SSID: OpenWrt 5MHz | Mode: Master
BSSID: 60:14:66:xx:xx:35 | Encryption: mixed WPA2/WPA3 PSK, SAE (CCMP)
czyli to 2,4 ma skwaszony MAC
Na kazdym innym interfejsie ma mac ten sam iktóry jest zgodny z originałem - to prawidłowe???
Strony Poprzednia 1 2 3 4 5 … 21 Następna
Zaloguj się lub zarejestruj by napisać odpowiedź
eko.one.pl → Sprzęt / Hardware → ZTE MF286A - Openwrt
Forum oparte o PunBB, wspierane przez Informer Technologies, Inc