public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] CONFIG_MEM_INIT_VALUE == 0xDeadBeef
@ 2007-07-17 17:22 robert lazarski
  2007-07-17 17:40 ` Jon Loeliger
  0 siblings, 1 reply; 5+ messages in thread
From: robert lazarski @ 2007-07-17 17:22 UTC (permalink / raw)
  To: u-boot

Hi all, is this an english language pun ?

#define CONFIG_MEM_INIT_VALUE            0xDeadBeef

I see that the #DEFINE is used in SPD:

cpu/mpc85xx/spd_sdram.c:      ddr->sdram_data_init = CONFIG_MEM_INIT_VALUE;

I'm porting my board which has the mpc8548e and the same exact DDR2
that the CDS reference board has. I'm using SPD in my code. The CDS
board has DeadBeef assigned to  CONFIG_MEM_INIT_VALUE. I don't have a
CDS board to test. My board will arrive in a few weeks - I'm trying to
prepare the best I can. Should I leave CONFIG_MEM_INIT_VALUE as is or
will this make my board DeadBeef ?

Thanks,
Robert

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

* [U-Boot-Users] CONFIG_MEM_INIT_VALUE == 0xDeadBeef
  2007-07-17 17:22 [U-Boot-Users] CONFIG_MEM_INIT_VALUE == 0xDeadBeef robert lazarski
@ 2007-07-17 17:40 ` Jon Loeliger
  2007-07-17 18:36   ` David Frascone
  0 siblings, 1 reply; 5+ messages in thread
From: Jon Loeliger @ 2007-07-17 17:40 UTC (permalink / raw)
  To: u-boot

On Tue, 2007-07-17 at 12:22, robert lazarski wrote:
> Hi all,

OK, enough of this "all" pretense! :-)  You're talking to me...

>  is this an english language pun ?
> 
> #define CONFIG_MEM_INIT_VALUE            0xDeadBeef

*sigh*  Guilty as charged, I'm afraid.

> I see that the #DEFINE is used in SPD:
> 
> cpu/mpc85xx/spd_sdram.c:      ddr->sdram_data_init = CONFIG_MEM_INIT_VALUE;
> 
> I'm porting my board which has the mpc8548e and the same exact DDR2
> that the CDS reference board has. I'm using SPD in my code. The CDS
> board has DeadBeef assigned to  CONFIG_MEM_INIT_VALUE. I don't have a
> CDS board to test. My board will arrive in a few weeks - I'm trying to
> prepare the best I can. Should I leave CONFIG_MEM_INIT_VALUE as is or
> will this make my board DeadBeef ?

The actual value is not important.  It is nominally a
non-zero, non-FF but known "poison" value.  It is merely
used to initialize memory to a known value by using the
built-in DDR controller (CONFIG_ECC_INIT_VIA_DDRCONTROLLER).
You don't have to do so if you don't want to, of course.

jdl

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

* [U-Boot-Users] CONFIG_MEM_INIT_VALUE == 0xDeadBeef
  2007-07-17 17:40 ` Jon Loeliger
@ 2007-07-17 18:36   ` David Frascone
  2007-07-17 19:00     ` Jon Loeliger
  0 siblings, 1 reply; 5+ messages in thread
From: David Frascone @ 2007-07-17 18:36 UTC (permalink / raw)
  To: u-boot

I love fun MAGIC's.  I usually use one of the following:

0xDeadBeef
0xBaadFood
0xDeadBabe
0xF00BaaF00

-Dave

On 7/17/07, Jon Loeliger <jdl@freescale.com> wrote:
>
> On Tue, 2007-07-17 at 12:22, robert lazarski wrote:
> > Hi all,
>
> OK, enough of this "all" pretense! :-)  You're talking to me...
>
> >  is this an english language pun ?
> >
> > #define CONFIG_MEM_INIT_VALUE            0xDeadBeef
>
> *sigh*  Guilty as charged, I'm afraid.
>
> > I see that the #DEFINE is used in SPD:
> >
> > cpu/mpc85xx/spd_sdram.c:      ddr->sdram_data_init =
> CONFIG_MEM_INIT_VALUE;
> >
> > I'm porting my board which has the mpc8548e and the same exact DDR2
> > that the CDS reference board has. I'm using SPD in my code. The CDS
> > board has DeadBeef assigned to  CONFIG_MEM_INIT_VALUE. I don't have a
> > CDS board to test. My board will arrive in a few weeks - I'm trying to
> > prepare the best I can. Should I leave CONFIG_MEM_INIT_VALUE as is or
> > will this make my board DeadBeef ?
>
> The actual value is not important.  It is nominally a
> non-zero, non-FF but known "poison" value.  It is merely
> used to initialize memory to a known value by using the
> built-in DDR controller (CONFIG_ECC_INIT_VIA_DDRCONTROLLER).
> You don't have to do so if you don't want to, of course.
>
> jdl
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>



-- 
David Frascone

Philosophy: unintelligible answers to insoluble problems
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070717/0cacc448/attachment.htm 

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

* [U-Boot-Users] CONFIG_MEM_INIT_VALUE == 0xDeadBeef
  2007-07-17 18:36   ` David Frascone
@ 2007-07-17 19:00     ` Jon Loeliger
  2007-07-17 19:18       ` Scott Wood
  0 siblings, 1 reply; 5+ messages in thread
From: Jon Loeliger @ 2007-07-17 19:00 UTC (permalink / raw)
  To: u-boot

On Tue, 2007-07-17 at 13:36, David Frascone wrote:
> I love fun MAGIC's.  I usually use one of the following:
> 
> 0xDeadBeef
> 0xBaadFood
> 0xDeadBabe
> 0xF00BaaF00
> 
> -Dave

Now don't forget the ever-popular 0xCafeBabe.
And watch out for the 0xCafeD00d too!

jdl

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

* [U-Boot-Users] CONFIG_MEM_INIT_VALUE == 0xDeadBeef
  2007-07-17 19:00     ` Jon Loeliger
@ 2007-07-17 19:18       ` Scott Wood
  0 siblings, 0 replies; 5+ messages in thread
From: Scott Wood @ 2007-07-17 19:18 UTC (permalink / raw)
  To: u-boot

Jon Loeliger wrote:
> On Tue, 2007-07-17 at 13:36, David Frascone wrote:
> 
>>I love fun MAGIC's.  I usually use one of the following:
>>
>>0xDeadBeef
>>0xBaadFood
>>0xDeadBabe
>>0xF00BaaF00
>>
>>-Dave
> 
> 
> Now don't forget the ever-popular 0xCafeBabe.
> And watch out for the 0xCafeD00d too!

What, no 0xdeadc0de?  Of course, one can also 0xfeedface some 0xc0cac01a 
and 0x31337a1e.

-Scott

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

end of thread, other threads:[~2007-07-17 19:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-17 17:22 [U-Boot-Users] CONFIG_MEM_INIT_VALUE == 0xDeadBeef robert lazarski
2007-07-17 17:40 ` Jon Loeliger
2007-07-17 18:36   ` David Frascone
2007-07-17 19:00     ` Jon Loeliger
2007-07-17 19:18       ` Scott Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox