From patchwork Mon Mar 4 15:32:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3038 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C9FEB3F1F3 for ; Mon, 4 Mar 2024 16:34:13 +0100 (CET) Received: by mail-lf1-f72.google.com with SMTP id 2adb3069b0e04-5134e56c6c8sf198909e87.3 for ; Mon, 04 Mar 2024 07:34:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709566453; cv=pass; d=google.com; s=arc-20160816; b=u6nqpGhckuwzMbr5WGfrZTFwlFnOoZY/t4EK1y897MbVmpSlKElnP5YoVbw/83c2Uj 4Zp554aXzLfr/2yPL0KxGIVqEojsLIIWtdNGV0EPYUS/njCbcvbaGlJO+lLerZ4xvejQ 3+QOjlvcv5loxwxbrCSgZB90WGThRAEhysFZSx84djm0TAfv/ms8U/Vfuf4INb4LhmZa 0rUIIDhpwG+JaaL11/OdQTny69qY9B1IWBbYNKMIbo+nehtOGwteor1F+dVSJV0Z67yB pa814N2Kq1LnYkmu0d0BfrEc0uUjiJuOMLbv976RYADv9ZeZBDw7RafSIB6gTt9KqOzc qPvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=Lj73AY9lY7Q57ycrh18idgOoJbKO7CWGDwk8ev9UtEU=; fh=Us47KxIRMEHl9sai4iQ9PVa8SbphAEpyRtowshYyUxE=; b=Yk4EXIYOS0TcZI85pdQ6XcAJDYkm1hHVbt/grq8q6Sa58tplTGVo6zqV9drHStCQiO jmPgrZ1VJtPJincNP/B/4ufRWVajUP5y0kch8h031A5Ns9XR/z02GiTaa3aPI+B26KrN Q+zwOD0JUJ2zLxsBv2T6tU9n6dC8ctHjfASU5V/7FFsAiIeKOwlueSEK14vuksx8Cbv7 tSvnV1VMkwliW69aJEQBN/hEiA8O8UdIdT67POcKI9jMi/klqAyCvz9wonk0PtZkW8hG Nd2zWrPdVUciweVehXDwrjkSI56Gi7eRvRgCgc+sLl4sNmSjr+WgDKmFALHkh7L71v9+ xrMg==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jH94Yoi8; 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1709566453; x=1710171253; 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=Lj73AY9lY7Q57ycrh18idgOoJbKO7CWGDwk8ev9UtEU=; b=ovTMWbYoJ1JujNJd4ZhqjeI9M1r/Wsi/DJGVP7a+IhZnZ3FVYf7AUaHdYQ6KiE5r2v gOnHiMu1NToLg33v5noThYcGblfEX9CihBz4IdLrh3ejTRsIlXOAzV47j4ZFsBYuY6A+ lNZIOkDYBPhQuE0PSbczbLiR7CdvLgqKJcodo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709566453; x=1710171253; 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=Lj73AY9lY7Q57ycrh18idgOoJbKO7CWGDwk8ev9UtEU=; b=iL9Ij0RiHAYIdgmyUngUNEb+byZrKzfG/wB0Ehv0O9MGWrA3Kush3GivAHDI/7XT96 cDz6IshnbNPVCAq4m8g5obJ5IqcnIuBYhiLixTPn9cEgQ5GpDzikOdwKBxUBfD+SQQBQ rsTdz3E/TcIJ27wDKMK/grvOLJTvkb01OSasgIZ/sAub8y5nycjbFdqXMoznfzQjFw3c thIqvi1g+CjfjQCvIUE5vGuDQk6o24bo2noVHEBEPjxtlx705dQeqcAzUl5Dmg3sqVJP VajE524SsoSExjqPTBh6h4OoJZ6UW9hdAwVOc7ETfw+fvX7n/akienGWLeFWCzDK9qd0 UHlw== X-Forwarded-Encrypted: i=2; AJvYcCUo55s59Ik7xYBA282LuT4ZDn97uxkHh9YNP5lBteXgz9bsuXfaKDM2xTUjHBfLGjZxZpVvmIWvjq7doquE5mKN98gvcVsOEhCKaKyBqJ6bsmQBO0tXs5v2KvI5cg== X-Gm-Message-State: AOJu0Yw6nwQBKNj6ymoXJ6UfU99737unMp5IL/CLWQ7lqnOuXlSVlszQ uQE+OW63+vsrJuavtW4ZoEDEEhDoeOtOuKS1dD7UlTPcd6yKcNGmrMeJy+LpH6YSCw== X-Google-Smtp-Source: AGHT+IFI+Crtd7iXkG8la0/YJ98DfUPxnqT9kC6sRuLnPqiTkaO6FWXzp320nTlxvv80LLvR1vsKHw== X-Received: by 2002:a19:f603:0:b0:513:2137:a231 with SMTP id x3-20020a19f603000000b005132137a231mr5615246lfe.67.1709566452886; Mon, 04 Mar 2024 07:34:12 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:ac2:5e66:0:b0:513:33be:93bb with SMTP id a6-20020ac25e66000000b0051333be93bbls350370lfr.2.-pod-prod-03-eu; Mon, 04 Mar 2024 07:34:11 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVYCuF15FA/xJhszxWn98PToPDI9woMvLt9h0DT4Ue4yur57PW3OoMVtvQwczYmrO6XmimVJlz5MIkDBavA+9gfcnB7ycSowusVVo2g88QZBBiw X-Received: by 2002:a05:6512:39d0:b0:513:1c07:3be1 with SMTP id k16-20020a05651239d000b005131c073be1mr7199051lfu.4.1709566450940; Mon, 04 Mar 2024 07:34:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709566450; cv=none; d=google.com; s=arc-20160816; b=sYH2uUIUzhwzVTk1fYKoos6xSY2vgfGN3XMVcSyuUXK53qyvObG4bkkzy48Nbfx7tH L5S3Akk385Ig19T+4rS17+xPBbB8onLHtrfqGF99hO2OktIt1GL2m0SuRLitmjkbjZZR /Q8WbZUCceOYIDqsMw053Pcb5JSI8/r8+Gnc1S0kh5/8j4kU4XbsMsXqr2hXqbz0MxHf Tt7MEWpusrPeu/hwl7plNTTFL9Q4L+VQLj7davSH6yrBngewmYpXLS/8s8GJBK+ka5z2 PSubRE8ba7mrRLmpFoRqG81XhIkIogqj3l7+gb3ijy1ysRa2jYQEI0tkmzsdgstb4ri2 OkIA== 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:cc:to:from:dkim-signature; bh=wECPWhW1zoUwEYbDf+8pXLp9fMG95JWQuFsDvL0KuYQ=; fh=5TCNOWJ8CuX14PwhUVUwb+5ie7WzEZLhualu9vU0o2k=; b=o4C1kHIgrwN5m4cE4MGvVGlfnvamh/xT2i8pXny845CJj0tUwKE2XkWtBR9eqVMxAP tuidM7rb4/f5KBjSD4w0QxIcRVMing4WUyq6Srmj0w8GvxEy7IrVc//UadY7Aiptvdxx dhP5GPoJ/ipltetvH/H6kTLJPRu3kNgH8NYrcyxUPjAQZix6kyl9b66OzcE5spMtHnBg WKZck3/xQzRpqPqzbvgjYXffYbMrDnKfSL8qqxMDQGuoh5pM6r/KL5QQAvjp2LOkTdmD O4ZO4f9qDpsmE8wl8DTDpZaJS9txpgKhO3cAYmHl5bPVoJtFTNH22cVTeoyMKEqi6eWx YCJQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jH94Yoi8; 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 Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id f19-20020a17090624d300b00a441cb39f0bsor3045815ejb.1.2024.03.04.07.34.10 for (Google Transport Security); Mon, 04 Mar 2024 07:34:10 -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; AJvYcCV1G6HN9fpMMW0AcJgCKS1yo7buFnQd/FF2Z8NtlhRFpqtGLQECuXc0mJgljEnJa1CDvPooVkWA0teDuzWEZq2lMBzKGRmvYgWI1TE39OC6pOM9 X-Received: by 2002:a17:906:e28a:b0:a45:524c:2565 with SMTP id gg10-20020a170906e28a00b00a45524c2565mr1802947ejb.45.1709566450535; Mon, 04 Mar 2024 07:34:10 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2001:b07:6474:ebbf:72fe:558f:d55e:d423]) by smtp.gmail.com with ESMTPSA id sa20-20020a1709076d1400b00a4432543b21sm4936082ejc.198.2024.03.04.07.34.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 07:34:10 -0800 (PST) From: Dario Binacchi To: buildroot@buildroot.org Cc: Romain Naour , Alexander Sverdlin , Andreas Dannenberg , Yegor Yefremov , Xuanhao Shi , Anand Gadiyar , James Hilliard , Thomas Petazzoni , Dario Binacchi , michael@amarulasolutions.com, Asaf Kahlon , francois.perrad@gadz.org, linux-amarula@amarulasolutions.com, bryce@redpinelabs.com Subject: [PATCH v9 02/22] configs/ti_am64x_sk_defconfig: fix BR2_TARGET_OPTEE_OS_PLATFORM setting Date: Mon, 4 Mar 2024 16:32:33 +0100 Message-ID: <20240304153253.732708-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240304153253.732708-1-dario.binacchi@amarulasolutions.com> References: <20240304153253.732708-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=jH94Yoi8; 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 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: , Using PLATFORM=k3 can leads to a runtime boot crash on some K3 SoC (e.g. j721e) because the optee flavor is missing. We could use BR2_TARGET_OPTEE_OS_PLATFORM=k3 and BR2_TARGET_OPTEE_OS_PLATFORM_FLAVOR=am64x but we actually can use BR2_TARGET_OPTEE_OS_PLATFORM=k3-am64x as explained in the optee-os Makefile [1]: # If $(PLATFORM) is defined and contains a hyphen, parse it as # $(PLATFORM)-$(PLATFORM_FLAVOR) for convenience This is how meta-ti set the optee-os platform: meta-ti]$ git grep OPTEEMACHINE meta-ti-bsp/conf/machine/am437x-hs-evm.conf:OPTEEMACHINE = "ti-am43xx" meta-ti-bsp/conf/machine/am57xx-hs-evm.conf:OPTEEMACHINE = "ti-am57xx" meta-ti-bsp/conf/machine/beagleplay.conf:OPTEEMACHINE = "k3-am62x" meta-ti-bsp/conf/machine/dra7xx-hs-evm.conf:OPTEEMACHINE = "ti-dra7xx" meta-ti-bsp/conf/machine/include/am62axx.inc:OPTEEMACHINE = "k3-am62x" meta-ti-bsp/conf/machine/include/am62pxx.inc:OPTEEMACHINE = "k3-am62x" meta-ti-bsp/conf/machine/include/am62xx.inc:OPTEEMACHINE = "k3-am62x" meta-ti-bsp/conf/machine/include/am64xx.inc:OPTEEMACHINE = "k3-am64x" meta-ti-bsp/conf/machine/include/am65xx.inc:OPTEEMACHINE = "k3-am65x" meta-ti-bsp/conf/machine/include/j7200.inc:OPTEEMACHINE = "k3-j721e" meta-ti-bsp/conf/machine/include/j721e.inc:OPTEEMACHINE = "k3-j721e" meta-ti-bsp/conf/machine/include/j721s2.inc:OPTEEMACHINE = "k3-j784s4" meta-ti-bsp/conf/machine/include/j722s.inc:OPTEEMACHINE = "k3-am62x" meta-ti-bsp/conf/machine/include/j784s4.inc:OPTEEMACHINE = "k3-j784s4" meta-ti uses the OPTEEMACHINE to set optee-os platform [2]. [1] https://github.com/OP-TEE/optee_os/blob/4.0.0/Makefile#L37 [2] https://git.yoctoproject.org/meta-arm/tree/meta-arm/recipes-security/optee/optee-os.inc?h=4.0.3#n23 Suggested-by: Romain Naour Signed-off-by: Dario Binacchi --- Changes in v6: - Update commit message Changes in v5: - Drop BR2_TARGET_OPTEE_OS_PLATFORM_FLAVOR option Added in v4 configs/ti_am64x_sk_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/ti_am64x_sk_defconfig b/configs/ti_am64x_sk_defconfig index 4bfd31f0c8d3..097175bd8f39 100644 --- a/configs/ti_am64x_sk_defconfig +++ b/configs/ti_am64x_sk_defconfig @@ -21,7 +21,7 @@ BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="k3" BR2_TARGET_ARM_TRUSTED_FIRMWARE_TARGET_BOARD="lite" BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL32_OPTEE=y BR2_TARGET_OPTEE_OS=y -BR2_TARGET_OPTEE_OS_PLATFORM="k3" +BR2_TARGET_OPTEE_OS_PLATFORM="k3-am64x" BR2_TARGET_TI_K3_IMAGE_GEN=y BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM64X=y BR2_TARGET_TI_K3_R5_LOADER=y