From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6898224468761509888 X-Received: by 2002:adf:fc48:: with SMTP id e8mr31050309wrs.313.1606118043111; 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-Google-Smtp-Source: ABdhPJyQ/eEidbLqesJ1zCVhDzqt6fO80hvoJyym6WQEnOEKhU4uxByFX7sUKoemT8rTQWmal55z 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 Return-Path: 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; 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 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 Content-Transfer-Encoding: 8bit X-TUID: jXl2dJn4xZjL 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="\ -- 2.26.2