U-Boot image Entry address

Ian Lepore ian at freebsd.org
Tue May 23 14:16:51 UTC 2017


On Tue, 2017-05-23 at 21:18 +0900, Mori Hiroki wrote:
> Hi
> 
> We have entry address issue in last onion target talk in this ml.
> 
> I made script for entry address in my maintenance version ZRouter. 
> 
> https://github.com/yamori813/zrouter/blob/add_new_devices/tools/entry
> addr.sh
> 
> 
> This is use in physical address in mips target. Almost mips is use
> 0x80000000. But be careful RT2880 is use 0x88000000.
> 
> ARM terget is linked by kvm address(0xc0000000). Then convert to 
> physical address.
> 

The ARM kernel can be loaded at any 2MB boundary in physical ram
regardless of what address it's linked at.  The arm entry point must be
within the first 4K of the loaded file.  Thus the entry point is
$loadaddr + (elf_phdr.entry & 0x0fff).

-- Ian



More information about the freebsd-mips mailing list