From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7138269680747151360 X-Received: by 2002:a5d:4452:0:b0:226:c784:10d5 with SMTP id x18-20020a5d4452000000b00226c78410d5mr18016169wrr.382.1662127744201; Fri, 02 Sep 2022 07:09:04 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:5b08:0:b0:225:6559:3374 with SMTP id bx8-20020a5d5b08000000b0022565593374ls7850389wrb.2.-pod-prod-gmail; Fri, 02 Sep 2022 07:09:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR6UXsRSdUavZFJSAZ4EAULBM6g07mXV1hAJXr+ny6oA/u7r6Sck88+0GKjuX3HZ78OWdkKa X-Received: by 2002:a05:6000:22b:b0:226:d378:50f1 with SMTP id l11-20020a056000022b00b00226d37850f1mr16791901wrz.316.1662127742594; Fri, 02 Sep 2022 07:09:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662127742; cv=none; d=google.com; s=arc-20160816; b=WZS+SsqTaAyD8ebFJSePCzbgyzFkYa6YqowZICu6TrkhpOKsgeutXTtBE6r2L2+o6b ToMjhDIfQ5i36tuvtT1ZAnOtOTgFvN6Gcwk6F+wG4+MyuW7UzjlIOO3fV8qRKBImzlZQ 8TKKETHrkExZSDUCVHUTPikOZrbdpgnZX/hTQLrQFBa3DxeN9MZ1QlKKRNz3C75S6p6N tsru4B9RFN0AdoZh9orK/CzQke0Yb6r4q7ouSLpS8+Xw0dfbn1Y1QZ056XMh1vNOnmzc DNKiruh6/Q2Je9jocY+6w6fFw69l5q6iYPk06dkbJvaqZRo8ijfA7Wt1X8MQjoEy9Vx/ 2JjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=dssrp/HysEpJ8wmrQSaq3VglnK6X7Bpgoce5JNcwbZ8=; b=cJCZaASVytJjS19iBRLExLBdrq+fLRW6Xs3vUfdCNEUEhEORWuLIvgaK/NDIzEf6jk Q90BTx8xdNg50zcnd4/wI2MyRUyY/07nawJzKl5nx/HLvkpQ/uuXg4U1HXJMNs7OX5Ba GSgEGJCGYL9zNCBJXveIfd2W9oPp6Ix/n7ZzEPk5UMQL0rzoIQTZ+9sBJx/FgGZKaow2 CRsYpBvbF0H2v5RNIJzskKqswoZPzzhdZ31UceoI9C6LAhM9lRPOzFnk6o5BT/IFBrAW EMnuJBhc8Wgm1rWCsC1jeLhr3kMTM4vq8zjD5upGt+ii+MMqIGA7gEcV91VOYee/B78C vyQw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id n20-20020a05600c501400b003a5b20f80f5si458449wmr.1.2022.09.02.07.09.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Sep 2022 07:09:02 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from home.localnet (44-208-124-178-static.mgts.by [178.124.208.44] (may be forged)) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 282E91wO008731 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 2 Sep 2022 16:09:01 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com, Jan Kiszka Subject: Re: [PATCH v2 2/2] opensbi-sifive-fu540: update to version 1.1 Date: Fri, 02 Sep 2022 17:08:35 +0300 Message-ID: <2563402.fDdHjke4Dd@home> In-Reply-To: <3ffa219c-1a93-c869-1ba7-285e870dcd21@siemens.com> References: <20220902075859.8026-1-ubely@ilbers.de> <20220902075859.8026-3-ubely@ilbers.de> <3ffa219c-1a93-c869-1ba7-285e870dcd21@siemens.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="nextPart2555558.vYhyI6sBWr" Content-Transfer-Encoding: 7Bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,HTML_MESSAGE autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: 8mFegbe0Yh9H This is a multi-part message in MIME format. --nextPart2555558.vYhyI6sBWr Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" In the email from Friday, 2 September 2022 16:26:15 +03 user Jan Kiszka wrote: > On 02.09.22 09:58, Uladzimir Bely wrote: > > This version includes a build fix for riscv64 against binutils >=2.38: > > > > https://github.com/riscv-software-src/opensbi/commit/5d53b55 > > > > Signed-off-by: Uladzimir Bely > > --- > > > > meta-isar/recipes-bsp/opensbi/files/sifive-fu540-rules | 2 +- > > ...pensbi-sifive-fu540_0.9.bb => opensbi-sifive-fu540_1.1.bb} | 4 ++-- > > 2 files changed, 3 insertions(+), 3 deletions(-) > > rename meta-isar/recipes-bsp/opensbi/{opensbi-sifive-fu540_0.9.bb => > > opensbi-sifive-fu540_1.1.bb} (68%)> > > diff --git a/meta-isar/recipes-bsp/opensbi/files/sifive-fu540-rules > > b/meta-isar/recipes-bsp/opensbi/files/sifive-fu540-rules index > > 04e5b5ae..98bc1b49 100644 > > --- a/meta-isar/recipes-bsp/opensbi/files/sifive-fu540-rules > > +++ b/meta-isar/recipes-bsp/opensbi/files/sifive-fu540-rules > > @@ -5,7 +5,7 @@ export CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)- > > > > endif > > > > override_dh_auto_build: > > - CFLAGS= LDFLAGS= $(MAKE) $(PARALLEL_MAKE) PLATFORM=sifive/fu540 \ > > + CFLAGS= LDFLAGS= $(MAKE) $(PARALLEL_MAKE) PLATFORM=generic \ > > > > FW_PAYLOAD_PATH=/usr/lib/u-boot/sifive_unleashed/u-boot.bin > > > > %: > > diff --git a/meta-isar/recipes-bsp/opensbi/opensbi-sifive-fu540_0.9.bb > > b/meta-isar/recipes-bsp/opensbi/opensbi-sifive-fu540_1.1.bb similarity > > index 68% > > rename from meta-isar/recipes-bsp/opensbi/opensbi-sifive-fu540_0.9.bb > > rename to meta-isar/recipes-bsp/opensbi/opensbi-sifive-fu540_1.1.bb > > index c25215be..92f75f2d 100644 > > --- a/meta-isar/recipes-bsp/opensbi/opensbi-sifive-fu540_0.9.bb > > +++ b/meta-isar/recipes-bsp/opensbi/opensbi-sifive-fu540_1.1.bb > > @@ -8,7 +8,7 @@ inherit dpkg > > > > SRC_URI = " \ > > > > https://github.com/riscv/opensbi/archive/v${PV}.tar.gz;downloadfilena > > me=opensbi-${PV}.tar.gz \ file://sifive-fu540-rules" > > > > -SRC_URI[sha256sum] = > > "60f995cb3cd03e3cf5e649194d3395d0fe67499fd960a36cf7058a4efde686f0" > > +SRC_URI[sha256sum] = > > "d183cb890130983a4f01e75fc03ee4f7ea0e16a7923b8af9c6dff7deb2fedaec"> > > S = "${WORKDIR}/opensbi-${PV}" > > > > @@ -19,5 +19,5 @@ do_prepare_build() { > > > > cp ${WORKDIR}/sifive-fu540-rules ${WORKDIR}/rules > > deb_debianize > > > > - echo "build/platform/sifive/fu540/firmware/fw_payload.bin > > /usr/lib/opensbi/sifive-fu540/" > ${S}/debian/install + echo > > "build/platform/generic/firmware/fw_payload.bin > > /usr/lib/opensbi/sifive-fu540/" > ${S}/debian/install > ^^^^^^^ > This looks suspicious. Are we still building the right configuration? > > We have some fu540 somewhere. Could try to find it and test the image, > but that may take some time. > > Jan Yes, it would be great. There was a change in opensbi that moved fu540 platform into some generic one ( https:// github.com/riscv-software-src/opensbi/commit/9a7a677[1] ), so I considered it in the patch, but don't have an opportunity to check it on real hardware. Also, if you are on topic, you might advice some RISCV RISC-V that is worth buying and be supported in Isar. SiFive FU540 looks a bit outdated. -- Uladzimir Bely -------- [1] https://github.com/riscv-software-src/opensbi/commit/9a7a677 --nextPart2555558.vYhyI6sBWr Content-Transfer-Encoding: 7Bit Content-Type: text/html; charset="us-ascii"

