Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#3007 - [ 0.000000] OF: fdt: No valid device tree found, continuing without #7772

Closed
openwrt-bot opened this issue Apr 13, 2020 · 3 comments
Labels

Comments

@openwrt-bot
Copy link

zorro:

this issue occures on xiaomi mi4a Gigabit edition on latest snapshot as of (Mon Apr 13 20:32:38 2020)

serial console log :

===================================================================
MT7621 stage1 code Oct 28 2018 20:39:32 (ASIC)
CPU=500000000 HZ BUS=166666666 HZ

Change MPLL source from XTAL to CR...
do MEMPLL setting..
MEMPLL Config : 0x11100000
3PLL mode + External loopback
=== XTAL-40Mhz === DDR-1200Mhz ===
PLL3 FB_DL: 0x12, 1/0 = 684/340 49000000
PLL2 FB_DL: 0x14, 1/0 = 673/351 51000000
PLL4 FB_DL: 0x18, 1/0 = 699/325 61000000
do DDR setting..[01F40000]
Apply DDR3 Setting...(use customer AC)
0 8 16 24 32 40 48 56 64 72 80 88 96 104 112 120
--------------------------------------------------------------------------------
0000:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0001:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0002:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0003:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0004:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0005:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0006:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0007:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0008:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0009:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
000A:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
000B:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
000C:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
000D:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
000E:| 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1
000F:| 0 0 0 0 1 1 1 1 1 1 1 1 1 1 0 0
0010:| 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0
0011:| 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0
0012:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0013:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0014:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0015:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0016:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0017:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0018:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0019:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001A:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001B:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001C:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001D:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001E:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001F:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DRAMC_DQSCTL1[0e0]=13000000
DRAMC_DQSGCTL[124]=80000033
rank 0 coarse = 15
rank 0 fine = 72
B:| 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0
opt_dle value:9
DRAMC_DDR2CTL[07c]=C287221D
DRAMC_PADCTL4[0e4]=000022B3
DRAMC_DQIDLY1[210]=0B090B09
DRAMC_DQIDLY2[214]=06090808
DRAMC_DQIDLY3[218]=0B080708
DRAMC_DQIDLY4[21c]=08070B08
DRAMC_R0DELDLY[018]=00002121

            RX      DQS perbit delay software calibration

==================================================================
1.0-15 bit dq delay value

bit| 0 1 2 3 4 5 6 7 8 9

0 | 8 9 7 11 6 8 7 5 6 5
10 | 8 9 7 9 7 7

==================================================================
2.dqs window
x=pass dqs delay value (min~max)center
y=0-7bit DQ of every group
input delay:DQS0 =33 DQS1 = 33

bit DQS0 bit DQS1
0 (164)32 8 (162)31
1 (162)31 9 (161)31
2 (162)31 10 (166)33
3 (166)33 11 (162)31
4 (162)31 12 (164)32
5 (166)33 13 (162)31
6 (162)31 14 (166)33
7 (164)32 15 (262)32

3.dq delay value last

bit| 0 1 2 3 4 5 6 7 8 9

0 | 9 11 9 11 8 8 9 6 8 7
10 | 8 11 8 11 7 8

==================================================================
TX perbyte calibration

DQS loop = 15, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqsdly_pass[0]=15, finish count=1
dqs_perbyte_dly.last_dqsdly_pass[1]=15, finish count=2
DQ loop=15, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqdly_pass[0]=15, finish count=1
dqs_perbyte_dly.last_dqdly_pass[1]=15, finish count=2
byte:0, (DQS,DQ)=(8,8)
byte:1, (DQS,DQ)=(8,8)
DRAMC_DQODLY1[200]=88888888
DRAMC_DQODLY2[204]=88888888
20,data:88
[EMI] DRAMC calibration passed

===================================================================
MT7621 stage1 code done
CPU=500000000 HZ BUS=166666666 HZ

U-Boot 1.1.3 (May 8 2019 - 07:40:27)

Board: Ralink APSoC DRAM: 128 MB
Power on memory test. Memory size= 128 MB...OK!
relocate_code Pointer at: 87fb0000

Config XHCI 40M PLL
RT2880_RSTSTAT_REG 0xc0030000


Board power on Occurred


flash manufacture id: c8, device id 40 18
find flash: GD25Q128C

Ralink UBoot Version: 5.0.0.0

ASIC MT7621A DualCore (MAC to MT7530 Mode)
DRAM_CONF_FROM: Auto-Detection
DRAM_TYPE: DDR3
DRAM bus: 16 bit
Xtal Mode=3 OCP Ratio=1/3
Flash component: SPI Flash
Date:May 8 2019 Time:07:40:27

icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:256, ways:4, linesz:32 ,total:32768

The CPU freq = 880 MHZ

estimate memory size =128 Mbytes
#Reset_MT7530
set LAN/WAN LLLLW

restore_defaults:0

Please choose the operation:
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP.

