From patchwork Mon Mar 4 15:32:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3037 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 A9CFC3FA2C for ; Mon, 4 Mar 2024 16:34:11 +0100 (CET) Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-559555e38b0sf5071324a12.3 for ; Mon, 04 Mar 2024 07:34:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709566451; cv=pass; d=google.com; s=arc-20160816; b=FlpJCHKSDa2yC2rWqVDD+D80e6xrw7SzquiAVhK9bGnG3iUPVp+vjISjygCrMVjGYQ FwXdQ/nNfAvuFyQWm5XCkkLAu8q/Xfm1+ocQOzr0fyvPQ1WANPbL2Xv1+DoIGsyEDsBw h+LxY+2Y9MGerRXJgSB+jDBZwjHgXzGuFchrJi9G3n96ArNlX0fcAK2ITZk9SyHA4wwW NVi3wWuoJDum+tWaoFClpoX1vPDOg0RZYJl3jKtT8PVy7TjYzXy0shjjXs4OJf30s0U0 rI/D3lqQ2D3jfTUHehi1lq0PQ0tQxB/k0GORs+5ku4dlF16QzW6FHOyB0UxDwoiJcrQP jHUw== 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=QAznjUixbDJOLzLWaT/yLIrjzYIC2Y5T8a+NBzFYaIE=; fh=4e4c7Y7ECU8PK8mAIJ6xVlt/BoLi27m5uhBTKvntLP0=; b=x48O86PFc66DT8rGICeIl/PZiCvWf73Ec8wrwmKPbEjvY6kgJXKLksQDm+BFpVLnnv ruNovZMKYh468hFdbjNvPmcP81p9VrZ7/q/RFYP2G+WIJA85HNbaGyumAWc/qufKkrNq MRHGelrO9xluoURdbDyEkS11uEMaHq/Uy/PPR85HtCanSwuHFSrvpcaPPhpungrChNOG /5uYdGjIaNkgKrjKM9hzVEjVtjq6H5dwbuCe1KWFD2H0S+ymWrzrcrqTDDsaZbZx7hRB KqJhz7kCMwcAlIxOD1GBqVgOZG1IPajF8Rc3Q4YvMiEk8hZvusIxaf+X4yFDvQ53nthN sliQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=n+4+6k0S; 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=1709566451; x=1710171251; 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=QAznjUixbDJOLzLWaT/yLIrjzYIC2Y5T8a+NBzFYaIE=; b=AoYajAfO8Q6C5hypk1j5Hl8/GPuluZXuR+X/pCJoZ7ZxNZpRMuMGo+bOIlS8BBqyoj e80Jl3OxvGG7jeJc3WrDcFYaCp0UOfySxIq3mv0BjsB4ML1VUhIE2r61vRGN49/XbudK IYIH6W5Fs/V0yuQFA+R5Rcf4Pb0LzxJ7hXBG0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709566451; x=1710171251; 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=QAznjUixbDJOLzLWaT/yLIrjzYIC2Y5T8a+NBzFYaIE=; b=jxlGIWM6cB/AsYmAXlL3OS/nWtVYmk+Dg8qLoS7/Eq89QF1bmv6kIl5NbAVQxxLZO/ aIgn0cIG85vK8eXS4AgZVy4lloK8bFXzUl9g6Vegh9J0O1ZsPJ+Wfa2wJW0qkfiAcYE/ 0AwUiilAXcdlnR9ztyBs3TQgXbOSFLiEatTw0as4noXpF6ZJITGKmnDPH4eTvRFwt6Nu v8Oo3kg10/ZvOAJWqcNryFQBwuyj62G+WaeX6TSI34dL7olOzlrjXxdpcwB5HtaSP3H8 sJHdii1RLdXbmmPRU2EEJRpqP9Ql/luDxOanJbQQnZYuakErDYFYVvd/cZkNryvBjcoi JTTA== X-Forwarded-Encrypted: i=2; AJvYcCUyv/+sr+UKK8BabqOygG5IdxvWNTByuaSmLZ0eunC7llZui4q9VeWC76Pmk1TNI6X3xwIwc6K3OnIpwLVZRSfvKcYgEvb80I66miL7omL9vAcVRBGxCjLunrKyIw== X-Gm-Message-State: AOJu0YyAK8ZFF4tE0fPWGw/pnEvYt10KqAB/fMEdoVpJI4fNU4eNw5Yi oE04uzkYkabQSeQED1wsvx58A1Jvan56KIklbkwg+hhGoBc/OHDdUPM1i4Jd2cjuDg== X-Google-Smtp-Source: AGHT+IGUKZq2EoP2VNol/9/6s4KK/9PcumryxS2Z/z4UKHtjNc2+KEFhJWNASQ5KKNxznEKLSM9o3A== X-Received: by 2002:a05:6402:2150:b0:564:54c6:6903 with SMTP id bq16-20020a056402215000b0056454c66903mr5944351edb.7.1709566451229; Mon, 04 Mar 2024 07:34:11 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:388e:b0:566:e926:59de with SMTP id fd14-20020a056402388e00b00566e92659dels85010edb.2.-pod-prod-05-eu; Mon, 04 Mar 2024 07:34:10 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVJV2M+up6f5j+V1qXJdyH3HVXkZhMWW4f6CTyd6INf+lUEz12JjBUWopLodevVCFwaSl0Rzq9jTEDXIsB8Cx+qDsYbAARsNPW/Dp5oESi/V2IK X-Received: by 2002:a17:906:c411:b0:a44:e3c:c4dd with SMTP id u17-20020a170906c41100b00a440e3cc4ddmr6343218ejz.48.1709566449694; Mon, 04 Mar 2024 07:34:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709566449; cv=none; d=google.com; s=arc-20160816; b=fuObP9MEMNakZN645hhpSUS3SrfVfOrBfki3j9+8VcApozGtOAKToCgnmb1TWJFY4u 8sqOwYh0kinav+5I1xvpJPcF1u6OWvhUqt3iaD1qn7x2WzvuY1D3IsRZRLb5U0zssllT fqihujKWHYXBBlzMD8zrfK7qQBcD96sM3Ib439vKs4yZYLKJUm37cTmPYoYcx2WeUFvw WuApJbGxmvFROv5w98h+FZxUrOKRTSn02zCL4n73rmlFemsNpziW18qqfMBiQ5x/R8/7 SawwEjeN28sIEJFbYAb+RKyet08oxIktSQINFrb0b9cKf1Hwvf/bb5QqpQmbhBLuwvQu X1pg== 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=YgYiCkyWSz9+UM98pKugQP9FQ92RtBJP5LG6O8oNnAc=; fh=glZD7WGJmmLGECy0SR/g3u0t7v0byTb/muoJyLnEzGg=; b=0CYyXj+t0Rp+faJxnYMY3714xDYR3xYUK+8sc7A6t+d8lKmzV5k0vv6yypvYfiDygO UvjhYJZMBzIN6Pt7q8EKful+ym6kheX3axl04DNvthqfA0T/Xhtpca924Qec8Mf/rK6s 3J16w9soNYe9hzx8lDBs9q2SvoT6PvukcJ8hjHgdlNjcNuenTEwLGnULXwz0p9ns9LTN lKpnixF+BeSyVqtBH9GiXj+lwi9I2lal/1CybRlZYljaHfUm0akNKLbwEcxLr+PBZZSG vR213ViRoDcoI8qgO8Q6gPuFpwgj2RU9pw6zwFjvxPM/wdBGdWgTRVpd5l8tLdxFQKCI QJ0Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=n+4+6k0S; 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 h4-20020a170906590400b00a45042f453dsor1025922ejq.11.2024.03.04.07.34.09 for (Google Transport Security); Mon, 04 Mar 2024 07:34: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; AJvYcCU4gCVIUDUWsZqLyYZ03LovFGjD2u2y/qtUIMkD5ABqB4N6WFXIqEwyvZx41JGgEmnvyqJb1OD9r13x49C1GPdr+5B3x11kaZYgp9MXhJR9qbg4 X-Received: by 2002:a17:906:8d6:b0:a44:3056:1ed0 with SMTP id o22-20020a17090608d600b00a4430561ed0mr6183859eje.62.1709566449438; Mon, 04 Mar 2024 07:34:09 -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.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 07:34:09 -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 01/22] configs/ti_am62x_sk_defconfig: fix BR2_TARGET_OPTEE_OS_PLATFORM setting Date: Mon, 4 Mar 2024 16:32:32 +0100 Message-ID: <20240304153253.732708-2-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=n+4+6k0S; 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=am62x but we actually can use BR2_TARGET_OPTEE_OS_PLATFORM=k3-am62x 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_am62x_sk_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/ti_am62x_sk_defconfig b/configs/ti_am62x_sk_defconfig index f88252a89c68..c3ad555a8184 100644 --- a/configs/ti_am62x_sk_defconfig +++ b/configs/ti_am62x_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-am62x" BR2_TARGET_TI_K3_IMAGE_GEN=y BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM62X=y BR2_TARGET_TI_K3_R5_LOADER=y