[U-Boot] [U-boot] the first 0x20 bytes in u-boot.bin

Hi, Albert:
I am studying 2014.07 release u-boot package.
I found u-boot.bin's first bytes were not code in start.S .
Taken for compling smdkv310 as an example:
The compiled u-boot.bin's first 0x20 bytes were:
18 F0 9F E5 18 F0 9F E5 18 F0 9F E5 18 F0 9F E5
18 F0 9F E5 18 F0 9F E5 18 F0 9F E5 18 F0 9F E5
......
So, Is it equal to "ldr pc, [pc,#0x18]" ?
Best wishes,

On Thu, Jul 31, 2014 at 5:24 AM, TigerLiu@via-alliance.com wrote:
Hi, Albert:
I am studying 2014.07 release u-boot package.
I found u-boot.bin's first bytes were not code in start.S .
Taken for compling smdkv310 as an example:
The compiled u-boot.bin's first 0x20 bytes were:
18 F0 9F E5 18 F0 9F E5 18 F0 9F E5 18 F0 9F E5
18 F0 9F E5 18 F0 9F E5 18 F0 9F E5 18 F0 9F E5
......
So, Is it equal to "ldr pc, [pc,#0x18]" ?
Hard to say. Perhaps.
You should study the linker script (*.lds) for this board. It is likely that the code you are seeing is the reset vector.
jdl

Hi,
On Thu, Jul 31, 2014 at 12:24 PM, TigerLiu@via-alliance.com wrote:
Hi, Albert:
I am studying 2014.07 release u-boot package.
I found u-boot.bin's first bytes were not code in start.S .
For ARM processors, it's in arch/arm/lib/vectors.S.
Regards, Christian
Taken for compling smdkv310 as an example:
The compiled u-boot.bin's first 0x20 bytes were:
18 F0 9F E5 18 F0 9F E5 18 F0 9F E5 18 F0 9F E5
18 F0 9F E5 18 F0 9F E5 18 F0 9F E5 18 F0 9F E5
......
So, Is it equal to "ldr pc, [pc,#0x18]" ?
participants (3)
-
Christian Riesch
-
Jon Loeliger
-
TigerLiuļ¼ via-alliance.com