1 (edytowany przez woj_s 2022-04-02 17:32:16)

Temat: Linksys EA 7500 i ustawienie bootowania z konkretnej partycji.

Hej !

Słowem wstępu.
W/w router ma 2 partycje systemowe.
Na jednej z nich jest oryginalny firmware, na drugiej np OpenWRT.
Gdy bootowanie się nie powiedzie 3 razy, router próbuje bootować z drugiej partycji.

Sęk w tym, że po zaniku zasilania, nie wiem czemu, ale wstaje najczęściej na oryginalnym firmware.

Tak, wiem, że mógłbym wgrać nowy firmware (z uruchomionego OpenWRT), ale chciałbym się dowiedzieć, czy można ustawić który firmware ma się uruchamiać jako pierwszy po zaniku zasilania ?

Aktualnie mam wszystko, pięknie skonfigurowane.
Nie chce mi się kolejny raz konfigurować i instalować wszystkiego od początku.

Jeżeli nie ma innej opcji to trudno, zainstaluje coś na oryginalnym firmware.

--
Pozdrawiam
Wojtek

2

Odp: Linksys EA 7500 i ustawienie bootowania z konkretnej partycji.

Chyba nie. On po prostu ma znacznik w zmiennych bootloadera, ale chyba nie ma możliwości wskazania że ma się uruchamiać ten czy ten po zaniku zasilania.
Tak w ogóle to te linksysy w openwrt mają kod który ustawia że uruchomienie odbyło się dobrze. Czy to oznacza że wyłączyłeś sobie ten mechanizm że po zaniku zasilania wstaje z innej partycji?

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

3

Odp: Linksys EA 7500 i ustawienie bootowania z konkretnej partycji.

Nie sądzę. Nawet nie wiem czy i gdzie to jest.
Z poziomu aplikacji mobilnej tego nie widzę, ale może jest dostępne przez zwykle WWW.

Sprawdzę jak wróci zasilanie.

--
Pozdrawiam
Wojtek

4

Odp: Linksys EA 7500 i ustawienie bootowania z konkretnej partycji.

W /etc/init.d/bootcounter czy jakoś tak.

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

5

Odp: Linksys EA 7500 i ustawienie bootowania z konkretnej partycji.

Sprawdzę jak tylko wróci zasilanie.

Cezary, spójrz na PRIV.

--
Pozdrawiam
Wojtek

6

Odp: Linksys EA 7500 i ustawienie bootowania z konkretnej partycji.

Nie mam nic. Pisz bezpośrednio na cezary @ eko.one.pl.

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

7

Odp: Linksys EA 7500 i ustawienie bootowania z konkretnej partycji.

Poszedł mail.

--
Pozdrawiam
Wojtek

8

Odp: Linksys EA 7500 i ustawienie bootowania z konkretnej partycji.

Chyba te restarty nie skończyly sie dobrze dla OpenWRT.

Z-boot-owałem router z OpenWRT (3 nieudane restarty)

Jeżeli chodzio bootcount to mam :

#!/bin/sh /etc/rc.common

START=99

boot() {
        case $(board_name) in
        alfa-network,quad-e4g)
                [ -n "$(fw_printenv bootcount bootchanged 2>/dev/null)" ] &&\
                        echo -e "bootcount\nbootchanged\n" | /usr/sbin/fw_setenv -s -
                ;;
        linksys,ea7300-v1|\
        linksys,ea7300-v2|\
        linksys,ea7500-v2)
                mtd resetbc s_env || true
                ;;
        samknows,whitebox-v8)
                fw_setenv bootcount 0
                ;;
        esac
}

Ale patrząc na logi, to chyba sypie sie system lub pamięć.
Obstawiam system (plików z pewnościa).
Problemu nie ma na oryginalnym sofcie - działa i LAN i WIFI.
Niby LAN działa (bo łącze się do routera po LANie) , ale wifi jest wyłączone.
Działa ping do 8.8.8.8, ale tylko przez kilka minut, potem nie działa wyjscie poza router.

