How to system flash size and ram

Ok so do i have to write a different driver code for that ?

How have you flashed or started your build image?

1 Like

It got flash and than i don't bootup and using uart console i got jiff2 outdated error

Let me take back what I said, because now I see that yesterday you had this:

[ 2.673887] spi-mt7621 1e000b00.spi: sys_freq: 50000000 
[ 2.693938] m25p80 spi0.0: w25q256 (32768 Kbytes)
[ 2.703443] 5 fixed-partitions partitions found on MTD device spi0.0 
[ 2.716091] Creating 5 MTD partitions on "spi0.0": 
[ 2.725640] 0x000000000000-0x000000030000 : "u-boot" 
[ 2.736526] 0x000000030000-0x000000040000 : "u-boot-env" 
[ 2.748008] 0x000000040000-0x000000050000 : "factory" 
[ 2.758976] 0x000000050000-0x0000000a0000 : "permanent_config" 
[ 2.771463] 0x0000000a0000-0x000002000000 : "firmware" 
[ 2.881213] 2 uimage-fw partitions found on MTD device firmware 
[ 2.893023] 0x0000000a0000-0x000000275a9e : "kernel" 
[ 2.903813] 0x000000275a9e-0x000002000000 : "rootfs" 
[ 2.914514] mtd: device 6 (rootfs) set to be root filesystem 
[ 2.925897] 1 squashfs-split partitions found on MTD device rootfs 
[ 2.938233] 0x000000b60000-0x000002000000 : "rootfs_data"

That looks like a normal boot with 32 MB of flash active. Can you go back to that firmware? Does df confirm the filesystem size?

It is possible it is crashing because you've told the kernel there is 256 MB of RAM, but the memory controller is still running the RAM chip as 128 MB. The SoC may require resistor strapping for the pre-boot ROM to set up the DRAM controller correctly. This was the case with the very old RT5350.

You could manually probe for operational RAM with mm commands in the bootloader CLI.

I not sure that it is error message. But i was like it kept saying jiff is old please use new version of jiff with the newer kernel version and this message kept display for 3 minutes and it jiff message only again to show when the bootloader start to check eth o driver than it stop and the jiffs error message to pop up i don't have the error at the moment but i will post the message in afternoon so you have a better understanding because i don't understand a think but since you explain me what doing it could the case ?

this the complete error that occurs

Upgrade completed
Rebooting system...
umount: can't unmount /dev: Resource busy
[ 4400.680192] reboot: Restarting system

Boot and Recovery Environment for Embedded Devices
Copyright (C) 2017 HackPascal <hackpascal@gmail.com>
Build date 2017-07-31 [git-5838a64]
Version 1.1 (r1033)

DRAM: 256MB
Platform: MediaTek MT7621A ver 1, eco 3
Board: Phicomm K2P
Clocks: CPU: 880MHz, DDR: 1200MHz, Bus: 293MHz, Ref: 40MHz
Flash: Winbond W25Q256 (32MB) on rt6855a-spi
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 0x000a0000 in flash bank 0 ...
Reading data into memory ...
U-Boot firmware image header detected.
    Image Name:   MIPS OpenWrt Linux-4.14.151
    Data Size:    1923429 Bytes
    Load Address: 80001000
    Entry Point:  80001000
Uncompressing data (LZMA) ... done.
Flushing cache ... done.

Starting kernel at 0x80001000...

