Custom board - Uboot failing to boot after sysupgrade with MPTCP patched kernel

I have two copies of a board I'm working with which I have already added support for by creating the appropriate dts and dtsi files. It is tested and working fine on another copy of the board I have. Next I flashed an image with the MPTCP kernel patch onto another copy of the board and after I did that it will not boot. Did I accidentally overwrite something I wasn't supposed to? Or is this evidence that the boards are actually not identical? I don't think there's any way for me to recover this; all I have is a serial cable and I cannot even get to the uboot menu.

===================================================================
                MT7621   stage1 code 13:14:00 (ASIC)
                CPU=50000000 HZ BUS=16666666 HZ
==================================================================
Change MPLL source from XTAL to CR...
do MEMPLL setting..
MEMPLL Config : 0x21100000
3PLL mode + External loopback
=== XTAL-40Mhz === DDR-1066Mhz ===
PLL3 FB_DL: 0x10, 1/0 = 518/506 41000000
PLL4 FB_DL: 0x10, 1/0 = 527/497 41000000
PLL2 FB_DL: 0x14, 1/0 = 521/503 51000000
do DDR setting..[00320000]
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    1    0    0    0    0    0    0
0011:|    1    1    1    1    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
rank 0 coarse = 16
rank 0 fine = 40
B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
cannot find opt_dle value
[EMI] DRAMC calibration failed
=====================DBG=====================
[000] = 44694683        [004] = f07486a1        [008] = 03046948        [00c] = 0a000000
[010] = 00008888        [014] = 00008888        [018] = 0e0e0e0e        [01c] = 00000000
[020] = 00000000        [024] = 00000000        [028] = f1200f01        [02c] = 55010000
[030] = 33000fff        [034] = 55020000        [038] = 33000fff        [03c] = 55000000
[040] = aa0007ff        [044] = 9f0f0481        [048] = 0000d10d        [04c] = 00000000
[050] = 00000000        [054] = 00000000        [058] = 00000000        [05c] = 00000000
[060] = 00000000        [064] = 00000000        [068] = 00000000        [06c] = 00000000
[070] = 00000000        [074] = 00000000        [078] = 00000000        [07c] = c287227d
[080] = 00000000        [084] = 00000000        [088] = 00000400        [08c] = 00000000
[090] = 00000000        [094] = 28282828        [098] = 00000000        [09c] = 00000000
[0a0] = 00000000        [0a4] = 00000000        [0a8] = 00000000        [0ac] = 00000000
[0b0] = 00000000        [0b4] = 00000000        [0b8] = aa00aa00        [0bc] = aa00aa00
[0c0] = 00000000        [0c4] = 00000000        [0c8] = 00000000        [0cc] = 00000000
[0d0] = 07070000        [0d4] = 00000000        [0d8] = 00300900        [0dc] = 83000000
[0e0] = 14000000        [0e4] = 000022b3        [0e8] = 00000000        [0ec] = 00000000
[0f0] = 00000000        [0f4] = 01000000        [0f8] = edcb000f        [0fc] = 07100000
[100] = 00000000        [104] = 00000000        [108] = 00000000        [10c] = 00000000
[110] = 00051100        [114] = 00000000        [118] = 00000000        [11c] = 00000000
[120] = 00000000        [124] = 80000000        [128] = 00000000        [12c] = 00000000
[130] = 30000000        [134] = 00000000        [138] = 00000000        [13c] = 00000000
[140] = 00000000        [144] = 00000000        [148] = 00000000        [14c] = 00000000
[150] = 00000000        [154] = 00000000        [158] = 00000000        [15c] = 00000000
[160] = 00000000        [164] = 00000000        [168] = 00000080        [16c] = 00000000
[170] = 00000000        [174] = 00000000        [178] = 00000000        [17c] = 00000000
[180] = 00000000        [184] = 00000000        [188] = 00000000        [18c] = 00000000
[190] = 00000000        [194] = 00000000        [198] = 00000000        [19c] = 00000000
[1a0] = 00000000        [1a4] = 00000000        [1a8] = 00000000        [1ac] = 00000000
[1b0] = 00000000        [1b4] = 00000000        [1b8] = 00000000        [1bc] = 00000000
[1c0] = 00000000        [1c4] = 00000000        [1c8] = 00000000        [1cc] = 00000000
[1d0] = 00000000        [1d4] = 00000000        [1d8] = 00c80008        [1dc] = 15602842
[1e0] = 8c000000        [1e4] = 00001000        [1e8] = 00000240        [1ec] = 00000000
[1f0] = 00000000        [1f4] = 00020100        [1f8] = 00000000        [1fc] = 00000000
[200] = 88888888        [204] = 88888888        [208] = 88888888        [20c] = 88888888
[210] = 00000000        [214] = 00000000        [218] = 00000000        [21c] = 00000000
[220] = 00000000        [224] = 00000000        [228] = 00000000        [22c] = 00000000
[230] = 00000000        [234] = 00000000        [238] = 00000000        [23c] = 00000000
[240] = 00000000        [244] = 00000000        [248] = 00000000        [24c] = 00000000
[250] = 00000000        [254] = 00000000        [258] = 00000000        [25c] = 00000000
[260] = 00000000        [264] = 00000000        [268] = 00000000        [26c] = 00000000
[270] = 00000000        [274] = 00000000        [278] = 00000000        [27c] = 00000000
[280] = 00002092        [284] = 00000000        [288] = 0000035e        [28c] = 00001bfb
[290] = 00000000        [294] = 00000015        [298] = 00001c00        [29c] = 00000000
[2a0] = 00000010        [2a4] = 00001c00        [2a8] = 0000f9f8        [2ac] = 000005f8
[2b0] = 4751b609        [2b4] = 07549adf        [2b8] = 00135c06        [2bc] = 00000000
[2c0] = 00000000        [2c4] = 00000000        [2c8] = 00000000        [2cc] = 00000000
[2d0] = 00000000        [2d4] = 00000000        [2d8] = 00000000        [2dc] = 00000000
[2e0] = 00000000        [2e4] = 00000000        [2e8] = 00000000        [2ec] = 00000000
[2f0] = 00000000        [2f4] = 00000000        [2f8] = 00000000        [2fc] = 00000000
[300] = 00000000        [304] = 00000000        [308] = 00000000        [30c] = 00000000
[310] = 00000000        [314] = 00000000        [318] = 00000000        [31c] = 00000000
[320] = 00000000        [324] = 00000000        [328] = 00000000        [32c] = 00000000
[330] = 00000000        [334] = 00000000        [338] = 00000000        [33c] = 00000000
[340] = 00000000        [344] = 00000000        [348] = 00000000        [34c] = 00000000
[350] = 00000000        [354] = 00000000        [358] = 00000000        [35c] = 00000000
[360] = 00000000        [364] = 00000000        [368] = 00000000        [36c] = 00000000
[370] = 00000000        [374] = 00000000        [378] = 00000000        [37c] = 00000000
[380] = 00000000        [384] = 00000000        [388] = 00000000        [38c] = 00000003
[390] = 00000003        [394] = 00000000        [398] = 00000000        [39c] = 00000000
[3a0] = 0e0e0e0e        [3a4] = 00000000        [3a8] = 00000000        [3ac] = 00000000
[3b0] = 00000000        [3b4] = 00000000        [3b8] = 00000300        [3bc] = 00000000
[3c0] = 00000000        [3c4] = 00000000        [3c8] = 00000000        [3cc] = 00000000
[3d0] = 00000000        [3d4] = 00000000        [3d8] = 00000000        [3dc] = 80000000
[3e0] = 00000000        [3e4] = 00000000        [3e8] = 00000000        [3ec] = 00000000
[3f0] = 00000000        [3f4] = 00000000        [3f8] = 00000000        [3fc] = 00000000
[600] = 0e141985        [604] = 00040113        [608] = 000000e0        [60c] = 00090468
[610] = 00000000        [614] = 03200400        [618] = c20008da        [61c] = 51000000
[620] = 00000000        [624] = c20008da        [628] = 41000000        [62c] = 00000000
[630] = c20008da        [634] = 41000000        [638] = 00000000        [63c] = 00000000
[640] = 00000230        [644] = 00000000        [648] = c2005ab2        [64c] = 00000000
[650] = 00000000        [654] = 00000000        [658] = 00000000        [65c] = 00000000
=============================================

