Settings not conserved and strange partition problem on Newifi D2

Dear all,

Recently i got a Newifi D2 , which is based on MT7621 chip with 32M chip. After flashing the firmware from openwrt page, I found that my settings will be reseted on reboot. After checking with cat /proc/mtd , I found that NO kernal, rootfs rootfs_data was found. And comparing the kernal log from luci and logread of my Newifi D2 and WR1200JS(which is based on the same chip but with 16M chip), i found that my Newifi 3 d2 is missing this line : "2 uimage-fw partitions found on MTD device firmware". Is there any fix to fix?

Have you tried flashing over it using sysupgrade or the web GUI?

Does this mean you just flashed it with the most recent snapshot?

Which firmware from which page (please provide links)?

From releases/18.06.1/targets/ramips/mt7621/

I think the link i provided is the release build?

[    0.000000] Linux version 4.14.63 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7102-3f3a2c9)) #0 SMP Thu Aug 16 07:51:15 2018
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is Newifi-D2
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 1c000000 @ 00000000 (usable)
[    0.000000]  memory: 04000000 @ 20000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  [mem 0x0000000010000000-0x0000000023ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000001bffffff]
[    0.000000]   node   0: [mem 0x0000000020000000-0x0000000023ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000023ffffff]
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat 80545e80, node_mem_map 81003000
[    0.000000]   Normal zone: 512 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000]   HighMem zone: 65536 pages, LIFO batch:15
[    0.000000] random: get_random_bytes called from 0x80549740 with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu @8148f000 s26256 r8192 d22896 u57344
[    0.000000] pcpu-alloc: s26256 r8192 d22896 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130560
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Writing ErrCtl register=00000040
[    0.000000] Readback ErrCtl register=00000040
[    0.000000] Memory: 511652K/524288K available (4596K kernel code, 239K rwdata, 564K rodata, 1820K init, 270K bss, 12636K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 256
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000010] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.007832] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.073981] pid_max: default: 32768 minimum: 301
[    0.078759] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.085267] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.094143] Hierarchical SRCU implementation.
[    0.099294] smp: Bringing up secondary CPUs ...
[    7.098369] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    7.098380] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    7.098393] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    7.098539] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.164041] Synchronize counters for CPU 1: done.
[    6.873107] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    6.873117] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    6.873127] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    6.873200] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.255065] Synchronize counters for CPU 2: done.
[    7.115909] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    7.115917] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    7.115926] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    7.116008] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.340249] Synchronize counters for CPU 3: done.
[    0.370115] smp: Brought up 1 node, 4 CPUs
[    0.377897] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.387687] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.394010] pinctrl core: initialized pinctrl subsystem
[    0.399907] NET: Registered protocol family 16
[    0.410949] Can't analyze schedule() prologue at 80478bc4
[    0.416309] FPU Affinity set after 11720 emulations
[    0.417093] pull PCIe RST: RALINK_RSTCTRL = 0
[    0.721763] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.726796] ***** Xtal 40MHz *****
[    0.730169] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.735281] Port 0 N_FTS = 1b102800
[    0.738718] Port 1 N_FTS = 1b102800
[    0.742177] Port 2 N_FTS = 1b102800
[    1.897247] PCIE2 no card, disable it(RST&CLK)
[    1.901596]  -> 21007f2
[    1.904010] PCIE0 enabled
[    1.906601] PCIE1 enabled
[    1.909227] PCI host bridge /pcie@1e140000 ranges:
[    1.913967]  MEM 0x0000000060000000..0x000000006fffffff
[    1.919134]   IO 0x000000001e160000..0x000000001e16ffff
[    1.924338] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[    1.940602] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.946517] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.952273] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.959505] PCI host bridge to bus 0000:00
[    1.963530] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.970392] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    1.976232] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.982979] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.990872] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    1.990914] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.990925] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    1.990990] pci 0000:00:00.0: supports D1
[    1.991000] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.991244] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    1.991269] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.991283] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    1.991333] pci 0000:00:01.0: supports D1
[    1.991343] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    1.991573] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.999498] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.007591] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[    2.007648] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    2.007693] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    2.007789] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    2.007972] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.008164] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000
[    2.008211] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    2.008337] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    2.008533] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    2.008555] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 02
[    2.008622] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.015168] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.022045] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.028631] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.035530] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.042285] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    2.049437] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    2.056187] pci 0000:00:00.0: BAR 1: assigned [mem 0x60300000-0x6030ffff]
[    2.062915] pci 0000:00:01.0: BAR 1: assigned [mem 0x60310000-0x6031ffff]
[    2.069682] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.076925] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    2.084102] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.089007] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.095756] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.102919] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]
[    2.109672] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.114576] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.122723] clocksource: Switched to clocksource GIC
[    2.129301] NET: Registered protocol family 2
[    2.134484] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    2.141371] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    2.147813] TCP: Hash tables configured (established 2048 bind 2048)
[    2.154238] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.160007] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.166538] NET: Registered protocol family 1
[    2.170861] PCI: CLS 0 bytes, default 32
[    3.792680] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    3.799279] Crashlog allocated RAM at address 0x3f00000
[    3.804638] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    3.818563] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    3.824338] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    3.835491] random: fast init done
[    3.841081] bounce: pool size: 64 pages
[    3.844893] io scheduler noop registered
[    3.848716] io scheduler deadline registered (default)
[    3.854734] gpio-export gpio_export: 1 gpio(s) exported
[    3.860676] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    3.870114] console [ttyS0] disabled
[    3.873721] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[    3.882720] console [ttyS0] enabled
[    3.889573] bootconsole [early0] disabled
[    3.898323] cacheinfo: Failed to find cpu0 device node
[    3.903500] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    3.910396] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    3.917745] spi-mt7621 1e000b00.spi: sys_freq: 50000000
[    3.934917] m25p80 spi0.0: w25q256 (32768 Kbytes)
[    3.939662] 4 fixed-partitions partitions found on MTD device spi0.0
[    3.946068] Creating 4 MTD partitions on "spi0.0":
[    3.950847] 0x000000000000-0x000000030000 : "u-boot"
[    3.956843] 0x000000030000-0x000000040000 : "u-boot-env"
[    3.963144] 0x000000040000-0x000000050000 : "factory"
[    3.969120] 0x000000050000-0x000002000000 : "firmware"
[    4.096623] libphy: Fixed MDIO Bus: probed
[    4.164792] libphy: mdio: probed
[    5.578421] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    5.585166] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 20
[    5.596012] NET: Registered protocol family 10
[    5.602023] Segment Routing with IPv6
[    5.605847] NET: Registered protocol family 17
[    5.610355] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    5.623266] 8021q: 802.1Q VLAN Support v1.8
[    5.630242] hctosys: unable to open rtc device (rtc0)
[    5.643259] Freeing unused kernel memory: 1820K
[    5.647787] This architecture does not have kernel memory protection.
[    5.665696] init: Console is alive
[    5.669330] init: - watchdog -
[    5.683346] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.695010] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.713087] init: - preinit -
[    5.847092] mtk_soc_eth 1e100000.ethernet: PPE started
[    5.871470] random: procd: uninitialized urandom read (4 bytes read)
[    7.559725] mtk_soc_eth 1e100000.ethernet eth0: port 0 link up
[    8.995374] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[    9.009769] procd: - early -
[    9.012867] procd: - watchdog -
[    9.662881] procd: - watchdog -
[    9.666345] procd: - ubus -
[    9.674557] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.723428] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.730151] random: ubusd: uninitialized urandom read (4 bytes read)

It should be clear that if you reboot an initramfs, your settings will be lost.

2 Likes

But why my another router (Wr1200js) installed the initramfs os and settings preserved after reboot>?.

So i should install a sysupgrade on a blank chip? Using a programmer

Well... after using the sysupgrade file ( though i am not even upgrading) it works!. Thanks for the help

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.