In the email from Friday, 2 September 2022 16:26:15 +03 user Jan Kiszka wrote:

> On 02.09.22 09:58, Uladzimir Bely wrote:

> > This version includes a build fix for riscv64 against binutils >=2.38:

> >

> > https://github.com/riscv-software-src/opensbi/commit/5d53b55

> >

> > Signed-off-by: Uladzimir Bely <ubely@ilbers.de>

> > ---

> >

> >  meta-isar/recipes-bsp/opensbi/files/sifive-fu540-rules        | 2 +-

> >  ...pensbi-sifive-fu540_0.9.bb => opensbi-sifive-fu540_1.1.bb} | 4 ++--

> >  2 files changed, 3 insertions(+), 3 deletions(-)

> >  rename meta-isar/recipes-bsp/opensbi/{opensbi-sifive-fu540_0.9.bb =>

> >  opensbi-sifive-fu540_1.1.bb} (68%)>

> > diff --git a/meta-isar/recipes-bsp/opensbi/files/sifive-fu540-rules

> > b/meta-isar/recipes-bsp/opensbi/files/sifive-fu540-rules index

> > 04e5b5ae..98bc1b49 100644

> > --- a/meta-isar/recipes-bsp/opensbi/files/sifive-fu540-rules

> > +++ b/meta-isar/recipes-bsp/opensbi/files/sifive-fu540-rules

