Custom board i.MX6ULL wrong DRAM size in U-Boot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Custom board i.MX6ULL wrong DRAM size in U-Boot

Jump to solution
1,568 Views
alampret
Contributor I

Hello everyone,

I need support regarding DRAM size in U-Boot for my custom i.MX6ULL board.

I'm using a MT41K64M16 as DRAM with 1GB, but U-Boot shows just 128MB.

I've used I.MX6UL_DDR3_Script_Aid_V0.02 for configuration. Is there a difference between UL and ULL or am I able to use this script for ULL too?

Stresstest works fine with 128MB RAM. I tried increasing MMDC0_MDCTL to 0x03180000 and U-Boot showed 256MiB DRAM, but stress test failed.

My configuration (.cfg file of my board):

/* MMDC */
DATA 4 0x021b0004 0x0002002D // MMDC0_MDPDC
DATA 4 0x021b0008 0x1B333030 // MMDC0_MDOTC
DATA 4 0x021b000c 0x2B2F5333 // MMDC0_MDCFG0
DATA 4 0x021b0010 0xB68D0B63 // MMDC0_MDCFG1
DATA 4 0x021b0014 0x01FF00DB // MMDC0_MDCFG2

DATA 4 0x021b0018 0x00211740 // MMDC0_MDMISC
DATA 4 0x021b001c 0x00008000 // MMDC0_MDSCR
DATA 4 0x021b002c 0x000026D2 // MMDC0_MDRWD
DATA 4 0x021b0030 0x002F1023 // MMDC0_MDOR
DATA 4 0x021b0040 0x00000043 // Chan0 CS0_END
DATA 4 0x021b0000 0x82180000 // MMDC0_MDCTL

DATA 4 0x021b0890 0x00400a38 // MPPDCMPR2

Thank you very much for your help!

Best regards,

Alexander

Labels (2)
0 Kudos
Reply
1 Solution
1,045 Views
Yuri
NXP Employee
NXP Employee

Hello,

  Please try using  i.MX6ULL DDR Aid tool

i.MX6ULL_DDR3_Script_Aid 

Also, please refer to the following :

DRAM Customization on i.MX6x 

 

Have a great day,

Yuri

 

------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer

button. Thank you!

View solution in original post

0 Kudos
Reply
2 Replies
1,046 Views
Yuri
NXP Employee
NXP Employee

Hello,

  Please try using  i.MX6ULL DDR Aid tool

i.MX6ULL_DDR3_Script_Aid 

Also, please refer to the following :

DRAM Customization on i.MX6x 

 

Have a great day,

Yuri

 

------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer

button. Thank you!

0 Kudos
Reply
1,045 Views
alampret
Contributor I

Thank you very much for the correct link.

My fault, I mixed up Gb and GB

0 Kudos
Reply