[    0.000000] Linux version 5.4.99 (cezary@eko.one.pl) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r15819-0011c7ad12)) #0 SMP Sat Feb 20 18:57:33 2021
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is Linksys EA7500 v2
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] On node 0 totalpages: 65536
[    0.000000]   Normal zone: 576 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000] percpu: Embedded 14 pages/cpu s26768 r8192 d22384 u57344
[    0.000000] pcpu-alloc: s26768 r8192 d22384 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64960
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Writing ErrCtl register=0005408c
[    0.000000] Readback ErrCtl register=0005408c
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 250788K/262144K available (6075K kernel code, 209K rwdata, 748K rodata, 1276K init, 238K bss, 11356K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 256
[    0.000000] random: get_random_bytes called from 0x806e1a10 with crng_init=0
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.007802] Calibrating delay loop... 583.68 BogoMIPS (lpj=1167360)
[    0.042001] pid_max: default: 32768 minimum: 301
[    0.046780] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.054006] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.064400] rcu: Hierarchical SRCU implementation.
[    0.069835] smp: Bringing up secondary CPUs ...
[    9.059368] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    9.059378] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    9.059391] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    9.059492] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.102599] Synchronize counters for CPU 1: done.
[    9.120675] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    9.120683] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    9.120690] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    9.120753] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.167298] Synchronize counters for CPU 2: done.
[    9.182050] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    9.182058] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    9.182065] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    9.182128] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.225159] Synchronize counters for CPU 3: done.
[    0.255028] smp: Brought up 1 node, 4 CPUs
[    0.263515] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.273209] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.280275] pinctrl core: initialized pinctrl subsystem
[    0.287011] NET: Registered protocol family 16
[    0.297683] FPU Affinity set after 4688 emulations
[    0.313167] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.325227] clocksource: Switched to clocksource GIC
[    0.331690] thermal_sys: Registered thermal governor 'step_wise'
[    0.332181] NET: Registered protocol family 2
[    0.343355] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.351741] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.359331] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.366421] TCP: Hash tables configured (established 2048 bind 2048)
[    0.372842] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.379324] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.386506] NET: Registered protocol family 1
[    0.390818] PCI: CLS 0 bytes, default 32
[    0.485176] 4 CPUs re-calibrate udelay(lpj = 1167360)
[    0.491760] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.502337] random: fast init done
[    0.512746] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.518515] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.530061] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.539230] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.545218] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.551038] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.557518] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.567560] printk: console [ttyS0] disabled
[    0.571864] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[    0.580850] printk: console [ttyS0] enabled
[    0.589108] printk: bootconsole [early0] disabled
[    0.600991] mt7621-nand 1e003000.nand: Using programmed access timing: 31c07388
[    0.608639] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xf1
[    0.614987] nand: Macronix MX30LF1G18AC
[    0.618824] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.626384] mt7621-nand 1e003000.nand: ECC strength adjusted to 4 bits
[    0.632931] mt7621-nand 1e003000.nand: Using programmed access timing: 21005134
[    0.640229] mt7621-nand 1e003000.nand: Using programmed access timing: 21005134
[    0.647536] Scanning device for bad blocks
[    1.948539] 11 fixed-partitions partitions found on MTD device mt7621-nand
[    1.955403] Creating 11 MTD partitions on "mt7621-nand":
[    1.960715] 0x000000000000-0x000000080000 : "boot"
[    1.966844] 0x000000080000-0x0000000c0000 : "u_env"
[    1.972936] 0x0000000c0000-0x000000100000 : "factory"
[    1.979386] 0x000000100000-0x000000140000 : "s_env"
[    1.985608] 0x000000140000-0x000000180000 : "devinfo"
[    1.992103] 0x000000180000-0x000000580000 : "kernel"
[    1.998414] 0x000000580000-0x000002980000 : "ubi"
[    2.004727] 0x000002980000-0x000002d80000 : "alt_kernel"
[    2.011347] 0x000002d80000-0x000005180000 : "alt_rootfs"
[    2.018350] 0x000005180000-0x000005280000 : "sysdiag"
[    2.024694] 0x000005280000-0x000007f80000 : "syscfg"
[    2.032679] libphy: Fixed MDIO Bus: probed
[    2.063664] libphy: mdio: probed
[    2.067114] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    2.075620] mtk_soc_eth 1e100000.ethernet: generated random MAC address 42:c0:52:c2:93:09
[    2.084661] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 21
[    2.095069] mt7621-pci 1e140000.pcie: Parsing DT failed
[    2.103167] NET: Registered protocol family 10
[    2.109014] Segment Routing with IPv6
[    2.112828] NET: Registered protocol family 17
[    2.117373] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.130533] 8021q: 802.1Q VLAN Support v1.8
[    2.136623] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    2.153107] libphy: dsa slave smi: probed
[    2.157604] mt7530 mdio-bus:1f wan (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY]
[    2.167206] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[    2.176934] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[    2.186619] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY]
[    2.196361] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY]
[    2.206166] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[    2.217413] DSA: tree 0 setup
[    2.220729] rt2880-pinmux pinctrl: pcie is already enabled
[    2.226235] mt7621-pci 1e140000.pcie: Error applying setting, reverse things back
[    2.233854] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[    2.241423] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[    2.348893] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[    2.354478] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[    2.460056] mt7621-pci 1e140000.pcie: pcie2 no card, disable it (RST & CLK)
[    2.467011] mt7621-pci 1e140000.pcie: PCIE0 enabled
[    2.471883] mt7621-pci 1e140000.pcie: PCIE1 enabled
[    2.476762] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[    2.486229] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[    2.492599] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    2.499468] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    2.506336] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.511856] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    2.517890] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    2.524153] pci 0000:00:00.0: reg 0x14: [mem 0x60400000-0x6040ffff]
[    2.530483] pci 0000:00:00.0: supports D1
[    2.534495] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    2.540635] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    2.546676] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    2.552941] pci 0000:00:01.0: reg 0x14: [mem 0x60410000-0x6041ffff]
[    2.559260] pci 0000:00:01.0: supports D1
[    2.563272] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    2.570557] pci 0000:01:00.0: [14c3:7615] type 00 class 0x000280
[    2.576632] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    2.583579] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
[    2.598660] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    2.603901] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    2.609991] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.616770] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.623986] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.630832] pci 0000:02:00.0: [14c3:7615] type 00 class 0x000280
[    2.636894] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    2.643837] pci 0000:02:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:01.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
[    2.658898] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[    2.664137] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    2.670227] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.677006] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    2.684220] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    2.690884] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.697492] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.704444] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.711049] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.718004] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.724784] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    2.732004] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    2.738787] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[    2.746001] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[    2.752785] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[    2.759569] pci 0000:00:00.0: BAR 7: assigned [io  0x1e160000-0x1e160fff]
[    2.766352] pci 0000:00:01.0: BAR 7: assigned [io  0x1e161000-0x1e161fff]
[    2.773141] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.780452] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.785419] pci 0000:00:00.0:   bridge window [io  0x1e160000-0x1e160fff]
[    2.792198] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.798979] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.806199] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff 64bit]
[    2.813508] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.818471] pci 0000:00:01.0:   bridge window [io  0x1e161000-0x1e161fff]
[    2.825252] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.832029] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    2.839778] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control off
[    2.847735] UBI: auto-attach mtd6
[    2.851113] ubi0: attaching mtd6
[    3.220132] ubi0: scanning is finished
[    3.240197] ubi0: attached mtd6 (name "ubi", size 36 MiB)
[    3.245615] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    3.252470] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    3.259243] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    3.266187] ubi0: good PEBs: 288, bad PEBs: 0, corrupted PEBs: 0
[    3.272177] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    3.279383] ubi0: max/mean erase counter: 7/3, WL threshold: 4096, image sequence number: 1611618593
[    3.288494] ubi0: available PEBs: 0, total reserved PEBs: 288, PEBs reserved for bad PEB handling: 20
[    3.297712] ubi0: background thread "ubi_bgt0d" started, PID 504
[    3.299498] block ubiblock0_0: created from ubi0:0(rootfs)
[    3.309203] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    3.316153] hctosys: unable to open rtc device (rtc0)
[    3.328713] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    3.340225] Freeing unused kernel memory: 1276K
[    3.344778] This architecture does not have kernel memory protection.
[    3.351205] Run /sbin/init as init process
[    3.833078] init: Console is alive
[    3.836741] init: - watchdog -
[    4.853648] SQUASHFS error: xz decompression failed, data probably corrupt
[    4.860546] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[    4.891535] SQUASHFS error: xz decompression failed, data probably corrupt
[    4.898420] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[    4.929360] SQUASHFS error: xz decompression failed, data probably corrupt
[    4.936240] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[    4.945621] init: - preinit -
[    5.682235] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[    5.690545] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    5.699005] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    5.891016] random: jshn: uninitialized urandom read (4 bytes read)
[    5.954776] random: jshn: uninitialized urandom read (4 bytes read)
[    6.166589] random: jshn: uninitialized urandom read (4 bytes read)
[    6.465115] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[    6.472167] 8021q: adding VLAN 0 to HW filter on device lan1
[   10.553719] mt7530 mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[   10.561245] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready
[   10.690117] UBIFS (ubi0:1): Mounting in unauthenticated mode
[   10.696106] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 614
[   10.741048] urandom_read: 6 callbacks suppressed
[   10.741060] random: procd: uninitialized urandom read (4 bytes read)
[   10.779384] UBIFS (ubi0:1): recovery needed
[   10.930112] UBIFS (ubi0:1): recovery completed
[   10.934716] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   10.942529] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   10.952416] UBIFS (ubi0:1): FS size: 25141248 bytes (23 MiB, 198 LEBs), journal size 1269760 bytes (1 MiB, 10 LEBs)
[   10.962825] UBIFS (ubi0:1): reserved for root: 1187482 bytes (1159 KiB)
[   10.969433] UBIFS (ubi0:1): media format: w5/r0 (latest is w5/r0), UUID 8ACA8B34-6ED8-4B4D-B11D-5E7A508FFFAD, small LPT model
[   10.994413] mount_root: loading kmods from internal overlay
[   11.044244] SQUASHFS error: xz decompression failed, data probably corrupt
[   11.051129] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   11.082073] SQUASHFS error: xz decompression failed, data probably corrupt
[   11.088952] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   11.096778] mount_root: failed to launch kmodloader from internal overlay
[   11.625756] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[   11.641869] block: extroot: not configured
[   11.649874] mount_root: switching to ubifs overlay
[   11.669528] urandom-seed: Seeding with /etc/urandom.seed
[   11.804821] mt7530 mdio-bus:1f lan1: Link is Down
[   11.823811] procd: - early -
[   11.826816] procd: - watchdog -
[   12.405478] procd: - watchdog -
[   12.412552] procd: - ubus -
[   12.580327] procd: - init -
[   13.420041] SQUASHFS error: xz decompression failed, data probably corrupt
[   13.426937] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   13.460420] SQUASHFS error: xz decompression failed, data probably corrupt
[   13.467317] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   13.614504] urngd: v1.0.2 started.
[   13.817898] random: crng init done
[   20.996045] SQUASHFS error: xz decompression failed, data probably corrupt
[   21.002952] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   21.036953] SQUASHFS error: xz decompression failed, data probably corrupt
[   21.043853] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   21.092582] SQUASHFS error: xz decompression failed, data probably corrupt
[   21.099522] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   21.133605] SQUASHFS error: xz decompression failed, data probably corrupt
[   21.140531] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   21.195761] SQUASHFS error: xz decompression failed, data probably corrupt
[   21.202681] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   21.234091] SQUASHFS error: xz decompression failed, data probably corrupt
[   21.241009] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   21.292254] SQUASHFS error: xz decompression failed, data probably corrupt
[   21.299154] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   21.332794] SQUASHFS error: xz decompression failed, data probably corrupt
[   21.339700] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   21.356645] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[   21.370726] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[   21.379171] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   21.383256] device eth0 entered promiscuous mode
[   21.392888] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[   21.400435] 8021q: adding VLAN 0 to HW filter on device lan1
[   21.409173] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   21.416194] br-lan: port 1(lan1) entered blocking state
[   21.421499] br-lan: port 1(lan1) entered disabled state
[   21.427603] device lan1 entered promiscuous mode
[   21.453676] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[   21.460899] 8021q: adding VLAN 0 to HW filter on device lan2
[   21.470306] br-lan: port 2(lan2) entered blocking state
[   21.475677] br-lan: port 2(lan2) entered disabled state
[   21.483248] device lan2 entered promiscuous mode
[   21.496048] mt7530 mdio-bus:1f lan3: configuring for phy/gmii link mode
[   21.503391] 8021q: adding VLAN 0 to HW filter on device lan3
[   21.512462] br-lan: port 3(lan3) entered blocking state
[   21.517802] br-lan: port 3(lan3) entered disabled state
[   21.524462] device lan3 entered promiscuous mode
[   21.539763] mt7530 mdio-bus:1f lan4: configuring for phy/gmii link mode
[   21.547031] 8021q: adding VLAN 0 to HW filter on device lan4
[   21.556424] br-lan: port 4(lan4) entered blocking state
[   21.561824] br-lan: port 4(lan4) entered disabled state
[   21.568549] device lan4 entered promiscuous mode
[   21.594427] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[   21.601701] 8021q: adding VLAN 0 to HW filter on device wan
[   23.513888] mt7530 mdio-bus:1f lan2: Link is Up - 100Mbps/Full - flow control rx/tx
[   23.521739] br-lan: port 2(lan2) entered blocking state
[   23.527048] br-lan: port 2(lan2) entered forwarding state
[   23.533736] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   23.943380] SQUASHFS error: xz decompression failed, data probably corrupt
[   23.950301] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   23.995796] SQUASHFS error: xz decompression failed, data probably corrupt
[   24.002725] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   24.474024] mt7530 mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[   24.481738] br-lan: port 1(lan1) entered blocking state
[   24.487113] br-lan: port 1(lan1) entered forwarding state
[   25.689719] mt7530 mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control rx
[   25.696893] IPv6: ADDRCONF(NETDEV_CHANGE): wan: link becomes ready
[   42.797163] SQUASHFS error: xz decompression failed, data probably corrupt
[   42.804140] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   42.846047] SQUASHFS error: xz decompression failed, data probably corrupt
[   42.852952] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   42.915531] SQUASHFS error: xz decompression failed, data probably corrupt
[   42.922450] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   42.963739] SQUASHFS error: xz decompression failed, data probably corrupt
[   42.970676] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   43.035871] SQUASHFS error: xz decompression failed, data probably corrupt
[   43.042782] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   43.087062] SQUASHFS error: xz decompression failed, data probably corrupt

