From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7220354510442463232 X-Received: by 2002:ac2:43c3:0:b0:4e8:5f14:20fb with SMTP id u3-20020ac243c3000000b004e85f1420fbmr2863421lfl.3.1681119788209; Mon, 10 Apr 2023 02:43:08 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:651c:1311:b0:2a7:73e2:ccaa with SMTP id u17-20020a05651c131100b002a773e2ccaals458156lja.6.-pod-prod-gmail; Mon, 10 Apr 2023 02:43:06 -0700 (PDT) X-Google-Smtp-Source: AKy350Z1hdJtGkrVVjBS6sC1C75i4K5q3G+PnzhsTz7kZBN1AIWIx6L3kFY4uWKYDMngAJgsj39H X-Received: by 2002:a2e:9097:0:b0:2a7:7b8e:5888 with SMTP id l23-20020a2e9097000000b002a77b8e5888mr522792ljg.27.1681119786339; Mon, 10 Apr 2023 02:43:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681119786; cv=none; d=google.com; s=arc-20160816; b=dbjQI8ge5Zx8pLMEZm+CuKNEEEh68waYZ4qpypypdlzD0QhCIOgil9eGIh8euAPPCa Fhc4B1m1ZKaZkACKEUDS08h3/ZJ3UlU3oNvMBKxcVzVgvWeGhJjjKwjV74SsW59T9n+z fAwWv0gIAJQkB74l3RkUkHyuqjvXUdhgyzDUhZLIZWpagVOUUeIRIb1ZsqhaJTDNM/lR Fh2Vwy9Gga3hGxMyWWKLq1M/9MxZVXc7R4iIz4V0iuIgsKvUYJ5nxn2dQuVWPc+ZAQwr b54aicpIlgb31ravWOji4pCsaskj09FI0phHCSBrwsC9JYDBXy9ljPsOluRkvlweV/F4 JPpg== 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=ptndAc8coYh9LSF4QCRuRD1QOy3cPrgQe1QfzVA+Nso=; b=VruRIvK4ZfloUCzXqe+DS78DNcLxDnSYihgw+Rf+wu9dhnirRfyyjyy32UnmP1lfdB XKoxb6Dlu43yZ/OJOveB2K5KRjbmGW5vFdXIQ8TE9LO9qS+uM6YzmOQo8qkZRiSH+d/0 V/hox1gTvwtaOHD+r/iQa2sBsuQ1Tj6fqVUe8vJ+GQ9OiGMToMfp8qTd61yF26ylHgaj rq+I0Yvt5Yk5eCpClriBWKAVL45c1Kj3rdl/hUSUb3gkwllvp5ZMPw6nLzJQu5dyyQQ8 dWn5BWC6ZF7b8AwhL1PzV3tD94tCQZ3E1CMZKEogASZuafk83n7tmiD87bWl3vZUL/q8 a5UQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=hLexZpFz; spf=pass (google.com: domain of fm-72506-202304100943053eca03122eb51590c2-coshur@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-72506-202304100943053eca03122eb51590c2-coshUR@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Return-Path: Received: from mta-64-227.siemens.flowmailer.net (mta-64-227.siemens.flowmailer.net. [185.136.64.227]) by gmr-mx.google.com with ESMTPS id e22-20020a2ea556000000b002a77900f7b9si57746ljn.8.2023.04.10.02.43.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Apr 2023 02:43:06 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-72506-202304100943053eca03122eb51590c2-coshur@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) client-ip=185.136.64.227; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=hLexZpFz; spf=pass (google.com: domain of fm-72506-202304100943053eca03122eb51590c2-coshur@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-72506-202304100943053eca03122eb51590c2-coshUR@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 202304100943053eca03122eb51590c2 for ; Mon, 10 Apr 2023 11:43:05 +0200 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=ptndAc8coYh9LSF4QCRuRD1QOy3cPrgQe1QfzVA+Nso=; b=hLexZpFz2j36Ev9uZiBp5ovB91ASCD4qUMRMNEPCY/h4ycK7dJiErrSvDpWhX4pxg/nzxD Hi2cq9YRWS+Q5Vj0bGh4jVfxVDclUgeGFV7XaxIrW8v7MlMA2QliwXx9RQROi9FokFbvauTL RuwC5KHnYKzjHOtqJN7haOUYTFUY8=; 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 v4 0/6] Add BSP for StarFiveTech VisionFive2 Risc-V board Date: Mon, 10 Apr 2023 09:42:46 +0000 Message-Id: <20230410094252.1151370-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: wjj26kHGCdwc Changes since v3: - rebased onto next - drop "u-boot: make KCFLAGS and HOSTCFLAGS configurable" - opensbi: update version - u-boot - update which makes patches obsolete - support to compile without cross - simplify build dependencies - remove KCFLAGS injection - spl_tool: replace with OSS version from StarFive - linux: update which makes patches obsolete 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 (6): 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 | 10 +++++ .../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 ++++++++++++++ ...five-visionfive2_2022.01-rc4+VF2-2.11.5.bb | 31 ++++++++++++++ .../files/rules.tmpl | 12 ++++++ .../files/visionfive2-u-boot-firmware.install | 1 + .../visionfive2-uboot-fit-image.its.tmpl | 41 +++++++++++++++++++ .../visionfive2-u-boot-firmware.bb | 36 ++++++++++++++++ .../linux/files/starfive2_extra.cfg | 3 ++ .../linux/linux-starfive_5.15-visionfive2.bb | 17 ++++++++ .../canned-wks/starfive-visionfive2.wks.in | 23 +++++++++++ 17 files changed, 313 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+20230310.bb create mode 100644 meta-isar/recipes-bsp/u-boot/u-boot-starfive-visionfive2_2022.01-rc4+VF2-2.11.5.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/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