101

(61 odpowiedzi, napisanych Sprzęt / Hardware)

Cezary napisał/a:

kmod-mt7603 i kmod-mt76x2 + zależności.

no to 7603 u mnie odznaczony jest domyślnie

w ogóle w image make jest dodany tylko mt76x2 do include

102

(61 odpowiedzi, napisanych Sprzęt / Hardware)

Cezary napisał/a:

Nasz je w obrazie przecież, zawsze domyślnie są, nie musisz specjalnie zaznaczać.

może sie nie dodały ? nazwa routera po zmianie dts też się niewiadomo-czemu zmieniła z netgear r6220 na samo netgear.

może dokleje też sercomm, to widzę wszędzie w includach jest a tam całe konfigi pod netgeara

103

(61 odpowiedzi, napisanych Sprzęt / Hardware)

Cezary napisał/a:

Coś bardzo masz nie tak smile

i tak jest cudownie xD w sumie dla tego egzemplarza nie potrzebuje wcale radia wink

ale dla kolejnych 7dmiu już bym chciał je mieć ;D

może driverów nie ma ? jakie sa od 6220 ?

104

(61 odpowiedzi, napisanych Sprzęt / Hardware)

hmm a tu jest

root@OpenWrt:/# iw list
Wiphy phy0
        max # scan SSIDs: 4
        max scan IEs length: 2257 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        max # scan plans: 1
        max scan plan interval: -1
        max scan plan iterations: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Available Antennas: TX 0x3 RX 0x3
        Configured Antennas: TX 0x3 RX 0x3
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
                 * mesh point
        Band 1:
                Capabilities: 0x1fe
                        HT20/HT40
                        SM Power Save disabled
                        RX Greenfield
                        RX HT20 SGI
                        RX HT40 SGI
                        TX STBC
                        RX STBC 1-stream
                        Max AMSDU length: 3839 bytes
                        No DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 4 usec (0x05)
                HT TX/RX MCS rate indexes supported: 0-15
                Frequencies:
                        * 2412 MHz [1] (20.0 dBm)
                        * 2417 MHz [2] (20.0 dBm)
                        * 2422 MHz [3] (20.0 dBm)
                        * 2427 MHz [4] (20.0 dBm)
                        * 2432 MHz [5] (20.0 dBm)
                        * 2437 MHz [6] (20.0 dBm)
                        * 2442 MHz [7] (20.0 dBm)
                        * 2447 MHz [8] (20.0 dBm)
                        * 2452 MHz [9] (20.0 dBm)
                        * 2457 MHz [10] (20.0 dBm)
                        * 2462 MHz [11] (20.0 dBm)
                        * 2467 MHz [12] (20.0 dBm) (no IR)
                        * 2472 MHz [13] (20.0 dBm) (no IR)
                        * 2484 MHz [14] (20.0 dBm) (no IR)
        valid interface combinations:
                 * #{ IBSS } <= 1, #{ managed, AP, mesh point } <= 4,
                   total <= 4, #channels <= 1, STA/AP BI must match
        HT Capability overrides:
                 * MCS: ff ff ff ff ff ff ff ff ff ff
                 * maximum A-MSDU length
                 * supported channel width
                 * short GI for 40 MHz
                 * max A-MPDU length exponent
                 * min MPDU start spacing
        Supported extended features:
                * [ RRM ]: RRM
                * [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
                * [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
                * [ TXQS ]: FQ-CoDel-enabled intermediate TXQs

na 19.7 działa 2.4 a nie działa 5g xD
na 22.03 działa 5g nie działa 2.4 big_smile

co za cyrk

105

(61 odpowiedzi, napisanych Sprzęt / Hardware)

Cezary napisał/a:

Nie. Wifi jest samo wykrywane i tworzony jest odpowiedni konfig. Sam konfig sam z siebie nie spowoduje że radio zadziała.

no ale są obydwa radia dostępne przecież, tylko pod innym adresem. Więc coś w skrypcie ich nie łapie

106

(61 odpowiedzi, napisanych Sprzęt / Hardware)

zakk87 napisał/a:

problem w tym, że nie mam kopii oryginalnego bootloadera ze swojego urządzenia. Mam tylko mtd0 od chińczyka.

wrzuć osobny temat ;p może ktoś ci da dump wink


a wracając do r6220 i braku radia 2.4 ...
na openwrt 19.7 jest dokładnie tak samo (ale obraz 1,5MB mniejszy big_smile)

00:00.0 PCI bridge: Device 0e8d:0801 (rev 01)
00:01.0 PCI bridge: Device 0e8d:0801 (rev 01)
01:00.0 Network controller: MEDIATEK Corp. MT7662E 802.11ac PCI Express Wireless Network Adapter
02:00.0 Network controller: MEDIATEK Corp. Device 7603

ale w sumie oba radia są, nie wystarczy konfig zmienić ?
może przestawienie zworek z nand na spi zmieniło adresacje ?

107

(61 odpowiedzi, napisanych Sprzęt / Hardware)

zakk87 napisał/a:

nie wiem gdzie miałbym wlutować SPI na r6800
https://openwrt.org/_media/media/netgea … cb_top.jpg

ech bo ty inny model masz xD jak jest to pewnie pod NAND jak u mnie
breed zadziała raczej, na r6220 też odpala normalnie breed z nefi d1, a to AT. One się tylko różnią adresami flash i częstotliwością ddr
Ale jak nie kombinujesz to wgraj po prostu orginalny bootloader.

tylko jeszcze będziesz potrzebował factory żeby mieć radio

108

(61 odpowiedzi, napisanych Sprzęt / Hardware)

zakk87 napisał/a:

na razie chcę go przywrócić do żywych bo z konsoli przy wgrywaniu przez nmrpflash wynikało, że nand ma badblocki i nie przyjmował softu. Niestety wyczyściłem tą pamięć ze złym adresem i router nie odpala bootloadera.

moge ci wystawić nawet cały dump tej kości, swój odczytałem na czytniku smile
z tym że on już był w takim stanie że mi go nawet nmrpflash nie łapał.

109

(61 odpowiedzi, napisanych Sprzęt / Hardware)

zakk87 napisał/a:

tylko ja chcę NAND na nową po prostu podmienić MX30LF1G18AC-TI, sprzedawca oferuje zaprogramowanie a ja sobie przelutuję.

pewnie starczy.

ja się pozbywam z tych routerów nand nawet jak nie mają badblocków, z czasem i tak wszystkim się system sypie, coś jest nie tak z obsługą nand w openwrt.

więc proponuje kupić spi ;p
https://i.ibb.co/xzYXsPY/IMG-20230818-140817.jpg
jak widać łatwiej wstawić ;p

110

(61 odpowiedzi, napisanych Sprzęt / Hardware)

zakk87 napisał/a:

@chemik89 mając czystą TSOP48 co powinienem wgrać aby po wlutowaniu router ruszył? Czy wystarczy mtd0.bin żeby odpalić bootloader czy potrzebuję więcej partycji?
r6220 ma CPU MT7621ST - r6800 MT7621AT, czy mogę użyć breeda z r6220?

musisz użyć breeda ze SPI, czyli najlepiej wndr3700

i tak, sam breed starczy wgrać od początku


edit

aa bo ty chcesz nand wstawiać ? tak też wystarczy breed 6220 albo nawet org. bootloader.

111

(61 odpowiedzi, napisanych Sprzęt / Hardware)

pobrałem i zbudowalem na nowo tym razem 23.03.5

00:00.0 PCI bridge: Device 0e8d:0801 (rev 01)
00:01.0 PCI bridge: Device 0e8d:0801 (rev 01)
01:00.0 Network controller: MEDIATEK Corp. MT7662E 802.11ac PCI Express Wireless Network Adapter
02:00.0 Network controller: MEDIATEK Corp. Device 7603

teraz jest "normalnie" /// edit a nie jednak jest tak samo xD

ale nadal nie mam 2.4
root@OpenWrt:/# cat /etc/config/wireless

config wifi-device 'radio0'
        option type 'mac80211'
        option path '1e140000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'
        option channel '36'
        option band '5g'
        option htmode 'VHT80'
        option disabled '1'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt'
        option encryption 'none'

pamiętam że przy r6220 jak się zmieniło coś przy wifi w luci to tak czasami kończyło - brakiem radia, naprawiało dopiero wgranie FW na nowo


hmm wszystko wskazuje na zły reset pcie lub zły delay w kernelu ... zara chyba zrobie upgrade najnowszego openwrt xD
się okaże że w 22.03 jest jakiś bug xD

https://github.com/openwrt/openwrt/issues/9869


&pcie {
   status = "okay";

   reset-gpios = <&gpio 19 GPIO_ACTIVE_LOW>,
                        <&gpio 8 GPIO_ACTIVE_LOW>,
                        <&gpio 7 GPIO_ACTIVE_LOW>;
};


z resztą nawet tu na forum jest masa tematów gdzie po zmianie z v19 na wyższe siada radio 2.4.

zaraz sobie zbuduje też 19.07, jak tam będzie działało to znaczy że jest bug w kernelu ...

112

(61 odpowiedzi, napisanych Sprzęt / Hardware)

MiG25 napisał/a:

Linie PCI to się chyba automatycznie wykrywają podczas pierwszego startu.
Odkryłem to przy dodaniu gniazda mPCIe i płytki USB3.0. Zawsze podczas firstboota nie ma wifi 2,4 i tej przystawki ( znaczy lspci ją wykrywa , ale nie działa). Także testuj po powtórnym starcie tak na wszelki wypadek....

po restarcie to samo

czym to można zweryfikować ? lspci ?

https://forum.openwrt.org/t/mt7621-pci- … iled/71679
widzę ze to jakiś znany bug jest
https://github.com/openwrt/openwrt/pull … -750413551
ale harmless ..


root@OpenWrt:/# lspci
00:00.0 PCI bridge: Device 0e8d:0801 (rev 01)
00:01.0 PCI bridge: Device 0e8d:0801 (rev 01)
01:00.0 Network controller: MEDIATEK Corp. MT7662E 802.11ac PCI Express Wireless Network Adapter
02:00.0 Network controller: MEDIATEK Corp. Device 7603

hmm

r6220 z nand ma tak

root@OpenWrt:~# lspci
00:00.0 PCI bridge: Device 0e8d:0801 (rev 01)
00:02.0 PCI bridge: Device 0e8d:0801 (rev 01)
01:00.0 Network controller: MEDIATEK Corp. MT7662E 802.11ac PCI Express Wireless Network Adapter
02:00.0 Network controller: MEDIATEK Corp. Device 7603

zmieniłem radio z 2 na 1 ale bez zmian

config wifi-device 'radio0'
    option type 'mac80211'
    option path '1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0'
    option channel '1'
    option band '2g'
    option htmode 'HT20'
    option disabled '0'

config wifi-device 'radio1'
    option type 'mac80211'
    option path '1e140000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'
    option channel '36'
    option band '5g'
    option htmode 'VHT80'
    option disabled '0'

113

(61 odpowiedzi, napisanych Sprzęt / Hardware)

wgrane, art org. z tej płytki, IP się przypisały nowe, jest ok.

No to stan na teraz:

Co nie działa
WLAN 2.4Ghz

Co działa
Reszta ;p

nie mam pomysłu jak to radio teraz naprawić :>
pora porównać bootlog big_smile

na SPI:
mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000  ## same 0 ?
mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000

na NAND
mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0060000000
mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
pci 0000:00:00.0: reg 0x14: initial BAR value 0x00000000 invalid
pci 0000:00:00.0: reg 0x14: [mem size 0x00010000]
pci 0000:00:00.0: supports D1
pci 0000:00:00.0: PME# supported from D0 D1 D3hot
pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
pci 0000:00:01.0: reg 0x14: initial BAR value 0x00000000 invalid
pci 0000:00:01.0: reg 0x14: [mem size 0x00010000]
pci 0000:00:01.0: supports D1
pci 0000:00:01.0: PME# supported from D0 D1 D3hot
pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid
pci 0000:01:00.0: reg 0x10: [mem size 0x00100000 64bit]
pci 0000:01:00.0: reg 0x30: initial BAR value 0x00000000 invalid
pci 0000:01:00.0: reg 0x30: [mem size 0x00010000 pref]
pci 0000:01:00.0: PME# supported from D0 D3hot D3cold

a na NAND
pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
pci 0000:00:00.0: supports D1
pci 0000:00:00.0: PME# supported from D0 D1 D3hot
pci 0000:00:02.0: [0e8d:0801] type 01 class 0x060400
pci 0000:00:02.0: reg 0x10: [mem 0x00000000-0x7fffffff]
pci 0000:00:02.0: reg 0x14: [mem 0x00000000-0x0000ffff]
pci 0000:00:02.0: supports D1
pci 0000:00:02.0: PME# supported from D0 D1 D3hot
pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
pci 0000:01:00.0: PME# supported from D0 D3hot D3cold

inna linia pcie ?

114

(61 odpowiedzi, napisanych Sprzęt / Hardware)

Cezary napisał/a:

Możesz zwykłym dd, albo wcześniej zmień sobie dts'a i usuń read-only z tej partycji.

root@OpenWrt:/# dd if=/tmp/art.bin of=/dev/mtd2
dd: error writing '/dev/mtd2': No space left on device
129+0 records in
128+0 records out
hmm xD


z resztą po co ja kombinuje, ten adres 8000 się przecież mieści e 64kB
B=mac wlan 5Ghz
62 76 01 00 B0 39 56 61 7A F4 12 76 C3 14 00 00 00 00 12 76 C3 14 00 00 00 00 FF FF FF FF FF FF FF FF 37 D8 9D 40 FF 7F FD 9B FF FF FF FF FF FF FF FF FF FF 22 FD 0A 00 FF FF B1 01 00 00 00 00 00 00 FF D7 8C 8C 00 00 00 8C 00 00 00 8C E0 01 00 82 82 57 47 B6 7F 05 1D 00 00 00 7E 16 0A 00 00 00 82 E9 0A 00 00 82 E9 16 00 00 81 ED 16 00 00 80 F0 17 00 00 81 F6 19 00 00 80 FE 1A 00 00 82 E2 0A 00 00 82 E2 1A 00 00 82 E8 1A 00 00 82 E6 1A 00 00 83 EB 1A 00 00 83 F2 17 00 00 00 4E C3 C3 00 00 00 00 C6 C6 C2 82 C6 C6 C2 82 00 00 00 00 C6 C6 C4 00 00 00 00 00 00 00 00 00 84 83 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 0D 09 0D 10 A5 28 28 00 00 00 00 00 00 00 0F CA 74 C5 E8 07 30 3D 01 B0 08 26 00 0E 04 15 00 8A 00 40 00 00 00 08 00 9D 08 00 12 C0 00 00 08 20 04 2A 90 00 00 24 01 04 54 08 D0 A0 28 20 FF FF FF FF FF FF FF 08 FF FF FF FF FF FF 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF C0 81 82 C3 04 45 46 07 08 09 FF FF FF FF FF FF



OpenWrt kernel loader for MIPS based SoC
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Decompressing kernel... done!
Starting kernel at 80001000...

[    0.000000] Linux version 5.10.190 (avru@DESKTOP-SFMK1K8) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r20134-5f15225c1e) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Sat Aug 12 09:46:51 2023
[    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 Netgear R6220
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2} total 2
[    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-0x0000000007ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] percpu: Embedded 15 pages/cpu s30224 r8192 d23024 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Writing ErrCtl register=000734ec
[    0.000000] Readback ErrCtl register=000734ec
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 119344K/131072K available (6753K kernel code, 624K rwdata, 1368K rodata, 1288K init, 235K bss, 11728K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000013] sched_clock: 64 bits at 880MHz, resolution 1ns, wraps every 4398046511103ns
[    0.015848] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.033802] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.106102] pid_max: default: 32768 minimum: 301
[    0.115399] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.129797] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.148001] rcu: Hierarchical SRCU implementation.
[    0.157798] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.173203] smp: Bringing up secondary CPUs ...
[    0.182813] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.182822] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.182833] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.182920] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.243086] Synchronize counters for CPU 1: done.
[    0.302769] smp: Brought up 1 node, 2 CPUs
[    0.316112] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.335616] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.349255] pinctrl core: initialized pinctrl subsystem
[    0.361850] NET: Registered protocol family 16
[    0.374753] cpuidle: using governor teo
[    0.441499] clocksource: Switched to clocksource GIC
[    0.453230] NET: Registered protocol family 2
[    0.462114] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.477419] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.494101] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.509272] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.523256] TCP: Hash tables configured (established 1024 bind 1024)
[    0.536049] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.548980] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.563279] NET: Registered protocol family 1
[    0.571889] PCI: CLS 0 bytes, default 32
[    0.581705] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.601071] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.612599] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.635091] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.646513] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.658071] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.670053] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.684449] printk: console [ttyS0] disabled
[    0.693075] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 15, base_baud = 3125000) is a 16550A
[    0.711033] printk: console [ttyS0] enabled
[    0.711033] printk: console [ttyS0] enabled
[    0.727553] printk: bootconsole [early0] disabled
[    0.727553] printk: bootconsole [early0] disabled
[    0.750000] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[    0.763521] spi-nor spi0.0: s25fl064k (8192 Kbytes)
[    0.773371] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.786086] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.800673] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.816208] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.830868] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.845730] Creating 4 MTD partitions on "spi0.0":
[    0.855326] 0x000000000000-0x000000030000 : "u-boot"
[    0.866205] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.877913] 0x000000040000-0x000000050000 : "factory"
[    0.889888] 0x000000050000-0x000000800000 : "firmware"
[    0.901809] 2 uimage-fw partitions found on MTD device firmware
[    0.913711] Creating 2 MTD partitions on "firmware":
[    0.923643] 0x000000000000-0x00000029f436 : "kernel"
[    0.933551] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
[    0.951420] 0x00000029f436-0x0000007b0000 : "rootfs"
[    0.961405] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
[    0.980691] mtd: setting mtd5 (rootfs) as root device
[    0.991135] 1 squashfs-split partitions found on MTD device rootfs
[    1.003533] 0x0000005c0000-0x0000007b0000 : "rootfs_data"
[    1.063335] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.079700] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 17
[    1.097368] i2c /dev entries driver
[    1.106804] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    1.120303] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    1.137874] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    1.154225] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    1.170679] mt7621-pci 1e140000.pcie: Parsing DT failed
[    1.184045] NET: Registered protocol family 10
[    1.196067] Segment Routing with IPv6
[    1.203604] NET: Registered protocol family 17
[    1.213032] 8021q: 802.1Q VLAN Support v1.8
[    1.225823] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.256526] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7530 PHY] (irq=22)
[    1.279409] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7530 PHY] (irq=23)
[    1.301762] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7530 PHY] (irq=24)
[    1.324168] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7530 PHY] (irq=25)
[    1.346703] mt7530 mdio-bus:1f wan (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7530 PHY] (irq=26)
[    1.369219] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[    1.386211] DSA: tree 0 setup
[    1.392770] rt2880-pinmux pinctrl: pcie is already enabled
[    1.403871] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    1.417262] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    1.434807] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    1.451110] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    1.467534] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[    1.482738] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[    1.497854] mt7621-pci 1e140000.pcie: failed to parse bus ranges property: -22
[    1.612542] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[    1.623660] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[    1.734971] mt7621-pci 1e140000.pcie: pcie1 no card, disable it (RST & CLK)
[    1.748840] mt7621-pci 1e140000.pcie: PCIE0 enabled
[    1.758558] mt7621-pci 1e140000.pcie: PCIE2 enabled
[    1.768286] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[    1.787023] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[    1.799731] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    1.813443] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.827161] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.838095] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff] (bus address [0x00000000-0x0fffffff])
[    1.858417] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    1.870406] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.882904] pci 0000:00:00.0: reg 0x14: initial BAR value 0x00000000 invalid
[    1.896947] pci 0000:00:00.0: reg 0x14: [mem size 0x00010000]
[    1.908465] pci 0000:00:00.0: supports D1
[    1.916459] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.928476] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    1.940525] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.953036] pci 0000:00:01.0: reg 0x14: initial BAR value 0x00000000 invalid
[    1.967079] pci 0000:00:01.0: reg 0x14: [mem size 0x00010000]
[    1.978594] pci 0000:00:01.0: supports D1
[    1.986588] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    1.999640] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.015636] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.031855] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[    2.043907] pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    2.057962] pci 0000:01:00.0: reg 0x10: [mem size 0x00100000 64bit]
[    2.070481] pci 0000:01:00.0: reg 0x30: initial BAR value 0x00000000 invalid
[    2.084537] pci 0000:01:00.0: reg 0x30: [mem size 0x00010000 pref]
[    2.096967] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    2.110698] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    2.121154] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    2.133298] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.146835] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff pref]
[    2.161245] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.174721] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000
[    2.186754] pci 0000:02:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    2.200809] pci 0000:02:00.0: reg 0x10: [mem size 0x00100000]
[    2.212410] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    2.226146] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[    2.236593] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    2.248739] pci 0000:00:01.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.262267] pci 0000:00:01.0:   bridge window [mem 0x60000000-0x600fffff pref]
[    2.276680] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    2.289925] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.303107] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.316982] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.330156] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.344040] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.357571] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    2.371963] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    2.385498] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[    2.399887] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[    2.413431] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[    2.426962] pci 0000:00:00.0: BAR 7: assigned [io  0x1e160000-0x1e160fff]
[    2.440486] pci 0000:00:01.0: BAR 7: assigned [io  0x1e161000-0x1e161fff]
[    2.454027] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.468603] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    2.483000] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.492904] pci 0000:00:00.0:   bridge window [io  0x1e160000-0x1e160fff]
[    2.506426] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.519951] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.534349] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]
[    2.547886] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.557778] pci 0000:00:01.0:   bridge window [io  0x1e161000-0x1e161fff]
[    2.571305] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.584831] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    2.611839] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control rx/tx
[    2.628286] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    2.647395] Freeing unused kernel memory: 1288K
[    2.656466] This architecture does not have kernel memory protection.
[    2.669312] Run /sbin/init as init process
[    3.665946] init: Console is alive
[    3.673254] init: - watchdog -
[    4.845549] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.002363] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.031759] init: - preinit -
[    6.733406] random: jshn: uninitialized urandom read (4 bytes read)
[    6.818950] random: jshn: uninitialized urandom read (4 bytes read)
[    6.871125] random: jshn: uninitialized urandom read (4 bytes read)
[    7.162839] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[    7.179030] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    7.181805] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[    7.209501] 8021q: adding VLAN 0 to HW filter on device lan1
[    7.224146] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
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.805452] mt7530 mdio-bus:1f lan1: Link is Up - 100Mbps/Full - flow control off
[    8.820451] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready
[   11.593062] jffs2: notice: (527) jffs2_build_xattr_subsystem: complete building xattr subsystem, 8 of xdatum (0 unchecked, 3 orphan) and 9 of xref (3 dead, 0 orphan) found.
[   11.626738] mount_root: switching to jffs2 overlay
[   11.643277] overlayfs: upper fs does not support tmpfile.
[   11.667000] urandom-seed: Seeding with /etc/urandom.seed
[   11.970584] mt7530 mdio-bus:1f lan1: Link is Down
[   11.990581] procd: - early -
[   11.996738] procd: - watchdog -
[   12.691483] procd: - watchdog -
[   12.698572] procd: - ubus -
[   12.806495] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.821316] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.834504] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.856172] procd: - init -
Please press Enter to activate this console.
[   13.968250] random: jshn: uninitialized urandom read (4 bytes read)
[   14.058631] random: ubusd: uninitialized urandom read (4 bytes read)
[   14.086514] random: ubus: uninitialized urandom read (4 bytes read)
[   14.195084] kmodloader: loading kernel modules from /etc/modules.d/*
[   14.477527] urngd: v1.0.2 started.
[   14.491669] Loading modules backported from Linux version v5.15.92-0-ge515b9902f5f
[   14.506847] Backport generated by backports.git v5.15.92-1-0-gdfe0f60c
[   14.780770] random: crng init done
[   14.787656] random: 27 urandom warning(s) missed due to ratelimiting
[   14.924731] mt7621-pci 1e140000.pcie: bus=1 slot=0 irq=18
[   14.935610] pci 0000:00:00.0: enabling device (0004 -> 0007)
[   14.946898] mt76x2e 0000:01:00.0: enabling device (0000 -> 0002)
[   14.959065] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[   15.621898] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
[   15.638001] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[   15.648995] mt76x2e 0000:01:00.0: Build: 1
[   15.657156] mt76x2e 0000:01:00.0: Build Time: 201607111443____
[   15.691282] mt76x2e 0000:01:00.0: Firmware running!
[   15.810330] PPP generic driver version 2.4.2
[   15.824613] NET: Registered protocol family 24
[   15.850891] kmodloader: done loading kernel modules from /etc/modules.d/*
[   26.446462] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[   26.474080] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[   26.490771] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   26.508719] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   26.526611] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[   26.541059] 8021q: adding VLAN 0 to HW filter on device lan1
[   26.557050] br-lan: port 1(lan1) entered blocking state
[   26.567654] br-lan: port 1(lan1) entered disabled state
[   26.580235] device lan1 entered promiscuous mode
[   26.589764] device eth0 entered promiscuous mode
[   26.632576] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[   26.646572] 8021q: adding VLAN 0 to HW filter on device lan2
[   26.662861] br-lan: port 2(lan2) entered blocking state
[   26.673412] br-lan: port 2(lan2) entered disabled state
[   26.686371] device lan2 entered promiscuous mode
[   26.709190] mt7530 mdio-bus:1f lan3: configuring for phy/gmii link mode
[   26.724293] 8021q: adding VLAN 0 to HW filter on device lan3
[   26.748278] br-lan: port 3(lan3) entered blocking state
[   26.758842] br-lan: port 3(lan3) entered disabled state
[   26.772038] device lan3 entered promiscuous mode
[   26.795241] mt7530 mdio-bus:1f lan4: configuring for phy/gmii link mode
[   26.812338] 8021q: adding VLAN 0 to HW filter on device lan4
[   26.827739] br-lan: port 4(lan4) entered blocking state
[   26.838366] br-lan: port 4(lan4) entered disabled state
[   26.851832] device lan4 entered promiscuous mode
[   26.893209] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[   26.909141] 8021q: adding VLAN 0 to HW filter on device wan
[   28.124873] mt7530 mdio-bus:1f lan1: Link is Up - 100Mbps/Full - flow control off
[   28.171476] br-lan: port 1(lan1) entered blocking state
[   28.182025] br-lan: port 1(lan1) entered forwarding state
[   28.245346] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   30.166499] br-lan: port 5(wlan0) entered blocking state
[   30.177141] br-lan: port 5(wlan0) entered disabled state
[   30.188385] device wlan0 entered promiscuous mode
[   30.198044] br-lan: port 5(wlan0) entered blocking state
[   30.208656] br-lan: port 5(wlan0) entered forwarding state
[   30.248601] br-lan: port 5(wlan0) entered disabled state
[   31.601934] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   31.615140] br-lan: port 5(wlan0) entered blocking state
[   31.625856] br-lan: port 5(wlan0) entered forwarding state



BusyBox v1.35.0 (2023-08-12 09:46:51 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 22.03-SNAPSHOT, r20211-de29f15af1
 -----------------------------------------------------
=== 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:/# ifconfig
br-lan    Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::b239:56ff:fe61:7af0/64 Scope:Link
          inet6 addr: fdc2:11ca:902d::1/60 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:591 errors:0 dropped:0 overruns:0 frame:0
          TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:131330 (128.2 KiB)  TX bytes:8734 (8.5 KiB)

eth0      Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          inet6 addr: fe80::b239:56ff:fe61:7af0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1504  Metric:1
          RX packets:679 errors:0 dropped:0 overruns:0 frame:0
          TX packets:99 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:151884 (148.3 KiB)  TX bytes:11776 (11.5 KiB)
          Interrupt:17

lan1      Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:679 errors:0 dropped:7 overruns:0 frame:0
          TX packets:82 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:139662 (136.3 KiB)  TX bytes:9250 (9.0 KiB)

lan2      Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan3      Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan4      Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:72 errors:0 dropped:0 overruns:0 frame:0
          TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:5616 (5.4 KiB)  TX bytes:5616 (5.4 KiB)

wan       Link encap:Ethernet  HWaddr B0:39:56:61:7A:F1
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr B0:39:56:61:7A:F4
          inet6 addr: fe80::b239:56ff:fe61:7af4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:493 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:138207 (134.9 KiB)

radio 5Ghz działa ok, 2.4 nawet nie znajduje karty, przekopiowanie config/wireless z normalnego 6220 niczym nie zaowocowało
w sumie pamiętam problemy z radiem 2.4 często występowały w okolicach openwrt 18

edit:
znalazłem też w dumpie nand ten art (jak coś to 4 pierwsze bajty 03 76 0B 00 oraz 62 76 01 00 go identyfikują), tylko tam cały obszar wolny obszar jest ućkany
FF FF FF FF FF FF FF FF 26 20 98 1B 87 6E FC FF

bewnie jakieś przesunięcia uszkodzonych bloków

posklejam ręcznie i wgram

115

(61 odpowiedzi, napisanych Sprzęt / Hardware)

hmm wyciągnąłem go na nowo i faktycznie coś tam jest pod 8000.

próbowałem to wgrać przy użyciu
kmod-mtd-rw, insmod mtd-rw.ko i_want_a_brick=1

root@OpenWrt:/# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00030000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00010000 00010000 "factory"
mtd3: 007b0000 00010000 "firmware"
mtd4: 0029f436 00010000 "kernel"
mtd5: 00510bca 00010000 "rootfs"
mtd6: 001f0000 00010000 "rootfs_data"
root@OpenWrt:/# mtd -r write /tmp/art.bin /dev/mtd2
Unlocking /dev/mtd2 ...

Writing from /tmp/art.bin to /dev/mtd2 ...  [e]Failed to erase block

mtd -r write /tmp/art.bin /dev/mtd2

116

(61 odpowiedzi, napisanych Sprzęt / Hardware)

Cezary napisał/a:

No to uwaliłeś sobie factory. Bo np. pod 0x8000 też musza być dane.

wyciągnąłem jest z chodzącego routera ?

OpenWrt kernel loader for MIPS based SoC
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Decompressing kernel... done!
Starting kernel at 80001000...

[    0.000000] Linux version 5.10.190 (avru@DESKTOP-SFMK1K8) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r20134-5f15225c1e) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Sat Aug 12 09:46:51 2023
[    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 Netgear R6220
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2} total 2
[    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-0x0000000007ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] percpu: Embedded 15 pages/cpu s30224 r8192 d23024 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Writing ErrCtl register=000734ec
[    0.000000] Readback ErrCtl register=000734ec
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 119344K/131072K available (6753K kernel code, 624K rwdata, 1368K rodata, 1288K init, 235K bss, 11728K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000013] sched_clock: 64 bits at 880MHz, resolution 1ns, wraps every 4398046511103ns
[    0.015847] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.033802] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.106102] pid_max: default: 32768 minimum: 301
[    0.115401] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.129799] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.148030] rcu: Hierarchical SRCU implementation.
[    0.157831] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.173237] smp: Bringing up secondary CPUs ...
[    0.182847] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.182857] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.182869] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.182961] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.243118] Synchronize counters for CPU 1: done.
[    0.302803] smp: Brought up 1 node, 2 CPUs
[    0.316167] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.335670] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.349316] pinctrl core: initialized pinctrl subsystem
[    0.361917] NET: Registered protocol family 16
[    0.374775] cpuidle: using governor teo
[    0.440297] clocksource: Switched to clocksource GIC
[    0.452099] NET: Registered protocol family 2
[    0.461071] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.476090] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.492783] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.507990] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.521946] TCP: Hash tables configured (established 1024 bind 1024)
[    0.534767] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.547708] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.562054] NET: Registered protocol family 1
[    0.570709] PCI: CLS 0 bytes, default 32
[    0.583305] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.602361] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.613850] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.636539] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.648029] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.659470] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.671364] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.685664] printk: console [ttyS0] disabled
[    0.694245] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 15, base_baud = 3125000) is a 16550A
[    0.712191] printk: console [ttyS0] enabled
[    0.712191] printk: console [ttyS0] enabled
[    0.728714] printk: bootconsole [early0] disabled
[    0.728714] printk: bootconsole [early0] disabled
[    0.751633] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[    0.764861] spi-nor spi0.0: s25fl064k (8192 Kbytes)
[    0.774919] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.787645] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.802239] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.817773] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.832443] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.847300] Creating 4 MTD partitions on "spi0.0":
[    0.856896] 0x000000000000-0x000000030000 : "u-boot"
[    0.868087] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.879842] 0x000000040000-0x000000050000 : "factory"
[    0.891162] 0x000000050000-0x000000800000 : "firmware"
[    0.903223] 2 uimage-fw partitions found on MTD device firmware
[    0.915099] Creating 2 MTD partitions on "firmware":
[    0.925052] 0x000000000000-0x00000029f436 : "kernel"
[    0.934951] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
[    0.952517] 0x00000029f436-0x0000007b0000 : "rootfs"
[    0.962514] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
[    0.981832] mtd: setting mtd5 (rootfs) as root device
[    0.992131] 1 squashfs-split partitions found on MTD device rootfs
[    1.004528] 0x0000005c0000-0x0000007b0000 : "rootfs_data"
[    1.062415] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.079377] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 17
[    1.097120] i2c /dev entries driver
[    1.106647] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    1.120086] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    1.137713] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    1.154052] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    1.170512] mt7621-pci 1e140000.pcie: Parsing DT failed
[    1.183772] NET: Registered protocol family 10
[    1.195963] Segment Routing with IPv6
[    1.203446] NET: Registered protocol family 17
[    1.212776] 8021q: 802.1Q VLAN Support v1.8
[    1.225627] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.255461] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7530 PHY] (irq=22)
[    1.278355] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7530 PHY] (irq=23)
[    1.300794] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7530 PHY] (irq=24)
[    1.323263] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7530 PHY] (irq=25)
[    1.345908] mt7530 mdio-bus:1f wan (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7530 PHY] (irq=26)
[    1.368481] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[    1.385408] DSA: tree 0 setup
[    1.392005] rt2880-pinmux pinctrl: pcie is already enabled
[    1.403107] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    1.416496] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    1.434049] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    1.450368] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    1.466783] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[    1.482012] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[    1.497136] mt7621-pci 1e140000.pcie: failed to parse bus ranges property: -22
[    1.611842] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[    1.622961] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[    1.734275] mt7621-pci 1e140000.pcie: pcie1 no card, disable it (RST & CLK)
[    1.748144] mt7621-pci 1e140000.pcie: PCIE0 enabled
[    1.757865] mt7621-pci 1e140000.pcie: PCIE2 enabled
[    1.767599] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[    1.786352] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[    1.799061] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    1.812776] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.826487] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.837421] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff] (bus address [0x00000000-0x0fffffff])
[    1.857745] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    1.869734] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.882238] pci 0000:00:00.0: reg 0x14: initial BAR value 0x00000000 invalid
[    1.896281] pci 0000:00:00.0: reg 0x14: [mem size 0x00010000]
[    1.907802] pci 0000:00:00.0: supports D1
[    1.915796] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.927791] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    1.939831] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.952343] pci 0000:00:01.0: reg 0x14: initial BAR value 0x00000000 invalid
[    1.966389] pci 0000:00:01.0: reg 0x14: [mem size 0x00010000]
[    1.977906] pci 0000:00:01.0: supports D1
[    1.985900] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    1.998972] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.014973] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.031205] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[    2.043244] pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    2.057300] pci 0000:01:00.0: reg 0x10: [mem size 0x00100000 64bit]
[    2.069824] pci 0000:01:00.0: reg 0x30: initial BAR value 0x00000000 invalid
[    2.083882] pci 0000:01:00.0: reg 0x30: [mem size 0x00010000 pref]
[    2.096310] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    2.110062] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    2.120521] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    2.132667] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.146199] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff pref]
[    2.160604] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.174069] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000
[    2.186104] pci 0000:02:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    2.200160] pci 0000:02:00.0: reg 0x10: [mem size 0x00100000]
[    2.211775] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    2.225527] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[    2.235979] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    2.248124] pci 0000:00:01.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.261655] pci 0000:00:01.0:   bridge window [mem 0x60000000-0x600fffff pref]
[    2.276063] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    2.289297] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.302479] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.316354] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.329537] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.343423] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.356953] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    2.371346] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    2.384876] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[    2.399263] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[    2.412808] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[    2.426339] pci 0000:00:00.0: BAR 7: assigned [io  0x1e160000-0x1e160fff]
[    2.439869] pci 0000:00:01.0: BAR 7: assigned [io  0x1e161000-0x1e161fff]
[    2.453407] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.467984] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    2.482381] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.492279] pci 0000:00:00.0:   bridge window [io  0x1e160000-0x1e160fff]
[    2.505802] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.519328] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.533725] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]
[    2.547267] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.557158] pci 0000:00:01.0:   bridge window [io  0x1e161000-0x1e161fff]
[    2.570684] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.584211] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    2.610731] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control rx/tx
[    2.627121] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    2.646104] Freeing unused kernel memory: 1288K
[    2.655188] This architecture does not have kernel memory protection.
[    2.668033] Run /sbin/init as init process
[    3.665896] init: Console is alive
[    3.673219] init: - watchdog -
[    4.846831] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.003941] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.030760] init: - preinit -
[    6.734114] random: jshn: uninitialized urandom read (4 bytes read)
[    6.819725] random: jshn: uninitialized urandom read (4 bytes read)
[    6.871970] random: jshn: uninitialized urandom read (4 bytes read)
[    7.163297] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[    7.179491] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    7.180832] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[    7.209900] 8021q: adding VLAN 0 to HW filter on device lan1
[    7.224213] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
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.894469] mt7530 mdio-bus:1f lan1: Link is Up - 100Mbps/Full - flow control off
[    8.909468] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready
[   11.592961] jffs2: notice: (527) jffs2_build_xattr_subsystem: complete building xattr subsystem, 9 of xdatum (0 unchecked, 4 orphan) and 10 of xref (4 dead, 0 orphan) found.
[   11.626869] mount_root: switching to jffs2 overlay
[   11.643529] overlayfs: upper fs does not support tmpfile.
[   11.667143] urandom-seed: Seeding with /etc/urandom.seed
[   11.971534] mt7530 mdio-bus:1f lan1: Link is Down
[   11.991933] procd: - early -
[   11.997919] procd: - watchdog -
[   12.700518] procd: - watchdog -
[   12.707622] procd: - ubus -
[   12.814780] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.829509] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.842790] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.864529] procd: - init -
Please press Enter to activate this console.
[   13.962505] random: jshn: uninitialized urandom read (4 bytes read)
[   14.026611] random: ubusd: uninitialized urandom read (4 bytes read)
[   14.045276] random: ubus: uninitialized urandom read (4 bytes read)
[   14.196777] kmodloader: loading kernel modules from /etc/modules.d/*
[   14.478204] urngd: v1.0.2 started.
[   14.485409] Loading modules backported from Linux version v5.15.92-0-ge515b9902f5f
[   14.500593] Backport generated by backports.git v5.15.92-1-0-gdfe0f60c
[   14.810610] random: crng init done
[   14.817416] random: 27 urandom warning(s) missed due to ratelimiting
[   14.914413] mt7621-pci 1e140000.pcie: bus=1 slot=0 irq=18
[   14.925264] pci 0000:00:00.0: enabling device (0004 -> 0007)
[   14.936586] mt76x2e 0000:01:00.0: enabling device (0000 -> 0002)
[   14.948769] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[   15.620945] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
[   15.637004] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[   15.647980] mt76x2e 0000:01:00.0: Build: 1
[   15.656145] mt76x2e 0000:01:00.0: Build Time: 201607111443____
[   15.690291] mt76x2e 0000:01:00.0: Firmware running!
[   15.805924] PPP generic driver version 2.4.2
[   15.819747] NET: Registered protocol family 24
[   15.847231] kmodloader: done loading kernel modules from /etc/modules.d/*
[   26.564651] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[   26.591558] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[   26.608409] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   26.626071] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   26.644342] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[   26.662136] 8021q: adding VLAN 0 to HW filter on device lan1
[   26.677478] br-lan: port 1(lan1) entered blocking state
[   26.688033] br-lan: port 1(lan1) entered disabled state
[   26.704833] device lan1 entered promiscuous mode
[   26.714133] device eth0 entered promiscuous mode
[   26.755380] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[   26.769463] 8021q: adding VLAN 0 to HW filter on device lan2
[   26.785476] br-lan: port 2(lan2) entered blocking state
[   26.796080] br-lan: port 2(lan2) entered disabled state
[   26.814702] device lan2 entered promiscuous mode
[   26.838312] mt7530 mdio-bus:1f lan3: configuring for phy/gmii link mode
[   26.853262] 8021q: adding VLAN 0 to HW filter on device lan3
[   26.871837] br-lan: port 3(lan3) entered blocking state
[   26.882375] br-lan: port 3(lan3) entered disabled state
[   26.896647] device lan3 entered promiscuous mode
[   26.925791] mt7530 mdio-bus:1f lan4: configuring for phy/gmii link mode
[   26.942314] 8021q: adding VLAN 0 to HW filter on device lan4
[   26.958559] br-lan: port 4(lan4) entered blocking state
[   26.969259] br-lan: port 4(lan4) entered disabled state
[   26.982799] device lan4 entered promiscuous mode
[   27.016646] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[   27.032609] 8021q: adding VLAN 0 to HW filter on device wan
[   28.305836] mt7530 mdio-bus:1f lan1: Link is Up - 100Mbps/Full - flow control off
[   28.334892] br-lan: port 1(lan1) entered blocking state
[   28.345424] br-lan: port 1(lan1) entered forwarding state
[   28.414079] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   29.987679] br-lan: port 5(wlan0) entered blocking state
[   29.998373] br-lan: port 5(wlan0) entered disabled state
[   30.009628] device wlan0 entered promiscuous mode
[   30.019530] br-lan: port 5(wlan0) entered blocking state
[   30.030185] br-lan: port 5(wlan0) entered forwarding state
[   30.043155] br-lan: port 5(wlan0) entered disabled state
[   31.072531] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   31.085685] br-lan: port 5(wlan0) entered blocking state
[   31.096388] br-lan: port 5(wlan0) entered forwarding state
[   33.772710] do_page_fault(): sending SIGSEGV to ujail for invalid read access from 00000036
[   33.789508] epc = 77d63ddf in libubox.so.20220515[77d60000+18000]
[   33.801770] ra  = 555a471b in ujail[555a0000+14000]

117

(61 odpowiedzi, napisanych Sprzęt / Hardware)

Cezary napisał/a:

Ale ta partycja ma wielkość 0x100000 czyli 1MB. Nie 64KB. Ty nie patrz na to co jakoś breed mówi tylko trzymaj się tez wielkości danych z których dts korzysta.

ale to co wkleiłem to jedyne co tam jest, reszta obszaru jest pusta


ifconfig
br-lan    Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fdd7:83de:a4fc::1/60 Scope:Global
          inet6 addr: fe80::b239:56ff:fe61:7af0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:633 errors:0 dropped:0 overruns:0 frame:0
          TX packets:174 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:109865 (107.2 KiB)  TX bytes:29078 (28.3 KiB)

eth0      Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          inet6 addr: fe80::b239:56ff:fe61:7af0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1504  Metric:1
          RX packets:1873 errors:0 dropped:0 overruns:0 frame:0
          TX packets:510 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:373479 (364.7 KiB)  TX bytes:84794 (82.8 KiB)
          Interrupt:17

lan1      Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1873 errors:0 dropped:10 overruns:0 frame:0
          TX packets:485 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:339765 (331.8 KiB)  TX bytes:77948 (76.1 KiB)

lan2      Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan3      Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan4      Link encap:Ethernet  HWaddr B0:39:56:61:7A:F0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:320 errors:0 dropped:0 overruns:0 frame:0
          TX packets:320 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:24960 (24.3 KiB)  TX bytes:24960 (24.3 KiB)

wan       Link encap:Ethernet  HWaddr B0:39:56:61:7A:F1
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr B0:39:56:61:7A:F4
          inet6 addr: fe80::b239:56ff:fe61:7af4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:423 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:90049 (87.9 KiB)

niby łapie te adresy sensownie, tylko znalazło mi tylko jedno radio
B0:39:56:61:7A i  ostatni człon sobie chyba wylicza samo

118

(61 odpowiedzi, napisanych Sprzęt / Hardware)

hmm
to wyboldowane to faktycznie adres LAN i się zaczytuje

119

(61 odpowiedzi, napisanych Sprzęt / Hardware)

hmm nic sie nie zmieniło, dalej krzyczy ubi ... kiedy to sie zaczytuje ? od nowa menuconfig musze zrobic ?

edit, dobra chyba mi sie model zmienił z netgear r6220 na samo r6220 smile przebudowywuje
edit 2 - teraz problem taki ze mi sie buduja tylko kernel-initramfs  i sysupgrade xD
nie mam rootfs i kernela żeby zbudowac breed ;>

edit3 - ale to nie problem bo to już łyka normalnie breed xD zakładam że te obrazy istnieja tylko przy nand

TADAM big_smile

Boot and Recovery Environment for Embedded Devices
Copyright (C) 2021 HackPascal <hackpascal@gmail.com>
Build date 2021-12-15 [git-f9b74d0]
Version 1.1 (r1337)

DRAM: 128MB
Platform: MediaTek MT7621S ver 1, eco 3
Board: Netgear WNDR3700 v5
Clocks: CPU: 880MHz, DDR: 1040MHz, Bus: 220MHz, Ref: 40MHz
Flash: Winbond W25Q64 (8MB) on mt7621-spi.0
rt2880-eth: MAC address from EEPROM is invalid, using default settings.
rt2880-eth: Using MAC address 00:0c:43:00:00:01
eth0: MediaTek MT7530 Gigabit switch

Network started on eth0, inet addr 192.168.1.1, netmask 255.255.255.0

Press any key to interrupt autoboot ... 0

Trying to boot firmware from 0x00050000 in flash bank 0 ...
Reading data into memory ...
U-Boot firmware image header detected.
    Image Name:   MIPS OpenWrt Linux-5.10.190
    Data Size:    2749430 Bytes
    Load Address: 80001000
    Entry Point:  80001000
Flushing cache ... done.

Starting kernel at 0x80001000...



OpenWrt kernel loader for MIPS based SoC
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Decompressing kernel... done!
Starting kernel at 80001000...

[    0.000000] Linux version 5.10.190 (avru@DESKTOP-SFMK1K8) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r20134-5f15225c1e) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Sat Aug 12 09:46:51 2023
[    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 Netgear R6220
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2} total 2
[    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-0x0000000007ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] percpu: Embedded 15 pages/cpu s30224 r8192 d23024 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Writing ErrCtl register=000734e0
[    0.000000] Readback ErrCtl register=000734e0
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 119344K/131072K available (6753K kernel code, 624K rwdata, 1368K rodata, 1288K init, 235K bss, 11728K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000013] sched_clock: 64 bits at 880MHz, resolution 1ns, wraps every 4398046511103ns
[    0.015847] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.033802] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.106102] pid_max: default: 32768 minimum: 301
[    0.115401] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.129799] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.148026] rcu: Hierarchical SRCU implementation.
[    0.157827] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.173233] smp: Bringing up secondary CPUs ...
[    0.182843] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.182854] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.182865] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.182958] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.243115] Synchronize counters for CPU 1: done.
[    0.302800] smp: Brought up 1 node, 2 CPUs
[    0.316163] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.335671] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.349312] pinctrl core: initialized pinctrl subsystem
[    0.361911] NET: Registered protocol family 16
[    0.374705] cpuidle: using governor teo
[    0.440715] clocksource: Switched to clocksource GIC
[    0.452278] NET: Registered protocol family 2
[    0.461561] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.476886] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.493579] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.508730] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.522737] TCP: Hash tables configured (established 1024 bind 1024)
[    0.535523] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.548432] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.562570] NET: Registered protocol family 1
[    0.571161] PCI: CLS 0 bytes, default 32
[    0.582124] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.601389] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.612878] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.635045] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.646564] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.657948] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.669824] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.684060] printk: console [ttyS0] disabled
[    0.692639] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 15, base_baud = 3125000) is a 16550A
[    0.710603] printk: console [ttyS0] enabled
[    0.710603] printk: console [ttyS0] enabled
[    0.727123] printk: bootconsole [early0] disabled
[    0.727123] printk: bootconsole [early0] disabled
[    0.750518] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[    0.763734] spi-nor spi0.0: s25fl064k (8192 Kbytes)
[    0.773542] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.786368] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.800953] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.816452] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.831130] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.845990] Creating 4 MTD partitions on "spi0.0":
[    0.855573] 0x000000000000-0x000000030000 : "u-boot"
[    0.866444] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.878135] 0x000000040000-0x000000050000 : "factory"
[    0.890449] 0x000000050000-0x000000800000 : "firmware"
[    0.902463] 2 uimage-fw partitions found on MTD device firmware
[    0.914306] Creating 2 MTD partitions on "firmware":
[    0.924247] 0x000000000000-0x00000029f436 : "kernel"
[    0.934134] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
[    0.951691] 0x00000029f436-0x0000007b0000 : "rootfs"
[    0.961693] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
[    0.981019] mtd: setting mtd5 (rootfs) as root device
[    0.991617] 1 squashfs-split partitions found on MTD device rootfs
[    1.004065] 0x0000005c0000-0x0000007b0000 : "rootfs_data"
[    1.062897] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.078902] mtk_soc_eth 1e100000.ethernet: generated random MAC address ba:97:16:c8:4a:24
[    1.096207] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 17
[    1.113865] i2c /dev entries driver
[    1.123249] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    1.136761] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    1.154335] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    1.170664] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    1.187165] mt7621-pci 1e140000.pcie: Parsing DT failed
[    1.200513] NET: Registered protocol family 10
[    1.213020] Segment Routing with IPv6
[    1.220428] NET: Registered protocol family 17
[    1.229761] 8021q: 802.1Q VLAN Support v1.8
[    1.242680] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.275910] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7530 PHY] (irq=22)
[    1.298832] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7530 PHY] (irq=23)
[    1.321373] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7530 PHY] (irq=24)
[    1.343781] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7530 PHY] (irq=25)
[    1.366383] mt7530 mdio-bus:1f wan (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7530 PHY] (irq=26)
[    1.388925] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[    1.405843] DSA: tree 0 setup
[    1.412389] rt2880-pinmux pinctrl: pcie is already enabled
[    1.423493] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    1.436881] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    1.454478] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    1.470784] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    1.487202] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[    1.502411] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[    1.517523] mt7621-pci 1e140000.pcie: failed to parse bus ranges property: -22
[    1.632220] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[    1.643339] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[    1.754652] mt7621-pci 1e140000.pcie: pcie1 no card, disable it (RST & CLK)
[    1.768520] mt7621-pci 1e140000.pcie: PCIE0 enabled
[    1.778240] mt7621-pci 1e140000.pcie: PCIE2 enabled
[    1.787968] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[    1.806719] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[    1.819427] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    1.833139] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.846858] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.857793] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff] (bus address [0x00000000-0x0fffffff])
[    1.878131] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    1.890122] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.902621] pci 0000:00:00.0: reg 0x14: [mem 0x60400000-0x6040ffff]
[    1.915183] pci 0000:00:00.0: supports D1
[    1.923173] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.935168] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    1.947208] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.959715] pci 0000:00:01.0: reg 0x14: [mem 0x60410000-0x6041ffff]
[    1.972279] pci 0000:00:01.0: supports D1
[    1.980247] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    1.993587] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[    2.005655] pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    2.019711] pci 0000:01:00.0: reg 0x10: [mem size 0x00100000 64bit]
[    2.032249] pci 0000:01:00.0: reg 0x30: initial BAR value 0x00000000 invalid
[    2.046294] pci 0000:01:00.0: reg 0x30: [mem size 0x00010000 pref]
[    2.058712] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    2.072460] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    2.082916] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    2.095071] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.108599] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.122995] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.136461] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000
[    2.148495] pci 0000:02:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    2.162572] pci 0000:02:00.0: reg 0x10: [mem size 0x00100000]
[    2.174170] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    2.187924] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[    2.198377] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    2.210516] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.224056] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    2.238453] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    2.251688] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.264868] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.278738] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.291933] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.305809] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.319333] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    2.333727] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    2.347257] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[    2.361657] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[    2.375190] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[    2.388716] pci 0000:00:00.0: BAR 7: assigned [io  0x1e160000-0x1e160fff]
[    2.402252] pci 0000:00:01.0: BAR 7: assigned [io  0x1e161000-0x1e161fff]
[    2.415789] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.430367] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    2.444759] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.454656] pci 0000:00:00.0:   bridge window [io  0x1e160000-0x1e160fff]
[    2.468178] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.481714] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.496114] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]
[    2.509639] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.519540] pci 0000:00:01.0:   bridge window [io  0x1e161000-0x1e161fff]
[    2.533066] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.546600] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    2.565142] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control rx/tx
[    2.591569] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    2.610797] Freeing unused kernel memory: 1288K
[    2.619844] This architecture does not have kernel memory protection.
[    2.632691] Run /sbin/init as init process
[    3.630265] init: Console is alive
[    3.637632] init: - watchdog -
[    4.807859] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.964739] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.981268] init: - preinit -
[    6.636049] random: jshn: uninitialized urandom read (4 bytes read)
[    6.721922] random: jshn: uninitialized urandom read (4 bytes read)
[    6.774154] random: jshn: uninitialized urandom read (4 bytes read)
[    7.065809] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[    7.082611] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[    7.095997] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    7.096314] 8021q: adding VLAN 0 to HW filter on device lan1
[    7.127255] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
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
[   11.194890] mt7530 mdio-bus:1f lan1: Link is Up - 100Mbps/Full - flow control off
[   11.209897] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready
[   11.432946] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   11.451258] urandom-seed: Seed file not found (/etc/urandom.seed)
[   11.743739] mt7530 mdio-bus:1f lan1: Link is Down
[   11.764089] procd: - early -
[   11.770069] procd: - watchdog -
[   12.470976] procd: - watchdog -
[   12.478064] procd: - ubus -
[   12.585400] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.600100] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.613440] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.635564] procd: - init -
Please press Enter to activate this console.
[   13.752066] random: jshn: uninitialized urandom read (4 bytes read)
[   13.829464] random: ubusd: uninitialized urandom read (4 bytes read)
[   13.852226] random: ubus: uninitialized urandom read (4 bytes read)
[   13.897956] kmodloader: loading kernel modules from /etc/modules.d/*
[   14.182545] Loading modules backported from Linux version v5.15.92-0-ge515b9902f5f
[   14.197696] Backport generated by backports.git v5.15.92-1-0-gdfe0f60c
[   14.203806] urngd: v1.0.2 started.
[   14.517198] random: crng init done
[   14.524097] random: 27 urandom warning(s) missed due to ratelimiting
[   14.619792] mt7621-pci 1e140000.pcie: bus=1 slot=0 irq=18
[   14.630645] pci 0000:00:00.0: enabling device (0004 -> 0007)
[   14.641935] mt76x2e 0000:01:00.0: enabling device (0000 -> 0002)
[   14.654106] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[   14.666058] mt76x2e 0000:01:00.0: EEPROM data check failed: ffff
[   15.310781] mt76x2e 0000:01:00.0: Invalid MAC address, using random address ee:47:55:e4:2c:7c
[   15.351402] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
[   15.367544] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[   15.378516] mt76x2e 0000:01:00.0: Build: 1
[   15.386671] mt76x2e 0000:01:00.0: Build Time: 201607111443____
[   15.420759] mt76x2e 0000:01:00.0: Firmware running!
[   15.533013] PPP generic driver version 2.4.2
[   15.547421] NET: Registered protocol family 24
[   15.573826] kmodloader: done loading kernel modules from /etc/modules.d/*



BusyBox v1.35.0 (2023-08-12 09:46:51 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 22.03-SNAPSHOT, r20211-de29f15af1
 -----------------------------------------------------
=== 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:/#

[   77.379916] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   77.393821] jffs2_build_filesystem(): unlocking the mtd device...
[   77.393832] done.
[   77.410043] jffs2_build_filesystem(): erasing all blocks after the end marker...
[   79.781283] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[   79.843381] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[   79.860008] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   79.878643] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   79.897101] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[   79.916535] 8021q: adding VLAN 0 to HW filter on device lan1
[   79.933424] br-lan: port 1(lan1) entered blocking state
[   79.943959] br-lan: port 1(lan1) entered disabled state
[   79.956668] device lan1 entered promiscuous mode
[   79.966254] device eth0 entered promiscuous mode
[   80.026069] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[   80.060420] 8021q: adding VLAN 0 to HW filter on device lan2
[   80.083925] br-lan: port 2(lan2) entered blocking state
[   80.094481] br-lan: port 2(lan2) entered disabled state
[   80.115989] device lan2 entered promiscuous mode
[   80.139554] mt7530 mdio-bus:1f lan3: configuring for phy/gmii link mode
[   80.171454] 8021q: adding VLAN 0 to HW filter on device lan3
[   80.189914] br-lan: port 3(lan3) entered blocking state
[   80.200474] br-lan: port 3(lan3) entered disabled state
[   80.213650] device lan3 entered promiscuous mode
[   80.237165] mt7530 mdio-bus:1f lan4: configuring for phy/gmii link mode
[   80.271343] 8021q: adding VLAN 0 to HW filter on device lan4
[   80.294851] br-lan: port 4(lan4) entered blocking state
[   80.305358] br-lan: port 4(lan4) entered disabled state
[   80.331353] device lan4 entered promiscuous mode
[   80.372679] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[   80.398274] 8021q: adding VLAN 0 to HW filter on device wan
[   81.560165] mt7530 mdio-bus:1f lan1: Link is Up - 100Mbps/Full - flow control off
[   81.591014] br-lan: port 1(lan1) entered blocking state
[   81.601508] br-lan: port 1(lan1) entered forwarding state
[   81.625079] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   86.769902] done.
[   86.773850] jffs2: notice: (1618) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   87.017736] overlayfs: upper fs does not support tmpfile.
[   87.665920] do_page_fault(): sending SIGSEGV to ujail for invalid read access from 00000036
[   87.682780] epc = 77dd8ddf in libubox.so.20220515[77dd5000+18000]
[   87.695044] ra  = 5563471b in ujail[55630000+14000]

dzięki big_smile widać tu jeszcze coś do poprawy ?
nawet bez art działa
ale zaraz spróbuje go jakoś tam wgrać, breed ma nawet od tego opcje .. tylko że się nie wstrzeli w dobry obszar...
pora wgrać breed od Linksys RE6500 big_smile


teraz tak, onny r6220, mam taki układ

 1.986060] 0x000000000000-0x000000100000 : "u-boot"
[    2.007875] 0x000000100000-0x000000200000 : "SC PID"
[    2.028863] 0x000000200000-0x000000600000 : "kernel"
[    2.080251] 0x000000600000-0x000002200000 : "ubi"
[    2.372399] 0x000002e00000-0x000002f00000 : "factory"
[    2.393939] 0x000004200000-0x000007e00000 : "reserved"

spi

[    0.845990] Creating 4 MTD partitions on "spi0.0":
[    0.855573] 0x000000000000-0x000000030000 : "u-boot"
[    0.866444] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.878135] 0x000000040000-0x000000050000 : "factory"
[    0.890449] 0x000000050000-0x000000800000 : "firmware"
[    0.902463] 2 uimage-fw partitions found on MTD device firmware
[    0.914306] Creating 2 MTD partitions on "firmware":
[    0.924247] 0x000000000000-0x00000029f436 : "kernel"
[    0.934134] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
[    0.951691] 0x00000029f436-0x0000007b0000 : "rootfs"

hmm nie moge znaleść art xD
mtd4 w r6220 z nand to tylko to

"03 76 0B 00 B0 39 56 61 7A F0 03 76 C3 14 FF FF FF FF 03 76 C3 14 00 00 00 00 00 00 00 00 00 00 00 00 B0 07 80 00 60 7F FD 9B FF FF FF FF FF FF FF FF FF FF 22 34 00 20 FF FF 00 01 00 00 00 00 00 00 22 00 00 00 00 00 00 00 00 00 00 00 E0 01 82 00 00 94 40 B4 C0 C9 23 00 00 00 C0 C9 23 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF C8 C8 C8 C8 00 00 00 C8 C2 C6 C2 C2 C2 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 05 00 00 00 AF 00 5E 88 00 00 00 00 00 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF 20"

wgrałem 64kb tego (bo tak chce breed) ale to są same śmieci ...

a jak patrze na dump z kości tego pacjenta to w 0x000002e00000-0x000002f00000 jest pusto

120

(61 odpowiedzi, napisanych Sprzęt / Hardware)

define Device/netgear_r6220
  $(Device/dsa-migration)
  $(Device/uimage-lzma-loader)
  IMAGE_SIZE := 7872k
  DEVICE_MODEL := R6220
  DEVICE_PACKAGES += kmod-mt76x2
  SUPPORTED_DEVICES += r6220
endef
TARGET_DEVICES += netgear_r6220

coś takiego wystarczy ? co to ten SERCOMM i co tam wypełnić ?
przepisać z 3700 ?

121

(61 odpowiedzi, napisanych Sprzęt / Hardware)

Cezary napisał/a:

Musisz w image.mk przepisać tworzenie obrazu żeby nie robił i nie łączył partycji ubi, tylko normalnie jak dla zwykłego spi.

gdzie to sie znajduje ? big_smile
mam jedno w include, ale to tylko jakiś template


edit chyba ze tutaj:
/linux/ramips/image/mt7621.mk


define Device/netgear_wndr3700-v5
  $(Device/dsa-migration)
  $(Device/netgear_sercomm_nor)
  $(Device/uimage-lzma-loader)
  IMAGE_SIZE := 15232k
  DEVICE_MODEL := WNDR3700
  DEVICE_VARIANT := v5
  SERCOMM_HWNAME := WNDR3700v5
  SERCOMM_HWID := AYB
  SERCOMM_HWVER := A001
  SERCOMM_SWVER := 0x1054
  SERCOMM_PAD := 320k
  DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
        kmod-usb-ledtrig-usbport
  SUPPORTED_DEVICES += wndr3700v5
endef
TARGET_DEVICES += netgear_wndr3700-v5

define Device/netgear_r6220
  $(Device/netgear_sercomm_nand)
  DEVICE_MODEL := R6220
  SERCOMM_HWNAME := R6220
  SERCOMM_HWID := AYA
  SERCOMM_HWVER := A001
  SERCOMM_SWVER := 0x0086
  IMAGE_SIZE := 28672k
  DEVICE_PACKAGES += kmod-mt76x2
  SUPPORTED_DEVICES += r6220
endef
TARGET_DEVICES += netgear_r6220

122

(61 odpowiedzi, napisanych Sprzęt / Hardware)

Cezary napisał/a:

1. Bad cell count pojawia sie zawsze, zignoruj
2. Tak błąd jest przy ubi, tyle że ty masz tam pamięć zwykłą która pewnie nie chcesz formatować w ubi?

2. raczej nie ;D

gdzie to się przestawia w kodzie ?

może szybciej jak po prostu zbuduje sobie wndr3700 pod 8MB ? ;D

123

(61 odpowiedzi, napisanych Sprzęt / Hardware)

Więc tak, dzisiaj sie chwilę pobawiłem.
Zmieniłem breed na wndr3700

generalnie jak ktoś ma nor flash 16MB to myślę że spokojnie można wgrać cały dump z wndr3700 i pewnie zadziała smile one się w sumie tylko rodzajem pamięci różnią.

jednak ja lece hard way :> mam tylko wiadekto kosci 8MB i zamierzam je wykorzystać wink

zamiast nand ustawiłem w DTS

&spi0 {
    status = "okay";

    flash@0 {
        compatible = "jedec,spi-nor";
        reg = <0>;
        spi-max-frequency = <10000000>;

        partitions {
            compatible = "fixed-partitions";
            #address-cells = <1>;
            #size-cells = <1>;

            partition@0 {
                label = "u-boot";
                reg = <0x0 0x30000>;
                read-only;
            };

            partition@30000 {
                label = "u-boot-env";
                reg = <0x30000 0x10000>;
                read-only;
            };

            factory: partition@40000 {
                label = "factory";
                reg = <0x40000 0x10000>;
                read-only;
            };

            partition@50000 {
                compatible = "denx,uimage";
                label = "firmware";
                reg = <0x50000 0x7b0000>;
            };
        };
    };
};

zbudowałem.

teraz jak to wgrać ... :> breed przyjmuje na wejściu zlepek kernel+rootfs
więc posklejałem cos takiego

#!/bin/bash

[ $# -ne 2 ] && { echo "Usage: $0 kernel1.bin rootfs0.bin"; exit 1; }

kernel1="$1"
rootfs0="$2"

[ -f "$kernel1" ] || { echo "kernel1 file doesn't exist, aborting: $kernel1"; exit 2; }
[ -f "$rootfs0" ] || { echo "rootfs0 file doesn't exist, aborting: $rootfs0"; exit 2; }

set -eo pipefail

tmpfile=$(mktemp tmp.XXXXXX)
truncate -s 3M "$tmpfile"
dd if="$kernel1" of="$tmpfile" conv=nocreat,notrunc status=none oflag=seek_bytes seek=0
#dd if="$kernel1" of="$tmpfile" conv=nocreat,notrunc status=none oflag=seek_bytes seek=3M
cat "$rootfs0" >> "$tmpfile"
mv "$tmpfile" openwrt_for_breed.bin

echo "openwrt_for_breed.bin successfully created."

limit dla 8MB przy breed to
7,69 MB (8060928B)


no i dobra, poszło, wgrane, odpalone


Boot and Recovery Environment for Embedded Devices
Copyright (C) 2021 HackPascal <hackpascal@gmail.com>
Build date 2021-12-15 [git-f9b74d0]
Version 1.1 (r1337)

DRAM: 128MB
Platform: MediaTek MT7621S ver 1, eco 3
Board: Netgear WNDR3700 v5
Clocks: CPU: 880MHz, DDR: 1040MHz, Bus: 220MHz, Ref: 40MHz
Flash: Winbond W25Q64 (8MB) on mt7621-spi.0
rt2880-eth: MAC address from EEPROM is invalid, using default settings.
rt2880-eth: Using MAC address 00:0c:43:00:00:01
eth0: MediaTek MT7530 Gigabit switch

Network started on eth0, inet addr 192.168.1.1, netmask 255.255.255.0

Press any key to interrupt autoboot ... 0

Trying to boot firmware from 0x00050000 in flash bank 0 ...
Reading data into memory ...
U-Boot firmware image header detected.
    Image Name:   MIPS OpenWrt Linux-5.10.190
    Data Size:    2750819 Bytes
    Load Address: 80001000
    Entry Point:  80001000
Flushing cache ... done.

Starting kernel at 0x80001000...



OpenWrt kernel loader for MIPS based SoC
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Decompressing kernel... done!
Starting kernel at 80001000...

[    0.000000] Linux version 5.10.190 (avru@DESKTOP-SFMK1K8) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r20134-5f15225c1e) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Sat Aug 12 09:46:51 2023
[    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 Netgear R6220
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2} total 2
[    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-0x0000000007ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] percpu: Embedded 15 pages/cpu s30224 r8192 d23024 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Writing ErrCtl register=000734e0
[    0.000000] Readback ErrCtl register=000734e0
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 119344K/131072K available (6757K kernel code, 628K rwdata, 1368K rodata, 1280K init, 235K bss, 11728K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000013] sched_clock: 64 bits at 880MHz, resolution 1ns, wraps every 4398046511103ns
[    0.015848] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.033805] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.106102] pid_max: default: 32768 minimum: 301
[    0.115405] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.129803] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.147977] rcu: Hierarchical SRCU implementation.
[    0.157770] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.173186] smp: Bringing up secondary CPUs ...
[    0.182798] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.182808] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.182820] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.182909] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.243062] Synchronize counters for CPU 1: done.
[    0.302744] smp: Brought up 1 node, 2 CPUs
[    0.315077] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.334587] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.348226] pinctrl core: initialized pinctrl subsystem
[    0.360737] NET: Registered protocol family 16
[    0.373570] cpuidle: using governor teo
[    0.441468] clocksource: Switched to clocksource GIC
[    0.452931] NET: Registered protocol family 2
[    0.461913] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.477236] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.493937] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.509085] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.523082] TCP: Hash tables configured (established 1024 bind 1024)
[    0.535893] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.548795] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.562922] NET: Registered protocol family 1
[    0.571515] PCI: CLS 0 bytes, default 32
[    0.582354] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.599257] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.610851] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.633042] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.644490] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.655819] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.667640] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.681812] printk: console [ttyS0] disabled
[    0.690319] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 15, base_baud = 3125000) is a 16550A
[    0.708330] printk: console [ttyS0] enabled
[    0.708330] printk: console [ttyS0] enabled
[    0.724839] printk: bootconsole [early0] disabled
[    0.724839] printk: bootconsole [early0] disabled
[    0.747394] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[    0.760673] spi-nor spi0.0: s25fl064k (8192 Kbytes)
[    0.770501] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.783234] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.797816] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.813311] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.827951] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.842819] Creating 4 MTD partitions on "spi0.0":
[    0.852399] 0x000000000000-0x000000030000 : "u-boot"
[    0.863283] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.874929] 0x000000040000-0x000000050000 : "factory"
[    0.886124] 0x000000050000-0x000000800000 : "firmware"
[    0.898887] 2 uimage-fw partitions found on MTD device firmware
[    0.910752] Creating 2 MTD partitions on "firmware":
[    0.920833] 0x000000000000-0x000000300000 : "kernel"
[    0.932082] 0x000000300000-0x0000007b0000 : "ubi"
[    0.983431] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    0.999306] mtk_soc_eth 1e100000.ethernet: generated random MAC address 9a:37:32:bb:50:a6
[    1.016529] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 17
[    1.034294] i2c /dev entries driver
[    1.043539] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    1.056957] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    1.074533] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    1.090853] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    1.107326] mt7621-pci 1e140000.pcie: Parsing DT failed
[    1.120475] NET: Registered protocol family 10
[    1.133028] Segment Routing with IPv6
[    1.140433] NET: Registered protocol family 17
[    1.149797] 8021q: 802.1Q VLAN Support v1.8
[    1.162639] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.196249] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7530 PHY] (irq=22)
[    1.218589] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7530 PHY] (irq=23)
[    1.240979] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7530 PHY] (irq=24)
[    1.263178] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7530 PHY] (irq=25)
[    1.285662] mt7530 mdio-bus:1f wan (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7530 PHY] (irq=26)
[    1.307950] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[    1.324917] DSA: tree 0 setup
[    1.331489] rt2880-pinmux pinctrl: pcie is already enabled
[    1.342580] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    1.355967] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    1.373511] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    1.389813] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    1.406214] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[    1.421410] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[    1.436543] mt7621-pci 1e140000.pcie: failed to parse bus ranges property: -22
[    1.551247] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[    1.562369] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[    1.673680] mt7621-pci 1e140000.pcie: pcie1 no card, disable it (RST & CLK)
[    1.687547] mt7621-pci 1e140000.pcie: PCIE0 enabled
[    1.697267] mt7621-pci 1e140000.pcie: PCIE2 enabled
[    1.706995] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[    1.725730] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[    1.738440] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    1.752148] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.765863] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.776796] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff] (bus address [0x00000000-0x0fffffff])
[    1.797122] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    1.809111] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.821608] pci 0000:00:00.0: reg 0x14: [mem 0x60400000-0x6040ffff]
[    1.834165] pci 0000:00:00.0: supports D1
[    1.842155] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.854147] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    1.866182] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.878682] pci 0000:00:01.0: reg 0x14: [mem 0x60410000-0x6041ffff]
[    1.891247] pci 0000:00:01.0: supports D1
[    1.899241] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    1.912581] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[    1.924644] pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    1.938701] pci 0000:01:00.0: reg 0x10: [mem size 0x00100000 64bit]
[    1.951236] pci 0000:01:00.0: reg 0x30: initial BAR value 0x00000000 invalid
[    1.965278] pci 0000:01:00.0: reg 0x30: [mem size 0x00010000 pref]
[    1.977703] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    1.991405] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    2.001894] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    2.014041] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.027569] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.041964] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.055446] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000
[    2.067498] pci 0000:02:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    2.081554] pci 0000:02:00.0: reg 0x10: [mem size 0x00100000]
[    2.093149] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    2.106860] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[    2.117313] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    2.129462] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.142991] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    2.157387] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    2.170620] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.183811] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.197687] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.210860] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.224737] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.238266] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    2.252664] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    2.266194] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[    2.280584] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[    2.294119] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[    2.307650] pci 0000:00:00.0: BAR 7: assigned [io  0x1e160000-0x1e160fff]
[    2.321181] pci 0000:00:01.0: BAR 7: assigned [io  0x1e161000-0x1e161fff]
[    2.334718] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.349295] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    2.363684] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.373591] pci 0000:00:00.0:   bridge window [io  0x1e160000-0x1e160fff]
[    2.387114] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.400639] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.415037] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]
[    2.428566] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.438464] pci 0000:00:01.0:   bridge window [io  0x1e161000-0x1e161fff]
[    2.451990] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.465516] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    2.481236] UBI: auto-attach mtd5
[    2.487991] ubi0: attaching mtd5
[    2.494903] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control rx/tx
[    2.510000] ubi0 error: validate_ec_hdr: bad VID header offset 2048, expected 64
[    2.524841] ubi0 error: validate_ec_hdr: bad EC header
[    2.535249] Erase counter header dump:
[    2.542720]  magic          0x55424923
[    2.550163]  version        1
[    2.556065]  ec             0
[    2.561974]  vid_hdr_offset 2048
[    2.568381]  data_offset    4096
[    2.574804]  image_seq      1691833611
[    2.582268]  hdr_crc        0x46f728c2
[    2.589711] erase counter header hexdump:
[    2.597724] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.10.190 #0
[    2.609841] Stack : 809f0000 80ffe480 80e98040 80083df4 80880000 80771218 00000000 00000000
[    2.626493]         80c25c64 809d0000 8073f77c 80c383d0 80808e47 00000001 80c25c08 daf172ae
[    2.643138]         00000000 00000000 8073f77c 80c25aa8 ffffefff 00000000 ffffffea 00000000
[    2.659781]         80c25ab4 000000d2 8080e8f0 ffffffff 00000000 00000001 00000000 80740000
[    2.676424]         80e98000 00000000 55424923 80ffe480 00000018 803fa7c0 00000004 809d0004
[    2.693068]         ...
[    2.697931] Call Trace:
[    2.702812] [<800080f0>] show_stack+0x30/0x100
[    2.711658] [<8037747c>] dump_stack+0x9c/0xcc
[    2.720321] [<804621d8>] validate_ec_hdr+0xd8/0x12c
[    2.730024] [<80462f54>] ubi_io_read_ec_hdr+0x250/0x2b0
[    2.740422] [<80468cb8>] ubi_attach+0x374/0x15dc
[    2.749608] [<8045c2cc>] ubi_attach_mtd_dev+0x504/0xc30
[    2.760007] [<808aa0cc>] ubi_init+0x338/0x3dc
[    2.768673] [<80001644>] do_one_initcall+0x50/0x1b4
[    2.778397] [<80891024>] kernel_init_freeable+0x27c/0x314
[    2.789137] [<80693c80>] kernel_init+0x10/0x100
[    2.798148] [<80002ff8>] ret_from_kernel_thread+0x14/0x1c
[    2.808886]
[    2.811953] ubi0 error: ubi_io_read_ec_hdr: validation failed for PEB 0
[    2.825137] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd5, error -22
[    2.839321] UBI error: cannot attach mtd5
[    2.848234] /dev/root: Can't open blockdev
[    2.856490] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    2.871444] Please append a correct "root=" boot option; here are the available partitions:
^C[    2.888103] 1f00             192 mtdblock0
[    2.888109]  (driver?)
[    2.901443] 1f01              64 mtdblock1
[    2.901451]  (driver?)
[    2.914462] 1f02              64 mtdblock2
[    2.914467]  (driver?)
[    2.927474] 1f03            7872 mtdblock3
[    2.927479]  (driver?)
[    2.940491] 1f04            3072 mtdblock4
[    2.940496]  (driver?)
[    2.953525] 1f05            4800 mtdblock5
[    2.953530]  (driver?)
[    2.966538] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    2.983002] Rebooting in 1 seconds..

i kernel panic ;P

dobrze zrozumiałem że wywala się na UBI ? ma prawo, obszar jest pusty, postaram się wygrzebać art z nand albo z inneg r6220

aczkolwiek i to mi sie nie podoba
[    0.770501] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.783234] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions

wysoce prawdopodobne że źle posklejałem ten flash big_smile

124

(11 odpowiedzi, napisanych Oprogramowanie / Software)

poszło smile no wiesz ty co ...

125

(11 odpowiedzi, napisanych Oprogramowanie / Software)

huhh co za bezsens, buduje to w WSL2, path jest ten sam co windowsowy xD wywala się na spacji w "program files/" big_smile

kompilacja 19 nie ma z tym żadnego problemu, nawet tam nie zagląda.