Był podłączony pendrive, ale go wyłączylem z mount-owania przy starcie.
Restarty z poziomu systemu nie pomagają.

Pozostało wgranie nowego softu ..czy może jest sposób na przywrocenie go do życia ?

--
Pozdrawiam
Wojtek

9

Odp: Linksys EA 7500 i ustawienie bootowania z konkretnej partycji.

Tak, poleciał squashfs. Wgraj system od nowa, koniecznie bez zachowania konfiguracji. Sugerował bym przywrócenie oryginalnego softu na obu partycjach, reset do ustawień domyślnych i wgranie openwrt jeszcze raz.

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

10

Odp: Linksys EA 7500 i ustawienie bootowania z konkretnej partycji.

Cezary, wiesz może jak sprawdzić czy oryginalny soft jest na obu partycjach ?
Wrzucilem oryginalny firmware z poziomu firmware-u Linksysa.

Po restarcie mam niby to samo.
Po 3 restartach nadal.

Spodziewałbym się, że na jednej partycji jest oryginalny i skonfigurowany system a na drugiej jest oryginalny ale nieskonfigurowany system.

--
Pozdrawiam
Wojtek

11

Odp: Linksys EA 7500 i ustawienie bootowania z konkretnej partycji.

Nie wiem jak sprawdzić. W sumie - to się chyba flashowało na przemian, wiec zrób kilka razy flash i to chyba tyle.

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

