[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] qemu -kernel u-boot.bin

From: Dale R. Worley
Subject: Re: [Qemu-discuss] qemu -kernel u-boot.bin
Date: Wed, 11 Jun 2014 15:51:54 -0400

> From: Jakob Bohm <address@hidden>
> On 6/10/2014 6:57 PM, Matwey V. Kornilov wrote:
> > 2014-06-10 20:54 GMT+04:00 Dale R. Worley <address@hidden>:
> >>>     │0x6000000c <_start+12>                  ldr    pc, [pc, #6397080]
> >>>      ; 0x60000018 <_start+24>                         │
> >>
> >> That last instruction looks to me as if it is a Load Register into the
> >> PC, which will cause the next instruction to be fetched from whatever
> >> the new value of PC points to.
> >
> > And this value is no way 0x10000.
> Actually, this instruction reads the goto address from memory at
> address 0x60000018c (or more precisely: the address you loaded it at +
> 0x00000018).  So offset 0x00000018 into the u-boot image is probably
> 0x60010000, and if that is the wrong place, then the load address
> was wrong.
> Maybe the initial ELF relocation is being done in an unexpected way,
> given that u-boot is meant to be loaded directly from flash without
> the benefit of an ELF loader loading before it.

The critical point is "And this value is no way 0x10000".  The
question is "What value is in 0x60000018 at the moment the "ldr pc" is


reply via email to

[Prev in Thread] Current Thread [Next in Thread]