public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] One basic U-boot question
@ 2012-12-12  8:11 Martin Peevski
  2012-12-12 21:36 ` Scott Wood
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Peevski @ 2012-12-12  8:11 UTC (permalink / raw)
  To: u-boot

     Hello, I have the following question. It is about the adresses 
where the U-boot and  Linux Kernel are copyed in the SDRAM from NAND.

     In my board config file I have:
     #define CONFIG_SYS_LOAD_ADDR        0x22000000    /* load address */
     Is that the load address of the U-boot?

     Also where is defined the load address of the Kernel because may be 
I need to leave more free space about the Kernel and RootFS?

     Thanks in advance!
     Martin Peevski

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

* [U-Boot] One basic U-boot question
  2012-12-12  8:11 [U-Boot] One basic U-boot question Martin Peevski
@ 2012-12-12 21:36 ` Scott Wood
  0 siblings, 0 replies; 2+ messages in thread
From: Scott Wood @ 2012-12-12 21:36 UTC (permalink / raw)
  To: u-boot

On 12/12/2012 02:11:46 AM, Martin Peevski wrote:
>     Hello, I have the following question. It is about the adresses  
> where the U-boot and  Linux Kernel are copyed in the SDRAM from NAND.
> 
>     In my board config file I have:
>     #define CONFIG_SYS_LOAD_ADDR        0x22000000    /* load address  
> */
>     Is that the load address of the U-boot?

No, it's the default address to load the kernel (or other image).  Note  
that this is where the uImage goes, not where the kernel gets  
uncompressed to (which is specified in the uImage header).

U-Boot is loaded near the top of SDRAM (or the portion of SDRAM that  
U-Boot has mapped).

BTW, you should use a subject line that is more specific to your  
question, such as "What is CONFIG_SYS_LOAD_ADDR?" or "Where does the  
kernel get loaded with <command name>?".  "One basic U-Boot question"  
doesn't give any clues to people skimming the list to see if it's the  
sort of question they might have the answer to.

>     Also where is defined the load address of the Kernel because may  
> be I need to leave more free space about the Kernel and RootFS?

CONFIG_SYS_LOAD_ADDR is the default, but you can and should override it  
in the arguments to the command doing the loading.

-Scott

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

end of thread, other threads:[~2012-12-12 21:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-12  8:11 [U-Boot] One basic U-boot question Martin Peevski
2012-12-12 21:36 ` Scott Wood

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