Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4136155ybb; Tue, 7 Apr 2020 01:14:00 -0700 (PDT) X-Google-Smtp-Source: APiQypL0LLSHV+W/TBW7xyecNGhu5U6ZA/rkJbmEFdEB6Z/cp1dLUq6kZ3WxfCqualVpMMLV0EN/ X-Received: by 2002:a05:6808:aaa:: with SMTP id r10mr732260oij.111.1586247240469; Tue, 07 Apr 2020 01:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586247240; cv=none; d=google.com; s=arc-20160816; b=QZ3e5tAoeF0cLsccyMG61XIqAki7zoAZGC2KyemnHWodmVYqfnn/Oa456xlyW32J/w OMRidPeRhpP05D/tauZu/1WStAeMtkss5xCyR8pYMumJCv9/b6y1IWaGd7flxoKSgKfk Ob8WhWLGb3Ho+E+t4r0JNLtDi7gGgkvShFvmss0u8dK6NdN/sfYLNHFSAgq4VDKtOUMJ H1BwOXvNOk0eCAWUBRnoaATe+5j/JyZJ7eUITu9mv3UJyqRt1Z8U5inEEfglD7mILSoF Gc/0wEpmIW0GnVjujKGH6DOnOFT2skGhjRxlStl8IedyQ7zdoULNdkIyaGPlID8iyNvz Gkrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=OgiDrl/y3vH6wAvfRgLIRdC9VWqb30+aJ0O6R1lUpLk=; b=CJPzEiIR37x8R6o3Nu10TefXlMF1RjaPw1Ck76ekt/9xHM955qsi0A3GXRlvmnYP2I bjzBplPfbftx5jAl6wnOiXSAWaIoFWLf5ctes4q3PfwxPUdMRx4/267XZsJ1jW4yB7P8 HnTl0NrrupmhirEVyQ1odLfCDwd4AwGYReUlEpNxOx2I8aZU7klUH0suc1KQP/VDolKG 0mX4fGIhJTxQr5k9et3mvKdtBcL5b6PERXC0ahB07cf9MXRMY/JD2tidhYxlqPBWiQFc EOqeiei1KnH8Wkp6RGC0XATQn4omg3cge3gX55Eax5XmCB4FQrJUZdXjsYuHOT5I9ZIF J/kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=GLQHbhag; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si961018otr.95.2020.04.07.01.13.47; Tue, 07 Apr 2020 01:14:00 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=GLQHbhag; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727384AbgDGINM (ORCPT + 99 others); Tue, 7 Apr 2020 04:13:12 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:36996 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726720AbgDGINL (ORCPT ); Tue, 7 Apr 2020 04:13:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=OgiDrl/y3vH6wAvfRgLIRdC9VWqb30+aJ0O6R1lUpLk=; b=GLQHbhagSsecX46c9NF2cLExd dW+puIz5U9+QhN6qsxGY2LUYZoJ/g5/re5qCnGvvTwKRMQkpMDRZ/j2kWul9Trj/qm6XZbCfHR+r8 oGSpi5jMmpG3pzv+0SproXqgSwzp51YQbooXpA8Kf94KCdLMN42DuB7ZAAUSWyBbkbGELcJedou6W ow0tlXAti0+Z5f+LgX32CgFkGdryQDMiOef79anps2tBNsH5Jlrecxd22ynaEkuI5+aDgl0YFpDjb xB4QeHGwWU7HZvpaoI88CPysVyzc+k9uQ27MCi2rGamjoQZvjm0EfnWlWpSHM58uBjRKa9XMYXvBv 2dY7lgGXQ==; Received: from shell.armlinux.org.uk ([2002:4e20:1eda:1:5054:ff:fe00:4ec]:42622) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jLjLu-0006lM-S1; Tue, 07 Apr 2020 09:12:59 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1jLjLt-00072P-G3; Tue, 07 Apr 2020 09:12:57 +0100 Date: Tue, 7 Apr 2020 09:12:57 +0100 From: Russell King - ARM Linux admin To: Corentin Labbe 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: <20200407081257.GI25745@shell.armlinux.org.uk> References: <20200406082720.GA31279@Red> <20200406091600.GF25745@shell.armlinux.org.uk> <20200406092540.GB31279@Red> <20200406093729.GG25745@shell.armlinux.org.uk> <20200406201053.GA10931@Red> <20200407073117.GH25745@shell.armlinux.org.uk> <20200407080144.GA20773@Red> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200407080144.GA20773@Red> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 07, 2020 at 10:01:44AM +0200, Corentin Labbe wrote: > On Tue, Apr 07, 2020 at 08:31:17AM +0100, Russell King - ARM Linux admin wrote: > > On Mon, Apr 06, 2020 at 10:10:53PM +0200, Corentin Labbe wrote: > > > 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. > > > > crashkernel is only necessary if you're loading a kenrel image to be > > booted when the existing one has crashed. For the problem you're > > seeing, it's an unnecessary additional change; please drop that. > > > > You could try running kexec with debug enabled to see more information. > > > > I am already running with --debug That was not reflected in the command lines given to kexec that you quoted previously, so I'm now wondering if you're giving me the full information. In any case, based on the information you've supplied thus far, I have no further suggetsions to make. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 10.2Mbps down 587kbps up