From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03048C2BA80 for ; Mon, 6 Apr 2020 20:10:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D798A206C0 for ; Mon, 6 Apr 2020 20:10:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VhpKxJPf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726303AbgDFUK6 (ORCPT ); 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-Google-Smtp-Source: APiQypKS1KZuF0Y6bJWDK84a832JwPLWyZ706L64ZntZUnsCdvv4UgFSB9mODdX75JRUmEK5dO8Qjw== 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. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F1ADC2BA1A for ; Mon, 6 Apr 2020 20:11:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D5AA7206C0 for ; Mon, 6 Apr 2020 20:11:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="SnKbcQTO"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VhpKxJPf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D5AA7206C0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pkkx9P3UfUHAPm2jt5KltgnzxnvV/hyHFj9H46uASCg=; b=SnKbcQTOOD4R28 wSU+xWMe16i7jQ8Ts6FttlZOAN11In9rh2sPgJLN+lJ3h1rIKr/bIxqs3HeN7MHk801fAWa0tvAuh 9ADmYvxMQnYdIdJqIQj6HhNr3VCa5utaNHeYiMwcm89XhEUrHWshGmHTqsMTphBMOrvoLV2kOChNe P8rGJwLGgWqR/z6n4xWfDOVJkvJ9pt5S1FEtBbFBHOV4oLL7NazOfyn12mlbS0H98w4WjId2eSAe/ Jv4x3h0OxjrIUX9zCpQyoggXQN3GfoVfOakGYdHnoBwt4pquQwSXt+X5WQF7nV0cjYJMdqOu/vlEx XSv60LfRuZ0/f5mbbSOA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jLY62-00054g-6x; Mon, 06 Apr 2020 20:11:50 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jLY5B-0003xJ-Tx; Mon, 06 Apr 2020 20:10:59 +0000 Received: by mail-wr1-x442.google.com with SMTP id a25so1101507wrd.0; Mon, 06 Apr 2020 13:10:57 -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=rojW4eQ5ReHLcJxZ/SR1gR492wyFYyfPC6PKZxIh26epqTBeYtNabFwh0IRLursbzk bXJN5N3SmDc0X4BN/sTxzw03r9sCgp1RyFHS9V6OhKdgQalYGAec2zsZwJv+Vrf/azB/ pNYiCHXr49Hb8jX/3mQEN49JUSdDm4HOB9dLDL3URQasBf8jbeoInCZVTakFBHlDPYEN DXt3tbYYY2cKCp/DeQe/T7gSQjpemDaZ++pHmeBf0PTnkFTy/CZZw8Xds9XEDDHAqd2K H/NnvPLdYElaqH4k1IY/ElvMXHMZOgCJdffxHPxG6a7tuZ80mk/0OcRJCfnJ7Mn8uPh6 BmhQ== X-Gm-Message-State: AGi0PuYVtRJBEMdhf6n37AkyEiygHUmpEi8r0UfzvEdnGL5HqJ90bSJc Nfcn4z7PmR+ZwYU3/0kevaI= X-Google-Smtp-Source: APiQypKS1KZuF0Y6bJWDK84a832JwPLWyZ706L64ZntZUnsCdvv4UgFSB9mODdX75JRUmEK5dO8Qjw== 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 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-Disposition: inline In-Reply-To: <20200406093729.GG25745@shell.armlinux.org.uk> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200406_131057_973488_414D72BF X-CRM114-Status: GOOD ( 17.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org, mripard@kernel.org, wens@csie.org, ebiederm@xmission.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.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. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Date: Mon, 6 Apr 2020 22:10:53 +0200 From: Corentin Labbe 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-Disposition: inline In-Reply-To: <20200406093729.GG25745@shell.armlinux.org.uk> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Russell King - ARM Linux admin Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org, mripard@kernel.org, wens@csie.org, ebiederm@xmission.com, linux-arm-kernel@lists.infradead.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. _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec