This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM4378: U-Boot hangs when full DDR memory is tested using mtest

Part Number: AM4378

Hi TI,

We are trying to test the full DDR RAM in u-boot using mtest command. We have defined the memtest start address and end address in in u-boot/include/configs/<our board>.h as

#define CONFIG_SYS_MEMTEST_START  0x80000000

#define CONFIG_SYS_MEMTEST_END       0x9fffffff

Our DDR total size is 512 MB. And EMIF start address is  0x80000000 and end address is 0x9fffffff ( START_ADDRESS + (512*1024*1024)). 

When we run mtest command at u-boot prompt to test full DDR memory, uboot hangs when we execute,

=> mtest 0x80000000 0x9FFFFFFF 0xAA55AA55 1
Testing 80000000 ... 9fffffff:
Pattern AA55AA55 Writing...

 But we were able to do testing without the hanging issue upto 0x9d000000 end address,

=> mtest 0x80000000 0x9D000000 0xaa55aa55 1
Testing 80000000 ... 9d000000:
Pattern AA55AA55 Writing... Reading...Tested 1 iteration(s) with 0 errors.

Whether any other configurations need to be checked/included? Please help us to test the full DDR size using mtest command in u-boot.

Regards,

Monish P

  • Hi Monish,
    Since u-boot is running from DDR itself. It is a bit hard to test full range of DDR using <mtest> cmd @u-boot.
    Please see comments in <u-boot/doc/README.memory-test>.
    There's also kernel level <memtester> utility, but again its usage depends on kernel memory map, reserved memory etc...
    pyropus.ca/.../
    Best,
    -Hong