Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp797358imm; Wed, 25 Jul 2018 06:27:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdW3I0XplxNvVhBRcyfqBDMgudDSrnHTsW48kSnrcvGsh83xiyhOoCzh9BcDwGjSsLLf1xB X-Received: by 2002:a17:902:a716:: with SMTP id w22-v6mr20954048plq.271.1532525230088; Wed, 25 Jul 2018 06:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532525230; cv=none; d=google.com; s=arc-20160816; b=peeL6I0RbiHcW80iPu0YEuAk4XginxBisfxyijC8rqIaYLNUS+RLA2IIL3Cv1j3zD9 LpF/XPFKgYx7D/rPrINiHn5Mr5jnxDnmh+6fT+VPLCaaEeGgwaGZJKzeOR4P/l0ojF02 S7xSx/9orMK4R5oKYEoh7MdIBT8bv1/YUeEa3q8Gch+9/68wDPz5RYATp1jl+GSiUoLT vnhGSnDbvN72I+i3/3H+eqxfmM7/5rev/FpfivftvDoCe2QwenqErrhE/SLkQjiWKsTo ABBDI4+lsVKGnE5MpLU5ULzY7+MSY8dXHQ5tsURJmIqh8caot9r0uKNJ80yC5huLXn2A 5rTQ== 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=ZQNw8mmsKWstIzY+v1hNh/gQsSKhuVx+M9NtAhMRfsw=; b=p00HBmAEVe58zaHeFNU5dKbzMaqIHFmXVoguXyR7KIGYZOG0YWdDMKK3vNdvw5MdKa sDDRscv61fMtTTdf2hgCOFzzgW1S5JfNrEUkWG//K1PwMxMhdQSE+2Y3GJmevtABbT4p Sj4I35N+sFzRuGhDht6KcabNaeJEuW1KfDOxvulPKW5HHt5jOwVPKsE5duJJmDKzqqRU t03gtbw5NpWhWDZ7A/L8bUHRFRrPchN0ubcUQ+FDjbrh6Zg5kNbVmzOFw13mHblst4Co /Qj/rnAtsETyZp06R/H0Xzu6+sIbw+lJIZWa7EAaBKmJ3oexDYLJ1wBwb5t+CFVVNRod VJTA== 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 75-v6si14072410pgh.110.2018.07.25.06.26.54; Wed, 25 Jul 2018 06:27:10 -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 S1729054AbeGYOhr (ORCPT + 99 others); Wed, 25 Jul 2018 10:37:47 -0400 Received: from eddie.linux-mips.org ([148.251.95.138]:40310 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728988AbeGYOhr (ORCPT ); Wed, 25 Jul 2018 10:37:47 -0400 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23992289AbeGYN0EdPWUW (ORCPT + 2 others); Wed, 25 Jul 2018 15:26:04 +0200 Date: Wed, 25 Jul 2018 15:26:03 +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: <20180725132603.GA21902@lenoch> References: <8dcf3efd3270451314a663c125841ca87ed2b387.1532501910.git.hns@goldelico.com> <20180725080735.GA7467@lenoch> <20180725083305.GB8303@lenoch> <85BC9F70-2E58-4915-9405-7CC1855975C4@goldelico.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <85BC9F70-2E58-4915-9405-7CC1855975C4@goldelico.com> 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 02:27:31PM +0200, H. Nikolaus Schaller wrote: > > > Am 25.07.2018 um 10:33 schrieb Ladislav Michl : > > > > 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) > > Yes, that is a good goal for a future setup and would of course be better. > Like U-Boot already provides the memory layout for RAM. > > Hopefully, someone will work out patches for u-boot plus kernel (which is always > painful to keep these two in sync and tested). But I don't want to do that now. At kernel side the only patch needed is to remove partitioning scheme from DTB and u-boot setup can be merely copied from board/isee/igep00x0 Not having hardware I cannot really test it ;-) Best regards, ladis