From patchwork Thu Oct 10 14:36:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3562 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id EFC033F263 for ; Thu, 10 Oct 2024 16:37:05 +0200 (CEST) Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-5c934ceea1fsf798013a12.2 for ; Thu, 10 Oct 2024 07:37:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1728571025; cv=pass; d=google.com; s=arc-20240605; b=DcmqickfOzMhvp1jlS05VgGYYcDOz1mPmKgyutah1GekB4QCvxPv6ZRs2I6OKzr7AX uRA10XF7wgK8pFfxFkH6xtoo6DyesOOopGIj3TgTEw5yT2ZDJ+5vjsmwtr+YDrkrrg20 9svy87hcXNtYRMllS4ZTfI2ChctGsbuuapGNfCyxz8MbNuuyruG2SXM5ji4eN7wuURSU y6pX4uMyGoeZKqANojrS5ntwF/wNmyev6bVVb9MIqfTrCfqStMvy9d91nFLmdsy+O3wA 7rqzJaF93we6t19CTKdG0LhvlRZGz+J8pfSN5eTEVGcysm0ORQVEfWelzMtVzXq2Vtty 2lUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=WSDhD6QbkELLr6XY+NtWTXNOjoPJiy2qJWgpCHW6K2g=; fh=W3N41RbtIPHEggcpRv/ggbBOpQwppAeVA2xZxw/NH8c=; b=FGzLj5dGzUqKZB4UXqFc1FyNxjPKuA9sZis2hbYk3bsljKieFORCMj2bi1C70TOoxV 6IKZ/UBFkVIn1e4c6ukr6tTBFpug3II95y4s/dsSe0MS6XPcxQmRPpNSj8sVHhIzWVUG OXCnPNgTrKvM0h6IDUqY+Z3oM1BpRUcCWxzroZ12Y4+bnEmyfsc6J+xP3tt4/CCPs3KZ FzNlxuoNcNLeTYtLYu2Ov9ZlAvvBUMbNuNYjSm/cL/Lh8aXoBYQdl2mzNWpvxC92s6cx Z2C5guzTX6fNeLvUhV+S/IzqmfZYNFSW2qWgWuT+7YsJBWf7Rx3XdL4pev0mAFeKsIk/ 5mug==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ErNS2QNt; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1728571025; x=1729175825; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:content-transfer-encoding:mime-version:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=WSDhD6QbkELLr6XY+NtWTXNOjoPJiy2qJWgpCHW6K2g=; b=GSCv1GC5hVcwquW1pfcvnvsmtyz0Kdl/qdvAIVVYgkoUYoawQqrw3hLr1NF/k4B3Zd zVfMdhoGGnwCe2r4QzJ2idE+TKX8QRMYXMSSTT574Wm60eDi0wj0L6NCpwwZF0xYbtHr gb7lUsmakDZuzZdNDU4+OXYG7nBcOWhIdG/HU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728571025; x=1729175825; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-beenthere:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WSDhD6QbkELLr6XY+NtWTXNOjoPJiy2qJWgpCHW6K2g=; b=tkc25bzebmLHr4nwoeGOtIM6ey/ruVloKwLKcDKL9hY0sKaE+++eAGcaJD35FtbSVc pQ/DWR2GZzkPxEsLo8PVhTlKJLtK8PdtX9KuErzIEh4aQ6Lx04ULlUILUnBVWrW9uWj6 YLt430xdl9nxyrZvk0dBMs6Yorg7ClYJ4CDrBxkdTuF75A7P8nXyOPBumjYkdI3APmlJ 6DshOV6i1tdiCNx0hgtRWsCrWkV+tq+RFo/vNquc5ula0NNb2kmVMO6m7B+IerPbO5mY nrrRjrHCl0XDp+VadlWZM4gPbpUsOAY7tLGsRU633mqcU3KvWRXUM7EswuibrKVf8+j5 0YiQ== X-Forwarded-Encrypted: i=2; AJvYcCUEFB/KhskX1p5FEyz8UF/1kESOTuHOA42ekSsIvLO30SI7/Z4xmwiZ80WoGC6S4vn3pOSNBjm4eRK4MnyW@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YyrVW3qhROqccqlYALuU0jYUSrdteVjSJcoUXg15DSfUuYyJnu9 PQoGMCW+QuQnIGJOf/miNT8JH7gh6LKHOYavSoy7LpHzwnKODaPqZPK9WpQfRvS4qA== X-Google-Smtp-Source: AGHT+IGx02P3NGp9ExHiuvTulBVSnasAc3/neRUGuf3EgEBGED34+W4ygOwqtcGEaszGwi5VyWhPzA== X-Received: by 2002:a05:6402:2805:b0:5c8:9f3d:391b with SMTP id 4fb4d7f45d1cf-5c932553ef0mr3226528a12.28.1728571025078; Thu, 10 Oct 2024 07:37:05 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:2683:b0:5c8:9f3e:a9e1 with SMTP id 4fb4d7f45d1cf-5c9338a8db7ls1075402a12.0.-pod-prod-01-eu; Thu, 10 Oct 2024 07:37:03 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWziv7WRXeGSTCkmn04CAnMIDFvZHhDMOIvgDY4iLcMuZSYQYGPAMAk52yKsfbnXhuqeQr9UFmRSgt6QqBP@amarulasolutions.com X-Received: by 2002:a17:907:7213:b0:a99:40fc:1807 with SMTP id a640c23a62f3a-a999e8cea5fmr377710666b.43.1728571023323; Thu, 10 Oct 2024 07:37:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728571023; cv=none; d=google.com; s=arc-20240605; b=R2FyS3dhCEutMkD2tZvg5Dv5Flq9x1P33ff7U3ALAa7hm0dMI9deDhQD/N6s57l1ID /NMqH5O6Qru0uW1Q5CTGGAE7vuX+54ugR3iaQ5dZ21eAatYKSZLNuhjbmPnvY2zfBZrJ vd+TIauf2MYagB11aMGxxtoLGgmF10A56KjecvHfHjQHvw+bFNki1JJrb5gEVi5QC/M8 r7cJPmKKn8r7zdvOyGr5D5+SlR9FXOK8EoddTLFzbr7NdyZCT0LOC3ngZtOWk4Q6YRId 1UGa9T2nY3EP+6dhOQfrPgvRou4l5daqQVjUM1HQ133Adf0WRWkFi1WLbmAwYwzBQ9n2 PACQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=FeWdXv10taD45Ph4X5tP/R58qwqdQ1uqXTPuXTtjMPg=; fh=IqB/LJEsYRuGSOd82KfCgUSxVsDLCxtt9g8zmQ1x9qU=; b=cfhniNjxnb5cA7XBQ5Um70/+6MvKKt1mGQ/kCuA+R+w9DdPZzhae3pxabTwRCJLLxg m8YUiYTjEd5J0hewlIOI8F/ohvibgD9WOzxoBhvpuVmIgg4LSsH3eWS4/xKKQf7EBO94 gS7lYXJcacNFpTQLs2flBwDuy4Lu9odQqqhlnJBHsQd3YWkcnzxTIzHx/XmdxAAdHuAI 0b8R5kd5cYPtoAJnrjW//yk72aNhbAbpzIf7tb9f92V5oZHc9QA8vImQNNUr4SVucIpo Kb9H+gXXBGU07MeQWxbDsK0/tosqUP+9NquCVbLC5nr/ukCOvE2kSVhBL1/6hFJQ6uQX F2Eg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ErNS2QNt; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-a99a80e056esor53242366b.19.2024.10.10.07.37.03 for (Google Transport Security); Thu, 10 Oct 2024 07:37:03 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCXO2dF1WcfG9sy5+WOk1p2Sofh9MJfLHjj5lDVCl2uBdVXJMHyKCrBypadHb/kjqTKqH8NGi9bXY5tndPOR@amarulasolutions.com X-Received: by 2002:a17:906:dc8e:b0:a99:6363:8a12 with SMTP id a640c23a62f3a-a999e6280fcmr437814166b.9.1728571022715; Thu, 10 Oct 2024 07:37:02 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:6474:ebbf:a293:3a9f:6dc0:1d29]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99a7ec4d14sm97019666b.38.2024.10.10.07.37.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2024 07:37:02 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Marleen Vos , Dick Olsson , Thomas Petazzoni , Bartosz Bilas , Sergey Matyukevich , linux-amarula@amarulasolutions.com, Dario Binacchi Subject: [PATCH v3 1/2] boot/arm-trusted-firmware: v2.11: fix the ld autodetection for gnu-gcc Date: Thu, 10 Oct 2024 16:36:58 +0200 Message-ID: <20241010143659.2844375-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ErNS2QNt; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Before applying this patch, the compiler was used instead of the linker as shown by the following error raised by the compilation of TF-A for the STM32MP157C-DK2 discovery board: 'buildroot/output/host/bin/arm-buildroot-linux-gnueabihf-gcc' -o buildroot/output/build/arm-trusted-firmware-custom/build/stm32mp1/release/tf-a-stm32mp157c-dk2.elf -Wl,--hash-style=gnu -Wl,--as-needed -nostartfiles -Wl,-Map=buildroot/output/build/arm-trusted-firmware-custom/build/stm32mp1/release/tf-a-stm32mp157c-dk2.map -Wl,-dT buildroot/output/build/arm-trusted-firmware-custom/build/stm32mp1/release/stm32mp1.ld buildroot/output/build/arm-trusted-firmware-custom/build/stm32mp1/release/stm32mp1-stm32mp157c-dk2.o buildroot/output/host/lib/gcc/arm-buildroot-linux-gnueabihf/13.3.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: buildroot/output/build/arm-trusted-firmware-custom/build/stm32mp1/release/tf-a-stm32mp157c-dk2.elf: error: PHDR segment not covered by LOAD segment collect2: error: ld returned 1 exit status Signed-off-by: Dario Binacchi --- - No changes since v2 - Added in v2 ...-build-Set-guess-gnu-gcc-ld-properly.patch | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 boot/arm-trusted-firmware/v2.11/0001-fix-build-Set-guess-gnu-gcc-ld-properly.patch diff --git a/boot/arm-trusted-firmware/v2.11/0001-fix-build-Set-guess-gnu-gcc-ld-properly.patch b/boot/arm-trusted-firmware/v2.11/0001-fix-build-Set-guess-gnu-gcc-ld-properly.patch new file mode 100644 index 000000000000..a6731aa08853 --- /dev/null +++ b/boot/arm-trusted-firmware/v2.11/0001-fix-build-Set-guess-gnu-gcc-ld-properly.patch @@ -0,0 +1,53 @@ +From 7988f1afe1324486e473874b22ed009c0d6d6806 Mon Sep 17 00:00:00 2001 +From: Dario Binacchi +Date: Wed, 9 Oct 2024 18:29:00 +0200 +Subject: [PATCH] fix(build): Set guess-gnu-gcc-ld properly + +With the commit 291e718229e7f ("build: skip toolchain detection for some +targets"), the compiler was used instead of the linker: + ++ guess-gnu-gcc-cpp = $(1) ++ guess-gnu-gcc-as = $(1) ++ guess-gnu-gcc-ld = $(1) + +This patch correctly references the linker for gnu-gcc. + +The patch was tested on the STM32MP157C-DK2 board. + +This is the error raised during the compilation of ARM Trusted Firmware +v2.11 before applying the patch + +'buildroot/output/host/bin/arm-buildroot-linux-gnueabihf-gcc' -o buildroot/output/build/arm-trusted-firmware-custom/build/stm32mp1/release/tf-a-stm32mp157c-dk2.elf -Wl,--hash-style=gnu -Wl,--as-needed -nostartfiles -Wl,-Map=buildroot/output/build/arm-trusted-firmware-custom/build/stm32mp1/release/tf-a-stm32mp157c-dk2.map -Wl,-dT buildroot/output/build/arm-trusted-firmware-custom/build/stm32mp1/release/stm32mp1.ld buildroot/output/build/arm-trusted-firmware-custom/build/stm32mp1/release/stm32mp1-stm32mp157c-dk2.o +buildroot/output/host/lib/gcc/arm-buildroot-linux-gnueabihf/13.3.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: buildroot/output/build/arm-trusted-firmware-custom/build/stm32mp1/release/tf-a-stm32mp157c-dk2.elf: error: PHDR segment not covered by LOAD segment +collect2: error: ld returned 1 exit status + +Below, after applying the patch: + +'buildroot/output/host/lib/gcc/arm-buildroot-linux-gnueabihf/13.3.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld' -o buildroot/output/build/arm-trusted-firmware-v2.11/build/stm32mp1/release/tf-a-stm32mp157c-dk2.elf --hash-style=gnu --as-needed -Map=buildroot/output/build/arm-trusted-firmware-v2.11/build/stm32mp1/release/tf-a-stm32mp157c-dk2.map --script buildroot/output/build/arm-trusted-firmware-v2.11/build/stm32mp1/release/stm32mp1.ld buildroot/output/build/arm-trusted-firmware-v2.11/build/stm32mp1/release/stm32mp1-stm32mp157c-dk2.o +'buildroot/output/host/lib/gcc/arm-buildroot-linux-gnueabihf/13.3.0/../../../../arm-buildroot-linux-gnueabihf/bin/objcopy' -O binary buildroot/output/build/arm-trusted-firmware-v2.11/build/stm32mp1/release/tf-a-stm32mp157c-dk2.elf buildroot/output/build/arm-trusted-firmware-v2.11/build/stm32mp1/release/tf-a-stm32mp157c-dk2.bin + +Built /home/dario/projects/buildroot-10/output/build/arm-trusted-firmware-v2.11/build/stm32mp1/release/tf-a-stm32mp157c-dk2.bin successfully + +Fixes: 291e718229e7f ("build: skip toolchain detection for some targets") +Signed-off-by: Dario Binacchi +Upstream: backport from upstream https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/31746 +--- + make_helpers/toolchain.mk | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/make_helpers/toolchain.mk b/make_helpers/toolchain.mk +index 96e43a8b94cb..a81be3751d86 100644 +--- a/make_helpers/toolchain.mk ++++ b/make_helpers/toolchain.mk +@@ -286,7 +286,7 @@ ifndef toolchain-mk + + guess-gnu-gcc-cpp = $(1) + guess-gnu-gcc-as = $(1) +- guess-gnu-gcc-ld = $(1) ++ guess-gnu-gcc-ld = $(shell $(1) --print-prog-name ld 2>$(nul)) + guess-gnu-gcc-oc = $(shell $(1) --print-prog-name objcopy 2>$(nul)) + guess-gnu-gcc-od = $(shell $(1) --print-prog-name objdump 2>$(nul)) + guess-gnu-gcc-ar = $(call which,$(call decompat-path,$(patsubst %$(call file-name,$(1)),%$(subst gcc,gcc-ar,$(call file-name,$(1))),$(call compat-path,$(1))))) +-- +2.43.0 + From patchwork Thu Oct 10 14:36:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3563 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 51B983F9F6 for ; Thu, 10 Oct 2024 16:37:06 +0200 (CEST) Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-5c9362c26a9sf583948a12.0 for ; Thu, 10 Oct 2024 07:37:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1728571026; cv=pass; d=google.com; s=arc-20240605; b=XzQjxNx5P8ZaEtXvdnFKYTmUVrEoZSGnA0zB8sTfszAgZFb3cy8+dWG383vAQXickv E03/cD7t0uMU7xC8WKIeeJO7v2lcQOLAnC9rrotqk4U1J7V2zIDSSsCCamFpFO7ur3cG 8ZAOy9UiwRFSmuo+Hw0XgpBIgHMivFotrHaDU/3RSVzN6QaZLUJKvCnN77KvPkIs1kzj k48KvRNFUcYizCEZhLCtg96mwWEzp/e6zyi42Q24re9NOGwZ/kqKm1+GnnCPQTetHe2o A+h/xui7VtzSFsos4nn/MoDHpCi5/2vabykFdVSkCRJoIi13lW7h7GvDjSFdp0+mOdZ6 1pgQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=zUTf5QXR+LVxt/FyI4MJs7E/hdDrVCWJOpn8XMXirnI=; fh=dgsvDeBietRk01YsT9677bIyVlZ+MZzYEJQxfjsd+v8=; b=agsnVgfsKkpE1mo1BbwFHL3zvY4+6/CyopsDk2f0E+uPPQ4yzJKDuiOCjYdWR4Z+lj f4VN2WvJvjKxXwUuFfTgiOeDTGsuhhMseepcKFcvIMaKoUNB7udh8ce2BXY6D3NYIV5F 7sYvniGqY7pEy9AowcyU2+xyIHodprSJP/WmU55h9YG+IbnOXdEoZ9NovWt089hVMYHs seRWt7HhfhI5BNYo10zdlEJYzRYxvrgNftY96zgbTKfMl/MhvV4ZWJSsWlNEMTmsnvWv /UQKS/GG456mtPnYF246tqipulgAZtP/eGmCTP2OLqztJGBdpxzIIZAqr8wVZwFeY0Qv 88tg==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mi2OXEPm; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1728571026; x=1729175826; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=zUTf5QXR+LVxt/FyI4MJs7E/hdDrVCWJOpn8XMXirnI=; b=HGbVEnebEZxAMuaNqaLFgvYsg3VG6gdZHMi1mZMCaTnNnWVeeHhYQQiW1zbO/dhhIP wfnaYRleTDyb8K2fNTjHasFgBG1g0IAMUEz+exja14ZLxYwO05n8TMn9Ptdc31v1zyxm bvcS5dVWN1BRhoRbA4msoOPGbGL5CbjPW6CXI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728571026; x=1729175826; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zUTf5QXR+LVxt/FyI4MJs7E/hdDrVCWJOpn8XMXirnI=; b=tpHfJyB62Xijvo7cp8c40NQpk7DeFLsOgIOteut1wozlCH8zK3IBa6RtJXEt453hMG AfBbtCygNRXeH87YlBvPa84I5T3lCgNQ9gVNqBxC7jdadmmFnB58UV+DOy5sUBI/zz8m EVxocKLWrb9wlQupU4pJ3qNMRbUAlO4xwtAD5KlRosf8FzdLCk8clFzeRI+Czz8OeGj+ ZcOfSXyjgU2vT8CsvzOgVFDyJm5TIx2amtCbETB09f+LlL+1UiehLPpzMwLa9O25RkWD TPucVjGIKHubWwKYt4y0yQ3uFAFoO7Fg4noMkul18BbQNFBbPH9ZXe7TDgFBR5FvZmEA wV5g== X-Forwarded-Encrypted: i=2; AJvYcCU6iK/tO82MQ7MJXmVByyMWT1vPiI1yspC8gKBpwEr4eFk+EX2pQYJsoR4T6uHnJWOpudIWVUQ5zH2Wfm2u@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YxU3xH1CAvU5DivXdUcEk8mFleGGJHfj1N0GW+1Qn2JbMV0MdWK AsdC+3RS8MEfv6YKodM8aVJ2mFIWZXg4rauGUTyALVe42rn076aZmMd0iUAdip6dzA== X-Google-Smtp-Source: AGHT+IEpFmZBXvOivR2OpvntlJ1e16ixOGLnbC8+CUkne3cJ98qSP2DCWxJNet79D3VL6AxPFS6H/w== X-Received: by 2002:a05:6402:520e:b0:5c5:c4b1:883c with SMTP id 4fb4d7f45d1cf-5c91d5386e6mr5250208a12.4.1728571025892; Thu, 10 Oct 2024 07:37:05 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:42c8:b0:5c9:1bfe:e3ab with SMTP id 4fb4d7f45d1cf-5c9338ab5bfls622549a12.0.-pod-prod-02-eu; Thu, 10 Oct 2024 07:37:04 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVUQjlQ+U+ovhWEa0Dd+natIEJ7ZHoQPJwfjcf9Wsv1RBicO90lw48miVK+wb/sYA91gT56Aik3N+WBBJs/@amarulasolutions.com X-Received: by 2002:a17:907:7f9e:b0:a99:3729:f6e0 with SMTP id a640c23a62f3a-a998d19ab7amr519843266b.14.1728571024248; Thu, 10 Oct 2024 07:37:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728571024; cv=none; d=google.com; s=arc-20240605; b=dOMglBmGl1OD+K7lDhtB8YCc+uR1YDmxhWHGt9EsBJ10ElLrKIcTrjVDhxvBb/90A6 Q1aM6zRjBLzEQ1nBr+9HKV2P1Xo0w20V9mZCy73PPBERKEJ12GEVSYHBcj1g+1iwrouF LWcpQXPA7U1LLOVqlZlnPzO/jLRQf6hgMXx73orB97FnOnmUezPSISlNA2lgFZmp3lep Rs9aOHbpxhzfhNVM/fBICkl3IsflMVbbVc8mhKVzLR8nUD/HMTo1mvBxv414yHF4rFdw AtfGYaV1KNHPoQxtUKk02WYU/3wgxqgZhL2mx3BhQpy/29UieJmyvuL9bFcm7BN90I4b pPjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=upCJPYTRolwyauAkiwDKb7DjgCw1zyXN2yIXpCGuNuU=; fh=G1AlxgKH5Kr6yfOXQUvTtfwKc8ELCF68sB/sNXsFdHs=; b=JhtE40gaW+1XpFKA/9ACRARPB8P1q6DjbHRzzkabocvsvbVA/ONeWLnTXbUv07mKrd XOQGgHq40+RIdtOzaFYXIOmuzrRh4tyLgrRPD18xiLrzT7BXPXDY6Ic9YHlhoB5iqhYO CGTNFJudXrGkru5xtB0G/g6qOBhYV7AFz94bVTyizg2nN3t+kHYydWx/6gNcp4KU3Y0l ILZANYB/h79NW+F7v+BtaTEsielXRzk9rBvx1yu44Ie3t405+AwSeA6htlhTGqKLS9bX a2gBO1MnVW00GRVe/ekhohYsE+0/XrzzRuSNuSLfBADTTVEa1KtXOHU3ylU41BnTTwhV ST2Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mi2OXEPm; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-a99a7ec5490sor56342966b.2.2024.10.10.07.37.04 for (Google Transport Security); Thu, 10 Oct 2024 07:37:04 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCXO6At63S2lwF30pNQVhkU4aUJQjyzz6jz/6gxV4IYyvoA24EmJ/ipItWfmoFhGrmMzhvLJhV1hFlpfm5Zl@amarulasolutions.com X-Received: by 2002:a17:907:6eaa:b0:a99:7a05:a652 with SMTP id a640c23a62f3a-a998d114ec3mr562778166b.13.1728571023684; Thu, 10 Oct 2024 07:37:03 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:6474:ebbf:a293:3a9f:6dc0:1d29]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99a7ec4d14sm97019666b.38.2024.10.10.07.37.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2024 07:37:03 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Marleen Vos , Dick Olsson , Thomas Petazzoni , Bartosz Bilas , Sergey Matyukevich , linux-amarula@amarulasolutions.com, Dario Binacchi Subject: [PATCH v3 2/2] configs/stm32mp157*_dk*: bump TF-A to 2.11, Linux to 6.9.12 and U-Boot to 2024.10 Date: Thu, 10 Oct 2024 16:36:59 +0200 Message-ID: <20241010143659.2844375-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241010143659.2844375-1-dario.binacchi@amarulasolutions.com> References: <20241010143659.2844375-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mi2OXEPm; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The patch bumps Arm Trusted Firmware (TF-A) to version 2.11 the Linux kernel to version 6.9.12 and U-Boot to version 2024.10. Tested on STM32MP157C-DK2 Discovery Board. Signed-off-by: Dario Binacchi --- Changes v2 -> v3: - Update TF-A hash file. Changes v1 -> v2: - Bump TF-A. .../patches/arm-trusted-firmware/arm-trusted-firmware.hash | 2 +- .../common/stm32mp1xx/patches/linux/linux.hash | 2 +- .../common/stm32mp1xx/patches/uboot/uboot.hash | 2 +- configs/stm32mp157a_dk1_defconfig | 6 +++--- configs/stm32mp157c_dk2_defconfig | 6 +++--- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/board/stmicroelectronics/common/stm32mp1xx/patches/arm-trusted-firmware/arm-trusted-firmware.hash b/board/stmicroelectronics/common/stm32mp1xx/patches/arm-trusted-firmware/arm-trusted-firmware.hash index 2bc5030cf2ff..8b77e1f1653a 100644 --- a/board/stmicroelectronics/common/stm32mp1xx/patches/arm-trusted-firmware/arm-trusted-firmware.hash +++ b/board/stmicroelectronics/common/stm32mp1xx/patches/arm-trusted-firmware/arm-trusted-firmware.hash @@ -1,2 +1,2 @@ # Locally calculated -sha256 72df0928138de111bf5e75fae47f88a4d1b4930ad52b7902e2b53e117be650c8 arm-trusted-firmware-v2.9-git4.tar.gz +sha256 c0f23ccc71c49989e9ad238acf334473c17b7c88f79a20c829c3d443e3794a22 arm-trusted-firmware-v2.11-git4.tar.gz diff --git a/board/stmicroelectronics/common/stm32mp1xx/patches/linux/linux.hash b/board/stmicroelectronics/common/stm32mp1xx/patches/linux/linux.hash index 95bd23c8d022..8cde9f620b0d 100644 --- a/board/stmicroelectronics/common/stm32mp1xx/patches/linux/linux.hash +++ b/board/stmicroelectronics/common/stm32mp1xx/patches/linux/linux.hash @@ -1,2 +1,2 @@ # Locally calculated -sha256 f048267b7b88316c9ca708c68d15a9ae802dcfc943c3188c1273eb958c433281 linux-6.9.8.tar.xz +sha256 5ae7cc4e0e2f6b9ba630f643985ba0522c7d5e5b9571ba478a3cb513edd4cf22 linux-6.9.12.tar.xz diff --git a/board/stmicroelectronics/common/stm32mp1xx/patches/uboot/uboot.hash b/board/stmicroelectronics/common/stm32mp1xx/patches/uboot/uboot.hash index fe9b4f53dc63..904fa56c02a3 100644 --- a/board/stmicroelectronics/common/stm32mp1xx/patches/uboot/uboot.hash +++ b/board/stmicroelectronics/common/stm32mp1xx/patches/uboot/uboot.hash @@ -1,2 +1,2 @@ # Locally calculated -sha256 f591da9ab90ef3d6b3d173766d0ddff90c4ed7330680897486117df390d83c8f u-boot-2024.07.tar.bz2 +sha256 b28daf4ac17e43156363078bf510297584137f6df50fced9b12df34f61a92fb0 u-boot-2024.10.tar.bz2 diff --git a/configs/stm32mp157a_dk1_defconfig b/configs/stm32mp157a_dk1_defconfig index c1ecbd22c198..1a851946b022 100644 --- a/configs/stm32mp157a_dk1_defconfig +++ b/configs/stm32mp157a_dk1_defconfig @@ -7,7 +7,7 @@ BR2_ROOTFS_OVERLAY="board/stmicroelectronics/stm32mp157a-dk1/overlay/" BR2_ROOTFS_POST_IMAGE_SCRIPT="board/stmicroelectronics/common/stm32mp1xx/post-image.sh" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.9.8" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.9.12" BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/stmicroelectronics/stm32mp157a-dk1/linux.config" BR2_LINUX_KERNEL_DTS_SUPPORT=y @@ -19,7 +19,7 @@ BR2_TARGET_ROOTFS_EXT2_SIZE="120M" # BR2_TARGET_ROOTFS_TAR is not set 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_CUSTOM_VERSION_VALUE="v2.11" BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="stm32mp1" BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP=y BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y @@ -31,7 +31,7 @@ BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_DTC=y 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_CUSTOM_VERSION_VALUE="2024.10" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="stm32mp15_trusted" BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y BR2_TARGET_UBOOT_NEEDS_OPENSSL=y diff --git a/configs/stm32mp157c_dk2_defconfig b/configs/stm32mp157c_dk2_defconfig index c35d75853f06..d961fc50b49e 100644 --- a/configs/stm32mp157c_dk2_defconfig +++ b/configs/stm32mp157c_dk2_defconfig @@ -7,7 +7,7 @@ BR2_ROOTFS_OVERLAY="board/stmicroelectronics/stm32mp157c-dk2/overlay/" BR2_ROOTFS_POST_IMAGE_SCRIPT="board/stmicroelectronics/common/stm32mp1xx/post-image.sh" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.9.8" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.9.12" BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/stmicroelectronics/stm32mp157c-dk2/linux.config" BR2_LINUX_KERNEL_DTS_SUPPORT=y @@ -19,7 +19,7 @@ BR2_TARGET_ROOTFS_EXT2_SIZE="120M" # BR2_TARGET_ROOTFS_TAR is not set 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_CUSTOM_VERSION_VALUE="v2.11" BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="stm32mp1" BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP=y BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y @@ -31,7 +31,7 @@ BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_DTC=y 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_CUSTOM_VERSION_VALUE="2024.10" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="stm32mp15_trusted" BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y BR2_TARGET_UBOOT_NEEDS_OPENSSL=y