Temat: Belkin RT3200

Witam,
miał ktoś do czynienia z tym sprzętem? Nie ma problemów z działaniem OpenWRT na nim?

Proszę o opinie / informacje.

Pozdrawiam
Artur

GL.iNet GL-MT6000 + 2x AP_Xiaomi AX3000T

2 (edytowany przez gonzales 2022-10-03 21:14:15)

Odp: Belkin RT3200

Jak wgrać openwrt do tego sprzętu?
Na poczętek wgrywam:
openwrt-22.03-snapshot-r19690-03c251ac14-mediatek-mt7622-linksys_e8450-initramfs-kernel.bin
a potem:
openwrt-22.03-snapshot-r19690-03c251ac14-mediatek-mt7622-linksys_e8450-squashfs-sysupgrade.bin ?

I o co chodzi z tymi wersjami z UBI i bez?
Rozumiem, że jak zamierzam na stałe używać openwrt to mam wgrać te wersje z UBI bo jest inny rozkład "partycji".

Jaka powinna być kolejność wgrywania softów tak, żeby od razu nie uceglić sprzętu?

Najpierw wgywam te bez UBI a potem z UBI? Bo są wersje z i bez?

3

Odp: Belkin RT3200

Wszystko w sumie masz opisane tutaj: https://github.com/openwrt/openwrt/comm … 2db6ba7568

Normalnie (i po dawnemu) używało się "zwykłych" obrazów, przez wgranie bezpośrednio przez gui producenta. A że toto ma nand i nie mało żadnego sensownego systemu plików do tego nandu to deweloperzy zrobili obrazy ubi które zapewniają właściwe zarządzanie tym nandem. Więc co wgrasz to zależy od ciebie.

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

4

Odp: Belkin RT3200

OK. Doczytam.

5

Odp: Belkin RT3200

@Cezary - Są znane jakies problemy z tym Belkinem? Widzę że da się go kupić w okolicy 500 zł - chyba jest to lepszy wybór od Cudy X6 lub Asusa Asus RT-AX53U?

6 (edytowany przez gonzales 2022-10-05 21:59:05)

Odp: Belkin RT3200

Cezary napisał/a:

Wszystko w sumie masz opisane tutaj: https://github.com/openwrt/openwrt/comm … 2db6ba7568

Zakładałem, że po lekturze tego co mi zalinkowałeś i tego:

https://github.com/dangowrt/owrt-ubi-in … -procedure

uda mi się to zrobić bez sięgania po interfejs szeregowy i obędzie się bezrozkręcania routera, ale wychodzi na to, że popełniłem błąd.

Niestety posiłowałem się również tutorialem na youtube i po wgraniu tego:

luci-22.03-snapshot-r19690-03c251ac14-mediatek-mt7622-linksys_e8450-ubi-initramfs-recovery.itb

wgrałem to:

luci-22.03-snapshot-r19690-03c251ac14-mediatek-mt7622-linksys_e8450-ubi-squashfs-sysupgrade.itb

a powinienen chyba przed wgraniem tego drugiego zmienić bootloader?

Dioda na routerze miga jednostajnie - powoli.

Da się to jakoś odratować bez "szeregówki" czy czeka mnie rozkręcanie i lutowanie?
Jest tutaj w takiej sytuacji możliwość skorzystania z failsafe, mogę bootloader wgrać po TFTP lub w jakiś inny sposób zakończyć wgrywanie openwrt?

7

Odp: Belkin RT3200

On ma podwójny system we flash więc o ile nie zepsułeś bootloadera to uruchom go z drugiego obrazu. Masz to w w/w linkach.

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

8

Odp: Belkin RT3200

Dobra. Wgrałem jednak po TFTP raz jeszcze:

luci-22.03-snapshot-r19690-03c251ac14-mediatek-mt7622-linksys_e8450-ubi-initramfs-recovery.itb

Czy teraz mam wgrać:

luci-22.03-snapshot-r19690-03c251ac14-mediatek-mt7622-linksys_e8450-ubi-squashfs-sysupgrade.itb

czy powinienem zrobić wcześniej jeszcze coś innego?

9

Odp: Belkin RT3200

Tam jest cała litania co musisz zrobić i w jakiej kolejności. Nie przeczytałeś tego skoro zadałeś takie pytanie. Spójrz jeszcze raz do linka.

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

10 (edytowany przez gonzales 2022-10-06 20:31:53)

Odp: Belkin RT3200

Zakładam, że piszesz o tym linku, który Ty podałeś?

Tam oprócz procedury wgrywania softu są opisane sposoby robienia kompletnego backupu, którego jak zakładam już nie zrobię bo wgrałem już ubi-initramfs.

Zakładam, że nie będzie mi potrzebny bo fabrycznego softu nie zamierzam wracać.