===================================================================
                MT7621   stage1 code done 
                CPU=50000000 HZ BUS=16666666 HZ
===================================================================


U-Boot 1.1.3 (Jun 26 2014 - 19:18:24)

Board: Ralink APSoC DRAM:  64 kB
relocate_code Pointer at: 7ffc8000

Update: it was a SIM card preventing boot from happening. Disregard.

Just a quick one?
Can you give us some specs for the board?

Update 2: that apparently was just a coincidence that it booted up after I took the SIM out. While I was setting up the mobile connection in LuCI it rebooted itself and now is exhibiting the original problem once again.

@kevdagoat
What specs do you need?

Hardware, cost, etc?
If willing of course

I think I found a reliable way to recover from this. Just unplug, discharge the board, hold the button while booting until the uboot menu loads, then flash.

It's inexpensive, and a good quality MT76 board from Unielec Inc. Tell Sam that Nick sent you and he should take care of you. I'm probably his "favorite" customer since I change the requirements so often. :smile:

Thanks, will do :slight_smile:

Looks like they make good stuff!

Will look at buying one of their wifi routers for use as a dumb ap.

Hi,

I have the same problem with the router . Please guide

===================================================================
                MT7621   stage1 code Mar 12 2015 14:43:30 (ASIC)
                CPU=500000000 HZ BUS=166666666 HZ