[    0.000000] Linux version 4.14.151 (root@ip-10-200-11-77) (gcc version 7.3.0                                                                                                                 (OpenWrt GCC 7.3.0 r7897-9d401013fc)) #0 SMP Tue Nov 5 14:12:18 2019
[    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 Phicomm K2P
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (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 byt                                                                                                                es
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x94/0x4a8 with                                                                                                                 crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu s26224 r8192 d22928 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs                                                                                                                2
[    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=000062c0
[    0.000000] Readback ErrCtl register=000062c0
[    0.000000] Memory: 253304K/262144K available (4541K kernel code, 233K rwdata                                                                                                                , 996K rodata, 232K init, 249K bss, 8840K reserved, 0K cma-reserved, 0K 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: 0xcaf478ab                                                                                                                b4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_i                                                                                                                dle_ns: 4343773742 ns
[    0.000010] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 48806                                                                                                                45118ns
[    0.015496] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.087826] pid_max: default: 32768 minimum: 301
[    0.097141] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110162] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.125919] Hierarchical SRCU implementation.
[    0.135395] smp: Bringing up secondary CPUs ...
[    7.268810] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    7.268819] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 byt                                                                                                                es
[    7.268830] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    7.268969] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.204767] Synchronize counters for CPU 1: done.
[    7.017138] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    7.017146] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 byt                                                                                                                es
[    7.017154] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    7.017225] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.325592] Synchronize counters for CPU 2: done.
[    7.136157] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    7.136165] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 byt                                                                                                                es
[    7.136172] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    7.136251] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.445156] Synchronize counters for CPU 3: done.
[    0.504756] smp: Brought up 1 node, 4 CPUs
[    0.516175] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma                                                                                                                x_idle_ns: 19112604462750000 ns
[    0.535638] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.548080] pinctrl core: initialized pinctrl subsystem
[    0.558917] NET: Registered protocol family 16
[    0.578156] pull PCIe RST: RALINK_RSTCTRL = 4000000
[    0.888103] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.898168] ***** Xtal 40MHz *****
[    0.904900] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.915104] Port 0 N_FTS = 1b102800
[    0.922005] Port 1 N_FTS = 1b102800
[    0.928930] Port 2 N_FTS = 1b102800
[    2.087397] PCIE0 no card, disable it(RST&CLK)
[    2.096085] PCIE1 no card, disable it(RST&CLK)
[    2.104885] PCIE2 no card, disable it(RST&CLK)
[    2.122519] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.133842] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.145059] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.158665] clocksource: Switched to clocksource GIC
[    2.170254] NET: Registered protocol family 2
[    2.179596] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    2.193350] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    2.206128] TCP: Hash tables configured (established 2048 bind 2048)
[    2.218860] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.230362] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.243001] NET: Registered protocol family 1
[    2.488596] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.499989] Crashlog allocated RAM at address 0x3f00000
[    2.510533] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    2.530675] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.542177] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORIT                                                                                                                Y) (c) 2001-2006 Red Hat, Inc.
[    2.563624] random: fast init done
[    2.570236] io scheduler noop registered
[    2.570304] io scheduler deadline registered (default)
[    2.589266] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    2.603128] console [ttyS0] disabled
[    2.610178] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud                                                                                                                 = 3125000) is a 16550A
[    2.628109] console [ttyS0] enabled
[    2.628109] console [ttyS0] enabled
[    2.641903] bootconsole [early0] disabled
[    2.641903] bootconsole [early0] disabled
[    2.659663] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.673976] spi-mt7621 1e000b00.spi: sys_freq: 50000000
[    2.694483] m25p80 spi0.0: w25q256 (32768 Kbytes)
[    2.703930] 5 fixed-partitions partitions found on MTD device spi0.0
[    2.716576] Creating 5 MTD partitions on "spi0.0":
[    2.726122] 0x000000000000-0x000000030000 : "u-boot"
[    2.737123] 0x000000030000-0x000000040000 : "u-boot-env"
[    2.748790] 0x000000040000-0x000000050000 : "factory"
[    2.759912] 0x000000050000-0x0000000a0000 : "permanent_config"
[    2.772553] 0x0000000a0000-0x000002000000 : "firmware"
[    2.853892] 2 uimage-fw partitions found on MTD device firmware
[    2.865708] 0x0000000a0000-0x0000002759a5 : "kernel"
[    2.876649] 0x0000002759a5-0x000002000000 : "rootfs"
[    2.887500] mtd: device 6 (rootfs) set to be root filesystem
[    2.898903] 1 squashfs-split partitions found on MTD device rootfs
[    2.911240] 0x000001090000-0x000002000000 : "rootfs_data"
[    2.923679] libphy: Fixed MDIO Bus: probed
[    2.948953] mtk_soc_eth 1e100000.ethernet eth0 (uninitialized): port 1 link u                                                                                                                p
[    3.611080] mtk_soc_eth 1e100000.ethernet eth0 (uninitialized): port 1 link d                                                                                                                own
[    4.318626] random: crng init done
[    6.002728] mtk_soc_eth 1e100000.ethernet eth0 (uninitialized): port 1 link u                                                                                                                p

