[U-Boot] Information regarding load address, execute address and image load address

Hebbar, Gururaja gururaja.hebbar at ti.com
Wed Jun 15 12:54:24 CEST 2011


Hi,

I need one clarification regarding load address, entry point inside the Kernel image & the address to where we load the image.

Assume, the image header is as below.

   Image Name:   Linux-2.6.38-10700-g846a497
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2064396 Bytes = 2 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK

And I load the image using loadb to address 0x80008000. 

Will this work?. Because here Image->load_address == Load_address for u-boot. 
Now u-boot considers this as XIP Image and will not move os data which actually will be at 0x80008040 to 0x80008000

Please correct me if I am wrong

I have attached the console output for reference.

Thanks & regards
Gururaja


CON_SOLE#iminfo

## Checking Image at 80008000 ...
   Legacy image found
   Image Name:   Linux-2.6.38-10700-g846a497
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2064396 Bytes = 2 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK

CON_SOLE #bootm 0x80008000
*  kernel: cmdline image address = 0x80008000
Boot reached stage 1
## Booting kernel from Legacy Image at 80008000 ...
Boot reached stage 2
Boot reached stage 3
   Image Name:   Linux-2.6.38-10700-g846a497
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2064396 Bytes = 2 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
Boot reached stage 4
Boot reached stage 5
Boot reached stage 6
   kernel data at 0x80008040, len = 0x001f800c (2064396)
Boot reached stage 14
## No init Ramdisk
   ramdisk start = 0x00000000, ramdisk end = 0x00000000
   XIP Kernel Image ... OK
OK
   kernel loaded at 0x80008000, end = 0x8020000c
Boot reached stage 7
images.os.start = 0x80008000, images.os.end = 0x8020004c
images.os.load = 0x80008000, load_end = 0x8020000c
Boot reached stage 8
Boot reached stage 15
## Transferring control to Linux (at address 80008000) ...

Starting kernel ...


More information about the U-Boot mailing list