All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Incorrect memtest range on MPC8536DS
@ 2009-08-13 16:13 Felix Radensky
  2009-08-13 17:57 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Felix Radensky @ 2009-08-13 16:13 UTC (permalink / raw)
  To: u-boot

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 ?

Thanks.

Felix.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Incorrect memtest range on MPC8536DS
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2009-08-13 17:57 UTC (permalink / raw)
  To: u-boot

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.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
core error - bus dumped

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Incorrect memtest range on MPC8536DS
  2009-08-13 17:57 ` Wolfgang Denk
@ 2009-08-15 11:00   ` Felix Radensky
  2009-08-15 11:18     ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Felix Radensky @ 2009-08-15 11:00 UTC (permalink / raw)
  To: u-boot

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Incorrect memtest range on MPC8536DS
  2009-08-15 11:00   ` Felix Radensky
@ 2009-08-15 11:18     ` Wolfgang Denk
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2009-08-15 11:18 UTC (permalink / raw)
  To: u-boot

Dear Felix Radensky,

In message <4A869531.2090706@embedded-sol.com> you wrote:
> 
> Thanks for clarifying. This platform has 512MB of RAM.
> The stack pointer is at 0x1fe2df48. Test works fine with upper
> limit set to 0x1fd2df48.

I recommend to set CONFIG_SYS_MEMTEST_END to 0x1F000000, then.

> 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:

Indeed. The exception vectors are located there, and as soon as you
overwrite these the next timer interrupt will crash your system.

> Can you (or Kumar) please explain what's going on here ?

Set CONFIG_SYS_MEMTEST_START to 0x0010000 or so.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The only perfect science is hind-sight.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-08-15 11:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2009-08-15 11:18     ` Wolfgang Denk

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.