[U-Boot-Users] mtest

Hi,
While experiencing some trouble with u-boot port to my custom PXA255 board I decided to run some memory tests. I used mtest in u-boot and got the following results: => mtest Pattern 00000000 Writing... ^H^H^H^H^H^H^H^H^H^HReading... Mem error @ 0xA3EDBAEC: found A3EDBB0C, expected 00F76EBB
Mem error @ 0xA3EDBAF0: found A3EDBAFC, expected 00F76EBC
Mem error @ 0xA3EDBAF4: found A3F1227C, expected 00F76EBD [...]
Mem error @ 0xA3EDBC50: found A3EDBC48, expected 00F76F14
Mem error @ 0xA3EDBC54: found 00F76F14, expected 00F76F15 Pattern FFFFFFFF Writing... ^H^H^H^H^H^H^H^H^H^Hÿ ^^^^^^ HANG! Memory test finds some errors during write/read 0x00000000 pattern and it hangs before it can read back 0xFFFFFFFF. I suppose this is not the expected board behaviour.
Has anybody any idea what is going on ? Is this a config error ? (I should probably check the setting in configs/board.h)
regards, himba

In message 406D1751.1040304@email.si you wrote:
to my custom PXA255 board I decided to run some memory tests. I used mtest in u-boot and got the following results: => mtest Pattern 00000000 Writing... ^H^H^H^H^H^H^H^H^H^HReading... Mem error @ 0xA3EDBAEC: found A3EDBB0C, expected 00F76EBB
Mem error @ 0xA3EDBAF0: found A3EDBAFC, expected 00F76EBC
...
Memory test finds some errors during write/read 0x00000000 pattern and it hangs before it can read back 0xFFFFFFFF. I suppose this is not the expected board behaviour.
Well, it IS the expected behaviour in case of memory problem, when the behaviour of the system is completely undefined.
Has anybody any idea what is going on ?
You have memory problems.
Is this a config error ? (I should probably check the setting in configs/board.h)
Ooops??? I think it is pretty clear what it means when a memory test returns memory errors. To me this means that either the memory test or the memory itself is broken. Since the test is working fine on many other boards it's probably your hardware.
Best regards,
Wolfgang Denk

Wolfgang Denk wrote: ...
Ooops??? I think it is pretty clear what it means when a memory test returns memory errors. To me this means that either the memory test or the memory itself is broken. Since the test is working fine on many other boards it's probably your hardware.
Yes it is memory error - but can it be fixed with PXA memory register settings (eg. access time, refresh, other mem. flags) or is it that hardware is faulty (schematics or PCB routing) ?
Best regards,
Wolfgang Denk
regards, himba

In message 406D2E60.4050008@email.si you wrote:
Yes it is memory error - but can it be fixed with PXA memory register settings (eg. access time, refresh, other mem. flags) or is it that hardware is faulty (schematics or PCB routing) ?
Sorry, my crystal ball is in dire need of an ectoplasmic upgrade. :-)
Best regards,
Wolfgang Denk

Wolfgang Denk wrote:
Sorry, my crystal ball is in dire need of an ectoplasmic upgrade. :-)
:)
OK, I did some more research - my SDRAM config is PHYS_SDRAM_1 0xa0000000 PHYS_SDRAM_1_SIZE 0x04000000 CFG_DRAM_BASE 0xa0000000 CFG_DRAM_SIZE 0x04000000
those memory errors mentioned in earlier post do not appear if I change CFG_MEMTEST_END from 0xa3efffff (- 63M) to 0xa3dfffff (- 62M). CFG_MEMTEST_START = 0xa0100000 (1M -). In config.mk TEXT_BASE = 0xa3f00000.
at bootup uboot displays U-Boot code: A3F00000 -> A3F177B8 BSS: -> A3F1BAD8
Is there some uboot relevant stuff between 0xa3efffff - 0xa3dfffff that I run over when doing mtest on all 63Mb? Code and stack seem to be safe.
regards, himba

In message 406D56A5.2090102@email.si you wrote:
at bootup uboot displays U-Boot code: A3F00000 -> A3F177B8 BSS: -> A3F1BAD8
Is there some uboot relevant stuff between 0xa3efffff - 0xa3dfffff that I run over when doing mtest on all 63Mb? Code and stack seem to be safe.
What do you think where the stack and the malloc arena is in your configuration?
Best regards,
Wolfgang Denk

Wolfgang Denk wrote:
In message 406D56A5.2090102@email.si you wrote:
at bootup uboot displays U-Boot code: A3F00000 -> A3F177B8 BSS: -> A3F1BAD8
Is there some uboot relevant stuff between 0xa3efffff - 0xa3dfffff that I run over when doing mtest on all 63Mb? Code and stack seem to be safe.
What do you think where the stack and the malloc arena is in your configuration?
I thought code starts at _TEXT_BASE (0xA3F00000) and stack is from 0xA3F177B8 to 0xA3F1BAD8 (u-boot header display suggested so). Your question was in place and I checked the start.S once again to find out that after reset and relocate we setup stack below _TEXT_BASE and not above. I corrected the CFG_MEMTEST_END to be just below malloc and stack.
Thanks!
regards, himba
participants (2)
-
himbA
-
Wolfgang Denk