Skip to contentSkip to conversation

Issue regarding entry point address

U-Boot-Users Swapnil Ashok Narkhede 2 participants 2 messages Sep 16, 2005 – Sep 18, 2005

lore
Share & tools
lore
#0 lore raw

Excerpts from previous posts

Query

Quoted 6 lines

Using the uImage in RAM, when
i try to execute it using bootm from
the RAM. i get the following output

o/p>>>
SWAP$ bootm 0xa0800000

^^^^^^^^^^^^^^^^^^^^^^^^

Quoted 5 lines

## Booting image at a0800000 ...

   Image Name:   Linux Kernel Image
   Image Type:   ARM Linux Kernel Image (gzip compressed)
   Data Size:    771905 Bytes = 753.8 kB

Load Address: a0800000

^^^^^^^^^^^^^^^^^^^^^^^^^^^

Reply

Quoted 2 lines
Quoted 2 lines

Download address and load address must differt at by least the size of the uncompressed kernel size.

The difference between the compressed and uncompressed image is 40 bytes. So i tried to load the image at 0xa0800000 and tried to give entry point address as 0xa0800040 but then i get BAD MAGIC ERROR.
Which means there is not proper image at that address (or rather, that is not the proper start of the image file). So how do i look up for the proper load address and entry point address.
As per the CFG_LOAD_ADDR parameter in /include/configs/pxa255idp.h load address should be 0xa0800000
but how do i figure out,what is my entry point address. Please help me resolve this error.

Regards,
Swapnil Narkhede
Mob:- 0432025023
Email:- s3092131 at student.rmit.edu.au School of Computer Science and Information Technology RMIT University, Melbourne

#1 lore raw
Quoted 7 lines · In message <[email protected]> you wrote:
Quoted 3 lines
Quoted 3 lines

Download address and load address must differt at by least the size of the uncompressed kernel size.

The difference between the compressed and uncompressed image is 40 bytes. So i tried to load the image at 0xa0800000 and tried

You must be joking. If your compressed image is 750 KiB, then the uncompressed image will be around 2 MiB. Which means that loadt address and download address mut be at least 2 MB apart from each other.

Quoted 2 lines

to give entry point address as 0xa0800040 but then i get BAD MAGIC ERROR.

I really don't know what you expected.

Quoted 2 lines

So how do i look up for the proper load address and entry point address.

You cannot "look it up". You define a memory map for your system. You configure the Linux kernel according to this memory map. You enter the corresponding values for load address and antry point when running the mkimage tool. Then you add at least 2 MB (better a bit more) to your load address and use this as download address in U-Boot.

Quoted 2 lines

As per the CFG_LOAD_ADDR parameter in /include/configs/pxa255idp.h load address should be 0xa0800000

This is a default setting which may or may not be correct for your board. Also note that this is the download address, not the "load address" parameter for mkimage.

Quoted 1 line

but how do i figure out,what is my entry point address.

By looking at your definition of your kernel's memory map.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
When the bosses talk about improving  productivity,  they  are  never
talking about themselves.