MiG25 napisał/a:Tak , ale pewnie jak po komendzie tftpboot wpiszesz nazwę pliku , to właśnie ją będzie chciał ściągać , a nie domyślną...
Tam na samym początku też jest opcja "6. Load image" , tym bym spróbował też.
To jest, to samo co Cezary zaproponował, tylko prowadzi cię za "rękę".
Fakt udało mi się w końcu załadować obraz — ten firewall od Windows 10 działa mi na nerwy.
Wykonałem ponownie polecenia:
root@OpenWrt:/# ubirmvol /dev/ubi0 -N kernel_backup
root@OpenWrt:/# ubirmvol /dev/ubi0 -N rootfs_backup
ubirmvol: error!: cannot find UBI volume "rootfs_backup"
error 2 (No such file or directory)
root@OpenWrt:/# ubirename /dev/ubi0 rootfs_data rootfs_backup
EDIT:
Wgrało się ładnie, co ciekawe po wgraniu, samoczynnie się nie resetuje, jest w stanie "zawieszonym".
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, r23861-447eef2063 |
| |
| Build time: 2024-05-12 09:50 CEST |
| Cezary Jackiewicz, https://eko.one.pl |
| |
-----------------------------------------------------------------------------
| Machine: Netgear WAX220 |
| Uptime: 0d, 00:00:29 |
| Load: 0.06 0.02 0.00 |
| Flash: |
| Memory: total: 989.1MB, free: 917.2MB, used: 7% |
| 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:/# pwd
/
root@OpenWrt:/# ubirmvol /dev/ubi0 -N kernel_backup
root@OpenWrt:/# ubirmvol /dev/ubi0 -N rootfs_backup
ubirmvol: error!: cannot find UBI volume "rootfs_backup"
error 2 (No such file or directory)
root@OpenWrt:/# ubirename /dev/ubi0 rootfs_data rootfs_backup
root@OpenWrt:/# reboot
root@OpenWrt:/# [ 475.422566] br-lan: port 1(eth0) entered disabled state
[ 475.428228] device eth0 left promiscuous mode
[ 475.432645] br-lan: port 1(eth0) entered disabled state
[ 475.487821] mtk_soc_eth 15100000.ethernet eth0: Link is Down
[ 479.778940] reboot: Restarting system
F0: 102B 0000
FA: 1040 0000
FA: 1040 0000 [0200]
F9: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 2400 0041 [0000]
G0: 1190 0000
EC: 0000 0000 [1000]
T0: 0000 021E [010F]
Jump to BL
NOTICE: BL2: v2.6(release):660fb615
NOTICE: BL2: Built : 18:31:23, Jun 10 2022
NOTICE: WDT: disabled
NOTICE: CPU: MT7986 (2000MHz)
NOTICE: EMI: Using DDR4 settings
NOTICE: EMI: Detected DRAM size: 1024MB
NOTICE: EMI: complex R/W mem test passed
NOTICE: SPI_NAND parses attributes from parameter page.
NOTICE: SPI_NAND Detected ID 0xef
NOTICE: Page size 2048, Block size 131072, size 134217728
NOTICE: Initializing NMBM ...
NOTICE: Signature found at block 1023 [0x07fe0000]
NOTICE: First info table with writecount 0 found in block 960
NOTICE: Second info table with writecount 0 found in block 963
NOTICE: NMBM has been successfully attached in read-only mode
NOTICE: BL2: Booting BL31
NOTICE: BL31: v2.6(release):64c0c710d-dirty
NOTICE: BL31: Built : 11:38:50, Sep 7 2022
U-Boot 2022.01-rc4 (Sep 07 2022 - 11:38:20 +0800)
CPU: MediaTek MT7986
Model: mt7986-rfb
DRAM: 1 GiB
Initializing NMBM ...
spi-nand: spi_nand spi_nand@1: Winbond SPI NAND was found.
spi-nand: spi_nand spi_nand@1: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
Could not find a valid device for nmbm0
Signature found at block 1023 [0x07fe0000]
First info table with writecount 0 found in block 960
Second info table with writecount 0 found in block 963
NMBM has been successfully attached
MMC: mmc@11230000: 0
Loading Environment from MTD... OK
In: serial@11002000
Out: serial@11002000
Err: serial@11002000
Net: eth0: ethernet@15100000
nmrp activated
nmrp configing
option ip[10.164.183.253] subnet:255.255.255.0
Recv FW-UP option
No ST-UP option
Using ethernet@15100000 device
Listening for TFTP transfer on 10.164.183.253
Load address: 0x46000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#########################################################
1.1 MiB/s
done
Bytes transferred = 24249688 (1720558 hex)
nmrp tftp upload complete.
write firmware...
*** Upgrading Firmware ***
*** Loaded 24249688 (0x1720558) bytes at 0x46000000 ***
Image is encrypted
model: WAX220
region: US
version: V1.0.3.3
dateTime: Thu Dec 14 01:13:11 2023
size: 0x172033f
block size: 0x80
checksum: 0xd3e74bdd
Decrypt image...
Decrypt finish
ubi0: attaching mtd6
ubi0: scanning is finished
ubi0: attached mtd6 (name "ubi", size 81 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 650, bad PEBs: 0, corrupted PEBs: 0
ubi0: user volume: 4, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 16/10, WL threshold: 4096, image sequence number: 1664355062
ubi0: available PEBs: 42, total reserved PEBs: 608, PEBs reserved for bad PEB handling: 19
Updating volume 'kernel' from 0x46000800, size 0x34e9f0 ... OK
Updating volume 'rootfs' from 0x4634f400, size 0x13d0000 ... OK
ubi0: detaching mtd6
ubi0: mtd6 is detached
*** Firmware upgrade completed! ***
upgrade firmeare success.
Saving Environment to MTD... Erasing on MTD device 'nmbm0'... OK
Writing to MTD device 'nmbm0'... OK
OK
reset config default succes.
nmrp closing...
nmrp closed.
Gateway :Topton Intel Core i3-N305 16GB RAM 6x i226-V 2.5GbE
AP: 3x Netgear WAX220