From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7193944713273016320 X-Received: by 2002:a05:6512:36c1:b0:4b5:6cff:a6f2 with SMTP id e1-20020a05651236c100b004b56cffa6f2mr3246557lfs.340.1674970778956; Sat, 28 Jan 2023 21:39:38 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ac2:4891:0:b0:4d1:8575:2d31 with SMTP id x17-20020ac24891000000b004d185752d31ls57309lfc.0.-pod-prod-gmail; Sat, 28 Jan 2023 21:39:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXu+3VYf+EEc+xZ13ugldu9dLfx+TAIxhggVX8x+tKUNaHiU+zZwzOHkpH7KAjvJvXxGT5vf X-Received: by 2002:a05:6512:314f:b0:4b6:e494:a98d with SMTP id s15-20020a056512314f00b004b6e494a98dmr10124329lfi.44.1674970776967; Sat, 28 Jan 2023 21:39:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674970776; cv=none; d=google.com; s=arc-20160816; b=WCJ3qrdJmz0AxrO4Nzvn7TW1spJAyd+DdBcRQfDrjZw9UTAUoGMNEZDhuEPXNax1B3 lL3ZN6Yv6Q4jsCvonCnCNWrXlSoFMq9l9izSHKY+L69GqrTfhGZcIAdcJKXN0MqIIwMN 3rTWtmA+EMBRsuN2zHNSTh9Hgfd2Kih8rbEMJViXafOta+X6ESR+TVd5ES890pugGsWp RzxARUQlpVAUOlh84/4kiM2UbTGUxCJiebhDM0waeQ3ImFeowtIV9Uu0IXGOQfDYgyuj y6g/xxE2gMGLnbmpctRmlqQb5/MRg07xMwzY/Wi6ai8wnt/ZRJUEz8NV3RFrhzhKwhBH sxpA== 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=IhK3H+R1cltwXxnhPACjA5Zbgtrl9xmenbWZL7qGqlg=; b=rErtQBNy+4s7CGRJeRXO15dyJWVudAirKVDPlQIIXG01/Z+fwopOzfLA/WkgM2aZBT kJfIsST2u8QTWT+n6N/NrrgaEBiunOp2X1WNhcca6pZ/cSEZpWjzQnZYAIVGviJwG3Nh dW/yG27xFYND8Tk1jmZwfbwgvYjciJ+gtxV4B5tmYgyZ+uMIFrLFPJab5sOyc2Cru58K g7YIk+BzCgJ+guwzjt3qNisCKLgNh8c3smexf64j40tta7wvPLHA+WkFoZsrqvx9aWFm go/KBmQv0G4BtOgaqZdnyCLd8dASUPaRobnsuy0Ge2WgVJqtLQuWKfI27uo6gaRzDMSw zCww== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=EASQNaKy; spf=pass (google.com: domain of fm-72506-20230129053936cce62805a7167b38db-kcfalp@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) smtp.mailfrom=fm-72506-20230129053936cce62805a7167b38db-kCfaLp@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from mta-65-226.siemens.flowmailer.net (mta-65-226.siemens.flowmailer.net. [185.136.65.226]) by gmr-mx.google.com with ESMTPS id d4-20020a196b04000000b004d1527c0905si504962lfa.6.2023.01.28.21.39.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Jan 2023 21:39:36 -0800 (PST) Received-SPF: pass (google.com: domain of fm-72506-20230129053936cce62805a7167b38db-kcfalp@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) client-ip=185.136.65.226; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=EASQNaKy; spf=pass (google.com: domain of fm-72506-20230129053936cce62805a7167b38db-kcfalp@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) smtp.mailfrom=fm-72506-20230129053936cce62805a7167b38db-kCfaLp@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: by mta-65-226.siemens.flowmailer.net with ESMTPSA id 20230129053936cce62805a7167b38db for ; Sun, 29 Jan 2023 06:39:36 +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=IhK3H+R1cltwXxnhPACjA5Zbgtrl9xmenbWZL7qGqlg=; b=EASQNaKyTxMmtVJ7t5mQJSzzVtsW397PYtFM/OuOKFOvfd+zIAwaJwbfV/mvXFDqJ06JOg JbOuOdSMzCUnhnG0pRn27KH2GBhTK/8dttCTZuDGsS/5xlIaBi92CBC7XEdgjfRL2ddgz8s6 QUvv+dHaAoFE8VeCfMGK4ITlNKA7I=; From: Felix Moessbauer To: isar-users@googlegroups.com Cc: daniel.bovensiepen@siemens.com, jan.kiszka@siemens.com, florian.bezdeka@siemens.com, Felix Moessbauer Subject: [PATCH 0/7] Add BSP for StarFiveTech VisionFive2 Risc-V board Date: Sun, 29 Jan 2023 05:38:49 +0000 Message-Id: <20230129053856.4014419-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: AV7Lf/N6K8nC 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 [1] https://github.com/starfive-tech/VisionFive2 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 firmware 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 ++++ .../opensbi-starfive-visionfive2_2.8.0.bb | 30 +++++++ ...x-offset-of-env-data-block-on-jh7110.patch | 30 +++++++ ...iscv-Fix-build-against-binutils-2.38.patch | 55 ++++++++++++ ...upport-building-double-float-modules.patch | 89 +++++++++++++++++++ ...five-visionfive2_2022.01-rc4+VF2-v2.8.0.bb | 37 ++++++++ .../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/linux-starfive_5.15-visionfive2.bb | 17 ++++ .../canned-wks/starfive-visionfive2.wks.in | 23 +++++ .../u-boot/files/debian/rules.tmpl | 9 ++ 21 files changed, 527 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_2.8.0.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-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/linux-starfive_5.15-visionfive2.bb create mode 100644 meta-isar/scripts/lib/wic/canned-wks/starfive-visionfive2.wks.in -- 2.34.1