==================================================================
Change MPLL source from XTAL to CR...
do MEMPLL setting..
MEMPLL Config : 0x21100000
3PLL mode + External loopback
=== XTAL-40Mhz === DDR-1066Mhz ===
PLL2 FB_DL: 0x17, 1/0 = 516/508 5D000000
PLL3 FB_DL: 0x18, 1/0 = 517/507 61000000
PLL4 FB_DL: 0x19, 1/0 = 532/492 65000000
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    0
000E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000F:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0010:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0011:|    0    0    0    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
Cannot find any pass-window
[EMI] DRAMC calibration failed
=====================DBG=====================
[000] = 44694683        [004] = f07486a1        [008] = 03046948        [00c] = 0a000000
[010] = 00008888        [014] = 00008888        [018] = 0e0e0e0e        [01c] = 00000000
[020] = 00000000        [024] = 00000000        [028] = f1200f01        [02c] = 55010000
[030] = 33000fff        [034] = 55020000        [038] = 33000fff        [03c] = 55000000
[040] = aa000010        [044] = 9f0f0481        [048] = 0000d10d        [04c] = 00000000
[050] = 00000000        [054] = 00000000        [058] = 00000000        [05c] = 00000000
[060] = 00000000        [064] = 00000000        [068] = 00000000        [06c] = 00000000
[070] = 00000000        [074] = 00000000        [078] = 00000000        [07c] = c287221d
[080] = 00000000        [084] = 00000000        [088] = 00000400        [08c] = 00000000
[090] = 00000000        [094] = 78787878        [098] = 00000000        [09c] = 00000000
[0a0] = 00000000        [0a4] = 00000000        [0a8] = 00000000        [0ac] = 00000000
[0b0] = 00000000        [0b4] = 00000000        [0b8] = aa00aa00        [0bc] = aa00aa00
[0c0] = 00000000        [0c4] = 00000000        [0c8] = 00000000        [0cc] = 00000000
[0d0] = 07070000        [0d4] = 00000000        [0d8] = 00300900        [0dc] = 83000000
[0e0] = 17000000        [0e4] = 000022b3        [0e8] = 00000000        [0ec] = 00000000
[0f0] = 00000000        [0f4] = 01000000        [0f8] = edcb000f        [0fc] = 07100000
[100] = 00000000        [104] = 00000000        [108] = 00000000        [10c] = 00000000
[110] = 00051100        [114] = 00000000        [118] = 00000000        [11c] = 00000000
[120] = 00000000        [124] = 80000033        [128] = 00000000        [12c] = 00000000
[130] = 30000000        [134] = 00000000        [138] = 00000000        [13c] = 00000000
[140] = 00000000        [144] = 00000000        [148] = 00000000        [14c] = 00000000
[150] = 00000000        [154] = 00000000        [158] = 00000000        [15c] = 00000000
[160] = 00000000        [164] = 00000000        [168] = 00000080        [16c] = 00000000
[170] = 00000000        [174] = 00000000        [178] = 00000000        [17c] = 00000000
[180] = 00000000        [184] = 00000000        [188] = 00000000        [18c] = 00000000
[190] = 00000000        [194] = 00000000        [198] = 00000000        [19c] = 00000000
[1a0] = 00000000        [1a4] = 00000000        [1a8] = 00000000        [1ac] = 00000000
[1b0] = 00000000        [1b4] = 00000000        [1b8] = 00000000        [1bc] = 00000000
[1c0] = 00000000        [1c4] = 00000000        [1c8] = 00000000        [1cc] = 00000000
[1d0] = 00000000        [1d4] = 00000000        [1d8] = 00c80008        [1dc] = 15602842
[1e0] = 8c000000        [1e4] = 00001000        [1e8] = 00000240        [1ec] = 00000000
[1f0] = 00000000        [1f4] = 00020100        [1f8] = 00000000        [1fc] = 00000000
[200] = 88888888        [204] = 88888888        [208] = 88888888        [20c] = 88888888
[210] = 00000000        [214] = 00000000        [218] = 00000000        [21c] = 00000000
[220] = 00000000        [224] = 00000000        [228] = 00000000        [22c] = 00000000
[230] = 00000000        [234] = 00000000        [238] = 00000000        [23c] = 00000000
[240] = 00000000        [244] = 00000000        [248] = 00000000        [24c] = 00000000
[250] = 00000000        [254] = 00000000        [258] = 00000000        [25c] = 00000000
[260] = 00000000        [264] = 00000000        [268] = 00000000        [26c] = 00000000
[270] = 00000000        [274] = 00000000        [278] = 00000000        [27c] = 00000000
[280] = 00002e62        [284] = 00000000        [288] = 0000166f        [28c] = 0000fbf9
[290] = 00000006        [294] = 0000001e        [298] = 0000fc00        [29c] = 00000000
[2a0] = 0000001d        [2a4] = 0000fc01        [2a8] = 0000f9fd        [2ac] = 000005f4
[2b0] = ffffffff        [2b4] = fcfed487        [2b8] = 029b99b3        [2bc] = 00000000
[2c0] = 00000000        [2c4] = 00000000        [2c8] = 00000000        [2cc] = 00000000
[2d0] = 00000000        [2d4] = 00000000        [2d8] = 00000000        [2dc] = 00000000
[2e0] = 00000000        [2e4] = 00000000        [2e8] = 00000000        [2ec] = 00000000
[2f0] = 00000000        [2f4] = 00000000        [2f8] = 00000000        [2fc] = 00000000
[300] = 00000000        [304] = 00000000        [308] = 00000000        [30c] = 00000000
[310] = 00000000        [314] = 00000000        [318] = 00000000        [31c] = 00000000
[320] = 00000000        [324] = 00000000        [328] = 00000000        [32c] = 00000000
[330] = 00000000        [334] = 00000000        [338] = 00000000        [33c] = 00000000
[340] = 00000000        [344] = 00000000        [348] = 00000000        [34c] = 00000000
[350] = 00000000        [354] = 00000000        [358] = 00000000        [35c] = 00000000
[360] = 00000000        [364] = 00000000        [368] = 00000000        [36c] = 00000000
[370] = 00000000        [374] = 00000000        [378] = 00000000        [37c] = 00000000
[380] = 00000000        [384] = 00000000        [388] = 00000000        [38c] = 00000003
[390] = 00000003        [394] = 00000000        [398] = 00000000        [39c] = 00000000
[3a0] = 0e0e0e0e        [3a4] = 00000000        [3a8] = 00000000        [3ac] = 00000000
[3b0] = 00000000        [3b4] = 00000000        [3b8] = 00000300        [3bc] = 00000000
[3c0] = 00000000        [3c4] = 00000000        [3c8] = 00000000        [3cc] = 00000000
[3d0] = 00000000        [3d4] = 00000000        [3d8] = 00000000        [3dc] = 80000000
[3e0] = 00000000        [3e4] = 00000000        [3e8] = 00000000        [3ec] = 00000000
[3f0] = 00000000        [3f4] = 00000000        [3f8] = 00000000        [3fc] = 00000000
[600] = 0e141985        [604] = 00040113        [608] = 000000e0        [60c] = 00090468
[610] = 00000000        [614] = 03200400        [618] = c20008da        [61c] = 5d000000
[620] = 00000000        [624] = c20008da        [628] = 61000000        [62c] = 00000000
[630] = c20008da        [634] = 65000000        [638] = 00000000        [63c] = 00000000
[640] = 00000230        [644] = 00000000        [648] = c2005ab2        [64c] = 00000000
[650] = 00000000        [654] = 00000000        [658] = 00000000        [65c] = 00000000
=============================================

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

In my case, removing the SIM card fixed it

I tried removing sim card , LED on network is now connected but not able to login on 192.168.1.1

How to discharge the board ?