From: Felix Radensky <felix@embedded-sol.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Incorrect memtest range on MPC8536DS
Date: Sat, 15 Aug 2009 14:00:01 +0300 [thread overview]
Message-ID: <4A869531.2090706@embedded-sol.com> (raw)
In-Reply-To: <20090813175704.BDFC6833DBD2@gemini.denx.de>
Hi, Wolfgang
Wolfgang Denk wrote:
> Dear Felix Radensky,
>
> In message <4A843B9B.2000203@embedded-sol.com> you wrote:
>
>> Hi,
>>
>> If run without arguments, mtest hangs on MPC8536DS.
>> I guess this is because of the following definitions:
>>
>> #define CONFIG_SYS_MEMTEST_START 0x00000000
>> #define CONFIG_SYS_MEMTEST_END 0x7fffffff
>>
>> I was able to successfully run mtest on 0x00100000 - 0x10000000.
>>
>> What is the largest safe range for this platform ?
>>
>
> It depends on RAM size and stack usage. Usually 1 or 2 MB below stack
> base is safe enough.
>
Thanks for clarifying. This platform has 512MB of RAM.
The stack pointer is at 0x1fe2df48. Test works fine with upper
limit set to 0x1fd2df48.
For some reason I cannot set lower limit to 0x00000000.
The lowest working address is 0x00000a98. At 0x00000a97
the test hangs, and at 0x00000a96 I get the following crash:
IP: 1FF30000 XER: 20000000 LR: 1FF30000 REGS: 1fe2dbd0 TRAP: 0700 DAR:
00000000
MSR: 00001000 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 00
GPR00: 1FF30000 1FE2DCC0 1FE2DF64 1FE2DCD0 00000001 0000000C FFFFFFFF
00000000
GPR08: 1FF99715 0000398C FFFFFFFF 1FFB0120 48022084 5E36E3C4 1FFA9F00
00000000
GPR16: 1FF54880 1FF96508 00000000 1FF996F8 00001000 1FE2DCC0 00000000
1FF30000
GPR24: 1FF33AE8 00000A96 00000001 1FD2DF48 00000000 1FE35648 1FFAABE0
00000003
** Illegal Instruction **
Call backtrace:
1FF30000 1FF4A524 1FF56924 1FF5600C 1FF5618C 1FF58CEC 1FF33748
1FF315FC
Program Check Exception
### ERROR ### Please RESET the board ###
The faulting address (0x1FF30000) seems to be the relocation address, as the
following debug messages indicate:
Top of RAM usable for U-Boot at: 20000000
Reserving 805k for U-Boot at: 1ff30000
Reserving 1032k for malloc() at: 1fe2e000
Reserving 80 Bytes for Board Info at: 1fe2dfb0
Reserving 76 Bytes for Global Data at: 1fe2df64
Stack Pointer at: 1fe2df48
New Stack Pointer is: 1fe2df48
Now running in RAM - U-Boot at: 1ff30000
Can you (or Kumar) please explain what's going on here ?
Thanks a lot.
Felix.
next prev parent reply other threads:[~2009-08-15 11:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-13 16:13 [U-Boot] Incorrect memtest range on MPC8536DS Felix Radensky
2009-08-13 17:57 ` Wolfgang Denk
2009-08-15 11:00 ` Felix Radensky [this message]
2009-08-15 11:18 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A869531.2090706@embedded-sol.com \
--to=felix@embedded-sol.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.