Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp540398imm; Wed, 25 Jul 2018 01:34:12 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfsnvHdlrMvbXS/1kqCmpbmVtZvuiuFF2NJ8zFI1QpYt91Z/L6jB5UdN9i0dSLgZBpi4KcI X-Received: by 2002:a62:9cd7:: with SMTP id u84-v6mr21282041pfk.90.1532507652079; Wed, 25 Jul 2018 01:34:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532507652; cv=none; d=google.com; s=arc-20160816; b=MkrfGvAtu+QKJjLYZq9jgBjZy9z9/qycq9mqE6goovDCBDDNFvaBy03gID6wYM3moU OU83nS2OvLHmDSKAXYiR6eGTWn9fM0/JkhSP3iaQ2NSwjhfNPxcYevBeys+fy6YRuGzB /VBfSqFeQfqsqseWR6J5Lw2IxidXFTo432dlHsnMPKvG9QNGOu+YwQbNBggQNUV9KtcG aa3egjzjUfcN21SDk8uYHCd4LsHCCoZHen07I3tfSewz+dgJnutKnKYiHhn6LyZMIT/l ZuWjxkhz38Yj3qnhcg0BUI5h9c5RNGPaiSLS1Sqt/BWcq23O5yHvnC7UWp+n9KsezHWs mhxA== 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:arc-authentication-results; bh=OXhcwPqgjAdjkEMmqgNCcj+lSHufvBrqvM+qxrtF+lI=; b=mBLYV8PvbNtj4w9njeo5mZyGM7T8qSEQIE0Fsax69YNkxlmwLFksyikhtok1yCXUM9 9TD7ofiGhGg6goFjkfHbb9ZyO/tiBRi2h1MTUK5iv2yJAQgGZ+iE0kKRFKM/GVHN1Qnd u/sSQSc8+RMtZgsa5hFZGtF9VfxDKuvEaVPBgNWsyMeM9P0a/6yRLhrbQDiQNbl4FCF2 rdCi4aA6pid/m/4E1ObyjtbWWtntIAuC2Qe7u4yCxKSPPKPKL8dMqm12dsue8ELUmZUs ECHunDD2z0mCv52Lbk++Q3sc/EDFddiMxAo6nDAu7uAk+WN/+0z4C7m2GJXZ5ZL+on6j uPcQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a1-v6si13584312pga.639.2018.07.25.01.33.57; Wed, 25 Jul 2018 01:34:12 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728673AbeGYJnp (ORCPT + 99 others); Wed, 25 Jul 2018 05:43:45 -0400 Received: from eddie.linux-mips.org ([148.251.95.138]:42466 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728501AbeGYJnp (ORCPT ); Wed, 25 Jul 2018 05:43:45 -0400 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23991808AbeGYIdGStRKp (ORCPT + 2 others); Wed, 25 Jul 2018 10:33:06 +0200 Date: Wed, 25 Jul 2018 10:33:05 +0200 From: Ladislav Michl To: "H. Nikolaus Schaller" Cc: Marek Belisko , =?iso-8859-2?Q?Beno=EEt?= Cousson , Tony Lindgren , Rob Herring , Mark Rutland , linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, letux-kernel@openphoenux.org Subject: Re: [PATCH 09/32] ARM: dts: omap3-gta04: make NAND partitions compatible with recent U-Boot Message-ID: <20180725083305.GB8303@lenoch> References: <8dcf3efd3270451314a663c125841ca87ed2b387.1532501910.git.hns@goldelico.com> <20180725080735.GA7467@lenoch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Wed, Jul 25, 2018 at 10:18:28AM +0200, H. Nikolaus Schaller wrote: > > > Am 25.07.2018 um 10:07 schrieb Ladislav Michl : > > > > On Wed, Jul 25, 2018 at 08:58:41AM +0200, H. Nikolaus Schaller wrote: > >> Vendor defined U-Boot has changed the partition scheme a while ago: > >> > >> * kernel partition 6MB > >> * file system partition uses the remainder up to end of the NAND > >> * increased size of the environment partition (to get an OneNAND compatible base address) > >> * shrink the U-Boot partition > >> > >> Let's be compatible (e.g. Debian kernel built from upstream). > > > > That, in fact, is breaking compatibility. > > With what? Nobody is using the old u-boot partition scheme any more > (it is >5 years old). > > > So once you are touching this > > what about relying on partitioning provided by bootloader just to prevent > > something like this happening again? > > Well, we define what compatible means here (since we are the vendor). > And people complain with us. We simply recommend them to upgrade the > boot-loader. Fair enough. Suggestion was to remove partitioning scheme from DTB alltogether and let U-Boot provide one. But you being vendor you decide, of course :) (I'd use only two partitions: MLO and UBI, latter one with BCH8, and store everything in UBI volumes. That's a bit more flexible approach) ladis > BR, > Nikolaus > > > > > ladis > > > >> Signed-off-by: H. Nikolaus Schaller > >> --- > >> arch/arm/boot/dts/omap3-gta04.dtsi | 12 ++++++------ > >> 1 file changed, 6 insertions(+), 6 deletions(-) > >> > >> diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi > >> index 65f77a0b5dd4..03fe404cbf56 100644 > >> --- a/arch/arm/boot/dts/omap3-gta04.dtsi > >> +++ b/arch/arm/boot/dts/omap3-gta04.dtsi > >> @@ -645,22 +645,22 @@ > >> > >> bootloaders@80000 { > >> label = "U-Boot"; > >> - reg = <0x80000 0x1e0000>; > >> + reg = <0x80000 0x1c0000>; > >> }; > >> > >> - bootloaders_env@260000 { > >> + bootloaders_env@240000 { > >> label = "U-Boot Env"; > >> - reg = <0x260000 0x20000>; > >> + reg = <0x240000 0x40000>; > >> }; > >> > >> kernel@280000 { > >> label = "Kernel"; > >> - reg = <0x280000 0x400000>; > >> + reg = <0x280000 0x600000>; > >> }; > >> > >> - filesystem@680000 { > >> + filesystem@880000 { > >> label = "File System"; > >> - reg = <0x680000 0xf980000>; > >> + reg = <0x880000 0>; /* 0 = MTDPART_SIZ_FULL */ > >> }; > >> }; > >> }; > >> -- > >> 2.12.2 > >> > >> -- > >> To unsubscribe from this list: send the line "unsubscribe linux-omap" in > >> the body of a message to majordomo@vger.kernel.org > >> More majordomo info at http://vger.kernel.org/majordomo-info.html