n3: System Boot system code via Flash.
Booting System 1
Erasing SPI Flash...
raspi_erase: offs:30000 len:10000
.
Writing to SPI Flash...
.
done

Booting image at bc180000 ...

Image Name: MIPS OpenWrt Linux-5.4.31
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 2434266 Bytes = 2.3 MB
Load Address: 80001000
Entry Point: 80001000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Erasing SPI Flash...
raspi_erase: offs:30000 len:10000
.
Writing to SPI Flash...
.
done
commandline uart_en=0 factory_mode=0 mem=128m root=/dev/mtdblock9
No initrd

Transferring control to Linux (at address 80001000) ...

Giving linux memsize in MB, 128

Starting kernel ...

[ 0.000000] Linux version 5.4.31 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r12950-97af28d23e)) #0 SMP Mon Apr 13 17:22:16 2020
[ 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] 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] OF: fdt: No valid device tree found, continuing without
[ 0.000000] percpu: Embedded 14 pages/cpu s26704 r8192 d22448 u57344
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32480
[ 0.000000] Kernel command line: 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=00003444
[ 0.000000] Readback ErrCtl register=00003444
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 120752K/131072K available (5826K kernel code, 206K rwdata, 1252K rodata, 1280K init, 237K bss, 10320K 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] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] ------------[ cut here ]------------
[ 0.000000] WARNING: CPU: 0 PID: 0 at kernel/rcu/tree.c:2998 rcu_init+0x55c/0x774
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.31 #0
[ 0.000000] Stack : 00000000 800774cc 806b0000 806b6474 80720000 806b643c 806b5590 806efdb4
[ 0.000000] 80860000 80701248 80700d83 8064c7e4 00000000 00000001 806efd58 00000000
[ 0.000000] 00000000 00000000 808a0000 00000000 00000030 00000027 342e3520 2031332e
[ 0.000000] 00000000 00000000 00000000 00000000 00000000 80720000 00000000 807299f0
[ 0.000000] 00000009 806451a4 806fe2b0 80700000 00000002 00000010 87fe528c 00000000
[ 0.000000] ...
[ 0.000000] Call Trace:
[ 0.000000] [<8000b72c>] show_stack+0x30/0x100
[ 0.000000] [<8058fa8c>] dump_stack+0xa4/0xdc
[ 0.000000] [<80028038>] __warn+0xc0/0x10c
[ 0.000000] [<800280e0>] warn_slowpath_fmt+0x5c/0xac
[ 0.000000] [<807299f0>] rcu_init+0x55c/0x774
[ 0.000000] [<80720a7c>] start_kernel+0x2dc/0x55c
[ 0.000000] random: get_random_bytes called from print_oops_end_marker+0x2c/0x64 with crng_init=0
[ 0.000000] ---[ end trace 0000000000000000 ]---
[ 0.000000] ------------[ cut here ]------------
[ 0.000000] WARNING: CPU: 0 PID: 0 at kernel/rcu/tree.c:2999 rcu_init+0x5ac/0x774
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 5.4.31 #0
[ 0.000000] Stack : 00000000 800774cc 806b0000 806b6474 80720000 806b643c 806b5590 806efdb4
[ 0.000000] 80860000 80701248 80700d83 8064c7e4 00000000 00000001 806efd58 00000000
[ 0.000000] 00000000 00000000 808a0000 00000000 00000030 0000003a 342e3520 2031332e
[ 0.000000] 00000000 00000000 00000000 00000000 00000000 80720000 00000000 80729a40
[ 0.000000] 00000009 806451a4 806fe2b0 80700000 00000002 00000010 87fe528c 00000000
[ 0.000000] ...
[ 0.000000] Call Trace:
[ 0.000000] [<8000b72c>] show_stack+0x30/0x100
[ 0.000000] [<8058fa8c>] dump_stack+0xa4/0xdc
[ 0.000000] [<80028038>] __warn+0xc0/0x10c
[ 0.000000] [<800280e0>] warn_slowpath_fmt+0x5c/0xac
[ 0.000000] [<80729a40>] rcu_init+0x5ac/0x774
[ 0.000000] [<80720a7c>] start_kernel+0x2dc/0x55c
[ 0.000000] ---[ end trace f68728a0d3053b52 ]---
[ 0.000000] NR_IRQS: 256
[ 0.000000] Kernel panic - not syncing: Failed to find mtk,mt7621-sysc node
[ 0.000000] Rebooting in 1 seconds..
[ 0.000000] Reboot failed -- System halted

@openwrt-bot
Copy link
Author

gch981213:

Hi!
Would you mind to test this patch and see if it fixes the problem?
https://patchwork.ozlabs.org/project/openwrt/patch/20200414064438.1172618-1-gch981213@gmail.com/

@openwrt-bot
Copy link
Author

lessload:

A lot of people brick there router because of current snapshot build.
I wish someone fix it soon.

@openwrt-bot
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant