From patchwork Sun Nov 22 21:53:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 183 Return-Path: Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a4a:df02:0:0:0:0:0 with SMTP id i2csp2785355oou; Sun, 22 Nov 2020 23:54:03 -0800 (PST) X-Received: by 2002:adf:d0d2:: with SMTP id z18mr341052wrh.297.1606118043337; Sun, 22 Nov 2020 23:54:03 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1606118043; cv=pass; d=google.com; s=arc-20160816; b=GzqgBfKNZKnyFQo14zCBwyymlDlEjceasVsmzf9Fue9T7YD7GUsffUEIOPdBNYSx+A VlZBQoJ/BjW2vUgpFIDBPChnbOzmvARSLPxVqfvMj40rHtEdOyLrmOKOFBMmSyVlvbLP UHXc7Sy+zfkzUdNQpsLDfqMm0trV9+sjvccfUKQjqfxsOZEtTehPHy1fVGmhcoJYuP2p N0KYiWx30XzQs1YC/BJCMNfmkxbNT1I4PgGY5n0nNlx1OnTKQdbAkSbsdv8BIhZtXgfL IjFfrYE2MvFUbaS7FAwE/rtpJldEEWgJfL2IsaHGdZZtEDlmGp2K0L/ARKmemIy/uAlL n9lA== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:sender:dkim-signature; bh=5wBTp1RAeEA7mflSHqOKnslp/Iyw8hMlcYGa9GXt5Sk=; b=MLA1kikdFlLuSO+09yJqd2iXn9k/IQgVJxC8T6E1Vt87qKfPJ8raR89GREqjfrfciB oO0D9nYhyiDBewpk4cfB7n9VCaCrrpWpC1f0zT0FecnU4+/tUVyNfinvS2LxnIEINNxq Ns4O9XH5SWqwTuAEa57JQctZpCaH6G+sugIqgFCMnoBQ7BXvn7TrMmyRnzxbFwTnH49u rTiSvimraadFSYDmNoHAH6MbBen/JMuHS+jknEANEjc0KxTjtWR+wWU4w56ZJ8H2JZvv H1gRgbME0k8eiu/CRXbvRdjM8THBFuh+6Qm4EoKFeBKvwx6ykEZ1tSKVjMojugeQcpoI RYjg== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=E94lSwjn; arc=pass (i=2 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of isar-users+bncbcji7smnv4nbbgwv5x6qkgqe53yfgka@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCJI7SMNV4NBBGWV5X6QKGQE53YFGKA@googlegroups.com; dmarc=fail (p=NONE sp=NONE dis=NONE arc=pass) header.from=siemens.com Received: from mail-sor-f55.google.com (mail-sor-f55.google.com. [209.85.220.55]) by mx.google.com with SMTPS id z22sor4861129wmi.29.2020.11.22.23.54.03 (Google Transport Security); Sun, 22 Nov 2020 23:54:03 -0800 (PST) Received-SPF: pass (google.com: domain of isar-users+bncbcji7smnv4nbbgwv5x6qkgqe53yfgka@googlegroups.com designates 209.85.220.55 as permitted sender) client-ip=209.85.220.55; Authentication-Results: mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=E94lSwjn; arc=pass (i=2 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of isar-users+bncbcji7smnv4nbbgwv5x6qkgqe53yfgka@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCJI7SMNV4NBBGWV5X6QKGQE53YFGKA@googlegroups.com; dmarc=fail (p=NONE sp=NONE dis=NONE arc=pass) header.from=siemens.com ARC-Seal: i=2; a=rsa-sha256; t=1606118043; cv=pass; d=google.com; s=arc-20160816; b=X3xMW67EjFYviTwWMtCBK5pgdPgBs1CMAh21o+Xt0x5PDIzTAy9IqAMSIdRfxKrHPr DAu+pFnrylQcjsD8fbENLMAuVMjenvnXp2HdNJ4GlrQ8eY/Voom08I8t0D5ktMKbthGt LsR6G0//CMnvHVsqAF2UXCcqOFHBKI7nj5tfq5ol6m5dsVvO8/1X2JJxBdKYFV94MLzb CdEVkhPHfub/S1s2ajxryxy/wmiSRLtx5uMtmgg8k6i3K7csid+CAz+B/8O+44m8oPlH f1VrWF3x3c+HjNCAQzM0qUpf9zVbiXo2mzivtXS8rLa/pMuHqiNNxu08MI7+Tj3gXNYx y3aQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:sender:dkim-signature; bh=5wBTp1RAeEA7mflSHqOKnslp/Iyw8hMlcYGa9GXt5Sk=; b=yDr1UMsDMMU1qSbf9vJl1h/JRR88RKzgclNsUPNKfGUDo5pAtSeb5OrJt1lUWvZpaS GygLL3qcwpPldhSWCHy+FEqAZnYFZ1OfFuS9dLcEM7SH1sidrlc2NjOsybZ2/FSvrTmC LGXc569QmLkCC881OZiipAyuuQ232UZnr9vSoh0Ki6aJJlxXhx+W50lX1C3uAYsCyNSY P1WHVYOaV5FkNf4B9cax7DbYRBRnCS3GIPBfwKKXEjGO0PGjHP1MJnRVqPJoYnxWeRfH 2zq4p1ywnBU/uyLEQi7xYPY5jFLSH36bF8Y4CgedqT1f0zRFlQ8n0hLP8pgVksJkD8Nf na3A== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=5wBTp1RAeEA7mflSHqOKnslp/Iyw8hMlcYGa9GXt5Sk=; b=E94lSwjndS7ibVrAze+Gs1g2qDe5gI9TIw2b1NK7oGm969jo7ENAMfxINa6MV8EpPY qI5LkyjJqYnPgSARfU3BLt7fwD7brEkaWYJfCq9Ly4nu2Snq6O920dBPAlEWyMW2/u/m 2Y6XtUCR7jaCKHcwUZqbf1hF6JRPpVXU1WImYId+TVPujGYT8kLVEMAJXrgdH5uPqi9p oWCWr7cyOjqmJ4s2MMEBTeZ6zWZRSetqofLFdsny4s0na7WbayaN4Tx9VSB6ijF823hn kxD3RVwW8KPuY7XMdItebfBEX83yCXUvslWqSVq71+icZMj7CK5Quzq0tyUEHl5hEGQP qEfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=5wBTp1RAeEA7mflSHqOKnslp/Iyw8hMlcYGa9GXt5Sk=; b=YJj3OAzAnVd4cUKrb8TE+nH6+NUkFwdbJIPPAU1NO/M6odyGts909RgANLd5tKvgHC MFLMT35/6+oj19oseOrf4w0WtTBq1DMFCCy2JXO/35dEq6szn3T4DPGxcp+OPfVF3TJ3 KvYZb0m9SpThcNd3IjEAroi+udSwZFbX8nvQ94/0UMUrenFhp8s3CIcmNOXUjcStomZP 5ebx/OJSYEgVDSTQx70IarkYb/wnc+p8HKZUJuE1LLb9YvJ3N/tHonAt7+CWaXvvRI56 7heJravyLK25p4X0yUfdN10JWm/1ZEt/xndZIqaiEGyaHyaEdr/gR29rtKT7xCKWn4J2 kbRw== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM532JuR8SzFF6l8Y6+OBoPumTKY9qLDERSJHd2DTNwBVpilCjluIf asTXQfYU4ipknUaI/NFFU+8= X-Google-Smtp-Source: ABdhPJwD0fH6I088eThNSYcQ/N/KH22WXN3GyuM+tajnngVzEbhWoXdozJ/nA/68CBwaqtVcpBcHxA== X-Received: by 2002:a05:600c:2159:: with SMTP id v25mr10566966wml.155.1606118043071; Sun, 22 Nov 2020 23:54:03 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:e5c2:: with SMTP id a2ls6310042wrn.3.gmail; Sun, 22 Nov 2020 23:54:02 -0800 (PST) X-Received: by 2002:adf:9144:: with SMTP id j62mr30924744wrj.419.1606118042106; Sun, 22 Nov 2020 23:54:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606118042; cv=none; d=google.com; s=arc-20160816; b=wqMcbNDv1bYy0Bh6i1qHghW9r4nc5UVKGeqLodPVHMvYOV+WvB8hfjo0AacTdYgs9m W0cRHKGFI7z2JzgmdV5k+79zdaLIv96dxcKA8WZ/j2an9cQZLJlGaKn6x8NFOX/Ml1r+ 0FNnMbEYN9Pz/ipIFCtMx8CZ2FtU/Ms2CDgCuWB/VTUXCpDThaZUO/WfXaqHAbWKbY6B W/lcypq0WCt33vu4vogf5p+FKgUBkNJ/8yFv91bh0ZU7Zqp87mBV9t2YlWl13TjxhCJG g0oVZEsjtTrZ0NhYFDaHLViljz+VPn33HXeCiBCC9fAzC1Ac6rwhzkc0YWZJsf1NpaAN edjg== 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=Z2v0I17AvU1o615jA5XAbhwH8E7ebA9P/7Hx2zzYjP8=; b=SIwCjSzx3etZRH3vvUjBGBvkbxmk+htptEb3btu5n4tTpY6BUWd4vei0qBM34UDuB7 IVP+t0Tpw6M2U7BPrUyd1qn4PPj4egtknC/BfFj7wVfz4DAJgHXPmynL+MPIUqlJim9y sY1XXP931llziJE4H5FVxN/Ef3+mN2ImHeh4EKGuaHeuLslI8W0MvbozBFgEJi1nDSf8 FIEQ32uj2o9sXEcpkNIkeKjR1x5AAK4pEOHoFEhfPlGR/JIyXircKCPQZ0uoXRE4JdzM 6do8dhfZhZeMAfPi0e0lrkplGEzGeJUF8oeycnLO+kikmfT37yjMpgSFVDOd1eSMFDxP bUsA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from gecko.sbs.de (gecko.sbs.de. [194.138.37.40]) by gmr-mx.google.com with ESMTPS id z17si336281wrh.2.2020.11.22.23.54.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Nov 2020 23:54:02 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) client-ip=194.138.37.40; Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id 0AN7s1S0007427 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 23 Nov 2020 08:54:01 +0100 Received: from md1f2u6c.ad001.siemens.net ([167.87.38.29]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 0AN7rxTu017265 for ; Mon, 23 Nov 2020 08:54:01 +0100 From: Jan Kiszka To: isar-users Subject: [PATCH v4 06/11] Add STM32MP15x eval board Date: Mon, 23 Nov 2020 08:53:54 +0100 Message-Id: <9365c3b910486291b1707eaa175bf27f05a1c583.1606118039.git.jan.kiszka@siemens.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 X-Original-Sender: jan.kiszka@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1684136833492692550?= X-GMAIL-MSGID: =?utf-8?q?1684136833492692550?= From: Jan Kiszka This adds another ARMv7 board, using buster this time. It's primary purpose will be acting as a TF-A test target. It was chosen due to its simplicity and clean upstream support. Signed-off-by: Jan Kiszka --- meta-isar/conf/local.conf.sample | 1 + meta-isar/conf/machine/stm32mp15x.conf | 19 +++++++++++++++++++ .../conf/multiconfig/stm32mp15x-buster.conf | 7 +++++++ .../u-boot/u-boot-stm32mp15x_2020.10.bb | 6 ++++++ .../lib/wic/canned-wks/stm32mp15x.wks.in | 12 ++++++++++++ scripts/ci_build.sh | 1 + 6 files changed, 46 insertions(+) create mode 100644 meta-isar/conf/machine/stm32mp15x.conf create mode 100644 meta-isar/conf/multiconfig/stm32mp15x-buster.conf create mode 100644 meta-isar/recipes-bsp/u-boot/u-boot-stm32mp15x_2020.10.bb create mode 100644 meta-isar/scripts/lib/wic/canned-wks/stm32mp15x.wks.in diff --git a/meta-isar/conf/local.conf.sample b/meta-isar/conf/local.conf.sample index 3e95bf3a..1db6b883 100644 --- a/meta-isar/conf/local.conf.sample +++ b/meta-isar/conf/local.conf.sample @@ -60,6 +60,7 @@ BBMULTICONFIG = " \ hikey-stretch \ nand-ubi-demo-buster \ nanopi-neo-buster \ + stm32mp15x-buster \ rpi-stretch \ sifive-fu540-sid-ports \ " diff --git a/meta-isar/conf/machine/stm32mp15x.conf b/meta-isar/conf/machine/stm32mp15x.conf new file mode 100644 index 00000000..7ef36e68 --- /dev/null +++ b/meta-isar/conf/machine/stm32mp15x.conf @@ -0,0 +1,19 @@ +# +# Copyright (c) Siemens AG, 2020 +# +# SPDX-License-Identifier: MIT + +DISTRO_ARCH ?= "armhf" + +KERNEL_NAME ?= "mainline" + +PREFERRED_PROVIDER_u-boot-stm32mp15x = "u-boot-stm32mp15x" +U_BOOT_CONFIG_stm32mp15x = "stm32mp15_basic_defconfig" +U_BOOT_BIN_stm32mp15x = "u-boot-spl.stm32 u-boot.img" + +IMAGE_TYPE ?= "wic-img" +WKS_FILE ?= "stm32mp15x.wks.in" +IMAGER_INSTALL += "u-boot-stm32mp15x" +IMAGER_BUILD_DEPS += "u-boot-stm32mp15x" + +IMAGE_INSTALL += "u-boot-script" diff --git a/meta-isar/conf/multiconfig/stm32mp15x-buster.conf b/meta-isar/conf/multiconfig/stm32mp15x-buster.conf new file mode 100644 index 00000000..d1b76d0f --- /dev/null +++ b/meta-isar/conf/multiconfig/stm32mp15x-buster.conf @@ -0,0 +1,7 @@ +# +# Copyright (c) Siemens AG, 2020 +# +# SPDX-License-Identifier: MIT + +MACHINE = "stm32mp15x" +DISTRO = "debian-buster" diff --git a/meta-isar/recipes-bsp/u-boot/u-boot-stm32mp15x_2020.10.bb b/meta-isar/recipes-bsp/u-boot/u-boot-stm32mp15x_2020.10.bb new file mode 100644 index 00000000..6d956434 --- /dev/null +++ b/meta-isar/recipes-bsp/u-boot/u-boot-stm32mp15x_2020.10.bb @@ -0,0 +1,6 @@ +# +# Copyright (c) Siemens AG, 2020 +# +# SPDX-License-Identifier: MIT + +require u-boot-${PV}.inc diff --git a/meta-isar/scripts/lib/wic/canned-wks/stm32mp15x.wks.in b/meta-isar/scripts/lib/wic/canned-wks/stm32mp15x.wks.in new file mode 100644 index 00000000..a9fb332d --- /dev/null +++ b/meta-isar/scripts/lib/wic/canned-wks/stm32mp15x.wks.in @@ -0,0 +1,12 @@ +# +# Copyright (c) Siemens AG, 2020 +# +# SPDX-License-Identifier: MIT + +part fsbl1 --part-name fsbl1 --source rawcopy --sourceparams "file=/usr/lib/u-boot/${MACHINE}/u-boot-spl.stm32" --fstype=ext4 --fsoptions "noauto" --part-type 0x8301 --fixed-size 256K +part fsbl2 --part-name fsbl2 --source rawcopy --sourceparams "file=/usr/lib/u-boot/${MACHINE}/u-boot-spl.stm32" --fstype=ext4 --fsoptions "noauto" --part-type 0x8301 --fixed-size 256K +part ssbl --part-name ssbl --source rawcopy --sourceparams "file=/usr/lib/u-boot/${MACHINE}/u-boot.img" --fstype=ext4 --fsoptions "noauto" --part-type 0x8301 --fixed-size 2048K + +part / --source rootfs-u-boot --fstype ext4 --label root --align 1024 --active --use-uuid + +bootloader --ptable gpt --append="rootwait rw console=ttySTM0,115200" diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh index f1f6503e..0053809c 100755 --- a/scripts/ci_build.sh +++ b/scripts/ci_build.sh @@ -49,6 +49,7 @@ CROSS_TARGETS_SET="\ mc:qemuarm64-stretch:isar-image-base \ mc:qemuamd64-stretch:isar-image-base \ mc:de0-nano-soc-buster:isar-image-base \ + mc:stm32mp15x-buster:isar-image-base \ mc:rpi-stretch:isar-image-base" CROSS_TARGETS_SET_BULLSEYE="\