12

Odp: Linksys EA 7500 i ustawienie bootowania z konkretnej partycji.

Cezary napisał/a:

Nie wiem jak sprawdzić. W sumie - to się chyba flashowało na przemian, wiec zrób kilka razy flash i to chyba tyle.

Racja !

Zrobione.
Później wgram openwrt.

Powiedz mi proszę, co z tym bootcountem i uruchamianiem oryginalnego firmware-u w tym linksysie ?

--
Pozdrawiam
Wojtek

13

Odp: Linksys EA 7500 i ustawienie bootowania z konkretnej partycji.

tzn o co pytasz?

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

14

Odp: Linksys EA 7500 i ustawienie bootowania z konkretnej partycji.

W pierwszym poście wspomniałem, że po restarcie (zanik zasilania) uruchamia mi się oryginalny soft zamiast openwrt.
Zapytałeś się, czy zmieniałem coś w ustawieniach w mechanizmie uruchamiania po braku zasilania.
Chodziło o plik /etc/init.d/bootcounter.

Nic nie zmieniałem w tym pliku.
Dlaczego więc zaczął sie bootowac z oryginalnego softu ?

--
Pozdrawiam
Wojtek

15

Odp: Linksys EA 7500 i ustawienie bootowania z konkretnej partycji.

I to właśnie jest pytanie na które ty musisz znaleźć odpowiedź smile Bo z jakiegoś powodu uznał że się coś tam nie udało i przełączył się na drugą partycję. Dlaczego - musisz poszukać w tym konkretnym sprzęcie. Pewnie jakiś serial z komunikatami startowymi by znacznie pomógł. Ew odczytuj zmienne środowiskowe bootloadera i sprawdzaj.

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