Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1610377pxb; Mon, 22 Feb 2021 06:35:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBJGvbmo4o4eRHeJFYYce9IkmqAP0ayMDCaXw44m9zBgIOS7j5jKRIanHF4EdBc7LSUfbg X-Received: by 2002:a17:906:ad87:: with SMTP id la7mr18264648ejb.534.1614004501026; Mon, 22 Feb 2021 06:35:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614004501; cv=none; d=google.com; s=arc-20160816; b=pqlrG43xuZS58ewbwTGGSqSl5sOyGy9kDWa6P5VkRssxs6eyclqQhetjt5at3B8/W2 oceNNOl+qN5u4PEzEzoza/Tl1k56AdPljKgayRarOiTuhKVvefanVD/jJtpDPM32u4rl 5m7MA+SOi/5WjqYyCK07pu7zbY7wu+X4RHrF/Ie3jAD8w8nPIpStQ/3HHwH3Y5+odJKL 9RhXygC+c+fjlnp4QOxlunVQmT5sLtMiBEVjKGPNiqciuWy8N9UIDFeREFIFPEdTGnt6 fioY///OGYV4HiaX3efoZKRd5jo1CGIKQAdVbwu79nKDwgjDhlNQrFvatON2k4qTtl0L BM9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=juvEdxvqKlsBbe0kNmOCQgwG0HjLQ/hRQBwpyDMYnmo=; b=wObbL2JtPQV1XEmQ6KEbRLgxT/hOwmA0jEoEV/SbWBcGfo0rv0ZKH5QNJ1znRGJBkA h91btep7JxUxJP62QiW1V3gciRQSE1EVrZXh2zVLYtUGCknm5i8p6yjPbG+klNHut4yE qnU1uFphiUi6Ez60fLsNTDu4sq75VIOuzjaNVFaKpYFphVd80KfplWEkqg2Sk+RgJYLN J/2TJ9JUsUm75+oe+X4wwLS/L8FyF00yUPHOJxKw23uqdZBnHb/txs7F7oXpaP+blSN4 cEbw22hxPZWFK5mxVNBRVWJYaqvfa4B+zfI+zPGtEMLmUbZeCCF2fe00Iedd1VDrfO8c q1qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=fvokkzxs; 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 z23si13482041edm.39.2021.02.22.06.34.37; Mon, 22 Feb 2021 06:35:01 -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=fvokkzxs; 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 S230479AbhBVOb4 (ORCPT + 99 others); Mon, 22 Feb 2021 09:31:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231950AbhBVOZo (ORCPT ); Mon, 22 Feb 2021 09:25:44 -0500 Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFE3DC061786 for ; Mon, 22 Feb 2021 06:25:02 -0800 (PST) Received: by mail-io1-xd35.google.com with SMTP id k17so5540374ioc.5 for ; Mon, 22 Feb 2021 06:25:02 -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:content-transfer-encoding; bh=juvEdxvqKlsBbe0kNmOCQgwG0HjLQ/hRQBwpyDMYnmo=; b=fvokkzxsdTHfIYUj61qfUuDxsLNfBMQKlqji7FgUeScjfAdis8TZOyzE7TEXwpKx7S oohO19+xYOg827rtjrhEe+FmUkmkUXg2xJRD32Zh3IyQUuSKDl9rHdGgCj412zT/Cryn UhMvCHEI4Ppfyyj92dn8/yMYVd8jFQ+phi1j3M2k1oRzoUneP2BvnKReu564bvg+Nkph CppDfFxt4RhnWMOgMsvsMq0k7dos70k6wqRunZGGOY7bMNX69oGx8DhSsKbClRHNBmNm Gmy1Y0till1TQQc6pp6QQJbHoYb3RHyF6ncYD8BOIV7Tp7bOM5TOI3mUom3bPQI0cYua LE2A== 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:content-transfer-encoding; bh=juvEdxvqKlsBbe0kNmOCQgwG0HjLQ/hRQBwpyDMYnmo=; b=QFRhBFJCpxG2RAOWk4sDojL30O3Fy4y5nph59QosVAFCW4d0+V7W8qycU7cyL2DBoF quXo9R5pnZ8N5LuRuEADg1O+R98snyq2ThzYVEt31IWJkubOH7p3HyKKAeEyU6IyaXUG 5vPKXRh5whdV77XTEjIpQOOTR+SKuMuHRP3Eb+4faj5IHXtg7nneJaqHbVRtLNz93RzU kpt8xfwmyFUn1K9IsotBP9v+u5tmBNLTXqOrOvEzKDCuCGbHRUvbbV9ppfAIBzf3VhGu PV2dKfXP1OkSVK7hGPmZFcHE50UOjqUdgjIn+Bb+QmUkV3ITHcyu3PgNgeQgcqC6TZ5N s8lQ== X-Gm-Message-State: AOAM531BIYbztEw4zQCidq+IPSYR2kiQLU6/cKU7ZZIxynk4EDzjjEbu SeNcisqFkQIq3OVhaZdDRNqO3kYyLRU2D48wqykFfw== X-Received: by 2002:a5d:8490:: with SMTP id t16mr15471280iom.91.1614003901803; Mon, 22 Feb 2021 06:25:01 -0800 (PST) MIME-Version: 1.0 References: <20210218122546.3546582-1-gmouse@google.com> In-Reply-To: From: Anton Kachalov Date: Mon, 22 Feb 2021 15:24:49 +0100 Message-ID: Subject: Re: [PATCH] ARM: dts: nuvoton: Fix flash layout To: IS20 Ofer Eilon Cc: Avi Fishman , Tomer Maimon , Benjamin Fair , Tali Perry , Patrick Venture , Nancy Yuen , Rob Herring , OpenBMC Maillist , devicetree , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ofer, The oldest version from igps doesn't work as well as the latest version from u-boot github. The only version that works for me is in software deliverables: https://github.com/Nuvoton-Israel/nuvoton-info/tree/master/npcm7xx-poleg/ev= aluation-board/sw_deliverables/npcm7xx_v2.3 On Mon, 22 Feb 2021 at 15:10, IS20 Ofer Eilon wrot= e: > > Hi Avi, > > It seems an old version of uboot u-boot_2019.01.7.5.bin from igps below= : > > > https://apc01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgit= hub.com%2FNuvoton-Israel%2Figps%2Ftree%2Fmaster%2FImageGeneration%2Fversion= s&data=3D04%7C01%7Cofer.eilon%40nuvoton.com%7Ce56881b8491d42e5ee4c08d8d= 71bacd4%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7C0%7C637495861162860437%7CU= nknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLC= JXVCI6Mn0%3D%7C1000&sdata=3D0%2BNzEv%2FSX9QTg0XumchRrU61uGbZ3CZXrtspXu2= 560I%3D&reserved=3D0 > > Please use latest from uboot.bin github. > > Regards, > Ofer > > > -----Original Message----- > From: Avi Fishman > Sent: Monday, February 22, 2021 12:21 PM > To: Anton Kachalov > Cc: Tomer Maimon ; Benjamin Fair ; Tali Perry ; Patrick Venture ; Nancy Yuen ; Rob Herring ; Ope= nBMC Maillist ; devicetree ; Linux Kernel Mailing List ; IS20 Ofer= Eilon > Subject: Re: [PATCH] ARM: dts: nuvoton: Fix flash layout > > 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://apc01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgit= h > > ub.com%2FNuvoton-Israel%2Fnuvoton-info%2Ftree%2Fmaster%2Fnpcm7xx-poleg > > %2Fevaluation-board%2Fsw_deliverables%2Fnpcm7xx_v2.3&data=3D04%7C01= % > > 7Cofer.eilon%40nuvoton.com%7Ce56881b8491d42e5ee4c08d8d71bacd4%7Ca3f249 > > 31d4034b4a94f17d83ac638e07%7C0%7C0%7C637495861162860437%7CUnknown%7CTW > > FpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6 > > Mn0%3D%7C1000&sdata=3Df4t41g3CQaFTQNfwwNVBrIwQScndIGcfRTms0yrTn5o%3= D > > &reserved=3D0 > > > > However, u-boot from igps repo: > > > > https://apc01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgit= h > > ub.com%2FNuvoton-Israel%2Figps%2Ftree%2Fmaster%2FImageGeneration%2Fver > > sions&data=3D04%7C01%7Cofer.eilon%40nuvoton.com%7Ce56881b8491d42e5e= e > > 4c08d8d71bacd4%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7C0%7C6374958611 > > 62860437%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiL > > CJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3D0%2BNzEv%2FSX9QTg0Xumc= h > > RrU61uGbZ3CZXrtspXu2560I%3D&reserved=3D0 > > > > 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 =3D <0x0080000 0x80000>; > > >> > read-only; > > >> > }; > > >> > - envparam@100000 { > > >> > - label =3D "env-param"; > > >> > + ubootenv@100000 { > > >> > + label =3D "u-boot-env"; > > >> > reg =3D <0x0100000 0x40000>; > > >> > read-only; > > >> > }; @@ -195,25 +195,13 @@ > > >> > kernel@200000 { > > >> > label =3D "kernel"; > > >> > reg =3D <0x0200000 0x400000>; > > >> > }; > > >> > - rootfs@600000 { > > >> > - label =3D "rootfs"; > > >> > - reg =3D <0x0600000 0x700000>; > > >> > + rofs@780000 { > > >> > + label =3D "rofs"; > > >> > + reg =3D <0x0780000 0x1680000>; > > >> > }; > > >> > - spare1@D00000 { > > >> > - label =3D "spare1"; > > >> > - reg =3D <0x0D00000 0x200000>; > > >> > - }; > > >> > - spare2@0F00000 { > > >> > - label =3D "spare2"; > > >> > - reg =3D <0x0F00000 0x200000>; > > >> > - }; > > >> > - spare3@1100000 { > > >> > - label =3D "spare3"; > > >> > - reg =3D <0x1100000 0x200000>; > > >> > - }; > > >> > - spare4@1300000 { > > >> > - label =3D "spare4"; > > >> > - reg =3D <0x1300000 0x0>; > > >> > + rwfs@1e00000 { > > >> > + label =3D "rwfs"; > > >> > + reg =3D <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 > ________________________________ > ________________________________ > The privileged confidential information contained in this email is inten= ded for use only by the addressees as indicated by the original sender of t= his email. If you are not the addressee indicated in this email or are not = responsible for delivery of the email to such a person, please kindly reply= to the sender indicating this fact and delete all copies of it from your c= omputer and network server immediately. Your cooperation is highly apprecia= ted. It is advised that any unauthorized use of confidential information of= Nuvoton is strictly prohibited; and any information in this email irreleva= nt to the official business of Nuvoton shall be deemed as neither given nor= endorsed by Nuvoton.