From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH 2/2] arm: fix kernel image size Date: Tue, 21 Jun 2016 09:55:25 -0700 Message-ID: <20160621165523.GY22406@atomide.com> References: <20160617194405.GN1041@n2100.armlinux.org.uk> <20160621074319.GH22406@atomide.com> <20160621094737.GA5783@n2100.arm.linux.org.uk> <20160621103810.GI22406@atomide.com> <20160621105720.GK22406@atomide.com> <20160621154407.GB5783@n2100.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20160621154407.GB5783-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "kexec" Errors-To: kexec-bounces+glkk-kexec=m.gmane.org-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org To: Russell King - ARM Linux Cc: Pratyush Anand , Baoquan He , kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Simon Horman , Kees Cook , linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: linux-omap@vger.kernel.org * Russell King - ARM Linux [160621 08:46]: > On Tue, Jun 21, 2016 at 03:57:20AM -0700, Tony Lindgren wrote: > > > > Maybe zImage size + MAX_RODATA_SZ + 4x zImage size? > > > > Then the MAX_RODATA_SZ could be 2 or 4 MB or whatever we > > think is sufficient to kick the can until we have a better > > solution. > > Maybe if you give some details about your failing case - you omitted any > details about the uncompressed image size... Looks like we currently have this: Memory: 2033088K/2095100K available (7376K kernel code, 784K rwdata, 2312K rodata, 1024K init, 8117K bss, 45628K reserved, 16384K cma-reserved, 1292284K highmem) Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) lowmem : 0xc0000000 - 0xf0000000 ( 768 MB) pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) modules : 0xbf000000 - 0xbfe00000 ( 14 MB) .text : 0xc0008000 - 0xc0a762a4 (10681 kB) .init : 0xc0b00000 - 0xc0c00000 (1024 kB) .data : 0xc0c00000 - 0xc0cc411c ( 785 kB) .bss : 0xc0cc6000 - 0xc14b37f8 (8118 kB) Regards, Tony