From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([209.132.183.28]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YkQ15-00050m-9e for kexec@lists.infradead.org; Tue, 21 Apr 2015 04:42:35 +0000 Message-ID: <5535D522.3080806@redhat.com> Date: Tue, 21 Apr 2015 10:12:10 +0530 From: Pratyush Anand MIME-Version: 1.0 Subject: Re: [PATCH RFC 5/6] arm64: Add support for binary image References: <0a15f2079e6c378996dceda1d509df77d2f43899.1429201849.git.panand@redhat.com> <20150420072402.GG15033@dhcp-16-116.nay.redhat.com> In-Reply-To: <20150420072402.GG15033@dhcp-16-116.nay.redhat.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Baoquan He Cc: kexec@lists.infradead.org, kexec@lists.fedoraproject.org On Monday 20 April 2015 12:54 PM, Baoquan He wrote: > On 04/16/15 at 10:17pm, Pratyush Anand wrote: >> >This patch adds support to use binary image ie arch/arm64/boot/Image. >> > >> >Binary image does not have sufficient knowledge to extract page offset >> >information, which is needed by kexec tool. Use a new command parameter >> >--page-offset, so that user can provide page offset information for >> >liner mapping. >> > >> >Signed-off-by: Pratyush Anand >> >--- > Seems there's a function get_kernel_page_offset used to get page_offset > automatically in arm. arm64 should have it either. > > ARM still takes user option for --page-offset in user_page_offset variable and then cross check that value with one found in /proc/kallsyms. May be for ARM64, we can read it like "value of symbol _text in /proc/kallsyms & 0xfffffffffff00000". ~Pratyush _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec