From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7198826225008115712 X-Received: by 2002:a17:906:161b:b0:87d:8737:4704 with SMTP id m27-20020a170906161b00b0087d87374704mr2075303ejd.15.1676107343229; Sat, 11 Feb 2023 01:22:23 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6402:2713:b0:4ac:b59b:6e28 with SMTP id y19-20020a056402271300b004acb59b6e28ls1575791edd.2.-pod-prod-gmail; Sat, 11 Feb 2023 01:22:21 -0800 (PST) X-Google-Smtp-Source: AK7set+SAZA06OdFWlFv7G5qz6w/JIUv/ZEfR5ddX4V5uO5y0o7I5O0Fm4BYZr+QXVtbK3dupsak X-Received: by 2002:a50:d704:0:b0:46f:a6ea:202 with SMTP id t4-20020a50d704000000b0046fa6ea0202mr20538523edi.37.1676107341637; Sat, 11 Feb 2023 01:22:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676107341; cv=none; d=google.com; s=arc-20160816; b=HT9KMU7cNOeDBvD2nYi+wbTxNTJTI0eW9lmhFxQTBkuDqykhgQltMVlldjxx+uJExu a6In4m/g8nDEm8kq1pwPjEs1LTpF+YEdesMftaAUINvScJcgbRqGP7j0xBJ5o1YjE//7 poWUnha7GujeX2vMxXjxWGh4mPvEYr9VZo2r9JL/F7AWKOMht1SnMAk+2rTkN9PbfC/I NVL1eN+tjn3m5RN78MQGjBSspfSN2ypQpt9eCEMx/KHkC0JsNeZpViH1HHUrlfyPIZEO aD4fpMX/kFBbaZwebW0FB487CAXeoU3qc119QPtgmCos9Ks/e3JjWnyY7TaSToWKRKah B70g== 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=+7SnOIpAbMPWpjJLSAikRBZ6VxnG8dD8RkHQ0AtdMAw=; b=uAZ9BnFv202bI2vqnQ+Ypf7SBD5TIHoojPhmCVbVJAfuYjCKrDWebf4WcS2d6vUCVp VdHRqdngDYzV4E4bF0cs+xnJCEXyUruabStUi8b5xuxB4Jir/myTprfbTnS0Kn4THQYm j0GrKgpRhDk0cTBCq3t6eZBYPbhnHwWGN75Yki1ObVYq6RfDEk5somVGGeOCtGMPMvBO 9eMB57Sc4HyfvP9hTHzUBUL6iitPuCcHi+/daMEbnSrLSf58a7HnsPproRL6eZ3A6KkI nZfUehwOxD2xJL7ItXFcOZKqHw3KpBNrprJBJzXyk7rACw56XQi0Ls6/IOZt285NHqE1 Ev+A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=Sg1Du5Xk; spf=pass (google.com: domain of fm-72506-20230211092221761c125a9ae3dc2c93-d5yhtu@rts-flowmailer.siemens.com designates 185.136.64.225 as permitted sender) smtp.mailfrom=fm-72506-20230211092221761c125a9ae3dc2c93-D5YHtu@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from mta-64-225.siemens.flowmailer.net (mta-64-225.siemens.flowmailer.net. [185.136.64.225]) by gmr-mx.google.com with ESMTPS id g35-20020a056402322300b004ab3a681994si235691eda.4.2023.02.11.01.22.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Feb 2023 01:22:21 -0800 (PST) Received-SPF: pass (google.com: domain of fm-72506-20230211092221761c125a9ae3dc2c93-d5yhtu@rts-flowmailer.siemens.com designates 185.136.64.225 as permitted sender) client-ip=185.136.64.225; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=Sg1Du5Xk; spf=pass (google.com: domain of fm-72506-20230211092221761c125a9ae3dc2c93-d5yhtu@rts-flowmailer.siemens.com designates 185.136.64.225 as permitted sender) smtp.mailfrom=fm-72506-20230211092221761c125a9ae3dc2c93-D5YHtu@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: by mta-64-225.siemens.flowmailer.net with ESMTPSA id 20230211092221761c125a9ae3dc2c93 for ; Sat, 11 Feb 2023 10:22:21 +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=+7SnOIpAbMPWpjJLSAikRBZ6VxnG8dD8RkHQ0AtdMAw=; b=Sg1Du5Xk0Hza9KCSnINou+MM+vCQoJyOcUheWRn6kfW0KSEv7M0W4jjpnSyMPTDiqU5cW7 Ir6tpjVU0/U+XppQQa58xrwP6xiE16d9WkeHfQZlnkP+WHKbtRTtdb3n/xtxGHd3QKQm+YR/ T33O5yg9ktewIRtOnNkY3UbIqbH0I=; From: Felix Moessbauer To: isar-users@googlegroups.com Cc: jan.kiszka@siemens.com, daniel.bovensiepen@siemens.com, florian.bezdeka@siemens.com, jay.zhou@starfivetech.com, Felix Moessbauer Subject: [PATCH v2 0/7] Add BSP for StarFiveTech VisionFive2 Risc-V board Date: Sat, 11 Feb 2023 09:21:45 +0000 Message-Id: <20230211092152.949442-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: sKn0iXMsdfKs 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. Note: This series requires the following patch, which is NOT included: "fix cyclic dep on crossbuild-essential-riscv64" Best regards, Felix Moessbauer Siemens AG Felix Moessbauer (7): u-boot: inject debian multi-arch config 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+20230107.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 | 38 ++++++++ .../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 | 9 ++ 23 files changed, 573 insertions(+) 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+20230107.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.34.1