Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3669378ybb; Mon, 6 Apr 2020 13:12:17 -0700 (PDT) X-Google-Smtp-Source: APiQypLgV+mGYEJCWTGgb4iy+VvOENl2nb89POsQpCuP/Pd/UClmn9PI8L2AloTntloNAB5lLI6V X-Received: by 2002:aca:a94a:: with SMTP id s71mr907791oie.152.1586203937298; Mon, 06 Apr 2020 13:12:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586203937; cv=none; d=google.com; s=arc-20160816; b=V44dxUmc6Wp2xwf23202R1JeMDpDpzshre4ckKZCDgiDZd+Cy/I7U9bYaaHtSqULay b42pWZ0BiSrtjSeTjlRe23zPccEHLb4fFEUdGMSRtoXlR/jMgjF16tXS2yD4xT7Q85Fg NmHidNtAu/WRvBBJoF6yq61JpPLAffpIjw639YqJjFaDBowQTjb9a5/LlYg7N0yNjfC/ uOVK/ea23mE9eui41tbekUZWI6BcBe25sWo9y7O3ga2svc7+N9SmdTPO4/ClENkh4t4Z u8im3tJWzVYLZ9zQeBQLLYXQNWW+y6E/NEtbk7j24zKPHVNL++bqo8PExKbqKDnvbrDg s0LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=K7m04/RQydC05lMdwFzvqDrhS51YkIpWaYRwOu8BZiw=; b=J438/QF/O9e6F9cfZQmqEqo/hbPz6/r/sAKkCmwS1iijD570Yy4HLaJqnrToW+knOA VB2VM/nH1ufMj0RbofqzjziLPTI+hkxoliO/V51JjJYrvU68gDUp5W5hkdN/S1tTAU1I 496Qyc56EfrL4neXLUMweXFruT61S9adZoA0XxzcZ7dTBoxaVC3fuNyPrLm+cpynt9gV lF4H3YyW/lLBAwgAd+bUjWqofh0SSwIPt2BZOkJtCPntPWzt+nci4NhErl1aKMKbKGtn 9gdLD99AfI9H62MzXQB9EomgOg7ocqJqvMfjPifB+DGR0YC4cctPlB064FOQ+MGDlNqn BUIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VhpKxJPf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q15si266313otm.212.2020.04.06.13.12.03; Mon, 06 Apr 2020 13:12:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VhpKxJPf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726269AbgDFUK6 (ORCPT + 99 others); Mon, 6 Apr 2020 16:10:58 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:45839 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725928AbgDFUK5 (ORCPT ); Mon, 6 Apr 2020 16:10:57 -0400 Received: by mail-wr1-f67.google.com with SMTP id v5so996965wrp.12 for ; Mon, 06 Apr 2020 13:10:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=K7m04/RQydC05lMdwFzvqDrhS51YkIpWaYRwOu8BZiw=; b=VhpKxJPfkPEOFMUFhDw7AIgwNKbEy3WIlk/4P99t/ywfNvy5PYbqWzYc6pJ95ZC0/K QxNJljDjWn+XUlGscu1TN6fSe0iuHAUoAqA9xC65cKn5NzRaldqvDvsUM12HtW8KC3e1 HolrruDn3bNVpj/RgWCUCQxo1wn7jkXR1aSOENbG3ye3Xh0/GFWWvMjSHmmkYrpxwaTN 82naDkM7QvYfBokhgqyYWli9uRNhAAgRmv011RcZS12aaFf5jj5NtnFeSJP1aJAw+JZf j2I3x8l5pZkMSwYjuiZVGrX+4wo/nU/EvJ+d0kdmTw0FkQ8tzHWWurHzh+7oECZHwK+7 6zww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=K7m04/RQydC05lMdwFzvqDrhS51YkIpWaYRwOu8BZiw=; b=G6yc7rE3KclLOcMmkjhnXVXK4ssquho2ZOC+7k57xMXKb8bldK/+rFlUIqM6da/yfJ dw71Cq9qB2KEs23NfRqa2HLERX4kxeNnnjaQtxjgsJEWNT2IiU6mxhf7gaTmWEq/I8st igmQ0JUBA12dBPzAS5pFfRMObg8xhznIE+E/gzGJUmud4I9Ob3cFYmZzwKvtOHc8KL/m kWBtWSCMfbUDJMfu7Mz7Jke7Mc5Zkyr2k00S8JegbgFIPRZkw6oknS4IDabHQsfrsu58 Y025VYOgOpq9wtcpsukQUzshD2TkOzSeW6Rzu+FmefEjxgS0wonds1fWQI6mKV9RjejX NZfQ== X-Gm-Message-State: AGi0PuYDwlpTKS7oTiqpWlDqnFIFLHv5DYnHt+w6/XrbLhEwXWBQ4Uxm Ltp8UAIwdlIPkz8tm8Cjj+A= X-Received: by 2002:a05:6000:e:: with SMTP id h14mr1084034wrx.128.1586203855805; Mon, 06 Apr 2020 13:10:55 -0700 (PDT) Received: from Red ([2a01:cb1d:3d5:a100:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id z21sm727473wml.47.2020.04.06.13.10.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Apr 2020 13:10:54 -0700 (PDT) Date: Mon, 6 Apr 2020 22:10:53 +0200 From: Corentin Labbe To: Russell King - ARM Linux admin Cc: ebiederm@xmission.com, kexec@lists.infradead.org, wens@csie.org, linux-arm-kernel@lists.infradead.org, mripard@kernel.org, linux-kernel@vger.kernel.org Subject: Re: Trying to kexec on Allwinner A80 Message-ID: <20200406201053.GA10931@Red> References: <20200406082720.GA31279@Red> <20200406091600.GF25745@shell.armlinux.org.uk> <20200406092540.GB31279@Red> <20200406093729.GG25745@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200406093729.GG25745@shell.armlinux.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 06, 2020 at 10:37:29AM +0100, Russell King - ARM Linux admin wrote: > On Mon, Apr 06, 2020 at 11:25:40AM +0200, Corentin Labbe wrote: > > On Mon, Apr 06, 2020 at 10:16:00AM +0100, Russell King - ARM Linux admin wrote: > > > On Mon, Apr 06, 2020 at 10:27:20AM +0200, Corentin Labbe wrote: > > > > Hello > > > > > > > > I am trying to add the last missing Allwinner Soc in kernelci: the A80. > > > > But this SoC does not have any way to be used in kernelci, no USB nor network in uboot. > > > > So I have tried to fake uboot since the kernel has network support and run the new kernel via kexec. > > > > > > > > But kexec 2.0.18 fail to work: > > > > kexec --force /tmp/kernel --initrd /tmp/ramdisk --dtb /tmp/dtb --command-line='console=ttyS0,115200n8 root=/dev/ram0 earlycon=uart,mmio32,0x7000000 ip=dhcp' > > > > > > What happens if you omit the dtb argument? > > > > > > > No change without dtb > > > > I have also tried to add --mem-mim and --mem-max without any change. > > I given mem according to what I saw in /proc/iomem > > 20000000-9fffffff : System RAM > > 20008000-207fffff : Kernel code > > 20900000-209a0c87 : Kernel data > > So I gave --mem-min 0x30000000 --mem-max 0x9fffffff > > Anyway, the result is always the same. > > The next step is to enable the early debugging - first in the > decompressor - add #define DEBUG to the top of > arch/arm/boot/compressed/head.S > > Also enable DEBUG_LL in the kernel and use earlyprintk to see if you can > get anything from the new kernel. > I dont know what happened, but now I always get "Could not find a free area of memory of 0x86c1c0 bytes..." (even with kexec 2.0.18) Furthermore, I have added crashkernel=128M to the cmdlist I have verified that the reservation is working: 20000000-9fffffff : System RAM 20008000-207fffff : Kernel code 20900000-209a0c87 : Kernel data 40000000-47ffffff : Crash kernel But even with this reservation, no change.