Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1431530pxb; Mon, 22 Feb 2021 01:29:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2lilI650ZGKWlduPyRChWeL8NNhQUIfXnxlnAUSffUY5VIKtDNUqbxM2j+S37mWm+z4xG X-Received: by 2002:a17:906:ad83:: with SMTP id la3mr19665133ejb.257.1613986173943; Mon, 22 Feb 2021 01:29:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613986173; cv=none; d=google.com; s=arc-20160816; b=K6izTgOdpN+zWBROeMJtnwkiFRdm4+XHymO/jcgkvU0RbupdLfgpbbtI28odCc1D6K skDU5/NcpIZzL/v59Svbq0XpMX+0PdoWanrVb6XYSUCAGSTz+y3DnZxRElfn6KsOESOA WO+yeocMIMvZykhpFBYSQBleG0ET0mNm44qwNqWt4EJ0x88M/fvRiB8eYaXG3xj9ocj5 rAI40aAKYOuveDvoSc6vYDNXqg3wS6htzARlNVnE+H0o05P2IG9iQ1PNGT/6lpjoECUU H+mS5XbgMvIgmFyNdVh7tTOvtyNCXmumq9YRWAvhulfiE/OHVxE1Zjo1NBQqdGNxQE3w J6qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hQLZEj9iN7V7Wa6Bf/Y6KrV0f8vrXo1b1Pd+1jqrTTY=; b=HgiHG8poiZlGFI+2Wi+jmDJ2vHWZyqFvSh5ZamrDgi+UzKlcY967QEF63XjeflUfDH eg94sW9EwZ+B5iYxZ99adJv8Mef3wJmQ2Ur5nnZVn7z1PWM51vHChPMWaahaKZ5lleu+ lP0bwZP2Qw679pcB9rvdNEiwnTht2/Z38XqFpbT03psf4FHSiFGYwRrebBpW41PveX0T Wi99Be/2DIOW5oI3cEfST+W+op1G2cKUi62oRuymkBfAQj8TkJVx/uQG8fYxRCLoF6Ld S7P/9wnxTIs9befinwXfTIHTRbleJBHOcHG/v4IcIhxaLjocV/oGb+3rCruruYZBAEGP oQPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=m9IJv5LU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i23si12262240ejj.317.2021.02.22.01.29.11; Mon, 22 Feb 2021 01:29:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=m9IJv5LU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230260AbhBVJ2P (ORCPT + 99 others); Mon, 22 Feb 2021 04:28:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230117AbhBVJ1q (ORCPT ); Mon, 22 Feb 2021 04:27:46 -0500 Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9317C061786 for ; Mon, 22 Feb 2021 01:27:05 -0800 (PST) Received: by mail-il1-x136.google.com with SMTP id w1so10170940ilm.12 for ; Mon, 22 Feb 2021 01:27:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hQLZEj9iN7V7Wa6Bf/Y6KrV0f8vrXo1b1Pd+1jqrTTY=; b=m9IJv5LUsBLiek3p4/0pXkCoDxek1CFJEIhFiAs9dS4NrAyPYJDpWdoZ8v73t06+u3 Sj7KqGl8uu10Gl/C+inuFrTi0XWVzNTovOUG0gZRxiaqLiwjTn/qSJl/lRWq18ggfyQe piZONMWqCkfHQOEG/tLO9mH/tL+n2o3kmoyLmdnBGUSL9drUtHTC438bAYt35/eSP5NA lMpI5eH4hiAR8CZ0qsAk0LTwRgXUQxok2hMxWv7rKM8WqxWD83g73roCDx07/iygGXQq S+o2ain0CMtQXNrj7IjEfuyqiIcXFYyKO7GvxaRYnfYHkNGk4wDD0BDuIxymwom7HS4i 8lsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hQLZEj9iN7V7Wa6Bf/Y6KrV0f8vrXo1b1Pd+1jqrTTY=; b=NarJq0J9UftE6hCsQJxP6uL2ZGyKUIY1Ug8HcD+2gi226I+xqLJB1uvsbHgelLXAtk 02tGLn17W46/NWS2cp2Ui1xnY0BTSDGBBaelZ9FF4RwUCQsCKIccdI/yfPqtam9MS/Eu DWK2G6CzBhdI1Wjm6wLD4junxQTJQPGpz9q43OXkcY1tbkKe+mtU6x46vFV7Uv43OG3F dxtYb9Nt9Xujq1sUWVgJmdqQuAxi0QRY3YUKu7QvWYU/oYRVIeDnszm/WqvgrSJcWKKH 3+HGd1S+tcb0V9WJZf6pQFiT5vEDR2WYzjW3MhOLDcEb0j+ATZJfiV+hp880CERb5lUh Rvaw== X-Gm-Message-State: AOAM531wv/sGPzyPlBElgfyqvl4niZUDcT8LePTTge2n2ITkakry5zPP zl4s2XbMePeIzoqLgJgYq1XiW8p4muCkBOYV7gbe1Q== X-Received: by 2002:a05:6e02:1b0c:: with SMTP id i12mr14452264ilv.200.1613986024863; Mon, 22 Feb 2021 01:27:04 -0800 (PST) MIME-Version: 1.0 References: <20210218122546.3546582-1-gmouse@google.com> In-Reply-To: From: Anton Kachalov Date: Mon, 22 Feb 2021 10:26:53 +0100 Message-ID: Subject: Re: [PATCH] ARM: dts: nuvoton: Fix flash layout To: Tomer Maimon Cc: Benjamin Fair , Avi Fishman , Tali Perry , Patrick Venture , Nancy Yuen , Rob Herring , OpenBMC Maillist , devicetree , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Tom. Yes, I'm using it for testing on real hardware. BTW. Recent u-boot doesn't work with SD cards. The card doesn't detect. The last working version was this one: https://github.com/Nuvoton-Israel/nuvoton-info/tree/master/npcm7xx-poleg/evaluation-board/sw_deliverables/npcm7xx_v2.3 However, u-boot from igps repo: https://github.com/Nuvoton-Israel/igps/tree/master/ImageGeneration/versions Has issues too. It doesn't allow me to read more than 4k bytes once at a time. Thus, to flash the stuff I have manually read chunks from the SD-card: fat load doesn't work at all and I write that data in raw partition. On Sun, 21 Feb 2021 at 17:40, Tomer Maimon wrote: > > Hi Benjamin and Anton, > > Sorry for the late reply, > > The EVB FIU0-CS0 partitioning is used for testing the EVB and this is why it is different than the OpenBMC flash layout. > > > > Are you using the NPCM7XX EVB for OpenBMC? if yes we can consider to modify the flash partition to OpenBMC use. > > > On Thu, 18 Feb 2021 at 19:11, Benjamin Fair wrote: >> >> On Thu, 18 Feb 2021 at 04:42, wrote: >> > >> > From: "Anton D. Kachalov" >> > >> > This change satisfy OpenBMC requirements for flash layout. >> > >> > Signed-off-by: Anton D. Kachalov >> > --- >> > arch/arm/boot/dts/nuvoton-npcm750-evb.dts | 28 +++++++---------------- >> > 1 file changed, 8 insertions(+), 20 deletions(-) >> > >> > diff --git a/arch/arm/boot/dts/nuvoton-npcm750-evb.dts b/arch/arm/boot/dts/nuvoton-npcm750-evb.dts >> > index bd1eb6ee380f..741c1fee8552 100644 >> > --- a/arch/arm/boot/dts/nuvoton-npcm750-evb.dts >> > +++ b/arch/arm/boot/dts/nuvoton-npcm750-evb.dts >> > @@ -182,8 +182,8 @@ bbuboot2@80000 { >> > reg = <0x0080000 0x80000>; >> > read-only; >> > }; >> > - envparam@100000 { >> > - label = "env-param"; >> > + ubootenv@100000 { >> > + label = "u-boot-env"; >> > reg = <0x0100000 0x40000>; >> > read-only; >> > }; >> > @@ -195,25 +195,13 @@ kernel@200000 { >> > label = "kernel"; >> > reg = <0x0200000 0x400000>; >> > }; >> > - rootfs@600000 { >> > - label = "rootfs"; >> > - reg = <0x0600000 0x700000>; >> > + rofs@780000 { >> > + label = "rofs"; >> > + reg = <0x0780000 0x1680000>; >> > }; >> > - spare1@D00000 { >> > - label = "spare1"; >> > - reg = <0x0D00000 0x200000>; >> > - }; >> > - spare2@0F00000 { >> > - label = "spare2"; >> > - reg = <0x0F00000 0x200000>; >> > - }; >> > - spare3@1100000 { >> > - label = "spare3"; >> > - reg = <0x1100000 0x200000>; >> > - }; >> > - spare4@1300000 { >> > - label = "spare4"; >> > - reg = <0x1300000 0x0>; >> > + rwfs@1e00000 { >> > + label = "rwfs"; >> > + reg = <0x1e00000 0x200000>; >> > }; >> >> I recommend just including the openbmc-flash-layout.dtsi file here >> instead since that contains the common flash layout for most OpenBMC >> systems. >> > Good solution, > Do you mean nuvoton-openbmc-flash-layout? >> >> > }; >> > }; >> > -- >> > 2.30.0.478.g8a0d178c01-goog >> > > > > Thanks, > > Tomer