jeżeli dobrze rozumiem po tym trzeba zmienić bootloader ale coś mi nie idzie, dlatego pytam.

Czytałem to, ale który fragment mam wykonać, żeby to skończyć to nie wiem.

W tym linku, który ja podałem są inne komendy. Proszę o wyrozumiałość.

11

Odp: Belkin RT3200

Nadal możesz wykonać backup, bo masz tam podwójny zestaw partycji. Rób wg linku który podałem, dokładnie punkt po punkcie i nie rób nic samodzielnie (bo zmieniasz bootloader). Teraz jesteś na jednym z pierwszych punktów gdzie wgrałeś i zakładam że się uruchomił initramfs. Więc jedziesz dalej wg listy.

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

12

Odp: Belkin RT3200

Jest tak ja piszesz, próbuję dalej.

13 (edytowany przez gonzales 2022-10-06 21:59:46)

Odp: Belkin RT3200

jak powinna wyglądać ta komenda? rozumiem, że mam to polecenie powtórzyć dla mtd0, mtd1, mtd2, mtd3?

dd if=$mtd of=/tmp/$(basename $mtd);

dobra backup zrobiłem.

Teraz problem z podmianą tych plików mtd0 i mtd1 na:
*linksys_e8450-ubi-bl31-uboot.fip
*linksys_e8450-ubi-preloader.bin

root@OpenWrt:/tmp# mtd -e /dev/mtd0 write /tmp/*linksys_e8450-ubi-preloader.bin
/dev/mtd0
Could not open mtd device: /dev/mtd0
Can't open device for writing!
root@OpenWrt:~# mtd -e /dev/mtd1 write /tmp/*linksys_e8450-ubi-bl31-uboot.fip /d
ev/mtd1
Could not open mtd device: /dev/mtd1
Can't open device for writing!

Oczywiście nazwy plików pobranych z Twojej strony zmieniłem na takie jak w tutorialu na github

14

Odp: Belkin RT3200

Ale mam nadzieje że nie na nazwy z gwiazdkami tylko zwykle...

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

15 (edytowany przez gonzales 2022-10-07 08:09:35)

Odp: Belkin RT3200

Tak. Zwykłe też próbowałem.

16

Odp: Belkin RT3200

Pokaż jeszcze wynik z uruchomienia logread na tym belkinie.

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

17

Odp: Belkin RT3200

F0: 102B 0000
F6: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 0000 0041 [0000]
G0: 0190 0000
T0: 0000 036D [000F]
Jump to BL

UNIVPLL_CON0 = 0xFE000000!!!
mt_pll_init: Set pll frequency for 25M crystal
[PMIC_WRAP]wrap_init pass,the return value=0.
[pmic_init] Preloader Start..................
[pmic_init] MT6380 CHIP Code, reg_val = 0, 1:E2  0:E3
[pmic_init] Done...................
Chip part number:7622B
MT7622 Version: 1.2.8, (iPA)
SSC OFF
mt_pll_post_init: mt_get_cpu_freq = 1350000Khz
mt_pll_post_init: mt_get_mem_freq = 1600000Khz
mt_pll_post_init: mt_get_bus_freq = 1119920Khz
[PLFM] Init I2C: OK(0)

[BLDR] Build Time: 20200522-165358
==== Dump RGU Reg ========
RGU MODE:     4D
RGU LENGTH:   FFE0
RGU STA:      0
RGU INTERVAL: FFF
RGU SWSYSRST: 8000
==== Dump RGU Reg End ====
RGU: g_rgu_satus:0
 mtk_wdt_mode_config  mode value=10, tmp:22000010
PL P ON
WDT does not trigger reboot
WDT NONRST=0x20000000
WDT IRQ_EN=0x340003
RGU mtk_wdt_init:MTK_WDT_DEBUG_CTL(590200F3)
[EMI] MDL number = 2
[EMI] DRAMC calibration start

[EMI] DRAMC calibration end

[EMI]rank size auto detect
[EMI]start_addr[0x40000000]=0x12345678, test_addr[0x48000000]= 0xEDCBA987
[EMI]start_addr[0x40000000]=0x12345678, test_addr[0x50000000]= 0xEDCBA987
[EMI]start_addr[0x40000000]=0xEDCBA987, test_addr[0x60000000]= 0xEDCBA987
[EMI]rank0 size: 0x20000000
[MEM] complex R/W mem test pass
RAM_CONSOLE wdt status (0x0)=0x0
[BBT] BMT.v2 is found at 0x3FF
[PLFM] Init Boot Device: OK(0)

[PART] blksz: 2048B
[PART] [0x0000000000000000-0x000000000007FFFF] "PRELOADER" (256 blocks)
[PART] [0x0000000000080000-0x00000000000BFFFF] "tee1" (128 blocks)
[PART] [0x00000000000C0000-0x000000000013FFFF] "lk" (256 blocks)

