Hello,
I have 2 identical wifi router (JCG Q2). 1st one is running normal OpenWRT fw. The second one is running initramfs mode of OpenWRT.
The second one initially running SWRT-Dev fw. and trying to install OpenWRT on the second one.
Here are the bootlog on the normal OpenWRT:
[ 0.000000] Linux version 5.15.167 (builder@buildhost) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r24106-10cc5fcd00) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Mon Sep 23 12:34:46 2024
[ 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 JCG Q20
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] VPE topology {2,2} total 4
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] percpu: Embedded 12 pages/cpu s17808 r8192 d23152 u49152
[ 0.000000] pcpu-alloc: s17808 r8192 d23152 u49152 alloc=124096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64960
[ 0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] Writing ErrCtl register=00010184
[ 0.000000] Readback ErrCtl register=00010184
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 249040K/262144K available (7323K kernel code, 629K rwdata, 884K rodata, 1264K init, 225K bss, 13104K reserved, 0K cma-reserved)
[ 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] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[ 0.000004] sched_clock: 64 bits at 880MHz, resolution 1ns, wraps every 4398046511103ns
[ 0.008055] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[ 0.066217] pid_max: default: 32768 minimum: 301
[ 0.071631] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.078842] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.090428] rcu: Hierarchical SRCU implementation.
[ 0.095900] smp: Bringing up secondary CPUs ...
[ 0.101297] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.101322] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.101337] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.101382] CPU1 revision is: 0001992f (MIPS 1004Kc)
[ 0.160683] Synchronize counters for CPU 1: done.
[ 0.193260] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.193280] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.193290] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.193317] CPU2 revision is: 0001992f (MIPS 1004Kc)
[ 0.252202] Synchronize counters for CPU 2: done.
[ 0.282814] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.282835] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.282846] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.282878] CPU3 revision is: 0001992f (MIPS 1004Kc)
[ 0.337385] Synchronize counters for CPU 3: done.
[ 0.367241] smp: Brought up 1 node, 4 CPUs
[ 0.376547] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.386351] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.393434] pinctrl core: initialized pinctrl subsystem
[ 0.400245] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.406833] thermal_sys: Registered thermal governor 'step_wise'
[ 0.412926] FPU Affinity set after 11720 emulations
[ 0.431752] clocksource: Switched to clocksource GIC
[ 0.438148] NET: Registered PF_INET protocol family
[ 0.443198] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.451434] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.459754] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.467435] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.475055] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.482147] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.488573] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.495067] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.502365] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.507972] PCI: CLS 0 bytes, default 32
[ 0.514672] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[ 0.526569] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.532430] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.543815] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 0.555352] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 0.561252] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 0.567210] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 0.573315] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[ 0.579984] mt7621-pci 1e140000.pcie: No bus range found for /pcie@1e140000, using [bus 00-ff]
[ 0.588757] mt7621-pci 1e140000.pcie: MEM 0x0060000000..0x006fffffff -> 0x0060000000
[ 0.596868] mt7621-pci 1e140000.pcie: IO 0x001e160000..0x001e16ffff -> 0x0000000000
[ 0.961751] mt7621-pci 1e140000.pcie: pcie2 no card, disable it (RST & CLK)
[ 0.968647] mt7621-pci 1e140000.pcie: PCIE0 enabled
[ 0.973526] mt7621-pci 1e140000.pcie: PCIE1 enabled
[ 0.978342] PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[ 0.985560] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[ 0.991852] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.997256] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[ 1.004112] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 1.010267] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[ 1.016214] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[ 1.022439] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[ 1.028730] pci 0000:00:00.0: supports D1
[ 1.032670] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 1.039143] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[ 1.045165] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[ 1.051342] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[ 1.057658] pci 0000:00:01.0: supports D1
[ 1.061576] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[ 1.069161] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 1.077143] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 1.085335] pci 0000:01:00.0: [14c3:7916] type 00 class 0x000280
[ 1.091285] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit pref]
[ 1.098480] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x00003fff 64bit pref]
[ 1.105646] pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x00000fff 64bit pref]
[ 1.112929] pci 0000:01:00.0: supports D1 D2
[ 1.117105] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 1.123737] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[ 1.139827] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 1.145038] pci 0000:00:00.0: bridge window [io 0x0000-0x0fff]
[ 1.151034] pci 0000:00:00.0: bridge window [mem 0x00000000-0x000fffff]
[ 1.157799] pci 0000:00:00.0: bridge window [mem 0x00000000-0x000fffff pref]
[ 1.164988] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 1.171863] pci 0000:02:00.0: [14c3:7915] type 00 class 0x000280
[ 1.177816] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit pref]
[ 1.185005] pci 0000:02:00.0: reg 0x18: [mem 0x00000000-0x00003fff 64bit pref]
[ 1.192176] pci 0000:02:00.0: reg 0x20: [mem 0x00000000-0x00000fff 64bit pref]
[ 1.199420] pci 0000:02:00.0: supports D1 D2
[ 1.203633] pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 1.210196] 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)
[ 1.226314] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[ 1.231471] pci 0000:00:01.0: bridge window [io 0x0000-0x0fff]
[ 1.237566] pci 0000:00:01.0: bridge window [mem 0x00000000-0x000fffff]
[ 1.244278] pci 0000:00:01.0: bridge window [mem 0x00000000-0x000fffff pref]
[ 1.251429] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[ 1.258066] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[ 1.264621] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[ 1.271495] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[ 1.278085] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[ 1.284999] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[ 1.291751] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x602fffff pref]
[ 1.298885] pci 0000:00:01.0: BAR 8: assigned [mem 0x60300000-0x603fffff]
[ 1.305650] pci 0000:00:01.0: BAR 9: assigned [mem 0x60400000-0x605fffff pref]
[ 1.312819] pci 0000:00:00.0: BAR 1: assigned [mem 0x60600000-0x6060ffff]
[ 1.319537] pci 0000:00:01.0: BAR 1: assigned [mem 0x60610000-0x6061ffff]
[ 1.326312] pci 0000:00:00.0: BAR 7: assigned [io 0x0000-0x0fff]
[ 1.332347] pci 0000:00:01.0: BAR 7: assigned [io 0x1000-0x1fff]
[ 1.338378] pci 0000:01:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bit pref]
[ 1.346097] pci 0000:01:00.0: BAR 2: assigned [mem 0x60200000-0x60203fff 64bit pref]
[ 1.353785] pci 0000:01:00.0: BAR 4: assigned [mem 0x60204000-0x60204fff 64bit pref]
[ 1.361448] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 1.366387] pci 0000:00:00.0: bridge window [io 0x0000-0x0fff]
[ 1.372435] pci 0000:00:00.0: bridge window [mem 0x60000000-0x600fffff]
[ 1.379148] pci 0000:00:00.0: bridge window [mem 0x60100000-0x602fffff pref]
[ 1.386363] pci 0000:02:00.0: BAR 0: assigned [mem 0x60400000-0x604fffff 64bit pref]
[ 1.394048] pci 0000:02:00.0: BAR 2: assigned [mem 0x60500000-0x60503fff 64bit pref]
[ 1.401748] pci 0000:02:00.0: BAR 4: assigned [mem 0x60504000-0x60504fff 64bit pref]
[ 1.409399] pci 0000:00:01.0: PCI bridge to [bus 02]
[ 1.414339] pci 0000:00:01.0: bridge window [io 0x1000-0x1fff]
[ 1.420361] pci 0000:00:01.0: bridge window [mem 0x60300000-0x603fffff]
[ 1.427125] pci 0000:00:01.0: bridge window [mem 0x60400000-0x605fffff pref]
[ 1.436923] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 1.447946] printk: console [ttyS0] disabled
[ 1.452323] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[ 1.461315] printk: console [ttyS0] enabled
[ 1.469590] printk: bootconsole [early0] disabled
[ 1.482499] nand: device found, Manufacturer ID: 0x98, Chip ID: 0xf1
[ 1.488895] nand: Toshiba NAND 128MiB 3,3V 8-bit
[ 1.493530] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.501080] mt7621-nand 1e003000.nand: ECC strength adjusted to 4 bits
[ 1.507613] nand: WARNING: mt7621-nand: the ECC used on your system (4b/512B) is too weak compared to the one required by the NAND chip (8b/512B)
[ 1.520710] 9 fixed-partitions partitions found on MTD device mt7621-nand
[ 1.528004] Creating 9 MTD partitions on "mt7621-nand":
[ 1.533282] 0x000000000000-0x000000080000 : "Bootloader"
[ 1.545077] 0x000000080000-0x000000100000 : "Config"
[ 1.556387] 0x000000100000-0x000000180000 : "Factory"
[ 1.567912] 0x000000180000-0x000000580000 : "kernel"
[ 1.615721] 0x000000580000-0x000002180000 : "ubiconcat0"
[ 1.914316] 0x000002180000-0x000004180000 : "firmware_backup"
[ 2.255738] 0x000004180000-0x000004200000 : "rootfs_data_back"
[ 2.267896] 0x000004200000-0x000004280000 : "nvram_config"
[ 2.279777] 0x000004280000-0x000007f80000 : "ubiconcat1"
[ 2.927814] Concatenating MTD devices:
[ 2.931588] (0): "ubiconcat0"
[ 2.934595] (1): "ubiconcat1"
[ 2.937564] into device "ubi-concat"
[ 2.941166] 1 fixed-partitions partitions found on MTD device ubi-concat
[ 2.947861] Creating 1 MTD partitions on "ubi-concat":
[ 2.953007] 0x000000000000-0x000005900000 : "ubi"
[ 4.015327] mt7530-mdio mdio-bus:1f: MT7530 adapts as multi-chip module
[ 4.031034] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 21
[ 4.042981] mtk_soc_eth 1e100000.ethernet wan: mediatek frame engine at 0xbe100000, irq 21
[ 4.054241] i2c_dev: i2c /dev entries driver
[ 4.061406] NET: Registered PF_INET6 protocol family
[ 4.068892] Segment Routing with IPv6
[ 4.072692] In-situ OAM (IOAM) with IPv6
[ 4.076719] NET: Registered PF_PACKET protocol family
[ 4.081887] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 4.095476] 8021q: 802.1Q VLAN Support v1.8
[ 4.105694] mt7530-mdio mdio-bus:1f: MT7530 adapts as multi-chip module
[ 4.134551] mt7530-mdio mdio-bus:1f: configuring for fixed/rgmii link mode
[ 4.142398] mt7530-mdio mdio-bus:1f: Link is Up - 1Gbps/Full - flow control rx/tx
[ 4.150988] mt7530-mdio mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7530 PHY] (irq=23)
[ 4.164913] mt7530-mdio mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7530 PHY] (irq=24)
[ 4.177269] DSA: tree 0 setup
[ 4.183586] UBI: auto-attach mtd9
[ 4.186937] ubi0: attaching mtd9
[ 6.045331] ubi0: scanning is finished
[ 6.066624] ubi0: attached mtd9 (name "ubi", size 89 MiB)
[ 6.072111] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 6.078966] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 6.085742] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 6.092697] ubi0: good PEBs: 711, bad PEBs: 1, corrupted PEBs: 0
[ 6.098682] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[ 6.105890] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 1678855714
[ 6.115028] ubi0: available PEBs: 0, total reserved PEBs: 711, PEBs reserved for bad PEB handling: 13
[ 6.124267] ubi0: background thread "ubi_bgt0d" started, PID 320
[ 6.126879] block ubiblock0_0: created from ubi0:0(rootfs)
[ 6.135797] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[ 6.143041] clk: Disabling unused clocks
[ 6.154195] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[ 6.165673] Freeing unused kernel image (initmem) memory: 1264K
[ 6.171622] This architecture does not have kernel memory protection.
[ 6.178134] Run /sbin/init as init process
[ 6.182240] with arguments:
[ 6.182249] /sbin/init
[ 6.182256] with environment:
[ 6.182261] HOME=/
[ 6.182266] TERM=linux
[ 6.644782] init: Console is alive
[ 6.648619] init: - watchdog -
[ 7.350209] kmodloader: loading kernel modules from /etc/modules-boot.d/ *
[ 7.406274] kmodloader: done loading kernel modules from /etc/modules-boot.d/
[ 7.424136] init: - preinit -
[ 8.176248] random: jshn: uninitialized urandom read (4 bytes read)
[ 8.296881] random: jshn: uninitialized urandom read (4 bytes read)
[ 8.335047] random: jshn: uninitialized urandom read (4 bytes read)
[ 8.609852] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[ 8.622775] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 8.623224] mt7530-mdio mdio-bus:1f lan1: configuring for phy/gmii link mode
[ 8.638773] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 10.973412] UBIFS (ubi0:1): Mounting in unauthenticated mode
[ 10.979429] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 438
[ 11.063925] UBIFS (ubi0:1): recovery needed
[ 11.275438] UBIFS (ubi0:1): recovery completed
[ 11.280110] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[ 11.287944] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 11.297852] UBIFS (ubi0:1): FS size: 82407424 bytes (78 MiB, 649 LEBs), max 660 LEBs, journal size 4190208 bytes (3 MiB, 33 LEBs)
[ 11.309482] UBIFS (ubi0:1): reserved for root: 3892306 bytes (3801 KiB)
[ 11.316086] UBIFS (ubi0:1): media format: w5/r0 (latest is w5/r0), UUID 8B45D0DD-18E6-46B5-B0CC-37297B3CFD94, small LPT model
[ 11.342392] mount_root: switching to ubifs overlay
[ 11.367622] urandom-seed: Seeding with /etc/urandom.seed
[ 11.508493] procd: - early -
[ 11.511616] procd: - watchdog -
[ 12.127128] procd: - watchdog -
[ 12.135209] procd: - ubus -
[ 12.215259] random: ubusd: uninitialized urandom read (4 bytes read)
[ 12.225591] random: ubusd: uninitialized urandom read (4 bytes read)
[ 12.232526] random: ubusd: uninitialized urandom read (4 bytes read)
[ 12.242653] procd: - init -
[ 12.951111] kmodloader: loading kernel modules from /etc/modules.d/*
[ 13.179105] Loading modules backported from Linux version v6.1.110-0-g5f55cad62cc9d
[ 13.186873] Backport generated by backports.git v6.1.110-1-0-g965f73fc
[ 13.375919] pci 0000:00:00.0: enabling device (0000 -> 0003)
[ 13.381614] mt7915e_hif 0000:01:00.0: enabling device (0000 -> 0002)
[ 13.388554] pci 0000:00:01.0: enabling device (0000 -> 0003)
[ 13.394293] mt7915e 0000:02:00.0: enabling device (0000 -> 0002)
[ 13.664049] mt7915e 0000:02:00.0: HW/SW Version: 0x8a108a10, Build Time: 20220929104113a
[ 13.664049]
[ 14.000174] mt7915e 0000:02:00.0: WM Firmware Version: ____000000, Build Time: 20220929104145
[ 14.039497] mt7915e 0000:02:00.0: WA Firmware Version: DEV_000000, Build Time: 20220929104205
[ 14.158568] mt7915e 0000:02:00.0: registering led 'mt76-phy0'
[ 14.164757] urngd: v1.0.2 started.
[ 14.230012] mt7915e 0000:02:00.0: registering led 'mt76-phy1'
[ 14.660910] random: jshn: uninitialized urandom read (4 bytes read)
[ 15.012779] random: crng init done
[ 15.016207] random: 31 urandom warning(s) missed due to ratelimiting
[ 19.568586] PPP generic driver version 2.4.2
[ 19.574836] NET: Registered PF_PPPOX protocol family
[ 19.588121] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 21.695168] mtdblock: MTD device 'Factory' is NAND, please consider using UBI block devices instead.
[ 25.749363] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[ 25.787318] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[ 25.795654] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 25.795883] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 25.813215] mt7530-mdio mdio-bus:1f lan1: configuring for phy/gmii link mode
[ 25.823151] br-lan: port 1(lan1) entered blocking state
[ 25.828446] br-lan: port 1(lan1) entered disabled state
[ 25.837013] device lan1 entered promiscuous mode
[ 25.841816] device eth0 entered promiscuous mode
[ 25.869375] mt7530-mdio mdio-bus:1f lan2: configuring for phy/gmii link mode
[ 25.878457] br-lan: port 2(lan2) entered blocking state
[ 25.883848] br-lan: port 2(lan2) entered disabled state
[ 25.891486] device lan2 entered promiscuous mode
[ 25.904513] mtk_soc_eth 1e100000.ethernet wan: PHY [mdio-bus:00] driver [MediaTek MT7530 PHY] (irq=POLL)
[ 25.914128] mtk_soc_eth 1e100000.ethernet wan: configuring for phy/rgmii link mode
[ 25.928792] br-lan: port 3(wan) entered blocking state
[ 25.934135] br-lan: port 3(wan) entered disabled state
[1970266.822154] mtk_soc_eth 1e100000.ethernet wan: Link is Up - 1Gbps/Full - flow control rx/tx
[1970266.830765] br-lan: port 3(wan) entered blocking state
[1970266.836125] br-lan: port 3(wan) entered forwarding state
[2289114.525282] mtdblock: MTD device 'Bootloader' is NAND, please consider using UBI block devices instead.
[2289160.259159] mtdblock: MTD device 'Config' is NAND, please consider using UBI block devices instead.
[2289187.497095] mtdblock: MTD device 'Factory' is NAND, please consider using UBI block devices instead.
[2289235.772922] mtdblock: MTD device 'kernel' is NAND, please consider using UBI block devices instead.
[2289255.665463] mtdblock: MTD device 'ubiconcat0' is NAND, please consider using UBI block devices instead.
[2289283.956252] mtdblock: MTD device 'firmware_backup' is NAND, please consider using UBI block devices instead.
[2289318.213632] mtdblock: MTD device 'rootfs_data_back' is NAND, please consider using UBI block devices instead.
[2289337.609013] mtdblock: MTD device 'nvram_config' is NAND, please consider using UBI block devices instead.
[2289351.111925] mtdblock: MTD device 'ubiconcat1' is NAND, please consider using UBI block devices instead.
[2289377.597929] mtdblock: MTD device 'ubi' is NAND, please consider using UBI block devices instead.
[2291136.214377] mtk_soc_eth 1e100000.ethernet wan: Link is Down
[2291136.224394] br-lan: port 3(wan) entered disabled state
[2291142.454464] mtk_soc_eth 1e100000.ethernet wan: Link is Up - 1Gbps/Full - flow control rx/tx
Here are the bootlog on the second one when running SWRT-Dev fw, now is already on openwrt initramfs
May 5 05:05:27 kernel: klogd started: BusyBox v1.25.1 (2023-10-08 22:46:33 CST)
May 5 05:05:27 kernel: [ 0.000000] Linux version 4.4.198 (runner@fv-az208-983) (gcc version 5.4.0 (LEDE GCC 5.4.0 r0-22e5567) ) #1 SMP Sun Oct 8 22:49:49 CST 2023
May 5 05:05:27 kernel: [ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
May 5 05:05:27 kernel: [ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
May 5 05:05:27 kernel: [ 0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
May 5 05:05:27 kernel: [ 0.000000] Kernel command line: console=ttyS0,115200 ROOT=/dev/mtdblock5 rootfstype=squashfs,jffs2
May 5 05:05:27 kernel: [ 0.092145] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
May 5 05:05:27 kernel: [ 0.092155] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
May 5 05:05:27 kernel: [ 0.092166] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
May 5 05:05:27 kernel: [ 0.185289] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
May 5 05:05:27 kernel: [ 0.185295] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
May 5 05:05:27 kernel: [ 0.185302] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
May 5 05:05:27 kernel: [ 0.273422] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
May 5 05:05:27 kernel: [ 0.273428] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
May 5 05:05:27 kernel: [ 0.273434] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
May 5 05:05:27 kernel: [ 0.449170] mt7621-pci 1e140000.pcie: Failed to get gpio for PCIe1
May 5 05:05:27 kernel: [ 0.455330] mt7621-pci 1e140000.pcie: Failed to get gpio for PCIe2
May 5 05:05:27 kernel: [ 1.063044] mtk_soc_eth 1e100000.ethernet: generated random MAC address 66:60:d7:11:a7:ff
May 5 05:05:27 kernel: [ 1.091293] mtk_soc_eth 1e100000.ethernet: generated random MAC address 0a:14:58:12:e7:11
May 5 05:05:27 kernel: [ 1.244810] Q-Path Mass Storage accelerater v1.2
May 5 05:05:27 kernel: [ 1.252265] mtkmips-pinmux pinctrl: spi is already enabled
May 5 05:05:27 kernel: [ 1.257745] mtk-nand 1e003000.nand: Error applying setting, reverse things back
May 5 05:05:27 kernel: [ 1.284564] nand: WARNING: mtk-nand: the ECC used on your system is too weak compared to the one required by the NAND chip
May 5 05:05:27 kernel: [ 1.998427] Bad eraseblock 768 at 0x000006000000
May 5 05:05:27 kernel: [ 2.235297] 7 ofpart partitions found on MTD device mtk-nand
May 5 05:05:27 kernel: [ 2.240946] Creating 7 MTD partitions on "mtk-nand":
May 5 05:05:27 kernel: [ 2.245894] 0x000000000000-0x0000000c0000 : "Bootloader"
May 5 05:05:27 kernel: [ 2.252845] 0x0000000c0000-0x000000100000 : "Bdata"
May 5 05:05:27 kernel: [ 2.259207] 0x000000140000-0x000000180000 : "nvram"
May 5 05:05:27 kernel: [ 2.265499] 0x000000100000-0x000000140000 : "Factory"
May 5 05:05:27 kernel: [ 2.271989] 0x000000180000-0x0000001c0000 : "Factory2"
May 5 05:05:27 kernel: [ 2.278514] 0x000000200000-0x000002a00000 : "Kernel"
May 5 05:05:27 kernel: [ 2.285756] 2 asus-fw partitions found on MTD device Kernel
May 5 05:05:27 kernel: [ 2.291364] 0x000000200000-0x000000600000 : "linux"
May 5 05:05:27 kernel: [ 2.297670] 0x000000600000-0x000002a00000 : "rootfs"
May 5 05:05:27 kernel: [ 2.304317] mtd: device 7 (rootfs) set to be root filesystem
May 5 05:05:27 kernel: [ 2.310039] 0x000002e00000-0x000007f00000 : "jffs2"
May 5 05:05:27 kernel: [ 2.420159] offset 0x1000 elapse 30ms
May 5 05:05:27 kernel: [ 2.474413] This architecture does not have kernel memory protection.
May 5 05:05:27 kernel: [ 6.774722] random: init: uninitialized urandom read (8 bytes read, 26 bits of entropy available)
May 5 05:05:27 kernel: [ 8.810357] random: init: uninitialized urandom read (5 bytes read, 28 bits of entropy available)
May 5 05:05:27 kernel: [ 14.230332] random: init: uninitialized urandom read (5 bytes read, 48 bits of entropy available)
May 5 05:05:27 kernel: [ 16.526211] random: init: uninitialized urandom read (4 bytes read, 54 bits of entropy available)
May 5 05:05:27 kernel: [ 16.535977] random: init: uninitialized urandom read (4 bytes read, 54 bits of entropy available)
May 5 05:05:27 kernel: [ 20.863442] register mt_drv
May 5 05:05:27 kernel: [ 20.866518] <--mt7916_hif_init()
May 5 05:05:27 kernel: [ 20.870283] Rx[0] Ring: total 24576 bytes allocated
May 5 05:05:27 kernel: [ 20.880097] Rx[1] Ring: total 16384 bytes allocated
May 5 05:05:27 kernel: [ 20.885028] <-- pci_alloc_tx_rx_ring_mem, Status=0
May 5 05:05:27 kernel: [ 20.943563]
May 5 05:05:27 kernel: [ 20.943563]
May 5 05:05:27 kernel: [ 20.943563] === pAd = c1a81000, size = 13101312 ===
May 5 05:05:27 kernel: [ 20.943563]
May 5 05:05:27 kernel: [ 20.954427] <-- RTMPAllocAdapterBlock, Status=0
May 5 05:05:27 kernel: [ 20.959119] PCI CSRBaseAddress =0xc1980000, csr_addr=0xc1980000!
May 5 05:05:27 kernel: [ 20.965125] RTMPInitPCIeDevice():device_id=0x7915
May 5 05:05:27 kernel: [ 20.969832] mt7915_init()-->
May 5 05:05:27 kernel: [ 20.972698] Use the default iPAiLNA bin image!
May 5 05:05:27 kernel: [ 20.977199] <--mt7915_init()
May 5 05:05:27 kernel: [ 20.991419] wdev_init(caller:RTMP_COM_IoctlHandle+0x3d0/0x1b80 [mt_wifi]), wdev(0)
May 5 05:05:27 kernel: [ 20.999877] Rx[0] Ring: total 24576 bytes allocated
May 5 05:05:27 kernel: [ 21.004913] Rx[1] Ring: total 24576 bytes allocated
May 5 05:05:27 kernel: [ 21.012140] Rx[2] Ring: total 8192 bytes allocated
May 5 05:05:27 kernel: [ 21.021432] Rx[3] Ring: total 16384 bytes allocated
May 5 05:05:27 kernel: [ 21.028634] Rx[4] Ring: total 8192 bytes allocated
May 5 05:05:27 kernel: [ 21.033509] <-- pci_alloc_tx_rx_ring_mem, Status=0
May 5 05:05:27 kernel: [ 28.943735] ubi0: attaching mtd8
May 5 05:05:27 kernel: [ 29.247009] ubi0: scanning is finished
May 5 05:05:27 kernel: [ 29.247036] ubi0: empty MTD device detected
May 5 05:05:27 kernel: [ 29.273379] ubi0: attached mtd8 (name "jffs2", size 81 MiB)
May 5 05:05:27 kernel: [ 29.273417] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
May 5 05:05:27 kernel: [ 29.273432] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
May 5 05:05:27 kernel: [ 29.273447] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
May 5 05:05:27 kernel: [ 29.273462] ubi0: good PEBs: 647, bad PEBs: 1, corrupted PEBs: 0
May 5 05:05:27 kernel: [ 29.273480] ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
May 5 05:05:27 kernel: [ 29.273500] ubi0: max/mean erase counter: 0/0, WL threshold: 4096, image sequence number: 39363657
May 5 05:05:27 kernel: [ 29.273522] ubi0: available PEBs: 624, total reserved PEBs: 23, PEBs reserved for bad PEB handling: 19
May 5 05:05:27 kernel: [ 29.273621] ubi0: background thread "ubi_bgt0d" started, PID 585
May 5 05:05:27 kernel: [ 30.388595] random: nonblocking pool is initialized
May 5 05:05:27 kernel: [ 35.441571] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 602
May 5 05:05:27 kernel: [ 35.570194] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "jffs2"
May 5 05:05:27 kernel: [ 35.570228] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
May 5 05:05:27 kernel: [ 35.570246] UBIFS (ubi0:0): FS size: 77836288 bytes (74 MiB, 613 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
May 5 05:05:27 kernel: [ 35.570259] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
May 5 05:05:27 kernel: [ 35.570282] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID D599AF62-5CD3-42E9-844A-23E7F4241C04, small LPT model
May 5 05:05:27 : module rt2860v2_ap not found in modules.dep
May 5 05:05:28 kernel: [ 39.831938] ra0: ===> main_virtual_if_open
May 5 05:05:28 kernel: [ 39.836671] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_INIT
May 5 05:05:28 kernel: [ 39.845295] load l1profile succeed!
May 5 05:05:28 kernel: [ 39.849332] mt_service_open: wlan service opens successfully!
May 5 05:05:28 kernel: [ 39.859259] APWdsInitialize():WdsEntry[0~15]
May 5 05:05:28 kernel: [ 39.871990] multi_profile_check: buf1: /etc/Wireless/RT2860/RT2860.dat
My question:
- Based on above bootlog, is it possible to fix mtd partition?
- If I copy MTD partition with dd comand from first one and put on the second one ( that already on OpenWRT initramfs mode ), is that possible ? How is the step to do so? Which partition should go first, which partition should not over write copy?
- If I clone the mtd partition, will it has the same mac address?
Any suggestion are welcome
thanks