From patchwork Tue Jul 30 13:08:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Rapha=C3=ABl_Gallais-Pou?= X-Patchwork-Id: 1966539 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WYFvm09ltz1yYq for ; Tue, 30 Jul 2024 23:10:28 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id EF85A80CCE; Tue, 30 Jul 2024 13:10:23 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id c2KzdMKbUY1z; Tue, 30 Jul 2024 13:10:22 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 8C47B80F76 Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 8C47B80F76; Tue, 30 Jul 2024 13:10:22 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 86E0A1BF969 for ; Tue, 30 Jul 2024 13:10:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 815A880CCE for ; Tue, 30 Jul 2024 13:10:18 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id wYs1MybvpcoL for ; Tue, 30 Jul 2024 13:10:17 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::635; helo=mail-ej1-x635.google.com; envelope-from=rgallaispou@gmail.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org 427D780B42 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 427D780B42 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by smtp1.osuosl.org (Postfix) with ESMTPS id 427D780B42 for ; Tue, 30 Jul 2024 13:10:17 +0000 (UTC) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a7a8a4f21aeso600951566b.2 for ; Tue, 30 Jul 2024 06:10:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722345015; x=1722949815; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/vCW5eUxOjB1yF/w1jn8GRH25mP7DDx19uCBsmGxijE=; b=PaIxnNkJMi3DWFoW2QdIRZTxgv86qDMl07i/+uAotoGNxPqVjkL9vek2bLWGf7VBVY in36mY+YY/S+PUNL92ouagQ+x+Vi3GM6e6zme0LFpWj0/VV5yyCC6R9J5NF6wU/PxMmU rPpIzPzGWr1nuorHMyTqVFt0VQOFDB5Ktx4FC0uEWafFJ63KUdhRJFG8BDieWY7LDO/E GkpsxjjUzJQd2iUmeYtVQCcHOVpCOfcq7Hax/sQ1dYZKsVeFiowv53x54Vbvx1BNOJZa BJvvNahOwz2+eOpWpClkc0bGYxDkxtaHsaBfbN3nED9OStRnYO4NkuE9UnBGtt6+ZrIw IeuA== X-Gm-Message-State: AOJu0YxtKp9qthUeO2MFgtIDUST8xGTGs7c1jlILAnzkZGnCqCaKytbd DUn5ED0KyYhqhgLv/OwXPKw14fNFE9yWP8JF+5hpIQqFPVFO3Ivv X-Google-Smtp-Source: AGHT+IElF/9EPYQWuB691CgMQHxs0wRj6UECPwdK9Px0v/s7ZxUeILlrvG/3FbOqGdCLbW8osPdVnQ== X-Received: by 2002:a17:907:160a:b0:a7a:8cb9:7490 with SMTP id a640c23a62f3a-a7d4013523dmr715862766b.47.1722345014156; Tue, 30 Jul 2024 06:10:14 -0700 (PDT) Received: from localhost ([2001:861:3385:e20:6384:4cf:52c5:3194]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acab580b4sm638940266b.58.2024.07.30.06.10.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jul 2024 06:10:13 -0700 (PDT) From: Raphael Gallais-Pou Date: Tue, 30 Jul 2024 15:08:44 +0200 MIME-Version: 1.0 Message-Id: <20240730-master-v1-1-3ca889c14ea4@gmail.com> References: <20240730-master-v1-0-3ca889c14ea4@gmail.com> In-Reply-To: <20240730-master-v1-0-3ca889c14ea4@gmail.com> To: buildroot@buildroot.org X-Mailer: b4 0.14.1 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722345015; x=1722949815; darn=buildroot.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=/vCW5eUxOjB1yF/w1jn8GRH25mP7DDx19uCBsmGxijE=; b=X0uRs3dz01FfkwTkJjhncMCCVtyuKMlhLoych1LSk6+6FGBoHOZTfHeC606PEkm9G7 /Z4HPLMKOPm6C+UWEiX9JgkY+fbZQHEN6lss+FBbKvMrd+72Zm9megHkM8efxjZtXZrd pp5mM9jqDi0K3V1lyVvZS7pdF7rsHFFR1pEbF0OHcnqouhCk/0/DZmK/3kizEn3zvYLo fSbI9ICxXB+ZOz2y2fDhUH8Oxmm/4tfVUJjnitSCdFNNXK71Ht+kUnvgzogSXi0MFIzk JUpyizEgwydTYAhDD5lBE7f4s+f1xFRAuXPisIrHA1RyFStBaHrafSES0XywmiXffqt2 hRGg== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=none dis=none) header.from=gmail.com X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=X0uRs3dz Subject: [Buildroot] [PATCH RFC 1/2] board/stmicroelectronics/common/stm32mp157: rename folder X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartosz Bilas , Dario Binacchi , Marleen Vos , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" STM32MP15x and STM32MP13 can use almost of the same configuration regarding bootloaders and the Linux kernel. To make profit of the commont folder, rename it to 'stm32mp1xx' and change dependencies accordingly. Signed-off-by: Raphael Gallais-Pou --- .checkpackageignore | 2 +- DEVELOPERS | 2 +- .../common/{stm32mp157 => stm32mp1xx}/genimage.cfg.template | 0 .../patches/arm-trusted-firmware/arm-trusted-firmware.hash | 0 .../patches/linux-headers/linux-headers.hash | 0 .../common/{stm32mp157 => stm32mp1xx}/patches/linux/linux.hash | 0 .../common/{stm32mp157 => stm32mp1xx}/patches/uboot/uboot.hash | 0 .../common/{stm32mp157 => stm32mp1xx}/post-image.sh | 2 +- configs/avenger96_defconfig | 2 +- configs/stm32mp157a_dk1_defconfig | 4 ++-- configs/stm32mp157c_dk2_defconfig | 4 ++-- 11 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.checkpackageignore b/.checkpackageignore index 0f054c9a30..39ad3efcd3 100644 --- a/.checkpackageignore +++ b/.checkpackageignore @@ -83,7 +83,7 @@ board/solidrun/clearfog/post-build.sh Shellcheck board/solidrun/macchiatobin/post-build-mainline.sh Shellcheck board/solidrun/macchiatobin/post-build.sh Shellcheck board/stmicroelectronics/common/stm32f4xx/stm32-post-build.sh Shellcheck -board/stmicroelectronics/common/stm32mp157/post-image.sh Shellcheck +board/stmicroelectronics/common/stm32mp1xx/post-image.sh Shellcheck board/stmicroelectronics/stm32f429-disco/flash.sh Shellcheck board/stmicroelectronics/stm32f469-disco/flash_sd.sh Shellcheck board/stmicroelectronics/stm32f469-disco/flash_xip.sh Shellcheck diff --git a/DEVELOPERS b/DEVELOPERS index 78ea65205d..f1a940a355 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2234,7 +2234,7 @@ F: configs/qemu_riscv32_virt_defconfig F: configs/qemu_riscv64_virt_defconfig N: Marleen Vos -F: board/stmicroelectronics/common/stm32mp157/ +F: board/stmicroelectronics/common/stm32mp1xx/ F: configs/avenger96_defconfig F: configs/stm32mp157a_dk1_defconfig F: configs/stm32mp157c_dk2_defconfig diff --git a/board/stmicroelectronics/common/stm32mp157/genimage.cfg.template b/board/stmicroelectronics/common/stm32mp1xx/genimage.cfg.template similarity index 100% rename from board/stmicroelectronics/common/stm32mp157/genimage.cfg.template rename to board/stmicroelectronics/common/stm32mp1xx/genimage.cfg.template diff --git a/board/stmicroelectronics/common/stm32mp157/patches/arm-trusted-firmware/arm-trusted-firmware.hash b/board/stmicroelectronics/common/stm32mp1xx/patches/arm-trusted-firmware/arm-trusted-firmware.hash similarity index 100% rename from board/stmicroelectronics/common/stm32mp157/patches/arm-trusted-firmware/arm-trusted-firmware.hash rename to board/stmicroelectronics/common/stm32mp1xx/patches/arm-trusted-firmware/arm-trusted-firmware.hash diff --git a/board/stmicroelectronics/common/stm32mp157/patches/linux-headers/linux-headers.hash b/board/stmicroelectronics/common/stm32mp1xx/patches/linux-headers/linux-headers.hash similarity index 100% rename from board/stmicroelectronics/common/stm32mp157/patches/linux-headers/linux-headers.hash rename to board/stmicroelectronics/common/stm32mp1xx/patches/linux-headers/linux-headers.hash diff --git a/board/stmicroelectronics/common/stm32mp157/patches/linux/linux.hash b/board/stmicroelectronics/common/stm32mp1xx/patches/linux/linux.hash similarity index 100% rename from board/stmicroelectronics/common/stm32mp157/patches/linux/linux.hash rename to board/stmicroelectronics/common/stm32mp1xx/patches/linux/linux.hash diff --git a/board/stmicroelectronics/common/stm32mp157/patches/uboot/uboot.hash b/board/stmicroelectronics/common/stm32mp1xx/patches/uboot/uboot.hash similarity index 100% rename from board/stmicroelectronics/common/stm32mp157/patches/uboot/uboot.hash rename to board/stmicroelectronics/common/stm32mp1xx/patches/uboot/uboot.hash diff --git a/board/stmicroelectronics/common/stm32mp157/post-image.sh b/board/stmicroelectronics/common/stm32mp1xx/post-image.sh similarity index 93% rename from board/stmicroelectronics/common/stm32mp157/post-image.sh rename to board/stmicroelectronics/common/stm32mp1xx/post-image.sh index 0cf52f4564..77547832ab 100755 --- a/board/stmicroelectronics/common/stm32mp157/post-image.sh +++ b/board/stmicroelectronics/common/stm32mp1xx/post-image.sh @@ -22,7 +22,7 @@ main() GENIMAGE_CFG="$(mktemp --suffix genimage.cfg)" sed -e "s/%ATFBIN%/${ATFBIN}/" \ - board/stmicroelectronics/common/stm32mp157/genimage.cfg.template > ${GENIMAGE_CFG} + board/stmicroelectronics/common/stm32mp1xx/genimage.cfg.template > ${GENIMAGE_CFG} support/scripts/genimage.sh -c ${GENIMAGE_CFG} diff --git a/configs/avenger96_defconfig b/configs/avenger96_defconfig index 64cfb3c2b0..3b471109f7 100644 --- a/configs/avenger96_defconfig +++ b/configs/avenger96_defconfig @@ -7,7 +7,7 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y # System configuration BR2_ROOTFS_OVERLAY="board/arrow/avenger96/overlay/" -BR2_ROOTFS_POST_IMAGE_SCRIPT="board/stmicroelectronics/common/stm32mp157/post-image.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/stmicroelectronics/common/stm32mp1xx/post-image.sh" # Kernel BR2_LINUX_KERNEL=y diff --git a/configs/stm32mp157a_dk1_defconfig b/configs/stm32mp157a_dk1_defconfig index 310e179cf7..e2dd48bb17 100644 --- a/configs/stm32mp157a_dk1_defconfig +++ b/configs/stm32mp157a_dk1_defconfig @@ -6,10 +6,10 @@ BR2_cortex_a7=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_9=y # System configuration -BR2_GLOBAL_PATCH_DIR="board/stmicroelectronics/common/stm32mp157/patches" +BR2_GLOBAL_PATCH_DIR="board/stmicroelectronics/common/stm32mp1xx/patches" BR2_DOWNLOAD_FORCE_CHECK_HASHES=y BR2_ROOTFS_OVERLAY="board/stmicroelectronics/stm32mp157a-dk1/overlay/" -BR2_ROOTFS_POST_IMAGE_SCRIPT="board/stmicroelectronics/common/stm32mp157/post-image.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/stmicroelectronics/common/stm32mp1xx/post-image.sh" # Kernel BR2_LINUX_KERNEL=y diff --git a/configs/stm32mp157c_dk2_defconfig b/configs/stm32mp157c_dk2_defconfig index 2a9c31df37..d6085583d3 100644 --- a/configs/stm32mp157c_dk2_defconfig +++ b/configs/stm32mp157c_dk2_defconfig @@ -6,10 +6,10 @@ BR2_cortex_a7=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_9=y # System configuration -BR2_GLOBAL_PATCH_DIR="board/stmicroelectronics/common/stm32mp157/patches" +BR2_GLOBAL_PATCH_DIR="board/stmicroelectronics/common/stm32mp1xx/patches" BR2_DOWNLOAD_FORCE_CHECK_HASHES=y BR2_ROOTFS_OVERLAY="board/stmicroelectronics/stm32mp157c-dk2/overlay/" -BR2_ROOTFS_POST_IMAGE_SCRIPT="board/stmicroelectronics/common/stm32mp157/post-image.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/stmicroelectronics/common/stm32mp1xx/post-image.sh" # Kernel BR2_LINUX_KERNEL=y From patchwork Tue Jul 30 13:08:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Rapha=C3=ABl_Gallais-Pou?= X-Patchwork-Id: 1966540 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WYFvp4hQFz1yYq for ; Tue, 30 Jul 2024 23:10:30 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id DBCF280F42; Tue, 30 Jul 2024 13:10:28 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id meURoP1jY0x0; Tue, 30 Jul 2024 13:10:26 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 8F8D880FA4 Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 8F8D880FA4; Tue, 30 Jul 2024 13:10:25 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 29F271BF969 for ; Tue, 30 Jul 2024 13:10:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id C77A9605A9 for ; Tue, 30 Jul 2024 13:10:18 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 7vB12WqunJQu for ; Tue, 30 Jul 2024 13:10:17 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::333; helo=mail-wm1-x333.google.com; envelope-from=rgallaispou@gmail.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org 79581608F9 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 79581608F9 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by smtp3.osuosl.org (Postfix) with ESMTPS id 79581608F9 for ; Tue, 30 Jul 2024 13:10:17 +0000 (UTC) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-426526d30aaso27596015e9.0 for ; Tue, 30 Jul 2024 06:10:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722345015; x=1722949815; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=z5/PcpMMjTNfjS3MG8iVpqjLkMgQZL7UCmkdchd52oQ=; b=QFlsYEjsKeNZAQaCaah2RB+8ccKnqHONY5hXSkBqHf4p9FR4qqyy5oiyL7kHyXWCrb iSUEsXmjEwt80mTW69c4ZHYA8+1l+UbC4U5g6bF8E5dZLOLmE5PM9fVd7j7fRcXrzlOQ bFfnp0gHXFIprUowDuGfYqvFJiSbD3Nbb/gvwKrtx2H7EB4RyC5nEPdmF0fDjGz3LDgZ RYc2PsvrDukjLV5ZYeiZeTCNBuv1E9xUDmXa2nH7CW/sZawNC4SGK6PlgCRv1DbkqWPl eKoL8vSXIhfRWxrAJO6HkaJHbeZU9HUlW+JpAlYZrvbufwcTXsmTHHQb5pNrihkXuJ+k 6hBg== X-Gm-Message-State: AOJu0YzP2YSwnlFzxY0fg2e7ER9nTYw5rRnjih56k7bRV5unPZKfZPDV 3hlwGiS7OQuWFB/fnrFgLLLKiGc1ZVmdbNErA+DOwg9mhc3tbpS98rTOFA== X-Google-Smtp-Source: AGHT+IHJGkV82yEn/qqNRSizp/ThYP3GGVZsMmQ6qF7MEFtEWJ9Gx7/IOvMt3G9jD3LjwMZzl+qyXQ== X-Received: by 2002:a5d:4bcd:0:b0:367:9279:c401 with SMTP id ffacd0b85a97d-36b5cf1e5abmr7815322f8f.34.1722345014959; Tue, 30 Jul 2024 06:10:14 -0700 (PDT) Received: from localhost ([2001:861:3385:e20:6384:4cf:52c5:3194]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36b367fce64sm14698067f8f.61.2024.07.30.06.10.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jul 2024 06:10:14 -0700 (PDT) From: Raphael Gallais-Pou Date: Tue, 30 Jul 2024 15:08:45 +0200 MIME-Version: 1.0 Message-Id: <20240730-master-v1-2-3ca889c14ea4@gmail.com> References: <20240730-master-v1-0-3ca889c14ea4@gmail.com> In-Reply-To: <20240730-master-v1-0-3ca889c14ea4@gmail.com> To: buildroot@buildroot.org X-Mailer: b4 0.14.1 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722345015; x=1722949815; darn=buildroot.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=z5/PcpMMjTNfjS3MG8iVpqjLkMgQZL7UCmkdchd52oQ=; b=DsHTe7ecztzlKo37Wrd5ujLwjslj7FUAgPSeatWvS6NBgC9PbuaewVG+JwuTT7Fa7M +sfBd+/oJsptjGZ7rptP6SbJobd472SRni0zEZZ0qKmKHr37ZHFnYKtJcHeyljoqTPXF NAlCPOg6vsgCc2GU8rEeS+PM9wPbDH8CX8TqflE2NATDg4n00em7kReVuthE0b2SIJUU RGVYBjGsNXMC51Mw+4MYzjqr2tagrJH48LBxdMIAa2uQpROjiaRI8UpS5dloZ/bj9Xx/ FMlsLk5LYu/+rhHhnZCDurWcdY+iZ2tkA0LK9k1P90WCiVi+/2NYrJ1YktDiPeIjcuK2 PAOA== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=none dis=none) header.from=gmail.com X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=DsHTe7ec Subject: [Buildroot] [PATCH RFC 2/2] configs/stm32mp135f-dk: new defconfig X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartosz Bilas , Dario Binacchi , Marleen Vos , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Add new defconfig for STMicroelectronics board STM32MP135F-DK. STM32MP135F-DK features can be found here: https://www.st.com/en/evaluation-tools/stm32mp135f-dk.html Signed-off-by: Raphael Gallais-Pou --- .../overlay/boot/extlinux/extlinux.conf | 4 ++ board/stmicroelectronics/stm32mp135f-dk/readme.txt | 38 ++++++++++++++ configs/stm32mp135f_dk_defconfig | 59 ++++++++++++++++++++++ 3 files changed, 101 insertions(+) diff --git a/board/stmicroelectronics/stm32mp135f-dk/overlay/boot/extlinux/extlinux.conf b/board/stmicroelectronics/stm32mp135f-dk/overlay/boot/extlinux/extlinux.conf new file mode 100644 index 0000000000..0cc49d6a56 --- /dev/null +++ b/board/stmicroelectronics/stm32mp135f-dk/overlay/boot/extlinux/extlinux.conf @@ -0,0 +1,4 @@ +label stm32mp135f-dk-buildroot + kernel /boot/zImage + devicetree /boot/stm32mp135f-dk.dtb + append root=/dev/mmcblk0p4 rootwait diff --git a/board/stmicroelectronics/stm32mp135f-dk/readme.txt b/board/stmicroelectronics/stm32mp135f-dk/readme.txt new file mode 100644 index 0000000000..46879f88cf --- /dev/null +++ b/board/stmicroelectronics/stm32mp135f-dk/readme.txt @@ -0,0 +1,38 @@ +STM32MP135F Discovery Kit + +Intro +===== + +This configuration supports the STM32MP135F Discovery Kit (DK) +platform: + + https://www.st.com/en/evaluation-tools/stm32mp135f-dk.html + +How to build +============ + + $ make stm32mp135f_dk_defconfig + $ make + +How to write the microSD card +============================= + +Once the build process is finished you will have an image called +"sdcard.img" in the output/images/ directory. + +Copy the bootable "sdcard.img" onto an microSD card with "dd": + + $ sudo dd if=output/images/sdcard.img of=/dev/sdX + +Boot the board +============== + + (1) Insert the microSD card in connector CN15 + + (2) Plug a micro-USB cable in connector CN11 and run your serial + communication program on /dev/ttyACM0. + + (3) Plug a USB-C cable in CN6 to power-up the board. + + (4) The system will start, with the console on UART, but also visible + on the screen. diff --git a/configs/stm32mp135f_dk_defconfig b/configs/stm32mp135f_dk_defconfig new file mode 100644 index 0000000000..cc01a2bd40 --- /dev/null +++ b/configs/stm32mp135f_dk_defconfig @@ -0,0 +1,59 @@ +# Architecture +BR2_arm=y +BR2_cortex_a7=y + +# Linux headers same as kernel, a 6.9 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_9=y + +# System configuration +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y +BR2_ROOTFS_OVERLAY="board/stmicroelectronics/stm32mp135f-dk/overlay" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/stmicroelectronics/common/stm32mp1xx/post-image.sh" + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.9.8" +BR2_LINUX_KERNEL_DEFCONFIG="multi_v7" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="st/stm32mp135f-dk" +BR2_LINUX_KERNEL_INSTALL_TARGET=y + +# Filesystem +BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y +BR2_PACKAGE_OPTEE_CLIENT=y +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_ROOTFS_EXT2_SIZE="120M" +# BR2_TARGET_ROOTFS_TAR is not set + +# Bootloaders +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE="v2.9" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="stm32mp1" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL32_OPTEE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_BL33_IMAGE="u-boot-nodtb.bin" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="STM32MP_SDMMC=1 DTB_FILE_NAME=stm32mp135f-dk.dtb E=0 BL33_CFG=$(BINARIES_DIR)/u-boot.dtb" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES="fip.bin *.stm32" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_DTC=y +BR2_TARGET_OPTEE_OS=y +BR2_TARGET_OPTEE_OS_PLATFORM="stm32mp1" +BR2_TARGET_OPTEE_OS_PLATFORM_FLAVOR="135F_DK" +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_CUSTOM_VERSION=y +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2024.07" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="stm32mp13" +BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +# BR2_TARGET_UBOOT_FORMAT_BIN is not set +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-nodtb.bin u-boot.dtb" +BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="DEVICE_TREE=stm32mp135f-dk" + +# Additional tools +BR2_PACKAGE_HOST_BMAP_TOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y