[   62.938745] INFO: rcu_sched self-detected stall on CPU
[   62.948975]  0-...: (5999 ticks this GP) idle=86a/140000000000002/0 softirq=29/29 fqs=2253
[   62.965575]   (t=6000 jiffies g=-286 c=-287 q=134)
[   62.975102] NMI backtrace for cpu 0
[   62.982033] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.151 #0
[   62.994142] Stack : 00000000 80580000 00000000 8006ffe8 805a0000 80545280 00000000 00000000
[   63.010768]         80512380 8fc09bec 8fc3837c 8057e907 8050d3f8 00000001 8fc09b90 53261676
[   63.027394]         00000000 00000000 805e0000 00002348 00000000 00000082 00000007 00000000
[   63.044020]         00000000 80580000 000efc11 00000000 00000000 00000000 805a0000 00000000
[   63.060644]         80584400 8057c0ac 000000e0 80580000 00000000 80288e00 00000000 805e0000
[   63.077270]         ...
[   63.082125] Call Trace:
[   63.087007] [<800106a0>] show_stack+0x58/0x100
[   63.095851] [<80451d8c>] dump_stack+0x9c/0xe0
[   63.104524] [<80458c84>] nmi_cpu_backtrace+0xe4/0x108
[   63.114566] [<80458d70>] nmi_trigger_cpumask_backtrace+0xc8/0x168
[   63.126690] [<80084a78>] rcu_dump_cpu_stacks+0xc4/0x13c
[   63.137077] [<80083ed0>] rcu_check_callbacks+0x3b4/0x8b8
[   63.147646] [<80087448>] update_process_times+0x34/0x7c
[   63.158053] [<8009805c>] tick_handle_periodic+0x34/0xd0
[   63.168449] [<80308ca0>] gic_compare_interrupt+0x70/0x80
[   63.179016] [<80077808>] handle_percpu_devid_irq+0xbc/0x1a8
[   63.190112] [<80071ac0>] generic_handle_irq+0x40/0x58
[   63.200163] [<80245cfc>] gic_handle_local_int+0x9c/0xe8
[   63.210550] [<80245ebc>] gic_irq_dispatch+0x10/0x20
[   63.220246] [<80071ac0>] generic_handle_irq+0x40/0x58
[   63.230302] [<8046f25c>] do_IRQ+0x1c/0x2c
[   63.238267] [<80244e8c>] plat_irq_dispatch+0xfc/0x138
[   63.248308] [<8000b5e8>] except_vec_vi_end+0xb8/0xc4
[   63.258190] [<80033094>] irq_exit+0xac/0xc8

Is there some changes need to be done in this file target/linux/ramips/mt7621/config-4.14
or somewhere else ?
ps this what i get on my console when my device do get booted

Trying to boot firmware from 0x000a0000 in flash bank 0 ...
Reading data into memory ...
U-Boot firmware image header detected.
    Image Name:   MIPS OpenWrt Linux-4.14.151
    Data Size:    1923429 Bytes
    Load Address: 80001000
    Entry Point:  80001000
Uncompressing data (LZMA) ... done.
Flushing cache ... done.

Starting kernel at 0x80001000...

