From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751773AbdK0KRt (ORCPT ); Mon, 27 Nov 2017 05:17:49 -0500 Received: from mail-wr0-f181.google.com ([209.85.128.181]:45974 "EHLO mail-wr0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751733AbdK0KRp (ORCPT ); Mon, 27 Nov 2017 05:17:45 -0500 X-Google-Smtp-Source: AGs4zMatmuLRH4pBXdPlRBTMv1T1U/jx+LtKtoGqcykffATKHr9JOiSi1dVZZLZotHJLhn/3BdKzYA== Date: Mon, 27 Nov 2017 11:17:39 +0100 From: Gary Bisson To: Otavio Salvador Cc: Otavio Salvador , "linux-arm-kernel@lists.infradead.org" , Fabio Estevam , "devicetree@vger.kernel.org" , Sascha Hauer , Kernel development list , Rob Herring , Mark Rutland , Russell King , Shawn Guo Subject: Re: [PATCH v2] ARM: dts: imx6qdl-nitrogen6x: Add SPI NOR partitions Message-ID: <20171127101739.qs6ws3232hd5qwgv@t450s.lan> References: <20171124170004.31133-1-otavio@ossystems.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Otavio, On Sat, Nov 25, 2017 at 07:55:53AM -0200, Otavio Salvador wrote: > On Fri, Nov 24, 2017 at 3:00 PM, Otavio Salvador > wrote: > > This adds the partitions definition for the SPI NOR to provide > > backward compatibility with the documented[1] layout used with > > Boundary Devices BSP. > > > > 1. https://boundarydevices.com/boot-flash-access-linux/ > > > > It exports to Linux: > > > > mtd0: bootloader > > mtd1: env > > mtd2: splash > > > > Signed-off-by: Otavio Salvador > > After thinking a bit about Fabio's recommendation to use 'read-only' > to protect the partitions, I think it'd be better to use 'lock' so it > is still possible to write them on Linux but it requires a unlock > prior changing it. > > In my case, I am interested in being capable of upgrading the > bootloader from Linux. > > What people think? Agreed, I would rather have the lock option, especially for the splash and environment. Regards, Gary