Adding OpenWrt support for D-Link Dir 2150 R1

Here full boot log

Starting kernel ...

[    0.000000] Linux version 5.10.90 (lucky@6700K) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r18541-7f2052ef22) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Thu Jan 13 09:45:20 2022
[    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 D-Link DIR-2150 R1
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-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 s30096 r8192 d23152 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=0001084c
[    0.000000] Readback ErrCtl register=0001084c
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 115704K/131072K available (6661K kernel code, 623K rwdata, 1352K rodata, 4916K init, 235K bss, 15368K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 256
[    0.000000] random: get_random_bytes called from start_kernel+0x3cc/0x5e4 with crng_init=0
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000012] sched_clock: 64 bits at 880MHz, resolution 1ns, wraps every 4398046511103ns
[    0.015857] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.033725] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.106051] pid_max: default: 32768 minimum: 301
[    0.115360] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.129765] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.147750] rcu: Hierarchical SRCU implementation.
[    0.157515] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.172999] smp: Bringing up secondary CPUs ...
[    0.182558] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.182569] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.182580] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.182686] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.242912] Synchronize counters for CPU 1: done.
[    0.304878] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.304887] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.304894] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.304942] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.363855] Synchronize counters for CPU 2: done.
[    0.424044] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.424053] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.424060] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.424113] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.483420] Synchronize counters for CPU 3: done.
[    0.543024] smp: Brought up 1 node, 4 CPUs
[    0.555021] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.574516] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.588340] pinctrl core: initialized pinctrl subsystem
[    0.600344] NET: Registered protocol family 16
[    0.611340] cpuidle: using governor teo
[    0.639198] random: fast init done
[    0.662232] clocksource: Switched to clocksource GIC
[    0.673934] NET: Registered protocol family 2
[    0.683129] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.698016] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.714583] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.729725] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.743719] TCP: Hash tables configured (established 1024 bind 1024)
[    0.756464] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.769352] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.783381] NET: Registered protocol family 1
[    0.791919] PCI: CLS 0 bytes, default 32
[    5.329346] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    5.346001] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    5.357481] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    5.379116] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    5.390506] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    5.401875] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    5.413789] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    5.427872] printk: console [ttyS0] disabled
[    5.436400] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[    5.454305] printk: console [ttyS0] enabled
[    5.454305] printk: console [ttyS0] enabled
[    5.470845] printk: bootconsole [early0] disabled
[    5.470845] printk: bootconsole [early0] disabled
[    5.491834] mt7621-nand 1e003000.nand: Using programmed access timing: 31c07388
[    5.506660] nand: device found, Manufacturer ID: 0xf8, Chip ID: 0xf1
[    5.519312] nand: Unknown FMND1G08U3D
[    5.526606] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.541675] mt7621-nand 1e003000.nand: ECC strength adjusted to 4 bits
[    5.554712] mt7621-nand 1e003000.nand: Using programmed access timing: 21005134
[    5.569276] mt7621-nand 1e003000.nand: Using programmed access timing: 21005134
[    5.583831] Scanning device for bad blocks
[    6.247611] 6 fixed-partitions partitions found on MTD device mt7621-nand
[    6.261126] Creating 6 MTD partitions on "mt7621-nand":
[    6.271535] 0x000000000000-0x000000080000 : "u-boot"
[    6.282463] 0x000000080000-0x000000100000 : "config"
[    6.293360] 0x000000100000-0x000000140000 : "factory"
[    6.304441] 0x000000140000-0x000001f40000 : "Kernal"
[    6.317548] 2 uimage-fw partitions found on MTD device Kernal
[    6.329041] Creating 2 MTD partitions on "Kernal":
[    6.338600] 0x000000000000-0x0000001e0000 : "kernel"
[    6.349349] 0x0000001e0000-0x000001e00000 : "rootfs"
[    6.360142] mtd: device 5 (rootfs) set to be root filesystem
[    6.371488] 1 squashfs-split partitions found on MTD device rootfs
[    6.383808] 0x000000d60000-0x000001e00000 : "rootfs_data"
[    6.395465] 0x000000320000-0x000001000000 : "RootFS"
[    6.406335] 0x000001000000-0x000001700000 : "unknown"
[    6.424925] libphy: Fixed MDIO Bus: probed
[    6.473515] libphy: mdio: probed
[    6.480795] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    6.496616] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 21
[    6.516492] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    6.529879] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    6.547403] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    6.563705] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    6.580079] mt7621-pci 1e140000.pcie: Parsing DT failed
[    6.592648] NET: Registered protocol family 10
[    6.603038] Segment Routing with IPv6
[    6.610413] NET: Registered protocol family 17
[    6.619658] 8021q: 802.1Q VLAN Support v1.8
[    6.631250] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    6.736923] libphy: dsa slave smi: probed
[    6.745540] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY] (irq=POLL)
[    6.765610] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY] (irq=POLL)
[    6.785802] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY] (irq=POLL)
[    6.805822] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY] (irq=POLL)
[    6.825939] mt7530 mdio-bus:1f wan (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY] (irq=POLL)
[    6.846751] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[    6.863756] DSA: tree 0 setup
[    6.870014] rt2880-pinmux pinctrl: pcie is already enabled
[    6.881051] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    6.894427] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    6.911956] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    6.928265] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    6.944661] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[    6.959804] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[    6.974856] mt7621-pci 1e140000.pcie: failed to parse bus ranges property: -22
[    7.089504] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[    7.100626] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[    7.211956] mt7621-pci 1e140000.pcie: pcie2 no card, disable it (RST & CLK)
[    7.225839] mt7621-pci 1e140000.pcie: PCIE0 enabled
[    7.235559] mt7621-pci 1e140000.pcie: PCIE1 enabled
[    7.245279] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[    7.264005] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[    7.276701] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    7.290409] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    7.304113] pci_bus 0000:00: root bus resource [bus 00-ff]
[    7.315057] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff] (bus address [0x00000000-0x0fffffff])
[    7.335371] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    7.347367] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    7.359854] pci 0000:00:00.0: reg 0x14: initial BAR value 0x00000000 invalid
[    7.373897] pci 0000:00:00.0: reg 0x14: [mem size 0x00010000]
[    7.385418] pci 0000:00:00.0: supports D1
[    7.393407] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    7.405623] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    7.417638] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    7.430139] pci 0000:00:01.0: reg 0x14: initial BAR value 0x00000000 invalid
[    7.444181] pci 0000:00:01.0: reg 0x14: [mem size 0x00010000]
[    7.455690] pci 0000:00:01.0: supports D1
[    7.463688] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    7.476742] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    7.492719] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    7.508934] pci 0000:01:00.0: [14c3:7603] type 00 class 0x028000
[    7.520951] pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    7.535021] pci 0000:01:00.0: reg 0x10: [mem size 0x00100000]
[    7.546607] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    7.560394] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    7.570844] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    7.582987] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    7.596526] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff pref]
[    7.610916] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    7.624349] pci 0000:02:00.0: [14c3:7615] type 00 class 0x000280
[    7.636381] pci 0000:02:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    7.650436] pci 0000:02:00.0: reg 0x10: [mem size 0x00100000 64bit]
[    7.663100] pci 0000:02:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:01.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    7.693958] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[    7.704402] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    7.716541] pci 0000:00:01.0:   bridge window [mem 0x60000000-0x600fffff]
[    7.730080] pci 0000:00:01.0:   bridge window [mem 0x60000000-0x600fffff pref]
[    7.744478] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    7.757716] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    7.770890] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    7.784775] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    7.797954] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    7.811823] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    7.825353] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    7.839745] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    7.853280] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[    7.867684] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[    7.881214] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[    7.894745] pci 0000:00:00.0: BAR 7: assigned [io  0x1e160000-0x1e160fff]
[    7.908275] pci 0000:00:01.0: BAR 7: assigned [io  0x1e161000-0x1e161fff]
[    7.921811] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff]
[    7.935341] pci 0000:00:00.0: PCI bridge to [bus 01]
[    7.945238] pci 0000:00:00.0:   bridge window [io  0x1e160000-0x1e160fff]
[    7.958759] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    7.972300] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    7.986706] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff 64bit]
[    8.001273] pci 0000:00:01.0: PCI bridge to [bus 02]
[    8.011169] pci 0000:00:01.0:   bridge window [io  0x1e161000-0x1e161fff]
[    8.024694] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    8.038228] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    8.072056] Freeing unused kernel memory: 4916K
[    8.081153] This architecture does not have kernel memory protection.
[    8.094020] Run /init as init process
[    8.101684] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control off
[    8.596860] init: Console is alive
[    8.605068] init: - watchdog -
[    8.625631] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    8.650014] usbcore: registered new interface driver usbfs
[    8.661160] usbcore: registered new interface driver hub
[    8.671981] usbcore: registered new device driver usb
[    8.692645] xhci-mtk 1e1c0000.xhci: supply vbus not found, using dummy regulator
[    8.707675] xhci-mtk 1e1c0000.xhci: supply vusb33 not found, using dummy regulator
[    8.723026] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    8.733654] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[    8.762396] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000290010
[    8.780696] xhci-mtk 1e1c0000.xhci: irq 20, io mem 0x1e1c0000
[    8.793222] hub 1-0:1.0: USB hub found
[    8.800797] hub 1-0:1.0: 2 ports detected
[    8.809393] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    8.820039] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[    8.834975] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0 SuperSpeed
[    8.847844] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    8.864779] hub 2-0:1.0: USB hub found
[    8.872370] hub 2-0:1.0: 1 port detected
[    8.887452] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    8.922613] init: - preinit -
[    9.127305] random: jshn: uninitialized urandom read (4 bytes read)
[    9.185390] random: jshn: uninitialized urandom read (4 bytes read)
[    9.215475] random: jshn: uninitialized urandom read (4 bytes read)
[    9.595952] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[    9.612087] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    9.612749] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[    9.642439] 8021q: adding VLAN 0 to HW filter on device lan1
[    9.656367] 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
[   12.773132] mt7530 mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[   12.788107] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready
[   13.798181] mt7530 mdio-bus:1f lan1: Link is Down
[   13.816879] procd: - early -
[   13.822918] procd: - watchdog -
[   14.392444] procd: - watchdog -
[   14.399162] procd: - ubus -
[   14.466429] procd: - init -
Please press Enter to activate this console.
[   14.825356] kmodloader: loading kernel modules from /etc/modules.d/*
[   15.012789] urngd: v1.0.2 started.
[   15.040060] Loading modules backported from Linux version v5.15.8-0-g43e577d7a2cb
[   15.055059] Backport generated by backports.git v5.15.8-1-0-g83f664bb
[   15.089150] xt_time: kernel timezone is -0000
[   15.154432] mt7621-pci 1e140000.pcie: bus=2 slot=1 irq=23
[   15.165338] pci 0000:00:01.0: enabling device (0004 -> 0007)
[   15.176746] mt7615e 0000:02:00.0: enabling device (0000 -> 0002)
[   15.190372] mt7615e 0000:02:00.0: Invalid MAC address, using random address a2:32:d6:1f:e1:e0
[   15.204131] random: crng init done
[   15.214199] random: 7 urandom warning(s) missed due to ratelimiting
[   15.243016] mt7615e 0000:02:00.0: HW/SW Version: 0x8a108a10, Build Time: 20180518100604a
[   15.243016]
[   15.244938] PPP generic driver version 2.4.2
[   15.272637] NET: Registered protocol family 24
[   15.287007] mt7615e 0000:02:00.0: N9 Firmware Version: _reserved_, Build Time: 20200814163649
[   15.301225] kmodloader: done loading kernel modules from /etc/modules.d/*
[   15.326266] mt7615e 0000:02:00.0: CR4 Firmware Version: _reserved_, Build Time: 20190121161307



BusyBox v1.35.0 (2022-01-12 20:14:29 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r18541+1-7f2052ef22
 -----------------------------------------------------
=== 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:/# [   32.305525] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[   32.326750] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[   32.342762] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   32.355461] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[   32.373314] 8021q: adding VLAN 0 to HW filter on device lan1
[   32.388289] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   32.401904] br-lan: port 1(lan1) entered blocking state
[   32.412445] br-lan: port 1(lan1) entered disabled state
[   32.423804] device lan1 entered promiscuous mode
[   32.433210] device eth0 entered promiscuous mode
[   32.467836] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[   32.481619] 8021q: adding VLAN 0 to HW filter on device lan2
[   32.496337] br-lan: port 2(lan2) entered blocking state
[   32.506862] br-lan: port 2(lan2) entered disabled state
[   32.518245] device lan2 entered promiscuous mode
[   32.540972] mt7530 mdio-bus:1f lan3: configuring for phy/gmii link mode
[   32.554732] 8021q: adding VLAN 0 to HW filter on device lan3
[   32.569456] br-lan: port 3(lan3) entered blocking state
[   32.580221] br-lan: port 3(lan3) entered disabled state
[   32.592084] device lan3 entered promiscuous mode
[   32.613318] mt7530 mdio-bus:1f lan4: configuring for phy/gmii link mode
[   32.627239] 8021q: adding VLAN 0 to HW filter on device lan4
[   32.643002] br-lan: port 4(lan4) entered blocking state
[   32.653587] br-lan: port 4(lan4) entered disabled state
[   32.665780] device lan4 entered promiscuous mode
[   32.694479] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[   32.708169] 8021q: adding VLAN 0 to HW filter on device wan
[   34.693001] mt7530 mdio-bus:1f lan4: Link is Up - 100Mbps/Full - flow control rx/tx
[   34.708330] br-lan: port 4(lan4) entered blocking state
[   34.718761] br-lan: port 4(lan4) entered forwarding state
[   34.731091] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   35.493124] mt7530 mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[   35.508109] br-lan: port 1(lan1) entered blocking state
[   35.518539] br-lan: port 1(lan1) entered forwarding state
[   36.853020] mt7530 mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control off
[   36.867480] IPv6: ADDRCONF(NETDEV_CHANGE): wan: link becomes ready
[   56.612548] mt7530 mdio-bus:1f wan: Link is Down
[   59.733005] mt7530 mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control off
[   64.612551] mt7530 mdio-bus:1f lan1: Link is Down
[   64.622041] br-lan: port 1(lan1) entered disabled state
[   73.973115] mt7530 mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[   73.988099] br-lan: port 1(lan1) entered blocking state
[   73.998530] br-lan: port 1(lan1) entered forwarding state
[  138.692537] mt7530 mdio-bus:1f lan4: Link is Down
[  138.702369] br-lan: port 4(lan4) entered disabled state
[  145.972992] mt7530 mdio-bus:1f lan4: Link is Up - 100Mbps/Full - flow control rx/tx
[  145.988326] br-lan: port 4(lan4) entered blocking state
[  145.998763] br-lan: port 4(lan4) entered forwarding state

Also it has weird bug about ALL ports including lan and wan being off by default, so to activate them you'll need to physically reconnect cables

Actually looks like everything works normally, exept for fireless ofc

Ok, no module is loaded for the MT7603E radio. Try loading it from opkg.


Should i ignore it?

root@OpenWrt:/# opkg install kmod-mt7603
Unknown package 'kmod-mt7603'.
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.90-1-4bbed89b4a4b0fef5a3b5942529d6c1e) for kmod-mt7603
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-mt7603 found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-mt7603.

You could force install, but not recommended for kmods

Looks like it’s installed anyway, suggest it is a dts problem with the 7603 radio

ok so it boot's ok
I did add mt7603 but it may need more i'll look into it

you should be able to backup you flash partitions now

after you have backed up what you can here is the factory image

http://luckys.onmypc.net/openwrt/DIR-2150-R1/openwrt-ramips-mt7621-dlink_dir-2150-r1-squashfs-factory.bin

you welcome to have a look

1 Like

Hi Lucky,

I'd suggest adding a second dts node for the other wireless chip. eg;

&pcie1 {
	wifi@0,0 {
		compatible = "mediatek,mt76";
		reg = <0x0000 0 0 0 0>;
		mediatek,mtd-eeprom = <&factory 0x8000>;
		ieee80211-freq-limit = <5000000 6000000>;

	};
};

wow i must have deleted the 2nd at some point
I'll go fix it up

all updated will have to sort / check mac addresses
it's all changed from last time I did anything

http://luckys.onmypc.net/openwrt/DIR-2150-R1/

2 Likes

Sorry i wasn't online for some time, so 2.4 wireless still not present
Error is the same kernel version incompatable

Also i did backup everything, might it be that radio isn't present because file system is corrupted now?

Also it isn't the only kmod i can't install
Log for installing usb storage support gives same error

Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.90-1-a0312ccbd5810fb8dad920e88999014b) for kmod-scsi-core
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-scsi-core found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.90-1-a0312ccbd5810fb8dad920e88999014b) for kmod-usb-storage
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-usb-storage found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-usb-storage.

if you see on the screen there the MT7603 you are trying to install is already there

you may not have killed your radio will have to look at the data in your radio ATR partition
your mac addresses come from there so if they are ok then it should be ok

witch radio is there and witch is not ?

mt7615 is present
my7603 is not
here is full boot log
https://drive.google.com/file/d/133blKFXCDNI_2RbYCSXGHgx7YW61Pb0H/view?usp=sharing

ok updated
change flash allocation & naming I had the size wrong & names are better now
OEM RootFS may be corrupted & need recovering from you backup
still don't know if its needed to be kept but think a factory reset will reset it anyway

added kmod-mt76x2 for wifi not sure if its needed but will try

oh due to UBI errors you should flash factory file again

Same link?

if so, nothing changed