[Top][All Lists]

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

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

From: Jakob Bohm
Subject: Re: [Qemu-discuss] qemu -kernel u-boot.bin
Date: Wed, 11 Jun 2014 15:34:34 +0200
User-agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

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 0x60000018 (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.


Jakob Bohm, CIO, Partner, WiseMo A/S.  http://www.wisemo.com
Transformervej 29, 2730 Herlev, Denmark.  Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
WiseMo - Remote Service Management for PCs, Phones and Embedded

reply via email to

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