> > @@ -5,7 +5,7 @@ export CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)-

> >

> >  endif

> >

> >  override_dh_auto_build:

> > -    CFLAGS= LDFLAGS= $(MAKE) $(PARALLEL_MAKE) PLATFORM=sifive/fu540 \

> > +    CFLAGS= LDFLAGS= $(MAKE) $(PARALLEL_MAKE) PLATFORM=generic \

> >

> >          FW_PAYLOAD_PATH=/usr/lib/u-boot/sifive_unleashed/u-boot.bin

> > 

> >  %:

> > diff --git a/meta-isar/recipes-bsp/opensbi/opensbi-sifive-fu540_0.9.bb

> > b/meta-isar/recipes-bsp/opensbi/opensbi-sifive-fu540_1.1.bb similarity

> > index 68%

> > rename from meta-isar/recipes-bsp/opensbi/opensbi-sifive-fu540_0.9.bb

> > rename to meta-isar/recipes-bsp/opensbi/opensbi-sifive-fu540_1.1.bb

> > index c25215be..92f75f2d 100644

> > --- a/meta-isar/recipes-bsp/opensbi/opensbi-sifive-fu540_0.9.bb

> > +++ b/meta-isar/recipes-bsp/opensbi/opensbi-sifive-fu540_1.1.bb

> > @@ -8,7 +8,7 @@ inherit dpkg

> >

> >  SRC_URI = " \

> > 

> >      https://github.com/riscv/opensbi/archive/v${PV}.tar.gz;downloadfilena

> >      me=opensbi-${PV}.tar.gz \ file://sifive-fu540-rules"

> >

> > -SRC_URI[sha256sum] =

> > "60f995cb3cd03e3cf5e649194d3395d0fe67499fd960a36cf7058a4efde686f0"

> > +SRC_URI[sha256sum] =

> > "d183cb890130983a4f01e75fc03ee4f7ea0e16a7923b8af9c6dff7deb2fedaec">

> >  S = "${WORKDIR}/opensbi-${PV}"

> >

> > @@ -19,5 +19,5 @@ do_prepare_build() {

> >

> >      cp ${WORKDIR}/sifive-fu540-rules ${WORKDIR}/rules

> >      deb_debianize

> >

> > -    echo "build/platform/sifive/fu540/firmware/fw_payload.bin

> > /usr/lib/opensbi/sifive-fu540/" > ${S}/debian/install +    echo

> > "build/platform/generic/firmware/fw_payload.bin

> > /usr/lib/opensbi/sifive-fu540/" > ${S}/debian/install

>                             ^^^^^^^

> This looks suspicious. Are we still building the right configuration?

>

> We have some fu540 somewhere. Could try to find it and test the image,

> but that may take some time.

>

> Jan


Yes, it would be great.


There was a change in opensbi that moved fu540 platform into some generic one ( https://github.com/riscv-software-src/opensbi/commit/9a7a677 ), so I considered it in the patch, but don't have an opportunity to check it on real hardware.


Also, if you are on topic, you might advice some RISCV RISC-V that is worth buying and be supported in Isar. SiFive FU540 looks a bit outdated.


--

Uladzimir Bely


--nextPart2555558.vYhyI6sBWr--