AnsweredAssumed Answered

kernel boot problems with iMX6D running with 16bit DDR

Question asked by Ed Sutter on Jan 27, 2014
Latest reply on Mar 21, 2014 by Ed Sutter

I've built and run with linux-3.12 mainline and it actually runs (with quirks) on my custom hardware.

Now, to get over some of those quirks, I've stepped back to using the code from git.freescale.com

(imx_3.0.35_4.1.0).  Now I see nothing at bootup after the initial decompression message...


Uncompressing Linux... done, booting the kernel.

 

This obviously works fine when I use the SABRESD eval board ( and note I was able to boot 3.12 on my hardware to a linux command prompt.

 

My custom hardware is running with an imx6D and only x16 DDR memory at the moment.

When I dump the log_buffer (I'm able to soft reset my board when it hangs), I see this output:

 

U-Boot > md.b 10afdcd8 512

10afdcd8: 3c 35 3e 4c 69 6e 75 78 20 76 65 72 73 69 6f 6e    <5>Linux version

10afdce8: 20 33 2e 30 2e 33 35 2d 30 33 30 35 33 2d 67 38     3.0.35-03053-g8

10afdcf8: 64 32 62 31 36 39 2d 64 69 72 74 79 20 28 65 6c    d2b169-dirty (el

10afdd08: 73 40 65 6c 73 6c 69 6e 75 78 31 29 20 28 67 63    s@elslinux1) (gc

10afdd18: 63 20 76 65 72 73 69 6f 6e 20 34 2e 37 2e 33 20    c version 4.7.3

10afdd28: 28 53 6f 75 72 63 65 72 79 20 43 6f 64 65 42 65    (Sourcery CodeBe

10afdd38: 6e 63 68 20 4c 69 74 65 20 32 30 31 33 2e 30 35    nch Lite 2013.05

10afdd48: 2d 32 34 29 20 29 20 23 39 20 53 4d 50 20 50 52    -24) ) #9 SMP PR

10afdd58: 45 45 4d 50 54 20 4d 6f 6e 20 4a 61 6e 20 32 37    EEMPT Mon Jan 27

10afdd68: 20 31 34 3a 32 33 3a 33 38 20 45 53 54 20 32 30     14:23:38 EST 20

10afdd78: 31 34 0a 3c 31 3e 43 50 00 00 00 00 00 00 00 00    14.<1>CP........

10afdd88: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afdd98: 00 00 00 00 00 00 00 00 76 69 73 69 6f 6e 20 31    ........vision 1

10afdda8: 30 20 28 41 52 4d 76 37 29 2c 20 63 72 3d 31 30    0 (ARMv7), cr=10

10afddb8: 63 35 33 63 37 64 0a 3c 00 00 00 00 00 00 00 00    c53c7d.<........

10afddc8: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afddd8: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afdde8: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afddf8: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afde08: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afde18: 00 00 00 00 00 00 00 00 51 75 61 64 2f 44 75 61    ........Quad/Dua

10afde28: 6c 4c 69 74 65 2f 53 6f 6c 6f 20 53 61 62 72 65    lLite/Solo Sabre

10afde38: 2d 53 44 20 42 6f 61 72 64 0a 00 00 00 00 00 00    -SD Board.......

10afde48: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afde58: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afde68: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afde78: 00 00 00 00 00 00 00 00 63 69 6e 67 3a 20 45 52    ........cing: ER

10afde88: 52 4f 52 3a 20 46 61 69 6c 65 64 20 74 6f 20 61    ROR: Failed to a

10afde98: 6c 6c 6f 63 61 74 65 20 00 00 00 00 00 00 00 00    llocate ........

10afdea8: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afdeb8: 00 00 00 00 00 00 00 00 2e 0a 3c 30 3e 0a 3c 31    ..........<0>.<1

10afdec8: 3e 5b 3c 38 30 30 34 63 39 34 63 3e 5d 20 28 75    >[<8004c94c>] (u

10afded8: 6e 77 69 6e 64 5f 62 61 63 6b 74 72 61 63 65 2b    nwind_backtrace+

10afdee8: 30 78 30 2f 30 78 66 38 29 20 66 72 6f 6d 20 5b    0x0/0xf8) from [

10afdef8: 3c 38 30 35 30 66 32 62 00 00 00 00 00 00 00 00    <8050f2b........

10afdf08: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afdf18: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afdf28: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afdf38: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afdf48: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afdf58: 00 00 00 00 00 00 00 00 2b 30 78 33 34 2f 30 78    ........+0x34/0x

10afdf68: 33 63 29 0a 3c 31 3e 5b 3c 38 30 30 31 61 62 61    3c).<1>[<8001aba

10afdf78: 63 3e 5d 20 28 6d 65 6d 62 6c 6f 63 6b 5f 61 6c    c>] (memblock_al

10afdf88: 6c 6f 63 5f 62 61 73 65 2b 30 78 33 34 2f 30 78    loc_base+0x34/0x

10afdf98: 33 63 29 20 66 72 6f 6d 00 00 00 00 00 00 00 00    3c) from........

10afdfa8: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afdfb8: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afdfc8: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afdfd8: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afdfe8: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afdff8: 00 00 00 00 00 00 00 00 66 72 6f 6d 20 5b 3c 38    ........from [<8

10afe008: 30 30 30 61 64 30 34 3e 5d 20 28 61 72 6d 5f 6d    000ad04>] (arm_m

10afe018: 65 6d 62 6c 6f 63 6b 5f 00 00 00 00 00 00 00 00    emblock_........

10afe028: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe038: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe048: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe058: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe068: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe078: 00 00 00 00 00 00 00 00 63 2f 30 78 36 65 63 29    ........c/0x6ec)

10afe088: 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe098: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe0a8: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe0b8: 00 00 00 00 00 00 00 00 34 3e 5d 20 28 73 74 61    ........4>] (sta

10afe0c8: 72 74 5f 6b 65 72 6e 65 6c 2b 30 78 39 30 2f 30    rt_kernel+0x90/0

10afe0d8: 78 32 39 34 29 0a 00 00 00 00 00 00 00 00 00 00    x294)...........

10afe0e8: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe0f8: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe108: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe118: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe128: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe138: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe148: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe158: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe168: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe178: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe188: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe198: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe1a8: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe1b8: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe1c8: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe1d8: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

10afe1e8: 00 00 


Any thoughts on what might be going on here? 

I'm guessing it has something to do with the fact that I have x16 DDR right now;

but I can't point to anything specific in the kernel.

Tx 


More information (EDIT)...

I rebuilt the kernel with i/d cache disabled and the log buffer is more sane...


Linux version 3.0.35-03053-g8d2b169-dirty (els@elslinux1) (gcc version 4.7.3 (Sourcery CodeBench Lite 2013.05-24) )#

14 SMP PREEMPT Mon Jan 27 16:17:21 EST 2014.

CPU: ARM v7 Processor [41 2fc09a] revision 10 (ARMv7), cr= 10c52c79.

CPU: VIPT nonaliasin g data cache, VI PT aliasing inst ruction cache.

Machine: Freescale i.MX 6Quad/D ualLite/Solo Sab re-SD Board.

debug: ignoring loglevel setting. .

Kernel panic - not syncing: ERROR: Failed to allocate 0x8000000 bytes below 0x40000000...

[<8004c94c>] (unwind_backtrac e+0x0/0xf8) from [<8050f2b8>] (p anic+0x70/0x190) .

[<8050f2b8>] (panic+0x70/0x1 90) from [<8001abd4>] (memblock_alloc_base+0x34/ 0x3c).

[<8001abd4>] (memblock_alloc_base+0x34/0x3c) from [<8000f78c>] (mx6q_sabresd_reserve+0x54/0x68).

[<8000f78c>] (mx6q_sabresd_reserve+0x54/0x68) from [<8000ad04>] (arm_memblock_init+0x90/0xa0).

[<8000ad04>] (arm_memblock_init+0x90/0xa0) from [<80009e28>] (setup_arch+0x4ac/0x6ec).

[<80009e28>] (setup_arch+0x4ac/0x6ec) from[<800086c4>] (start_kernel+0x90/0x294).

[<800086c4>] (start_kernel+0x90/0x294 from [<10008040>] (0x10008040)

               

 

Message was edited by: Ed Sutter

Outcomes