Device APC domain init setup:

Domain Setup (0x0)
Domain Setup (0x0)
Device APC domain after setup:
Domain Setup (0x0)
Domain Setup (0x0)
[PART] Image with part header
[PART] name : U-Boot
[PART] addr : 41E00000h mode : -1
[PART] size : 342676
[PART] magic: 58881688h

[PART] load "lk" from 0x00000000000C0200 (dev) to 0x41E00000 (mem) [SUCCESS]
[PART] load speed: 16731KB/s, 342676 bytes, 20ms
load lk (ret=0)
[PART] Image with part header
[PART] name : atf
[PART] addr : FFFFFFFFh mode : -1
[PART] size : 57936
[PART] magic: 58881688h

[PART] load "tee1" from 0x0000000000080200 (dev) to 0x43000DC0 (mem) [SUCCESS]
[PART] load speed: 14144KB/s, 57936 bytes, 4ms
load tee1 (ret=0)
[BLDR] bldr load tee part ret=0x0, addr=0x43001000
[BLDR] boot part. not found
[BLDR] part_load_images ret=0x0
[BLDR] Others, jump to ATF

[BLDR] jump to 0x41E00000
[BLDR] <0x41E00000>=0xEA00000F
[BLDR] <0x41E00004>=0xE59FF014


U-Boot 2014.04-rc1 Version: 1.0.0.1 (Jul 21 2020 - 12:07:36)

static declaration g_total_rank_size = 0x1F000000
DRAM:  496 MiB
NAND:  Recognize SNAND: ID [e5 71 ], Device Name [FM35X1GA], Page Size [2048]B Spare Size [64]B Total Size [128]MB
[mtk_snand] probe successfully!
[BBT] BMT.v2 is found at 0x3ff
128 MiB
[mtk_nand_erase_hw] mtk_nand_erase_hw @4249, ret:0x40. page:0x640
[mtk_nand_erase_hw] mtk_nand_erase_hw @4249, ret:0x40. page:0x6c0
In:    serial
Out:   serial
Err:   serial
Net:   mtk_eth
Uip activated

  *** U-Boot SPI NAND ***

     1. System Load Linux to SDRAM via TFTP.
     2. System Load Linux Kernel then write to Flash via TFTP.
     3. Boot master system code via Flash.
     4. Boot slave system code via Flash.
     5. System Load U-Boot then write to Flash via TFTP.
     6. System Load U-Boot then write to Flash via Serial.
     7. System Load ATF then write to Flash via TFTP.
     8. System Load Preloader then write to Flash via TFTP.
     U-Boot console


  Press UP/DOWN to move or Press 1~8 to choose, ENTER to select

NAND read: device 0 offset 0x2300000, size 0x2000
 8192 bytes read: OK
[do_read_image_blks] This is a FIT image,img_size = 0xa7d76c
[do_read_image_blks] img_blks = 0x14fb
[do_read_image_blks] img_align_size = 0xa7d800

NAND read: device 0 offset 0x2300000, size 0xa7d800
 10999808 bytes read: OK
bootm flag=0, states=70f
## Loading kernel from FIT Image at 4007ff28 ...
   Using 'config-1' configuration
   Trying 'kernel-1' kernel subimage
     Description:  ARM64 OpenWrt Linux-5.10.138
     Type:         Kernel Image
     Compression:  lzma compressed
     Data Start:   0x40080014
     Data Size:    3735337 Bytes = 3.6 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x44000000
     Entry Point:  0x44000000
     Hash algo:    crc32
     Hash value:   d988b446
     Hash algo:    sha1
     Hash value:   259c0faaec956697f1dcde8ed2ebad0b00436d64
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading ramdisk from FIT Image at 4007ff28 ...
   Using 'config-1' configuration
   Trying 'initrd-1' ramdisk subimage
     Description:  ARM64 OpenWrt linksys_e8450-ubi initrd
     Type:         RAMDisk Image
     Compression:  Unknown Compression
     Data Start:   0x4041007c
     Data Size:    7232084 Bytes = 6.9 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: unavailable
     Entry Point:  unavailable
     Hash algo:    crc32
     Hash value:   3996e5ce
     Hash algo:    sha1
     Hash value:   36f6070bfc1f758eba227d03d32203af0e0c8b9e
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 4007ff28 ...
   Using 'config-1' configuration
   Trying 'fdt-1' fdt subimage
     Description:  ARM64 OpenWrt linksys_e8450-ubi device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x40af5be0
     Data Size:    30073 Bytes = 29.4 KiB
     Architecture: AArch64
     Hash algo:    crc32
     Hash value:   204cd203
     Hash algo:    sha1
     Hash value:   7b2a43a074c1277f2db3bb6e89b155dbf2d1d136
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Booting using the fdt blob at 0x40af5be0
   Uncompressing Kernel Image ... OK
   Loading Ramdisk to 5c82d000, end 5cf12a54 ... OK
   Loading Device Tree to 5c822000, end 5c82c578 ... OK

