Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1458005pxb; Mon, 22 Feb 2021 02:23:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQYg8EY1Hy7FEK7VKiKDDoZdAzV0YkXVweEeFpOgtvWAGFHdSMr5ceJ8O9EEkmVJIJVGdU X-Received: by 2002:a17:906:5f8b:: with SMTP id a11mr3822811eju.310.1613989432954; Mon, 22 Feb 2021 02:23:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613989432; cv=none; d=google.com; s=arc-20160816; b=U8rTtGW9+FKVnu+tcwf9uHrPxl9MB0cCXUYeEwpim3efeFEchiOUJVylWabmpPNs3a Y7yI00ndUowas3K6iX+uVkBES4MT/AaYCq7yS96yuHmIpX/NV3qrmxUuy4/fUMjlkLWE lpdqNrnQZa19oRiBEW9mSD54g4KTKV29ijOUqBwP9iHEWRiZLNy+5ALGgqJ5e6WgYnPm 6dzmrdC96IAuxo2M8fD3GMGk+CcFFKsn82IJdoS14NRZ+GPR6oCPzZbgwAqTWLrDz1Tq 0zNJQEWm1r4dkGZrPQ9Qx/Z6qy5euWovcnn7E3RwQTIx9nOJkcxuGVm+/nQHjnJrbw81 /JCw== 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=L6ozJjneRabHXv2bJQnWDUhKBZTUbxonhN/ndy66ScQ=; b=MEzz9b/XnThMmjlZfkZcynFI2h6P4NF0VvXVUmsoWEF1y/J+oK5xV9l/0iUvMzKXlp HJslVRt7HF81l5Qd332R4Byh1pBqGc4iBpM3XKROmA8tCIBnR9yCWSGmlm1+zYrmNh2m udkfNwXZ2WoFKIdIhhrRoFnMv8aV9abmby7ycwqKuVtyKE5/cCduPOfAky1FWTvjNtZf N30eKJFiSZ6rxqrR+HJtivTZv70VCOYmQVdzFpyYbI5bp3fkUW7CYXpyQeT/8rEcQjT+ XYAoMRV85Ocn6efCBfsBOe7FRY38qTdz3a37mDoXR4kJqWWyZrkRx9wwtHnVhueoE608 uebA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m+tnZAIM; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m22si10839802eje.468.2021.02.22.02.23.30; Mon, 22 Feb 2021 02:23:52 -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=@gmail.com header.s=20161025 header.b=m+tnZAIM; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230230AbhBVKWk (ORCPT + 99 others); Mon, 22 Feb 2021 05:22:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230214AbhBVKWa (ORCPT ); Mon, 22 Feb 2021 05:22:30 -0500 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED1F8C061574; Mon, 22 Feb 2021 02:21:49 -0800 (PST) Received: by mail-lj1-x22d.google.com with SMTP id c8so56323138ljd.12; Mon, 22 Feb 2021 02:21:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=L6ozJjneRabHXv2bJQnWDUhKBZTUbxonhN/ndy66ScQ=; b=m+tnZAIMAohvoUNMEHfgprl8itqN+gc/cVZzermBq/PG/4fJW2AowK93jm5xJO8X2H jVLLMFpBO1zKDUe1e1cRWlCr1Ojv+yDbc6AwOinwpSc8qdTQyOZk4j7HWju6rSkTD3sr a/06PwQWJHTrtUILTfVoMYp7OVSCxLkdpLjI+1NirpEUa3gC1HMfnxky8QwmgXh99kSl 1msRyhgS3WUUf5iRmHrlResp/VK/nst+BUMSOxXGlFMF2CFj8IeIRm0V/2GupJjMqqwt FTywReA7ItnA1GjPi35eZv+6ePI8dcgZGDUFyW3xZ7LIYYsBXznJE86uCYI33SpHKFzj FcbQ== 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=L6ozJjneRabHXv2bJQnWDUhKBZTUbxonhN/ndy66ScQ=; b=Lr7lnoHANErClxow0iDpMdCZ37FmZLqWG1ii7skKrs7Ve2CVmlpjv3G9hDsiQDfAPQ QpMAdgxgPp6q6JFMK4scZMSooFX/1TLxkHPaE0N6xobDFSnqW6RT3PIHTnceFEMwfX97 STSq085zl3glo2ZGUji+iteEFc1Xk5YjGoK2D3LrYVJ20cEW5HtTfUXPAXgdbWZARy+P 9Z9djKLxQdj2040ubqPZfgtqRjbFglk9LqMir/S6uzi16ZGIqdfm5ExrZFrY8xy5/trg 1ONnDVREY8+dkjCGoViwgcDO/eixOPMCy44gjeAjM6KUgDzx6FxF8oOSx3d0kioZEc8F b2sw== X-Gm-Message-State: AOAM533kYBU5Hzl/8Hhzydr1pC6CWju6CRscI+MCI4cQXXuBxONlpbZQ KvePKrq/YkvljrFlnr4GyXOkk7cxwhQwivc/aQ== X-Received: by 2002:a2e:95ce:: with SMTP id y14mr9431022ljh.80.1613989308331; Mon, 22 Feb 2021 02:21:48 -0800 (PST) MIME-Version: 1.0 References: <20210218122546.3546582-1-gmouse@google.com> In-Reply-To: From: Avi Fishman Date: Mon, 22 Feb 2021 12:21:24 +0200 Message-ID: Subject: Re: [PATCH] ARM: dts: nuvoton: Fix flash layout To: Anton Kachalov Cc: Tomer Maimon , Benjamin Fair , Tali Perry , Patrick Venture , Nancy Yuen , Rob Herring , OpenBMC Maillist , devicetree , Linux Kernel Mailing List , ofer.eilon@nuvoton.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ofer, Can you check why u-boot doesn't work with SD cards? On Mon, Feb 22, 2021 at 11:27 AM Anton Kachalov wrote: > > 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 -- Regards, Avi