From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7198826225008115712 X-Received: by 2002:a05:651c:2c7:b0:293:4e6d:f4f7 with SMTP id f7-20020a05651c02c700b002934e6df4f7mr3387606ljo.3.1679059288931; Fri, 17 Mar 2023 06:21:28 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:651c:222a:b0:299:8859:2407 with SMTP id y42-20020a05651c222a00b0029988592407ls1044752ljq.1.-pod-prod-gmail; Fri, 17 Mar 2023 06:21:27 -0700 (PDT) X-Google-Smtp-Source: AK7set+d7JcWDmaZHcVaxeMPwoy9O43sx4XyDi20rzmgqHDoW3Q9kX4u+o0Gp1EAJL2sespppT9k X-Received: by 2002:a2e:82c2:0:b0:298:a124:dd8d with SMTP id n2-20020a2e82c2000000b00298a124dd8dmr3118290ljh.3.1679059287060; Fri, 17 Mar 2023 06:21:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679059287; cv=none; d=google.com; s=arc-20160816; b=oRTR6yibJvk88Q0QXZBFmKTuVV+4T95M8ODVhldjsfOXlwhC8tLySWFJsf5sKiQ+45 ATAWQ/8UjYZPdFxYW4BOgaZEja9+zBtbWJllDp2pzkSaKWBtgwfGPa8N0TsesU2K+9Tw Tn8VA/CSJFa+WN4xufAAm/FfSh9sduC3w3Z54eDjLHA1cGW9L5idknzpiUifkaBniypu 4omwhgQ0iOCBIWpHrnLcvZdH7ZIRsy33/afru5I0wr8EtNeajSv1UhLOfuscurzSt+23 UqpY/0UfjUcdMsN2Mj5a2cMPapVDGdL7Yt+KmEKruslY1PNF/RUxvxUa4305FzfxJ8zA ZMkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:message-id:date :subject:cc:to:from:dkim-signature; bh=sNgxHsW2oETg38yr33le2dytcBl8gQqn/JqZV5sHiC8=; b=xWl4JrDk/XSaGaLvNKFNF5Ed23fr7XKAdbrtd1ktq9RX6bKrUcuMX2nD7HYCN6chD8 jbKDNS0Gv6m5JsXsPUNcPcaBn0KP2JMwL4VHxFQJd/8JwI71OToB2VvTAYYy8uZb/F+m YgDEJVLYsFvSTWTcU/ddUZvQ3DcCGlNO/Yd4uUufbaOt4LsPJdy/jeaXVqvXumc72Ahx IpH/djGxecZlWX8vhln2zaMd8xppolkoBRR23CpVkhlTgD1h1NV6sMeDnuBCMR7sAAjP x3b/6Asfog82Xk5HCx/nkjiVEhqv5+SY+mhMFqLuqxjiv6fLB01wiCgJlRqhlqLrh8LJ WWrw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b="c88bh2/g"; spf=pass (google.com: domain of fm-72506-2023031713212416925433ec3e661dae-jarcf_@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-72506-2023031713212416925433ec3e661dae-jArCF_@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from mta-65-225.siemens.flowmailer.net (mta-65-225.siemens.flowmailer.net. [185.136.65.225]) by gmr-mx.google.com with ESMTPS id 5-20020a05651c12c500b002959f20a2afsi99142lje.8.2023.03.17.06.21.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Mar 2023 06:21:25 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-72506-2023031713212416925433ec3e661dae-jarcf_@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) client-ip=185.136.65.225; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b="c88bh2/g"; spf=pass (google.com: domain of fm-72506-2023031713212416925433ec3e661dae-jarcf_@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-72506-2023031713212416925433ec3e661dae-jArCF_@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: by mta-65-225.siemens.flowmailer.net with ESMTPSA id 2023031713212416925433ec3e661dae for ; Fri, 17 Mar 2023 14:21:25 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=felix.moessbauer@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc; bh=sNgxHsW2oETg38yr33le2dytcBl8gQqn/JqZV5sHiC8=; b=c88bh2/gAJa9hp/JWv21YNDYX8NDu5Q8K4V1U794lu63UErWD85jSKc+mwMUkoH6vt5sS/ C0qbrsjjJRfZSol5vPuzGIKr3U6aDSRryR7K39lw9r7nVTAj4GuMbhknDgOpPIauBeR3ufIZ q7RHvVEZ+AT8LwEC6AfIEzuvCW3ag=; From: Felix Moessbauer To: isar-users@googlegroups.com Cc: jan.kiszka@siemens.com, daniel.bovensiepen@siemens.com, florian.bezdeka@siemens.com, Felix Moessbauer Subject: [PATCH v3 0/7] Add BSP for StarFiveTech VisionFive2 Risc-V board Date: Fri, 17 Mar 2023 14:20:59 +0100 Message-Id: <20230317132106.1111258-1-felix.moessbauer@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-72506:519-21489:flowmailer X-TUID: 84d1BTTfeTmO Changes since v2: - rebased onto next - rework u-boot customization (p1) - update opensbi - update kernel Changes since v1: - rebased onto next (including bitbake 2.0 migration) - exclude opensbi memory range in u-boot DT - use upstream OpenSBI version (instead of StarFive version) This series adds a new machine "starfive-visionfive2" which is a Risc-V board based on the JH7110 SoC. The BSP is modeled based on the buildroot SDK [1], but without any proprietary imaging components. Further, we implement the fit + efi boot toolchain, instead of the proposed ubootenv + fit version. This also requires that we embed the board's linux device tree into the fit, as memory and reserved-memory nodes are resolved via the efi API (implemented by u-boot) instead of resolving them via the DT in Linux. As the JH7110 SoC has no usable upstream support yet, we directly build the 5.15 based kernel from the SDK, instead of porting patches on top of the standard Linux. Distro kernels are also not supported. Best regards, Felix Moessbauer Siemens AG Felix Moessbauer (7): u-boot: make KCFLAGS and HOSTCFLAGS configurable starfive-visionfive2: package u-boot starfive-visionfive2: package opensbi firmware starfive-visionfive2: add BSP kernel starfive-visionfive2: create u-boot-spl firmware starfive-visionfive2: create u-boot-spl FIT image starfive-visionfive2: add machine meta-isar/conf/local.conf.sample | 1 + .../conf/machine/starfive-visionfive2.conf | 29 ++++++ .../starfive-visionfive2-sid-ports.conf | 7 ++ .../jh7110-u-boot-spl-image/files/install | 1 + .../jh7110-u-boot-spl-image/files/rules | 13 +++ .../jh7110-u-boot-spl-image_0.1.bb | 30 +++++++ .../jh7110-u-boot-spl-tool_0.1.bb | 23 +++++ .../files/starfive-visionfive2-rules.tmpl | 17 ++++ ...ensbi-starfive-visionfive2_1.2+20230310.bb | 31 +++++++ ...x-offset-of-env-data-block-on-jh7110.patch | 30 +++++++ ...iscv-Fix-build-against-binutils-2.38.patch | 55 ++++++++++++ ...-opensbi-memory-range-in-device-tree.patch | 40 +++++++++ ...upport-building-double-float-modules.patch | 89 +++++++++++++++++++ ...five-visionfive2_2022.01-rc4+VF2-v2.8.0.bb | 44 +++++++++ .../files/rules.tmpl | 12 +++ .../files/visionfive2-u-boot-firmware.install | 1 + .../visionfive2-uboot-fit-image.its.tmpl | 41 +++++++++ .../visionfive2-u-boot-firmware.bb | 36 ++++++++ ...or-unrecognized-opcode-csrr-a5-0xc01.patch | 26 ++++++ .../linux/files/starfive2_extra.cfg | 3 + .../linux/linux-starfive_5.15-visionfive2.bb | 18 ++++ .../canned-wks/starfive-visionfive2.wks.in | 23 +++++ .../u-boot/files/debian/rules.tmpl | 5 +- meta/recipes-bsp/u-boot/u-boot-custom.inc | 5 +- 24 files changed, 578 insertions(+), 2 deletions(-) create mode 100644 meta-isar/conf/machine/starfive-visionfive2.conf create mode 100644 meta-isar/conf/multiconfig/starfive-visionfive2-sid-ports.conf create mode 100644 meta-isar/recipes-bsp/jh7110-u-boot-spl-image/files/install create mode 100644 meta-isar/recipes-bsp/jh7110-u-boot-spl-image/files/rules create mode 100644 meta-isar/recipes-bsp/jh7110-u-boot-spl-image/jh7110-u-boot-spl-image_0.1.bb create mode 100644 meta-isar/recipes-bsp/jh7110-u-boot-spl-tool/jh7110-u-boot-spl-tool_0.1.bb create mode 100644 meta-isar/recipes-bsp/opensbi/files/starfive-visionfive2-rules.tmpl create mode 100644 meta-isar/recipes-bsp/opensbi/opensbi-starfive-visionfive2_1.2+20230310.bb create mode 100644 meta-isar/recipes-bsp/u-boot/files/starfive-visionfive2/0001-fix-offset-of-env-data-block-on-jh7110.patch create mode 100644 meta-isar/recipes-bsp/u-boot/files/starfive-visionfive2/0001-riscv-Fix-build-against-binutils-2.38.patch create mode 100644 meta-isar/recipes-bsp/u-boot/files/starfive-visionfive2/0002-exclude-opensbi-memory-range-in-device-tree.patch create mode 100644 meta-isar/recipes-bsp/u-boot/files/starfive-visionfive2/0002-riscv-support-building-double-float-modules.patch create mode 100644 meta-isar/recipes-bsp/u-boot/u-boot-starfive-visionfive2_2022.01-rc4+VF2-v2.8.0.bb create mode 100644 meta-isar/recipes-bsp/visionfive2-u-boot-firmware/files/rules.tmpl create mode 100644 meta-isar/recipes-bsp/visionfive2-u-boot-firmware/files/visionfive2-u-boot-firmware.install create mode 100644 meta-isar/recipes-bsp/visionfive2-u-boot-firmware/files/visionfive2-uboot-fit-image.its.tmpl create mode 100644 meta-isar/recipes-bsp/visionfive2-u-boot-firmware/visionfive2-u-boot-firmware.bb create mode 100644 meta-isar/recipes-kernel/linux/files/fix-Error-unrecognized-opcode-csrr-a5-0xc01.patch create mode 100644 meta-isar/recipes-kernel/linux/files/starfive2_extra.cfg create mode 100644 meta-isar/recipes-kernel/linux/linux-starfive_5.15-visionfive2.bb create mode 100644 meta-isar/scripts/lib/wic/canned-wks/starfive-visionfive2.wks.in -- 2.30.2