[    0.000000] Linux version 4.14.151 (root@ip-10-200-11-77) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7897-9d401013fc)) #0 SMP Tue Nov 5 14:12:18 2019
[    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 Phicomm K2P
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (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  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x94/0x4a8 with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu s26224 r8192 d22928 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,57600 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=00006ac3
[    0.000000] Readback ErrCtl register=00006ac3
[    0.000000] Memory: 253304K/262144K available (4541K kernel code, 233K rwdata, 996K rodata, 232K init, 249K bss, 8840K reserved, 0K cma-reserved, 0K 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.015500] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.087828] pid_max: default: 32768 minimum: 301
[    0.097147] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110168] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.125949] Hierarchical SRCU implementation.
[    0.135435] smp: Bringing up secondary CPUs ...
[    1.317737] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    1.317746] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    1.317758] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    1.317898] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.204804] Synchronize counters for CPU 1: done.
[    8.090997] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    8.091006] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    8.091014] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    8.091086] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.325665] Synchronize counters for CPU 2: done.
[    7.685877] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    7.685885] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    7.685892] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    7.685973] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.445229] Synchronize counters for CPU 3: done.
[    0.504830] smp: Brought up 1 node, 4 CPUs
[    0.516273] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.535740] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.548184] pinctrl core: initialized pinctrl subsystem
[    0.559028] NET: Registered protocol family 16
[    0.578363] pull PCIe RST: RALINK_RSTCTRL = 4000000
[    0.888310] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.898375] ***** Xtal 40MHz *****
[    0.905107] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.915311] Port 0 N_FTS = 1b102800
[    0.922212] Port 1 N_FTS = 1b102800
[    0.929137] Port 2 N_FTS = 1b102800
[    2.087601] PCIE0 no card, disable it(RST&CLK)
[    2.096288] PCIE1 no card, disable it(RST&CLK)
[    2.105089] PCIE2 no card, disable it(RST&CLK)
[    2.122954] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.134241] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.145469] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.159023] clocksource: Switched to clocksource GIC
[    2.170138] NET: Registered protocol family 2
[    2.179617] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    2.193385] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    2.206154] TCP: Hash tables configured (established 2048 bind 2048)
[    2.218898] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.230401] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.243062] NET: Registered protocol family 1
[    2.488966] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.500228] Crashlog allocated RAM at address 0x3f00000
[    2.510798] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    2.529716] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.541202] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.562296] random: fast init done
[    2.570547] io scheduler noop registered
[    2.578191] io scheduler deadline registered (default)
[    2.589498] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    2.603234] console [ttyS0] disabled
[    2.610304] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[    2.628219] console [ttyS0] enabled
[    2.628219] console [ttyS0] enabled
[    2.642009] bootconsole [early0] disabled
[    2.642009] bootconsole [early0] disabled
[    2.659797] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.674139] spi-mt7621 1e000b00.spi: sys_freq: 50000000
[    2.694575] m25p80 spi0.0: w25q256 (32768 Kbytes)
[    2.704018] 5 fixed-partitions partitions found on MTD device spi0.0
[    2.716668] Creating 5 MTD partitions on "spi0.0":
[    2.726213] 0x000000000000-0x000000030000 : "u-boot"
[    2.737064] 0x000000030000-0x000000040000 : "u-boot-env"
[    2.748567] 0x000000040000-0x000000050000 : "factory"
[    2.759582] 0x000000050000-0x0000000a0000 : "permanent_config"
[    2.772110] 0x0000000a0000-0x000002000000 : "firmware"
[    2.852192] 2 uimage-fw partitions found on MTD device firmware
[    2.864019] 0x0000000a0000-0x0000002759a5 : "kernel"
[    2.874823] 0x0000002759a5-0x000002000000 : "rootfs"
[    2.885561] mtd: device 6 (rootfs) set to be root filesystem
[    2.896936] 1 squashfs-split partitions found on MTD device rootfs
[    2.909268] 0x000001300000-0x000002000000 : "rootfs_data"
[    2.921478] libphy: Fixed MDIO Bus: probed
[    2.949338] mtk_soc_eth 1e100000.ethernet eth0 (uninitialized): port 1 link up
[    3.011011] libphy: mdio: probed
[    4.416984] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    4.429496] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 20
[    4.448145] NET: Registered protocol family 10
[    4.458559] Segment Routing with IPv6
[    4.465972] NET: Registered protocol family 17
[    4.474886] 8021q: 802.1Q VLAN Support v1.8
[    4.485314] hctosys: unable to open rtc device (rtc0)
[    4.500229] VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
[    4.514798] Freeing unused kernel memory: 232K
[    4.523682] This architecture does not have kernel memory protection.
[    4.778949] random: crng init done
[    5.118012] init: Console is alive
[    5.125129] init: - watchdog -
[    6.593195] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.711512] usbcore: registered new interface driver usbfs
[    6.722561] usbcore: registered new interface driver hub
[    6.733319] usbcore: registered new device driver usb
[    6.770249] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.790007] SCSI subsystem initialized
[    6.801637] ehci-platform: EHCI generic platform driver
[    6.814378] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    6.827947] ohci-platform: OHCI generic platform driver
[    6.840524] uhci_hcd: USB Universal Host Controller Interface driver
[    6.862336] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    6.873016] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[    6.899178] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000210010
[    6.917455] xhci-mtk 1e1c0000.xhci: irq 19, io mem 0x1e1c0000
[    6.929991] hub 1-0:1.0: USB hub found
[    6.937534] hub 1-0:1.0: 2 ports detected
[    6.946153] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    6.956770] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[    6.971685] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0  SuperSpeed
[    6.984718] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    7.001727] hub 2-0:1.0: USB hub found
[    7.009293] hub 2-0:1.0: 1 port detected
[    7.023190] usbcore: registered new interface driver usb-storage
[    7.036972] usbcore: registered new interface driver uas
[    7.047952] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    7.069370] init: - preinit -
[    7.459069] usb 1-1: new high-speed USB device number 2 using xhci-mtk
[    7.957257] mtk_soc_eth 1e100000.ethernet: PPE started
[    8.019132] usb 1-2: new high-speed USB device number 3 using xhci-mtk
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.190117] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   11.248277] urandom-seed: Seed file not found (/etc/urandom.seed)
[   11.384812] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[   11.406909] procd: - early -
[   11.412801] procd: - watchdog -
[   12.129219] procd: - watchdog -
[   12.135781] procd: - ubus -
Command failed: Not found
[   12.305611] procd: - init -
Please press Enter to activate this console.
[   12.711098] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.805673] NET: Registered protocol family 38
[   12.823762] Initializing XFRM netlink socket
[   12.835099] NET: Registered protocol family 15
[   12.846793] tun: Universal TUN/TAP device driver, 1.6
[   12.891150] l2tp_core: L2TP core driver, V2.0
[   12.901436] l2tp_netlink: L2TP netlink interface
[   12.912363] l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
[   12.926314] l2tp_ip: L2TP IP encapsulation support (L2TPv3)
[   12.939846] l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3)
[   12.962888] gre: GRE over IPv4 demultiplexor driver
[   12.975835] ip_gre: GRE over IPv4 tunneling driver
[   12.995268] ip6_gre: GRE over IPv6 tunneling driver
[   13.014747] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   13.038460] Netfilter messages via NETLINK v0.30.
[   13.052479] ip_set: protocol 6
[   13.103269] u32 classifier
[   13.108683]     input device check on
[   13.116036]     Actions configured
[   13.125332] Mirror/redirect action on
[   13.144525] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
[   13.165753] usbcore: registered new interface driver cdc_acm
[   13.177116] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   13.195064] usbcore: registered new interface driver cdc_wdm
[   13.209597] ip_tables: (C) 2000-2006 Netfilter Core Team
[   13.386176] usbcore: registered new interface driver usbserial
[   13.398060] usbcore: registered new interface driver usbserial_generic
[   13.411241] usbserial: USB Serial support registered for generic
[   13.463923] xt_time: kernel timezone is -0000
[   13.476806] usbcore: registered new interface driver cdc_ether
[   13.494062] usbcore: registered new interface driver cdc_ncm
[   13.506880] usbcore: registered new interface driver huawei_cdc_ncm
[   13.534045] PPP generic driver version 2.4.2
[   13.544522] PPP MPPE Compression module registered
[   13.555605] NET: Registered protocol family 24
[   13.566579] PPTP driver version 0.8.5
[   13.578449] qmi_wwan 1-1:1.4: cdc-wdm0: USB WDM device
[   13.592287] qmi_wwan 1-1:1.4 wwan0: register 'qmi_wwan' at usb-1e1c0000.xhci-1, WWAN/QMI device, 92:c1:ac:52:3d:93
[   13.615961] qmi_wwan 1-2:1.4: cdc-wdm1: USB WDM device
[   13.630250] qmi_wwan 1-2:1.4 wwan1: register 'qmi_wwan' at usb-1e1c0000.xhci-2, WWAN/QMI device, 92:c1:ac:52:3d:93
[   13.651349] usbcore: registered new interface driver qmi_wwan
[   13.665741] usbcore: registered new interface driver rndis_host
[   13.682909] usbcore: registered new interface driver cdc_mbim
[   13.697264] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[   13.708843] usbcore: registered new interface driver option
[   13.720195] usbserial: USB Serial support registered for GSM modem (1-port)
[   13.734608] option 1-1:1.0: GSM modem (1-port) converter detected
[   13.747199] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[   13.761212] option 1-1:1.1: GSM modem (1-port) converter detected
[   13.773768] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[   13.787753] option 1-1:1.2: GSM modem (1-port) converter detected
[   13.800358] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[   13.814362] option 1-1:1.3: GSM modem (1-port) converter detected
[   13.827206] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
[   13.841293] option 1-2:1.0: GSM modem (1-port) converter detected
[   13.853946] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB4
[   13.867960] option 1-2:1.1: GSM modem (1-port) converter detected
[   13.880630] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB5
[   13.894599] option 1-2:1.2: GSM modem (1-port) converter detected
[   13.907211] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB6
[   13.921265] option 1-2:1.3: GSM modem (1-port) converter detected
[   13.933882] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB7
[   13.951513] kmodloader: done loading kernel modules from /etc/modules.d/*
[   24.404539] mtk_soc_eth 1e100000.ethernet: PPE started
[   24.423828] device eth0 entered promiscuous mode
[   24.438341] br-lan: port 1(eth0.1) entered blocking state
[   24.449520] br-lan: port 1(eth0.1) entered disabled state
[   24.460947] device eth0.1 entered promiscuous mode
[   24.478252] br-lan: port 1(eth0.1) entered blocking state
[   24.489099] br-lan: port 1(eth0.1) entered forwarding state
[   24.500857] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   25.470841] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   31.358494] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   31.372277] jffs2_build_filesystem(): unlocking the mtd device...
[   31.372434] done.
[   31.388627] jffs2_build_filesystem(): erasing all blocks after the end marker...
[   74.449776] done.
[   74.468529] jffs2: notice: (4143) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   74.981040] overlayfs: upper fs does not support tmpfile.

and this free -h and df output
free -h

root@:~# free -h
             total       used       free     shared    buffers     cached
Mem:        253536      62216     191320        600       6240      16684
-/+ buffers/cache:      39292     214244
Swap:            0          0          0

and df output

root@:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                16640     16640         0 100% /rom
tmpfs                   126768       600    126168   0% /tmp
/dev/mtdblock7           13760       504     13256   4% /overlay
overlayfs:/overlay       13760       504     13256   4% /
tmpfs                      512         0       512   0% /dev

random: crng init done
after the above message my router get stucked in bootup
please help me. thanks in advance

Are you sure about that? random: crng init done is typically the last message you get to see on a successful boot, the next topic would be to actually set up networking and/ or serial console, if that's failing.

checkout these logs

Upgrade completed
Rebooting system...
umount: can't unmount /dev: Resource busy
[ 4400.680192] reboot: Restarting system

Boot and Recovery Environment for Embedded Devices
Copyright (C) 2017 HackPascal <hackpascal@gmail.com>
Build date 2017-07-31 [git-5838a64]
Version 1.1 (r1033)

DRAM: 256MB
Platform: MediaTek MT7621A ver 1, eco 3
Board: Phicomm K2P
Clocks: CPU: 880MHz, DDR: 1200MHz, Bus: 293MHz, Ref: 40MHz
Flash: Winbond W25Q256 (32MB) on rt6855a-spi
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 0x000a0000 in flash bank 0 ...
Reading data into memory ...
U-Boot firmware image header detected.
    Image Name:   MIPS OpenWrt Linux-4.14.151
    Data Size:    1923429 Bytes
    Load Address: 80001000
    Entry Point:  80001000
Uncompressing data (LZMA) ... done.
Flushing cache ... done.

Starting kernel at 0x80001000...

[    0.000000] Linux version 4.14.151 (root@ip-10-200-11-77) (gcc version 7.3.0                                                                                                                 (OpenWrt GCC 7.3.0 r7897-9d401013fc)) #0 SMP Tue Nov 5 14:12:18 2019
[    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 Phicomm K2P
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (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 byt                                                                                                                es
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x94/0x4a8 with                                                                                                                 crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu s26224 r8192 d22928 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs                                                                                                                2
[    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=000062c0
[    0.000000] Readback ErrCtl register=000062c0
[    0.000000] Memory: 253304K/262144K available (4541K kernel code, 233K rwdata                                                                                                                , 996K rodata, 232K init, 249K bss, 8840K reserved, 0K cma-reserved, 0K 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: 0xcaf478ab                                                                                                                b4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_i                                                                                                                dle_ns: 4343773742 ns
[    0.000010] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 48806                                                                                                                45118ns
[    0.015496] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.087826] pid_max: default: 32768 minimum: 301
[    0.097141] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110162] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.125919] Hierarchical SRCU implementation.
[    0.135395] smp: Bringing up secondary CPUs ...
[    7.268810] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    7.268819] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 byt                                                                                                                es
[    7.268830] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    7.268969] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.204767] Synchronize counters for CPU 1: done.
[    7.017138] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    7.017146] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 byt                                                                                                                es
[    7.017154] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    7.017225] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.325592] Synchronize counters for CPU 2: done.
[    7.136157] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    7.136165] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 byt                                                                                                                es
[    7.136172] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    7.136251] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.445156] Synchronize counters for CPU 3: done.
[    0.504756] smp: Brought up 1 node, 4 CPUs
[    0.516175] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma                                                                                                                x_idle_ns: 19112604462750000 ns
[    0.535638] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.548080] pinctrl core: initialized pinctrl subsystem
[    0.558917] NET: Registered protocol family 16
[    0.578156] pull PCIe RST: RALINK_RSTCTRL = 4000000
[    0.888103] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.898168] ***** Xtal 40MHz *****
[    0.904900] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.915104] Port 0 N_FTS = 1b102800
[    0.922005] Port 1 N_FTS = 1b102800
[    0.928930] Port 2 N_FTS = 1b102800
[    2.087397] PCIE0 no card, disable it(RST&CLK)
[    2.096085] PCIE1 no card, disable it(RST&CLK)
[    2.104885] PCIE2 no card, disable it(RST&CLK)
[    2.122519] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.133842] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.145059] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.158665] clocksource: Switched to clocksource GIC
[    2.170254] NET: Registered protocol family 2
[    2.179596] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    2.193350] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    2.206128] TCP: Hash tables configured (established 2048 bind 2048)
[    2.218860] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.230362] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.243001] NET: Registered protocol family 1
[    2.488596] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.499989] Crashlog allocated RAM at address 0x3f00000
[    2.510533] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    2.530675] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.542177] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORIT                                                                                                                Y) (c) 2001-2006 Red Hat, Inc.
[    2.563624] random: fast init done
[    2.570236] io scheduler noop registered
[    2.570304] io scheduler deadline registered (default)
[    2.589266] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    2.603128] console [ttyS0] disabled
[    2.610178] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud                                                                                                                 = 3125000) is a 16550A
[    2.628109] console [ttyS0] enabled
[    2.628109] console [ttyS0] enabled
[    2.641903] bootconsole [early0] disabled
[    2.641903] bootconsole [early0] disabled
[    2.659663] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.673976] spi-mt7621 1e000b00.spi: sys_freq: 50000000
[    2.694483] m25p80 spi0.0: w25q256 (32768 Kbytes)
[    2.703930] 5 fixed-partitions partitions found on MTD device spi0.0
[    2.716576] Creating 5 MTD partitions on "spi0.0":
[    2.726122] 0x000000000000-0x000000030000 : "u-boot"
[    2.737123] 0x000000030000-0x000000040000 : "u-boot-env"
[    2.748790] 0x000000040000-0x000000050000 : "factory"
[    2.759912] 0x000000050000-0x0000000a0000 : "permanent_config"
[    2.772553] 0x0000000a0000-0x000002000000 : "firmware"
[    2.853892] 2 uimage-fw partitions found on MTD device firmware
[    2.865708] 0x0000000a0000-0x0000002759a5 : "kernel"
[    2.876649] 0x0000002759a5-0x000002000000 : "rootfs"
[    2.887500] mtd: device 6 (rootfs) set to be root filesystem
[    2.898903] 1 squashfs-split partitions found on MTD device rootfs
[    2.911240] 0x000001090000-0x000002000000 : "rootfs_data"
[    2.923679] libphy: Fixed MDIO Bus: probed
[    2.948953] mtk_soc_eth 1e100000.ethernet eth0 (uninitialized): port 1 link u                                                                                                                p
[    3.611080] mtk_soc_eth 1e100000.ethernet eth0 (uninitialized): port 1 link d                                                                                                                own
[    4.318626] random: crng init done
[    6.002728] mtk_soc_eth 1e100000.ethernet eth0 (uninitialized): port 1 link u                                                                                                                p

[   62.938745] INFO: rcu_sched self-detected stall on CPU
[   62.948975]  0-...: (5999 ticks this GP) idle=86a/140000000000002/0 softirq=29/29 fqs=2253
[   62.965575]   (t=6000 jiffies g=-286 c=-287 q=134)
[   62.975102] NMI backtrace for cpu 0
[   62.982033] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.151 #0
[   62.994142] Stack : 00000000 80580000 00000000 8006ffe8 805a0000 80545280 00000000 00000000
[   63.010768]         80512380 8fc09bec 8fc3837c 8057e907 8050d3f8 00000001 8fc09b90 53261676
[   63.027394]         00000000 00000000 805e0000 00002348 00000000 00000082 00000007 00000000
[   63.044020]         00000000 80580000 000efc11 00000000 00000000 00000000 805a0000 00000000
[   63.060644]         80584400 8057c0ac 000000e0 80580000 00000000 80288e00 00000000 805e0000
[   63.077270]         ...
[   63.082125] Call Trace:
[   63.087007] [<800106a0>] show_stack+0x58/0x100
[   63.095851] [<80451d8c>] dump_stack+0x9c/0xe0
[   63.104524] [<80458c84>] nmi_cpu_backtrace+0xe4/0x108
[   63.114566] [<80458d70>] nmi_trigger_cpumask_backtrace+0xc8/0x168
[   63.126690] [<80084a78>] rcu_dump_cpu_stacks+0xc4/0x13c
[   63.137077] [<80083ed0>] rcu_check_callbacks+0x3b4/0x8b8
[   63.147646] [<80087448>] update_process_times+0x34/0x7c
[   63.158053] [<8009805c>] tick_handle_periodic+0x34/0xd0
[   63.168449] [<80308ca0>] gic_compare_interrupt+0x70/0x80
[   63.179016] [<80077808>] handle_percpu_devid_irq+0xbc/0x1a8
[   63.190112] [<80071ac0>] generic_handle_irq+0x40/0x58
[   63.200163] [<80245cfc>] gic_handle_local_int+0x9c/0xe8
[   63.210550] [<80245ebc>] gic_irq_dispatch+0x10/0x20
[   63.220246] [<80071ac0>] generic_handle_irq+0x40/0x58
[   63.230302] [<8046f25c>] do_IRQ+0x1c/0x2c
[   63.238267] [<80244e8c>] plat_irq_dispatch+0xfc/0x138
[   63.248308] [<8000b5e8>] except_vec_vi_end+0xb8/0xc4
[   63.258190] [<80033094>] irq_exit+0xac/0xc8

While I'm not really familiar with mediatek SOCs, I'd guess your ethernet definitions in the DTS might be part of your issues.

The only thing that is sure, is that your problems aren't with crng, but rather with the rcu_sched oops that happens afterwards.

so how to solve it

after crng this these things come

63.082125] Call Trace:
[   63.087007] [<800106a0>] show_stack+0x58/0x100
[   63.095851] [<80451d8c>] dump_stack+0x9c/0xe0
[   63.104524] [<80458c84>] nmi_cpu_backtrace+0xe4/0x108
[   63.114566] [<80458d70>] nmi_trigger_cpumask_backtrace+0xc8/0x168
[   63.126690] [<80084a78>] rcu_dump_cpu_stacks+0xc4/0x13c
[   63.137077] [<80083ed0>] rcu_check_callbacks+0x3b4/0x8b8
[   63.147646] [<80087448>] update_process_times+0x34/0x7c
[   63.158053] [<8009805c>] tick_handle_periodic+0x34/0xd0
[   63.168449] [<80308ca0>] gic_compare_interrupt+0x70/0x80
[   63.179016] [<80077808>] handle_percpu_devid_irq+0xbc/0x1a8
[   63.190112] [<80071ac0>] generic_handle_irq+0x40/0x58
[   63.200163] [<80245cfc>] gic_handle_local_int+0x9c/0xe8
[   63.210550] [<80245ebc>] gic_irq_dispatch+0x10/0x20
[   63.220246] [<80071ac0>] generic_handle_irq+0x40/0x58
[   63.230302] [<8046f25c>] do_IRQ+0x1c/0x2c
[   63.238267] [<80244e8c>] plat_irq_dispatch+0xfc/0x138
[   63.248308] [<8000b5e8>] except_vec_vi_end+0xb8/0xc4
[   63.258190] [<80033094>] irq_exit+0xac/0xc8

I would make a build for 128 MB RAM and see if that is stable. I'm still thinking a RAM hardware or initialization problem.

Thank you mk24 please let us know ?

According to (which I think is the same device)

It also doesn't work with the official snapshot builds.
I've given a procedure with a suggestion for digging deeper, but op doesn't answered if he had success with reverting his modifications.

I see that you are working very hard, but among the Chinese, k2p has already achieved 32 + 512, but the corresponding openwrt does not have such a native openwrt system, and the openwrt system based on Chinese compilation and packaging is in K2P The execution is very slow. Compared with other openwrt 19.01-rc1, I hope that the boss can help compile a 32m + 512M native openwrt, because I already hate all kinds of compiled firmware, there are too many unnecessary things in it, run Very slow, I need a pure version of openwrt firmware, I look forward to your masterpiece

Auto ram size detection up to 512 MB is available in master/snapshot and 19.07...

I don't know why you are using the old 18.06 version.

Master/snapshot:

19.07:

thank you and happy holiday to you all
sorry for the late reply i will get back with after compile it with 19.07
and happy new year to you all

1 Like

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