Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 May 2017 08:16:41 -0600
From:      Ian Lepore <ian@freebsd.org>
To:        Mori Hiroki <yamori813@yahoo.co.jp>, "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
Subject:   Re: U-Boot image Entry address
Message-ID:  <1495549001.89384.97.camel@freebsd.org>
In-Reply-To: <501228.94030.qm@web101720.mail.ssk.yahoo.co.jp>
References:  <501228.94030.qm@web101720.mail.ssk.yahoo.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1495549001.89384.97.camel>