Starting kernel ...

[ATF][     6.579905]save kernel info
[ATF][     6.582842]Kernel_EL2
[ATF][     6.585512]Kernel is 64Bit
[ATF][     6.588600]pc=0x44000000, r0=0x5c822000, r1=0x0
INFO:    BL3-1: Preparing for EL3 exit to normal world, Kernel
INFO:    BL3-1: Next image address = 0x44000000
INFO:    BL3-1: Next image spsr = 0x3c9
[ATF][     6.606298]el3_exit
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.10.138 (cezary@eko.one.pl) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r19184-d52536ea4c) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Sat Sep 3 18:56:06 2022
[    0.000000] Machine model: Linksys E8450 (UBI)
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000042ffffff]
[    0.000000]   node   0: [mem 0x0000000043000000-0x000000004302ffff]
[    0.000000]   node   0: [mem 0x0000000043030000-0x000000005fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000] On node 0 totalpages: 131072
[    0.000000]   DMA zone: 2048 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 131072 pages, LIFO batch:31
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] percpu: Embedded 20 pages/cpu s43992 r8192 d29736 u81920
[    0.000000] pcpu-alloc: s43992 r8192 d29736 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129024
[    0.000000] Kernel command line: console=ttyS0,115200 rootdelay=1 rootfstype=squashfs earlyprintk mtdparts=slave
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 487052K/524288K available (8254K kernel code, 894K rwdata, 1440K rodata, 448K init, 300K bss, 37236K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[    0.000000] arch_timer: cp15 timer(s) running at 12.50MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049cda, max_idle_ns: 440795202628 ns
[    0.000003] sched_clock: 56 bits at 12MHz, resolution 80ns, wraps every 4398046511080ns
[    0.000209] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=125000)
[    0.000219] pid_max: default: 32768 minimum: 301
[    0.000298] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.000306] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.001320] rcu: Hierarchical SRCU implementation.
[    0.001421] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.001634] smp: Bringing up secondary CPUs ...
[    0.001969] Detected VIPT I-cache on CPU1
[    0.002015] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.002076] smp: Brought up 1 node, 2 CPUs
[    0.002084] SMP: Total of 2 processors activated.
[    0.002089] CPU features: detected: 32-bit EL0 Support
[    0.002094] CPU features: detected: CRC32 instructions
[    0.002204] CPU: All CPU(s) started at EL2
[    0.002215] alternatives: patching kernel code
[    0.005650] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.005670] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.005756] pinctrl core: initialized pinctrl subsystem
[    0.006896] NET: Registered protocol family 16
[    0.007196] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.007221] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.007243] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.007518] thermal_sys: Registered thermal governor 'fair_share'
[    0.007521] thermal_sys: Registered thermal governor 'bang_bang'
[    0.007525] thermal_sys: Registered thermal governor 'step_wise'
[    0.007529] thermal_sys: Registered thermal governor 'user_space'
[    0.007744] ASID allocator initialised with 65536 entries
[    0.008109] pstore: Registered ramoops as persistent store backend
[    0.008115] ramoops: using 0x10000@0x42ff0000, ecc: 0
[    0.036207] cryptd: max_cpu_qlen set to 1000
[    0.038434] SCSI subsystem initialized
[    0.038617] libata version 3.00 loaded.
[    0.038760] usbcore: registered new interface driver usbfs
[    0.038792] usbcore: registered new interface driver hub
[    0.038822] usbcore: registered new device driver usb
[    0.039926] clocksource: Switched to clocksource arch_sys_counter
[    0.040520] NET: Registered protocol family 2
[    0.040647] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.041104] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.041121] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.041151] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.041208] TCP: Hash tables configured (established 4096 bind 4096)
[    0.041272] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.041287] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.041372] NET: Registered protocol family 1
[    0.041395] PCI: CLS 0 bytes, default 64
[    0.041516] Unpacking initramfs...
[    1.813919] Freeing initrd memory: 7060K
[    1.816470] workingset: timestamp_bits=46 max_order=17 bucket_order=0
[    1.819020] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.819030] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.851442] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    1.851910] mtk-tphy 1a0c4000.usb-phy: failed to get ref_clk(id-1)
[    1.856156] mt-pmic-pwrap 10001000.pwrap: unexpected interrupt int=0x1
[    1.870747] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    1.872640] printk: console [ttyS0] disabled
[    1.892858] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 22, base_baud = 1562500) is a ST16650V2
[    2.498319] printk: console [ttyS0] enabled
[    2.523258] 11004000.serial: ttyS1 at MMIO 0x11004000 (irq = 23, base_baud = 1562500) is a ST16650V2
[    2.533081] 1100c000.serial: ttyS2 at MMIO 0x1100c000 (irq = 27, base_baud = 17499995) is a MediaTek BTIF
[    2.542749] serial serial0: tty port ttyS2 registered
[    2.548372] mtk_rng 1020f000.rng: registered RNG driver
[    2.548389] hwrng: no data available
[    2.553821] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.565756] loop: module loaded
[    2.568900] Loading iSCSI transport class v2.0-870.
[    2.575102] mtk-snand 1100d000.snfi: chip is FM35Q1GA, size 128MB, page size 2048, oob size 64
[    2.589689] 4 fixed-partitions partitions found on MTD device 1100d000.snfi
[    2.596722] OF: Bad cell count for /snfi@1100d000/partitions
[    2.602396] OF: Bad cell count for /snfi@1100d000/partitions
[    2.608487] Creating 4 MTD partitions on "1100d000.snfi":
[    2.613890] 0x000000000000-0x000000080000 : "bl2"
[    2.619413] 0x000000080000-0x0000001c0000 : "fip"
[    2.625615] 0x0000001c0000-0x0000002c0000 : "factory"
[    2.631979] 0x000000300000-0x000008000000 : "ubi"
[    2.763299] blk_update_request: I/O error, dev mtdblock2, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[    2.773659] Buffer I/O error on dev mtdblock2, logical block 0, async page read
[    2.781106] blk_update_request: I/O error, dev mtdblock2, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[    2.791454] Buffer I/O error on dev mtdblock2, logical block 0, async page read
[    2.798892] blk_update_request: I/O error, dev mtdblock2, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[    2.809236] Buffer I/O error on dev mtdblock2, logical block 0, async page read
[    2.816544]  mtdblock2: unable to read partition table
[    2.850380] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xffffffc011220000, irq 37
[    2.860797] i2c /dev entries driver
[    2.865306] mtk-wdt 10212000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    2.876219] NET: Registered protocol family 10
[    2.881446] Segment Routing with IPv6
[    2.885144] NET: Registered protocol family 17
[    2.889607] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.902680] 8021q: 802.1Q VLAN Support v1.8
[    2.907971] pstore: Using crash dump compression: deflate
[    2.923008] mtk-pcie 1a143000.pcie: host bridge /pcie@1a143000 ranges:
[    2.929546] mtk-pcie 1a143000.pcie: Parsing ranges property...
[    2.935388] mtk-pcie 1a143000.pcie:      MEM 0x0020000000..0x0027ffffff -> 0x0020000000
[    2.969866] mtk-pcie 1a143000.pcie: PCI host bridge to bus 0000:00
[    2.976055] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.981539] pci_bus 0000:00: root bus resource [mem 0x20000000-0x27ffffff]
[    2.988405] pci_bus 0000:00: scanning bus
[    2.992452] pci 0000:00:00.0: [14c3:3258] type 01 class 0x060400
[    2.998479] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x1ffffffff 64bit pref]
[    3.007317] pci_bus 0000:00: fixups for bus
[    3.011501] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 0
[    3.018194] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.026206] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 1
[    3.033002] pci_bus 0000:01: scanning bus
[    3.037216] pci 0000:01:00.0: [14c3:7915] type 00 class 0x000280
[    3.043398] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit pref]
[    3.050722] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x00003fff 64bit pref]
[    3.058042] pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x00000fff 64bit pref]
[    3.065996] pci 0000:01:00.0: supports D1 D2
[    3.070261] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    3.076890] pci 0000:01:00.0: PME# disabled
[    3.081375] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    3.121222] pci_bus 0000:01: fixups for bus
[    3.125398] pci_bus 0000:01: bus scan returning with max=01
[    3.130979] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    3.137589] pci_bus 0000:00: bus scan returning with max=01
[    3.143175] pci 0000:00:00.0: BAR 0: no space for [mem size 0x200000000 64bit pref]
[    3.150828] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x200000000 64bit pref]
[    3.158823] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x201fffff]
[    3.165609] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit pref]
[    3.173432] pci 0000:01:00.0: BAR 2: assigned [mem 0x20100000-0x20103fff 64bit pref]
[    3.181256] pci 0000:01:00.0: BAR 4: assigned [mem 0x20104000-0x20104fff 64bit pref]
[    3.189074] pci 0000:00:00.0: PCI bridge to [bus 01]
[    3.194039] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x201fffff]
[    3.200900] pcieport 0000:00:00.0: of_irq_parse_pci: failed with rc=-22
[    3.207504] pcieport 0000:00:00.0: assign IRQ: got 0
[    3.212475] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    3.218578] pcieport 0000:00:00.0: enabling bus mastering
[    3.224446] mtk-pcie 1a145000.pcie: host bridge /pcie@1a145000 ranges:
[    3.230979] mtk-pcie 1a145000.pcie: Parsing ranges property...
[    3.236809] mtk-pcie 1a145000.pcie:      MEM 0x0028000000..0x002fffffff -> 0x0028000000
[    3.344995] mtk-pcie 1a145000.pcie: Port1 link down
[    3.349976] mtk-pcie 1a145000.pcie: PCI host bridge to bus 0001:00
[    3.356152] pci_bus 0001:00: root bus resource [bus 00-ff]
[    3.361635] pci_bus 0001:00: root bus resource [mem 0x28000000-0x2fffffff]
[    3.368500] pci_bus 0001:00: scanning bus
[    3.373709] pci_bus 0001:00: fixups for bus
[    3.377884] pci_bus 0001:00: bus scan returning with max=00
[    3.383730] mtk_hsdma 1b007000.dma-controller: Using 3 as missing dma-requests property
[    3.391941] mtk_hsdma 1b007000.dma-controller: MediaTek HSDMA driver registered
[    3.482838] mt7530 mdio-bus:00 lan1 (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7531 PHY] (irq=145)
[    3.502898] mt7530 mdio-bus:00 lan2 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7531 PHY] (irq=146)
[    3.522560] mt7530 mdio-bus:00 lan3 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7531 PHY] (irq=147)
[    3.542211] mt7530 mdio-bus:00 lan4 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7531 PHY] (irq=148)
[    3.562021] mt7530 mdio-bus:00 wan (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7531 PHY] (irq=149)
[    3.573558] mt7530 mdio-bus:00: configuring for fixed/2500base-x link mode
[    3.580606] DSA: tree 0 setup
[    3.580800] mt7530 mdio-bus:00: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    3.584355] xhci-mtk 1a0c0000.usb: xHCI Host Controller
[    3.596023] xhci-mtk 1a0c0000.usb: new USB bus registered, assigned bus number 1
[    3.605086] xhci-mtk 1a0c0000.usb: hcc params 0x01403198 hci version 0x96 quirks 0x0000000000210010
[    3.614172] xhci-mtk 1a0c0000.usb: irq 31, io mem 0x1a0c0000
[    3.620262] hub 1-0:1.0: USB hub found
[    3.624023] hub 1-0:1.0: 2 ports detected
[    3.628247] xhci-mtk 1a0c0000.usb: xHCI Host Controller
[    3.633480] xhci-mtk 1a0c0000.usb: new USB bus registered, assigned bus number 2
[    3.640880] xhci-mtk 1a0c0000.usb: Host supports USB 3.0 SuperSpeed
[    3.647173] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.655508] hub 2-0:1.0: USB hub found
[    3.659264] hub 2-0:1.0: 1 port detected
[    3.664106] UBI error: no valid UBI magic found inside mtd3
[    3.670620] Freeing unused kernel memory: 448K
[    3.719949] Run /init as init process
[    3.723602]   with arguments:
[    3.726559]     /init
[    3.728821]     earlyprintk
[    3.731613]   with environment:
[    3.734744]     HOME=/
[    3.737093]     TERM=linux
[    3.739789]     mtdparts=slave
[    4.032270] init: Console is alive
[    4.035764] init: - watchdog -
[    4.045206] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.055392] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.062577] ehci-fsl: Freescale EHCI Host controller driver
[    4.068733] ehci-platform: EHCI generic platform driver
[    4.077191] usbcore: registered new interface driver usb-storage
[    4.084112] usbcore: registered new interface driver uas
[    4.089589] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.099721] init: - preinit -
[    4.143052] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/2500base-x link mode
[    4.151430] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    4.166337] mt7530 mdio-bus:00 lan1: configuring for phy/gmii link mode
[    4.173657] 8021q: adding VLAN 0 to HW filter on device lan1
[    4.186071] random: procd: uninitialized urandom read (4 bytes read)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    8.227240] procd: - early -
[    8.230229] procd: - watchdog -
[    8.296063] random: jshn: uninitialized urandom read (4 bytes read)
Failed to connect to ubus
[    8.354163] random: jshn: uninitialized urandom read (4 bytes read)
[    8.747232] procd: - watchdog -
[    8.750564] procd: - ubus -
[    8.755588] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.804210] procd: - init -
Please press Enter to activate this console.
[    8.907385] urngd: v1.0.2 started.
[    8.935943] random: crng init done
[    8.939366] random: 28 urandom warning(s) missed due to ratelimiting
[    8.956127] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.969713] tun: Universal TUN/TAP device driver, 1.6
[    8.978322] fuse: init (API version 7.32)
[    8.985177] usbcore: registered new interface driver cdc_acm
[    8.990853] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    8.999400] usbcore: registered new interface driver cdc_wdm
[    9.005404] Loading modules backported from Linux version v5.15.58-0-g7d8048d4e064
[    9.012981] Backport generated by backports.git v5.15.58-1-0-g42a95ce7
[    9.026393] usbcore: registered new interface driver usblp
[    9.034103] usbcore: registered new interface driver usbserial_generic
[    9.040762] usbserial: USB Serial support registered for generic
[    9.047441] usbcore: registered new interface driver cdc_ether
[    9.054183] usbcore: registered new interface driver cdc_ncm
[    9.066901] usbcore: registered new interface driver huawei_cdc_ncm
[    9.104722] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[    9.130261] mt7622-wmac 18000000.wmac: HW/SW Version: 0x8a108a10, Build Time: 20190801210006a
[    9.130261]
[    9.154984] PPP generic driver version 2.4.2
[    9.160277] mt7622-wmac 18000000.wmac: N9 Firmware Version: _reserved_, Build Time: 20220630094834
[    9.170489] NET: Registered protocol family 24
[    9.176930] usbcore: registered new interface driver qmi_wwan
[    9.184463] usbcore: registered new interface driver rndis_host
[    9.191264] usbcore: registered new interface driver sierra
[    9.196925] usbserial: USB Serial support registered for Sierra USB modem
[    9.204846] usbcore: registered new interface driver sierra_net
[    9.213657] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    9.221575] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    9.232456] usbcore: registered new interface driver cdc_mbim
[    9.240348] usbcore: registered new interface driver option
[    9.245960] usbserial: USB Serial support registered for GSM modem (1-port)
[    9.254632] usbcore: registered new interface driver qcserial
[    9.260432] usbserial: USB Serial support registered for Qualcomm USB modem
[    9.267559] kmodloader: done loading kernel modules from /etc/modules.d/*
[   13.227491] mtk_soc_eth 1b100000.ethernet eth0: Link is Down
[   13.237092] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/2500base-x link mode
[   13.245473] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[   13.250380] mt7530 mdio-bus:00 lan1: configuring for phy/gmii link mode
[   13.261589] 8021q: adding VLAN 0 to HW filter on device lan1
[   13.270409] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   13.279618] br-lan: port 1(lan1) entered blocking state
[   13.284929] br-lan: port 1(lan1) entered disabled state
[   13.291838] device lan1 entered promiscuous mode
[   13.296480] device eth0 entered promiscuous mode
[   13.311212] mt7530 mdio-bus:00 lan2: configuring for phy/gmii link mode
[   13.319848] 8021q: adding VLAN 0 to HW filter on device lan2
[   13.332800] br-lan: port 2(lan2) entered blocking state
[   13.338051] br-lan: port 2(lan2) entered disabled state
[   13.344745] device lan2 entered promiscuous mode
[   13.355036] mt7530 mdio-bus:00 lan3: configuring for phy/gmii link mode
[   13.362470] 8021q: adding VLAN 0 to HW filter on device lan3
[   13.366750] mt7530 mdio-bus:00 lan3: Link is Up - 100Mbps/Full - flow control off
[   13.370639] br-lan: port 3(lan3) entered blocking state
[   13.380853] br-lan: port 3(lan3) entered disabled state
[   13.387046] device lan3 entered promiscuous mode
[   13.394479] br-lan: port 3(lan3) entered blocking state
[   13.399732] br-lan: port 3(lan3) entered forwarding state
[   13.406552] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   13.416883] mt7530 mdio-bus:00 lan4: configuring for phy/gmii link mode
[   13.424170] 8021q: adding VLAN 0 to HW filter on device lan4
[   13.433562] br-lan: port 4(lan4) entered blocking state
[   13.438797] br-lan: port 4(lan4) entered disabled state
[   13.446600] device lan4 entered promiscuous mode
[   13.460565] mt7530 mdio-bus:00 wan: configuring for phy/gmii link mode
[   13.469193] 8021q: adding VLAN 0 to HW filter on device wan

18

Odp: Belkin RT3200

[    2.608487] Creating 4 MTD partitions on "1100d000.snfi":
[    2.613890] 0x000000000000-0x000000080000 : "bl2"
[    2.619413] 0x000000080000-0x0000001c0000 : "fip"
[    2.625615] 0x0000001c0000-0x0000002c0000 : "factory"
[    2.631979] 0x000000300000-0x000008000000 : "ubi"
[    2.763299] blk_update_request: I/O error, dev mtdblock2, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[    2.773659] Buffer I/O error on dev mtdblock2, logical block 0, async page read
[    2.781106] blk_update_request: I/O error, dev mtdblock2, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[    2.791454] Buffer I/O error on dev mtdblock2, logical block 0, async page read
[    2.798892] blk_update_request: I/O error, dev mtdblock2, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[    2.809236] Buffer I/O error on dev mtdblock2, logical block 0, async page read
[    2.816544]  mtdblock2: unable to read partition table

To tak średnio coś wygląda... Ale mimo wszystko /dev/mtd0 i /dev/mtd1 powinien istnieć.

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

19

Odp: Belkin RT3200

Te pliki sobie pobrałem zarówno poprzez terminal jak i z poziomu LUCI.
Ale teraz mam problem z podmianą mtd0 i mtd1 na te pobrane ze strony.
albo używam złej komendy albo tego nie umiem zrobić.
Dobrze, że się chociaż w initramfs uruchamia.

No nic, jest nerwowo ale na weekend muszę się wstrzymać z wgrywaniem openwrt.

Mam nadzieję, że nie ucegliłem routera.

20 (edytowany przez gonzales 2022-10-10 17:12:19)

Odp: Belkin RT3200

Dobra, wracam do reanimacji routera. To co @Cezary sugerujesz, jeszcze raz spróbowa wgra te pliki z posta 13?
Czy składnia tych polecen jest właściwa? Mam coś jeszcze wcześniej odczytać i tutaj podać?

21

Odp: Belkin RT3200

Polecenia są poprane, więc jedziesz ponownie.

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

22

Odp: Belkin RT3200

Cezary, jak robiłem według kroku 1A to mam coś takiego:

oot@OpenWrt:~# mtd -e /dev/mtd1 write /tmp/linksys_e8450-ubi-bl31-uboot.fip    
Usage: mtd [<options> ...] <command> [<arguments> ...] <device>[:<device>...]   
                                                                                
The device is in the format of mtdX (eg: mtd4) or its label.                    
mtd recognizes these commands:                                                  
        unlock                  unlock the device                               
        refresh                 refresh mtd partition                           
        erase                   erase all data on device                        
        verify <imagefile>|-    verify <imagefile> (use - for stdin) to device  
        write <imagefile>|-     write <imagefile> (use - for stdin) to device   
        jffs2write <file>       append <file> to the jffs2 partition on the devi
ce                                                                              
        fixtrx                  fix the checksum in a trx header on first boot  
Following options are available:                                                
        -q                      quiet mode (once: no [w] on writing,            
                                           twice: no status messages)           
        -n                      write without first erasing the blocks          
        -r                      reboot after successful command                 
        -f                      force write without trx checks                  
        -e <device>             erase <device> before executing the command     
        -d <name>               directory for jffs2write, defaults to "tmp"     
        -j <name>               integrate <file> into jffs2 data when writing an
 image                                                                          
        -s <number>             skip the first n bytes when appending data to th
e jffs2 partiton, defaults to "0"                                               
        -p <number>             write beginning at partition offset             
        -l <length>             the length of data that we want to dump         
        -M <magic>              magic number of the image header in the partitio
n (for fixtrx)                                                                  
        -o offset               offset of the image header in the partition(for 
fixtrx)                                                                         
        -c datasize             amount of data to be used for checksum calculati
on (for fixtrx / fixseama / fixwrg / fixwrgg)                                   
                                                                                
Example: To write linux.trx to mtd4 labeled as linux and reboot afterwards      
         mtd -r write linux.trx linux                                           
                                                                                
root@OpenWrt:~# mtd -e /dev/mtd1 write /tmp/linksys_e8450-ubi-bl31-uboot.fip    

A jak próbowałem według kroku 1B to polecnie:
tftpboot 0x40080000 linksys_e8450-ubi-preloader.bin
mi wykonało, loga nie zapisałem
a polecenie:
tftpboot 0x40100000 openwrt-mediatek-mt7622-linksys_e8450-ubi-bl31-uboot.fip
nie bo nie zna komendy tftpbooot

???

Dobre jest to że cały czas po tftp mogę wgrać initramfs i mam dostę do 'U-Boot Console'

23

Odp: Belkin RT3200

Na końcu polecenia z mtd nie wpisałeś urządzenia. /dev/mtd1. Nie wpisałes całości.

A tych poleceń nie zna bo to polecenia bootloadera. Tam pisało że je robisz jak masz serial podłączony.

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

24

Odp: Belkin RT3200

W sumie to mam podpięięty i lan i serial - pacjent leży rozkręcony.
A jak to zrobiłem, że nie wpisałem całej komendy to sam się sobie dziwię.
Robię kolejne podejście.

25

Odp: Belkin RT3200

Masz serial to zrób z bootloadera.

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