From patchwork Wed Nov 6 09:43:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3630 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8AEF53F16E for ; Wed, 6 Nov 2024 10:44:10 +0100 (CET) Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-5cbb635c3f3sf703271a12.0 for ; Wed, 06 Nov 2024 01:44:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1730886250; cv=pass; d=google.com; s=arc-20240605; b=kA80yy8Upu/nCd7O/2Y7ngFyK1XUqs40ipZ1guenGZHNYXaETmkJcbE5neZ0A4mPOp GaW0E/y9HI+OEa2s6NiLzsiy43U+u5+HS/E/O5Q0FfwrEGoyES6ISPQXAtAHhN3xPPBx FbGXVkGyZbUGcrBGHXXKKOJSEixqCx1Lo+Fdi3cTjiBUcNE5xXD8xkQl0WshbL3yiysU mRtPvZ+WwOqAyqsaO6jJ4VhVUdydPUmq89qjCP/x2FAxiX4fP3VjRNeoqaHnoHP8agFf tG2KFs1h0cg8BrBKT87JrDExir3OdBQUPz3hcPrR2fIXI0W1gJ0T0qUpUW5AE6kZFHoQ ZpQQ== 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=2wqVF8PWsPxeBjpR6ayFSa5Q9qHncFJ0Ujm9sanvi2U=; fh=eCveUUxcUjev7R0DBxLD8f88Wh7RhArN6tozn0yqPS8=; b=S+UlVIFSEntBgKsq3IHQJk1PzfyJJ/FSR40O3vmu/288EFWX/QXZq8w8CNnx136XdR rWJszZSM0g+YNef+zry3hW/M9x0DkpXnj6A0Z73pzam1jZ+jQuqLvVheCKd/NFu635b2 u2Z7/t5Lab9q3a5H/dy/04mWUpyRnVDsvOtA+ZLWzzClzhXJ7Cq/tz3pVuFXjqWc9ouA tXCFW5Vld89N7vJfxD0zEHPflwLV1dVAjAQ7U0a8zPXe2Ocs0T9ltHfyMmAqS+1Hr7mU mvi8zKrphVHtBjkcDESQB7y62moOsE355Jd4hwbfIht6FS6Uy2nYebFqtpfQNbtzmL+D k0cA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=clb4RBAk; 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=1730886250; x=1731491050; 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=2wqVF8PWsPxeBjpR6ayFSa5Q9qHncFJ0Ujm9sanvi2U=; b=Y0bybpZoX9k/iq0Dp2hicYf/54a/348/y59Hmi2vAJpi4Fs16/fPoo2jfM6Jap98Kl qP86vbsacjCHCxQfN7akyndZHbKwjeN3I7v1oibU8VFMIo74zD6LqS4G/vS/LVZPVwoc GyMMmqM6DBUte7Kw7FFcyqodqxP422Tkv3uq0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730886250; x=1731491050; 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=2wqVF8PWsPxeBjpR6ayFSa5Q9qHncFJ0Ujm9sanvi2U=; b=mX5Xxaxh04TUAkvrHNE3qwkdCm+DJ28ssL+HTtefkhFuJcyhdyaO07G3fOue9/gC4W Azj7F7yw3pB1JefcoAEDkDLMrPB8UD+UO3GSAZpRz4/IKsNOU/E0oVeHlPLNYzvPcPHw 0QL2R7fc+N8DmYV5SSQrogEfc7A9MUfdW+7sISgwyv0JeLc2DuXOESKIrYXUWoaXt7xE Z8R8qFeKhgoNXnp2QY/l54WKlanMk3795aKH9AkB98bBMtjQ5JOi8b7Dk8uwuVsNtG+D KfC8tSeClqU5Tr+H/RwkP91pLAP+fmXefkpps3ZE0hBjcbxBxyKCs74qMesdlQQgyHdq KaNA== X-Forwarded-Encrypted: i=2; AJvYcCXY6L0mnpVw/DSrZvH4aUVB9DV4G+Va5isvOgQZJwIG4ki01iH1JlfbOTEDKYtQ3EAsaYyXXkuq6JELIr4d@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yx12u3hzikbSWZYj/ROEXNcwZlVTeH+oAmL2wTGLNPgWR/286iJ rzh0YNtHqStYB2lxhG+7zkdHEExKF1Fj/GefqkJW+ehntEiiQh7ePl1YItqrCSswZA== X-Google-Smtp-Source: AGHT+IEhmodKiQk+l9+6/PiD1XfdGUdPDzLC3ylJflTSyjEqBKZ/bWjSWnYdkrxh0XqIJAs2zCPW8Q== X-Received: by 2002:a05:6402:2709:b0:5ce:c7b1:e052 with SMTP id 4fb4d7f45d1cf-5cef55266f9mr2006820a12.9.1730886249890; Wed, 06 Nov 2024 01:44:09 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:c10:b0:5c9:5b3:ee81 with SMTP id 4fb4d7f45d1cf-5cedffd79ebls575985a12.2.-pod-prod-00-eu; Wed, 06 Nov 2024 01:44:08 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXcfhW5ogRLn/wiu3IPlxCfkIO7usdGVNxe1RennIGkB2G8gVMldYSfCgTIb0wOElmKcCmdTFOitgZRjzOq@amarulasolutions.com X-Received: by 2002:a17:907:7211:b0:a9a:babb:b916 with SMTP id a640c23a62f3a-a9ec6630cd9mr205833566b.15.1730886247621; Wed, 06 Nov 2024 01:44:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1730886247; cv=none; d=google.com; s=arc-20240605; b=c725SnvCzjP0t+JDOEKd6CAQb6aKQS7UyH9Otvi81TazLtbFTmXh5PZ70EIdr98iTB k4HHvO/H6VZR9x+7FU+7j9n2I9cw+M8ypyVoPjkuZa3SbdTJ2mTHpVt6JgCUeb8wyryv GqNS8Gh45pBlVDmCDUCbiE6z5aRAntrF9xekPTMu6wHdxjJAY/FqyxspPQWVRadWAe7e eILSPhLtnzs61JP2iodqmGYRg7A6UdiOPkq9mk1RwvyZXpzxzrq4PURDgVnkF9ovwUP+ bwM61AaTvKhtxUTrDSgc8KiAU7lmtDp6nOfQ/y3KhV8ib+uD6a/7KXA9vIy6jSvw9lxz Yg3Q== 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=/1Atcn8iuQaR9kDv8iTft5Ye/GlkkyCYD7QfnaONHp4=; fh=cGJW6f8bAxgq+8AI4lgx2D66Byw99gygK7Kx08/nx5Q=; b=aIuUapwtB8T6H1CAsRFFQFdVTvGBU1L9DMx6PANbTnjisAjtTUnuyFp4FuWe6JKaw1 48YH6Yn8bt1Kim9YrCSB1RvpYftWMzAg2kCAoYrvFWpB2+IP85nuGJu9S5bxnl9Xa6Ii bTTrKgcddz/SHagtf1UB3107ZMoktN2rl7dg1fzYJduk8zvHbBMSizzXfEOLd6q4vjrv 0lbtIjJ+/BPW9OCTJFVypiHWS2Iq7Vyq/S/JfAdbnOZKUUyoPT/8oyBX4qsWVzOvkWnT baoTUVtm1geyY0hDAdSe97u8lqGHbtWvCEfItMqMOxxRR0aWrJnXUfutWs9sovp+Fqdm EcLQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=clb4RBAk; 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-a9ec8b8ba6asor44550866b.3.2024.11.06.01.44.07 for (Google Transport Security); Wed, 06 Nov 2024 01:44:07 -0800 (PST) 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; AJvYcCXbDRubnX2ib5cduFZFg/WIrtul0kTaW+ZWeUM+d2WJYH87Adl4FE7rs0JqKm78/vo0b1/zrWNQGIRpQeJm@amarulasolutions.com X-Received: by 2002:a17:907:60d3:b0:a9a:b818:521d with SMTP id a640c23a62f3a-a9ec6632f32mr141631766b.18.1730886247102; Wed, 06 Nov 2024 01:44:07 -0800 (PST) Received: from localhost.localdomain ([2001:b07:6474:ebbf:afb5:f524:6416:8e3]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5cee6abfcbdsm2485618a12.37.2024.11.06.01.44.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 01:44:06 -0800 (PST) From: Dario Binacchi To: buildroot@buildroot.org Cc: Sergey Matyukevich , Bartosz Bilas , Marleen Vos , Dick Olsson , Thomas Petazzoni , linux-amarula@amarulasolutions.com, Arnout Vandecappelle , Dario Binacchi Subject: [PATCH v5 1/2] boot/arm-trusted-firmware: v2.11: fix building ST elf file Date: Wed, 6 Nov 2024 10:43:44 +0100 Message-ID: <20241106094346.3694622-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=clb4RBAk; 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 commit backports a pending, but likely correct, patch that fixes the following build error: '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 v4 Changes v3 -> v4: - Replace the fixing patch. The previous patch did not pass the tests because it caused regressions on platforms other than ST. The review process led to a new patch specifically for the ST platform. No changes since v2 Added in v2 ...pie-option-when-building-ST-elf-file.patch | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 boot/arm-trusted-firmware/v2.11/0001-fix-st-set-no-pie-option-when-building-ST-elf-file.patch diff --git a/boot/arm-trusted-firmware/v2.11/0001-fix-st-set-no-pie-option-when-building-ST-elf-file.patch b/boot/arm-trusted-firmware/v2.11/0001-fix-st-set-no-pie-option-when-building-ST-elf-file.patch new file mode 100644 index 000000000000..d2b82e0921f4 --- /dev/null +++ b/boot/arm-trusted-firmware/v2.11/0001-fix-st-set-no-pie-option-when-building-ST-elf-file.patch @@ -0,0 +1,37 @@ +From fbd050b61652db732f7a7a1ca36450b1bb339298 Mon Sep 17 00:00:00 2001 +From: Yann Gautier +Date: Tue, 29 Oct 2024 13:42:07 +0100 +Subject: [PATCH] fix(st): set no-pie option when building ST elf file + +This elf file is used to build a binary file that concatenates BL2 and +its device tree blob. It then does not need PIE option, and this avoids +the following compilation error with some compiler versions: + error: PHDR segment not covered by LOAD segment + +Change-Id: I7562e8c1890275fe0409f3a23cc66a8e14ea1ee0 +Signed-off-by: Yann Gautier +Signed-off-by: Dario Binacchi +Upstream: backport from https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/32960 +--- + plat/st/common/common_rules.mk | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/plat/st/common/common_rules.mk b/plat/st/common/common_rules.mk +index 212a67d5168c..b9fe3d4d676f 100644 +--- a/plat/st/common/common_rules.mk ++++ b/plat/st/common/common_rules.mk +@@ -58,9 +58,9 @@ $(eval $(call MAKE_LD,${STM32_TF_LINKERFILE},$(STM32_LD_FILE),bl2)) + tf-a-%.elf: $(PLAT)-%.o ${STM32_TF_LINKERFILE} + @echo " LDS $<" + ifeq ($($(ARCH)-ld-id),gnu-gcc) +- ${Q}$($(ARCH)-ld) -o $@ $(subst --,-Wl$(comma)--,${STM32_TF_ELF_LDFLAGS}) -nostartfiles -Wl,-Map=$(@:.elf=.map) -Wl,-dT ${STM32_TF_LINKERFILE} $< ++ ${Q}$($(ARCH)-ld) -o $@ $(subst --,-Wl$(comma)--,${STM32_TF_ELF_LDFLAGS}) -nostartfiles -Wl,-no-pie -Wl,-Map=$(@:.elf=.map) -Wl,-dT ${STM32_TF_LINKERFILE} $< + else +- ${Q}$($(ARCH)-ld) -o $@ ${STM32_TF_ELF_LDFLAGS} -Map=$(@:.elf=.map) --script ${STM32_TF_LINKERFILE} $< ++ ${Q}$($(ARCH)-ld) -o $@ ${STM32_TF_ELF_LDFLAGS} -no-pie -Map=$(@:.elf=.map) --script ${STM32_TF_LINKERFILE} $< + endif + + tf-a-%.bin: tf-a-%.elf +-- +2.43.0 + From patchwork Wed Nov 6 09:43:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3631 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8955E3F16E for ; Wed, 6 Nov 2024 10:44:11 +0100 (CET) Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-5cbad9b3ca2sf4575278a12.3 for ; Wed, 06 Nov 2024 01:44:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1730886251; cv=pass; d=google.com; s=arc-20240605; b=Wi8AjcGFyP1wKqaOJ7SqjhYsW6m2/kUIrOW0F/EMaJHkEFozGibqSZ4lo6BLQkpp4r L93ptXT/oHjoGY+rhV/Vag/YqkAmEf0mJyjA6fIZydAIz67tLKKteLy2bYmEyKlI372S t0zJs2duFOUg4E4Yd9hw/8K3W/BAkAxMqsRWt9DbsvaaKto57XZBGMkMxIQRkoEJ5Y03 7SJ5CbkkjinPI/IzJFjax9UMeduPAWl57tfTrpTI2BXpq7z09uWKx80eNjREqSP1vUUP 9tymTrPAs04s2OlhYP9GuFfuMiM0NhRsH7g1kBG29GSSfx+xhySv1XVrU9WK8iWqpo9Y 32dA== 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=/I2lwKiiBJOGftim1UeU2c+NA/iF+A+fajYKFzLmPsg=; fh=I+gswyQWISzrOhhvsPdEmChyCPnHIuLHoBmoIoqh+Vk=; b=S7esrN5J2d+TMBaSoMjNbOEjR1CUvWypVvdz7LRO5yyEp5Ya3hFrUtlKFs5YfX+p2U 0zCnV0WqFax05YI5jsNzRXyoL6oLPUljuoVzVTr0QwZRIS6LO/YKcPwdfrnElSkPKKxE cWBIsuWRFD2wIYjXp1YGTm8pfnoD+hN0EKiQTvYZmy1zDsbm0ODNZTLW4H8/KsKJEzCl Hef2sX+ClXSbD+hZrFlFRH1vw3fo8hHEwjUlLbKDiNmF0WKgGEMK6aI5X9HZu4h+czRY htV24N2xtW4ZbQJI/4DQWimmXM9eeA0wMAAR9OmZ4DAcvxVsK+BMvVuiZfnsDA4bWZWk x7Uw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QIt4qrJ+; 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=1730886251; x=1731491051; 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=/I2lwKiiBJOGftim1UeU2c+NA/iF+A+fajYKFzLmPsg=; b=Hd/AZai3uGtIrik3O7kn1mig54q6ajo2gAHz9nQ+Hsl7JG0MF4kHktmRPUKJwfHPX/ GBTlNZJUFUtSXMUMMYKiTRn1lf7BSliebkD2V56F+DCoodrsMip7IcBW5x4apmaniQiM VolSZJkhrmSZd41cbJsJb8qsv9Sp0fh8k+Usc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730886251; x=1731491051; 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=/I2lwKiiBJOGftim1UeU2c+NA/iF+A+fajYKFzLmPsg=; b=YLtj7UPRxceDV9ddvP2n+7EhSg9vOu5Mc8BIYCGMWpbTVIdfYn6Y7t8We4Jwq+r865 7+IDcJ4rh4a8X9juV2zMRuE/Bc/sVATmi53W1X4yDReJ27wKcmxCdV3rxka7Nhn8JJ1D 3aw2SuTsQWawV0TOHyz5KLpupAgZaRyg9IiKgHwXFAnKlZoDgrOUoWC4JHYGg8oC0cYw HOBaGloFWM2CW3w9qrgnuFAt+l8nNSndzjfF8ZaEsZBFL81tZz6yRqiaDAhtiAxFS9uG q9yiYQJw5DwgWbbaKYTpUQ27vAATizaxJLSG1VfC4z/upnx7E/8IIdilfGTyYgU1y6mU Trlg== X-Forwarded-Encrypted: i=2; AJvYcCVCgz3HnQtm6niSC2QA3hPx7FRi7f638pXuWIdn2u7C+HM9Riyoos9onFy5zi3yIFrtqBVEPaQGgrppSRSp@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YxU52I301Pxgma833eayFHRoyCQ/gHTEcNGXOghpmarclf8eGhq 1EUlhUU7y95z464ku0+rMKFgkBAhLWAAm8b/QtqiOf8p1JWz/AR1m7hzNf5gMWbijw== X-Google-Smtp-Source: AGHT+IFlViiIvI2gX9wYx2FivK9PEP2A8DIAU0HV2c6Rdti2amMJrZiuAn0Uwvp7ZuXs6hTLq5h0mg== X-Received: by 2002:a05:6402:510e:b0:5ce:dfe7:97c8 with SMTP id 4fb4d7f45d1cf-5cedfe798ccmr5096367a12.31.1730886251191; Wed, 06 Nov 2024 01:44:11 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:c518:0:b0:5bf:bf:efe4 with SMTP id 4fb4d7f45d1cf-5ceed258bd4ls730159a12.2.-pod-prod-08-eu; Wed, 06 Nov 2024 01:44:09 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUJuEdvMSJ1w9P0hD+XD+iN8gOLVKob6W5nzH2ULjNk2SgLQUxYbXVHMQYJhzr3QFCi+IzlXYKQhFHGz9o+@amarulasolutions.com X-Received: by 2002:a05:6402:278b:b0:5c9:85de:db8a with SMTP id 4fb4d7f45d1cf-5cbbf8a4d1cmr32431854a12.11.1730886249465; Wed, 06 Nov 2024 01:44:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1730886249; cv=none; d=google.com; s=arc-20240605; b=LWkGDxDYwKh+qXj4xpy6YdQDMrWKiZJV9F1g/YFg6bHFrUM9T7ZC6fIjA8tLnTcY3r ZbTHOgK5qlYRtiqnkPUsmVA1J4zZISYPyguJzliUYLDPFZJVb+wMcDGyEq68Tj/r61RU u1Ms6k4fjKtSAgPQ86e/JM6Vy83tAiqWiDGmuSCzkdp6RvkhqBiLZFDEsYccfGZVfgPc NcpL1jIRbOp6IFjpjuFtpKVB6aAWSKjE06K/WBG4kl+rNZnl2alFacc75XYoV6rMMnfX mfS4yvUB1W1sIOK4OD68+OxSq4VWqiAonwnHpbvwRyy+tnSWdUSkJqM7rzUT+drBRl52 +PUQ== 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=rI52A9OqTwrgebH8bx5FwbTHxsdAbJGGmbdHqYuvs68=; fh=0/3PdAX1Q4yhzcK49PPG0u6yo6WTHurriGD/ZIFafHE=; b=E/3ulys+MsZv3DU2QbuIZsyjOjvnx9F8p7MpeX6P8hfF1+JMl/avrhImPB0b4FuzJy 0BesZWTJN+knSYkCQoSsEO0YsVoiAt6Y1o7x/C+Cm+IGSDLGBs5LV9krlx1BnI12Bw7i q6jf/wh5TJrGJlEn3bCnhpionDcowMr71gblfCwOyFqjufPJqvRyrdRsWWdJDyRLUQed ddzFIXfsEgZ7ynw38l132ASHFFykdPNxjIZXs4FLHLlh6+9irLT2WshYfFsqgu8njwtg PR4X7aYPrVZI9nWDLF9RmiBI497bJcuNq5UlofwBH4GjfWiHnyYReiIdcOoO4M0fzio+ 3HWg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QIt4qrJ+; 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 4fb4d7f45d1cf-5ceac7fa0bfsor5241975a12.10.2024.11.06.01.44.09 for (Google Transport Security); Wed, 06 Nov 2024 01:44:09 -0800 (PST) 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; AJvYcCUzf5vQ1IhvsTQ8r3vXUsjzWtUjoZQUbtEPJhlyd6jsyMPKehvc1OOd2ev5SR/YEkHH0YSvx0HOfB1B8dI7@amarulasolutions.com X-Received: by 2002:a05:6402:278b:b0:5c9:85de:db8a with SMTP id 4fb4d7f45d1cf-5cbbf8a4d1cmr32431829a12.11.1730886248916; Wed, 06 Nov 2024 01:44:08 -0800 (PST) Received: from localhost.localdomain ([2001:b07:6474:ebbf:afb5:f524:6416:8e3]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5cee6abfcbdsm2485618a12.37.2024.11.06.01.44.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 01:44:08 -0800 (PST) From: Dario Binacchi To: buildroot@buildroot.org Cc: Sergey Matyukevich , Bartosz Bilas , Marleen Vos , Dick Olsson , Thomas Petazzoni , linux-amarula@amarulasolutions.com, Arnout Vandecappelle , Dario Binacchi Subject: [PATCH v5 2/2] configs/stm32mp157*_dk*: bump TF-A to 2.10, Linux to 6.11.6 and U-Boot to 2024.10 Date: Wed, 6 Nov 2024 10:43:45 +0100 Message-ID: <20241106094346.3694622-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241106094346.3694622-1-dario.binacchi@amarulasolutions.com> References: <20241106094346.3694622-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=QIt4qrJ+; 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.10 LTS the Linux kernel to version 6.11.6 and U-Boot to version 2024.10. Tested on STM32MP157C-DK2 Discovery Board. Signed-off-by: Dario Binacchi --- Changes v4 -> v5: - bump TF-A to 2.10 LTS - bump Linux to 6.11.6 No changes since v3 Changes v2 -> v3: - Update TF-A hash file. Changes v1 -> v2: - Bump TF-A. .../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 | 9 ++++----- configs/stm32mp157c_dk2_defconfig | 10 +++++----- 5 files changed, 11 insertions(+), 14 deletions(-) delete mode 100644 board/stmicroelectronics/common/stm32mp1xx/patches/arm-trusted-firmware/arm-trusted-firmware.hash 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 deleted file mode 100644 index 2bc5030cf2ff..000000000000 --- a/board/stmicroelectronics/common/stm32mp1xx/patches/arm-trusted-firmware/arm-trusted-firmware.hash +++ /dev/null @@ -1,2 +0,0 @@ -# Locally calculated -sha256 72df0928138de111bf5e75fae47f88a4d1b4930ad52b7902e2b53e117be650c8 arm-trusted-firmware-v2.9-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..42d02c9f7836 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 c954f60197008f1e1f32a1e77293903cf3801d2543ec4bf521f5651eb7f133ce linux-6.11.6.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..7c813bf21be7 100644 --- a/configs/stm32mp157a_dk1_defconfig +++ b/configs/stm32mp157a_dk1_defconfig @@ -1,13 +1,13 @@ BR2_arm=y BR2_cortex_a7=y -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_9=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_11=y 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/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.11.6" 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 @@ -18,8 +18,7 @@ BR2_TARGET_ROOTFS_EXT2_4=y 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_LATEST_LTS_2_10_VERSION=y BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="stm32mp1" BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP=y BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y @@ -31,7 +30,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..5241acd711f4 100644 --- a/configs/stm32mp157c_dk2_defconfig +++ b/configs/stm32mp157c_dk2_defconfig @@ -1,13 +1,13 @@ BR2_arm=y BR2_cortex_a7=y -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_9=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_11=y 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/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.11.6" 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 @@ -18,8 +18,7 @@ BR2_TARGET_ROOTFS_EXT2_4=y 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_LATEST_LTS_2_10_VERSION=y BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="stm32mp1" BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP=y BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y @@ -31,10 +30,11 @@ 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 +BR2_TARGET_UBOOT_NEEDS_GNUTLS=y # BR2_TARGET_UBOOT_FORMAT_BIN is not set BR2_TARGET_UBOOT_FORMAT_DTB=y BR2_TARGET_UBOOT_FORMAT_CUSTOM=y