| Message ID | 20240301133620.3547430-21-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-amarula+bncBCQ4XFG47UFRB4NTQ6XQMGQEFKCOBPI@amarulasolutions.com> 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 195BF3F057 for <linux-amarula@patchwork.amarulasolutions.com>; Fri, 1 Mar 2024 14:36:50 +0100 (CET) Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-566195235a4sf1377007a12.3 for <linux-amarula@patchwork.amarulasolutions.com>; Fri, 01 Mar 2024 05:36:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709300210; cv=pass; d=google.com; s=arc-20160816; b=M54ttVjEXWY7BAtBlMGME8uQZd9/Cugoewrxg0LVkXhxfsrzJTIznpnkIwH55IUJRR YiKKkpo6eFEgBTXehOlwje6kfwLIEuYaxJSjIYray1yzrYjpM7tMmheJ3xamOZHJ7eOD ht0agqB/vbjlEtzMlWfpwuytXVf9ZgFUbeEtY8cNqO6BLfBBbgtyKi/Fia0UTSqcEJOk RGgLYNcfNKYxTH7GSjZK3SK5TP/vQTJuX0FkNd3qVDeKVVdGyymSPLnLt2IPuBU8ITi2 iF3Z3fCXjWsh3d0FMUkYF0GHF5yk9ffJEoqjY+ZGMLuo9oEDdP0BHZ5MsFoH++seed8D C/Zg== 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=PxQ/QW7F44zE+wpHm1PQjpo47eT2g/JeCbWNO6r4yYc=; fh=HWw8yXBhoEWnOWOUHZexwA3CT/nbkMd1K4sorH28R60=; b=QBeDDaZpQu9FI0mn5GZ8rtfWC6b5rKBXtayD7UHCQxwlRJY2EW0COYxED8/OqwYDXo azO1oEp0EMb1JSr3cZ+6GoHsgRvAAv6VDgP7XUQQeh+mvL4h8jZZXB1GK4oFTmmpAvlc aE17qXGFw1Ksmt8rWUZdWZ99Cucm46nZ2xq2q5Um3wbYM+K1Z+IMKLaEAbB85FaKd3nz pkgTiF1JoeM0r1CJJv+vpWAcv1unCp95IDLtCzmmohXp2dnjwdtoikExcUDIsgBQnaIr 2uUc3xuv9TY8tXCMttsaHMtUDSSHizjnTcsM1k9JWCbPZfJKsXI3//SEjbwPT75Vs12x sR6w==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=d6LQkRn9; 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=1709300210; x=1709905010; 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=PxQ/QW7F44zE+wpHm1PQjpo47eT2g/JeCbWNO6r4yYc=; b=YeN2QdPdijRqhWkpgfghEX4+lbarpVZEHmEMOHlGUX1tbNbfDf7YWFAlvk9oEAwgyj SdRnYzcsPf8OTFg5Wa7vUhjXlvUGvXcfjfoBLvgJ2NyF+BJRWS/LTGNn1fNzHafOcxm0 uXYLzCXMUJ150gmnY+VlwwWjsXqyu9KkNgik8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709300210; x=1709905010; 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=PxQ/QW7F44zE+wpHm1PQjpo47eT2g/JeCbWNO6r4yYc=; b=XY69a1lYO3Oa6GNbQEpu2BslwSA4BGCq7jRl08tB3yAV4F6qnUkx3Qo+D2aNcgb8qr PhWiX0uOJ3m4syZkvE0uSOlRTq4Cn2AaRu3dNIRspTxroKwE5N4qtCgg9pXXNeJvyidz jqMTRrCVyWBeCJMjhfQq1Wq0c1so0qEJCaks7xE7R9iETSx7fe3gUI+Snk3BoOjMBXWB UBkpL/kpWMpdMKlIoBcJLSiZZSSXpsW2rk1nH+iz9Rf4IuwMkjsWpNsKKiiB/ECmyHv6 LSteONY4caFFPnouLLULC/RQGtxCwu4O24si4QXtIsKn9y7uuVU9ISlw15FTM1L283IK 0rTQ== X-Forwarded-Encrypted: i=2; AJvYcCUYw5uWSmh3/7oFHNPL2PgunjcPQ9vHN7EHLSEAFq8nWnImR+AxXI6usO1ZckAo8mjwhBJbZlwjJRvt99DtI02uiaU4yAKwxr13KaiOhypjdrHnZjJfD3ZWJnAgDg== X-Gm-Message-State: AOJu0YxsVKAUxTFQ2+GOB40ncqY9Ak/DZUjZVznE1iJ6Dly9zOIiUoil btvMvmdDJnOj4KZSR2jXiXZUvEqQz2DZBe0RH/ihMXgtnFTIBa5y1AilEwJ+nozd2Q== X-Google-Smtp-Source: AGHT+IG1UIv0qWUjul8aLk8Z5L3AwJtJh0bqLVEMXB39T0sJJiQyS/CJaL1jvkwvC2qSGpAiKXnlYQ== X-Received: by 2002:a05:6402:1e87:b0:566:2aff:2d38 with SMTP id f7-20020a0564021e8700b005662aff2d38mr1436702edf.26.1709300209868; Fri, 01 Mar 2024 05:36:49 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:5412:b0:566:3da3:bf40 with SMTP id ev18-20020a056402541200b005663da3bf40ls849909edb.0.-pod-prod-08-eu; Fri, 01 Mar 2024 05:36:48 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXedP/aJfIevhamNtlTHJzzOIuHv+x7tFmYgJZBk4SZAd3xxV8TMegdbFEl4nnPjg049qq8ik7R0CZiMHxwvMsbLD5zcHcqqVgxrd1Cyj7gDV4u X-Received: by 2002:a05:6402:3082:b0:566:e069:b441 with SMTP id de2-20020a056402308200b00566e069b441mr784215edb.34.1709300208362; Fri, 01 Mar 2024 05:36:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709300208; cv=none; d=google.com; s=arc-20160816; b=q+pzcqvfzNvKaPF48RVmWIzIEvp33SiwMrKHUpgcxPmLkGepskH4IajaFV8a/z10qc z3vIIQ3dEURUq6KBwPgXEh/ydOZy8ceU7dCulD7//eZHhrlhDfnLkJWAzKUHGMk/hHPR TVjvAyJhrP1RLywCQ9Wm2xKHSi3HNxrNIdlVjdSv4HqaslmxiZROSkiWmIcomwJ4gNqP Ihz9H78liUGAMAumD/y4t4fLjaP6+JYmExvml2couIpzI28bIwf/mTQxZI4lvlILRO69 KOifAu6bgiHjPOjus8GPh46IYUKD6Ykiw10jhZRLRRmxOK8yAyl5Kyh6vyYVyB967DEc t/Zg== 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=WwSGWzgDHPuhEvYqTDpITbJ0hwIhdHsY5P8sh+JBGAY=; fh=CMqOU8mmHQp/G0xfrzVZbF3TLROJT6e8G9vxnpzVW9M=; b=XOMT2AWswW9uy27R8zcj8DAUpcXUEl+NR2lNmv8fMechE0kzFsTQr59eBFqeok3IES FM9AM406qGfL71uI5Nx/rhFOLe4i6iz/QXKAzvWQINJ+MK4oGFxLEVcwv4KvQ8/F6xNL uIGBsJuhTQj5Z5UYSPADIA1lpwT0RTg4po1+SNOTPS+ydz6bBDaQyxv+Es3FweYtXi5g 34XFCHnSGLtdKP2DIsK9Ph2tUk60MBZHvBsL5hdiQRidHlU0Dl3jLaQ82DCoejaH3+T5 hPXpvFJg/YNrE/9DjTC5i68jD5/1KNfnOeN7nO5MhjvxbtXkxxCyCzshJJ9RemHPch3Z 9jTw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=d6LQkRn9; 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 a18-20020aa7d912000000b00565bf4c933bsor1353349edr.7.2024.03.01.05.36.48 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Fri, 01 Mar 2024 05:36:48 -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; AJvYcCUwrf0CHrBLYwSIrajpw8L0odKnxmYRoS9hXtUOFhiU0tKa7N9zctLvUbB/GPch6Ox1yJJFUnYzXVcHYWLNjEvgPTgAjKnEVB+RXm0jl5qiPzN5 X-Received: by 2002:aa7:d60b:0:b0:565:e294:5119 with SMTP id c11-20020aa7d60b000000b00565e2945119mr1263872edr.18.1709300208116; Fri, 01 Mar 2024 05:36:48 -0800 (PST) Received: from localhost.localdomain ([2001:b07:6474:ebbf:5260:58bc:42cc:9d46]) by smtp.gmail.com with ESMTPSA id q28-20020a056402033c00b005659ea1caf0sm1566608edw.6.2024.03.01.05.36.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 05:36:47 -0800 (PST) From: Dario Binacchi <dario.binacchi@amarulasolutions.com> To: buildroot@buildroot.org Cc: Romain Naour <romain.naour@smile.fr>, Alexander Sverdlin <alexander.sverdlin@gmail.com>, Andreas Dannenberg <dannenberg@ti.com>, Yegor Yefremov <yegorslists@googlemail.com>, Xuanhao Shi <X15000177@gmail.com>, Anand Gadiyar <gadiyar@ti.com>, James Hilliard <james.hilliard1@gmail.com>, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, Dario Binacchi <dario.binacchi@amarulasolutions.com>, michael@amarulasolutions.com, Asaf Kahlon <asafka7@gmail.com>, francois.perrad@gadz.org, linux-amarula@amarulasolutions.com, bryce@redpinelabs.com Subject: [PATCH v8 20/23] package/ti-k3: fix BR2_PACKAGE_TI_K3_SOC setting for am64x SOC Date: Fri, 1 Mar 2024 14:36:17 +0100 Message-ID: <20240301133620.3547430-21-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240301133620.3547430-1-dario.binacchi@amarulasolutions.com> References: <20240301133620.3547430-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=d6LQkRn9; 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: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
| Series |
Add support for AM62x-SK HS-FS devices
|
|
Commit Message
Dario Binacchi
March 1, 2024, 1:36 p.m. UTC
In the case of SOC am64x, ti-k3-r5-loader creates the following tiboot3.bin files: - GP -> tiboot3_am64x-gp-evm.bin - HS -> tiboot3_am64x_sr2-hs-evm.bin - HS_FS -> tiboot3_am64x_sr2-hs-fs-evm.bin The patch allows you to identify the correct file based on the SEC_TYPE option. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- Added in v8 Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- package/ti-k3/Config.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Comments
Hi Dario, Le 01/03/2024 à 14:36, Dario Binacchi a écrit : > In the case of SOC am64x, ti-k3-r5-loader creates the following > tiboot3.bin files: > - GP -> tiboot3_am64x-gp-evm.bin > - HS -> tiboot3_am64x_sr2-hs-evm.bin > - HS_FS -> tiboot3_am64x_sr2-hs-fs-evm.bin > > The patch allows you to identify the correct file based on the SEC_TYPE > option. It seems this patch should be merged with the AM64x u-boot version bump since ti-k3-r5 (aka u-boot) now provide tiboot3.bin. Also other TI K3 SoC variant like AM65 provide a sr2 binary: tiboot3-am62ax-hs-fs-evm.bin tiboot3-am62ax-gp-evm.bin tiboot3-am62ax-hs-evm.bin tiboot3-am62px-hs-fs-evm.bin tiboot3-am62x-hs-fs-evm.bin tiboot3-am62x-gp-evm.bin tiboot3-am62x-hs-evm.bin tiboot3-am64x_sr2-hs-fs-evm.bin tiboot3-am64x-gp-evm.bin tiboot3-am64x_sr2-hs-evm.bin tiboot3-am65x_sr2-gp-evm.bin tiboot3-am65x_sr2-hs-evm.bin tiboot3-j7200-gp-evm.bin tiboot3-j7200_sr2-hs-fs-evm.bin tiboot3-j7200_sr2-hs-evm.bin tiboot3-j721e-gp-evm.bin tiboot3-j721e_sr2-hs-fs-evm.bin tiboot3-j721e_sr1_1-hs-evm.bin tiboot3-j721s2-gp-evm.bin tiboot3-j721s2-hs-fs-evm.bin tiboot3-j722s-hs-fs-evm.bin tiboot3-j784s4-gp-evm.bin tiboot3-j784s4-hs-fs-evm.bin Maybe we need to introduce TI_K3_R5_LOADER_SOC_SUFFIX to handle sr2, sr1_1 or "" ? Best regards, Romain > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > --- > > Added in v8 > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > --- > package/ti-k3/Config.in | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/package/ti-k3/Config.in b/package/ti-k3/Config.in > index b8545b7bca62..9c61f8880a15 100644 > --- a/package/ti-k3/Config.in > +++ b/package/ti-k3/Config.in > @@ -43,7 +43,8 @@ config BR2_PACKAGE_TI_K3_SOC > string > default "am62ax" if BR2_PACKAGE_TI_K3_SOC_AM62AX > default "am62x" if BR2_PACKAGE_TI_K3_SOC_AM62X > - default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X > + default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X && BR2_PACKAGE_TI_K3_SECTYPE_GP > + default "am64x_sr2" if BR2_PACKAGE_TI_K3_SOC_AM64X && !BR2_PACKAGE_TI_K3_SECTYPE_GP > default "am65x" if BR2_PACKAGE_TI_K3_SOC_AM65X > > config BR2_PACKAGE_TI_K3_SECTYPE
Hi Romain, All, On Sat, Mar 2, 2024 at 12:06 PM Romain Naour <romain.naour@smile.fr> wrote: > > Hi Dario, > > Le 01/03/2024 à 14:36, Dario Binacchi a écrit : > > In the case of SOC am64x, ti-k3-r5-loader creates the following > > tiboot3.bin files: > > - GP -> tiboot3_am64x-gp-evm.bin > > - HS -> tiboot3_am64x_sr2-hs-evm.bin > > - HS_FS -> tiboot3_am64x_sr2-hs-fs-evm.bin > > > > The patch allows you to identify the correct file based on the SEC_TYPE > > option. > > It seems this patch should be merged with the AM64x u-boot version bump since > ti-k3-r5 (aka u-boot) now provide tiboot3.bin. I will squash it to [PATCH 21/23] configs/ti_am64x_sk_defconfig: bump U-Boot version to 2024.01 > > Also other TI K3 SoC variant like AM65 provide a sr2 binary: > > tiboot3-am62ax-hs-fs-evm.bin > tiboot3-am62ax-gp-evm.bin > tiboot3-am62ax-hs-evm.bin > > tiboot3-am62px-hs-fs-evm.bin > > tiboot3-am62x-hs-fs-evm.bin > tiboot3-am62x-gp-evm.bin > tiboot3-am62x-hs-evm.bin > > tiboot3-am64x_sr2-hs-fs-evm.bin > tiboot3-am64x-gp-evm.bin > tiboot3-am64x_sr2-hs-evm.bin > > tiboot3-am65x_sr2-gp-evm.bin > tiboot3-am65x_sr2-hs-evm.bin > > tiboot3-j7200-gp-evm.bin > tiboot3-j7200_sr2-hs-fs-evm.bin > tiboot3-j7200_sr2-hs-evm.bin > > tiboot3-j721e-gp-evm.bin > tiboot3-j721e_sr2-hs-fs-evm.bin > tiboot3-j721e_sr1_1-hs-evm.bin > > tiboot3-j721s2-gp-evm.bin > tiboot3-j721s2-hs-fs-evm.bin > > tiboot3-j722s-hs-fs-evm.bin > > tiboot3-j784s4-gp-evm.bin > tiboot3-j784s4-hs-fs-evm.bin > > Maybe we need to introduce TI_K3_R5_LOADER_SOC_SUFFIX to handle sr2, sr1_1 or "" ? > At first, I also thought about a new configuration to specify an additional suffix, but after verifying that BR2_PACKAGE_TI_K3_SOC is only used in boot/ti-k3-r5-loader/ti-k3-r5-loader.mk, the adopted solution: - default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X + default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X && BR2_PACKAGE_TI_K3_SECTYPE_GP + default "am64x_sr2" if BR2_PACKAGE_TI_K3_SOC_AM64X && !BR2_PACKAGE_TI_K3_SECTYPE_GP seemed the simplest to me. And I think this approach can also be used for the variants you listed, since for each {SOC,SEC_TYPE} pair there exists one and only one tiboot3.bin. Furthermore, if I'm not missing anything, this remains the only adjustment we need to make since there are no other configurations in buildroot among those you listed. So, in my humble opinion, for now, this should be fine. So, please let me know if, in addition to squashing this patch into "[21/23] configs/ti_am64x_sk_defconfig: bump U-Boot version to 2024.01", I need to make any other adjustments for version 9. Thanks and regards, Dario > Best regards, > Romain > > > > > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > > > --- > > > > Added in v8 > > > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > --- > > package/ti-k3/Config.in | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/package/ti-k3/Config.in b/package/ti-k3/Config.in > > index b8545b7bca62..9c61f8880a15 100644 > > --- a/package/ti-k3/Config.in > > +++ b/package/ti-k3/Config.in > > @@ -43,7 +43,8 @@ config BR2_PACKAGE_TI_K3_SOC > > string > > default "am62ax" if BR2_PACKAGE_TI_K3_SOC_AM62AX > > default "am62x" if BR2_PACKAGE_TI_K3_SOC_AM62X > > - default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X > > + default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X && BR2_PACKAGE_TI_K3_SECTYPE_GP > > + default "am64x_sr2" if BR2_PACKAGE_TI_K3_SOC_AM64X && !BR2_PACKAGE_TI_K3_SECTYPE_GP > > default "am65x" if BR2_PACKAGE_TI_K3_SOC_AM65X > > > > config BR2_PACKAGE_TI_K3_SECTYPE >
Hello Dario, Le 02/03/2024 à 15:21, Dario Binacchi a écrit : > Hi Romain, All, > > On Sat, Mar 2, 2024 at 12:06 PM Romain Naour <romain.naour@smile.fr> wrote: >> >> Hi Dario, >> >> Le 01/03/2024 à 14:36, Dario Binacchi a écrit : >>> In the case of SOC am64x, ti-k3-r5-loader creates the following >>> tiboot3.bin files: >>> - GP -> tiboot3_am64x-gp-evm.bin >>> - HS -> tiboot3_am64x_sr2-hs-evm.bin >>> - HS_FS -> tiboot3_am64x_sr2-hs-fs-evm.bin >>> >>> The patch allows you to identify the correct file based on the SEC_TYPE >>> option. >> >> It seems this patch should be merged with the AM64x u-boot version bump since >> ti-k3-r5 (aka u-boot) now provide tiboot3.bin. > > I will squash it to [PATCH 21/23] configs/ti_am64x_sk_defconfig: bump > U-Boot version to 2024.01 Ok > >> >> Also other TI K3 SoC variant like AM65 provide a sr2 binary: >> >> tiboot3-am62ax-hs-fs-evm.bin >> tiboot3-am62ax-gp-evm.bin >> tiboot3-am62ax-hs-evm.bin >> >> tiboot3-am62px-hs-fs-evm.bin >> >> tiboot3-am62x-hs-fs-evm.bin >> tiboot3-am62x-gp-evm.bin >> tiboot3-am62x-hs-evm.bin >> >> tiboot3-am64x_sr2-hs-fs-evm.bin >> tiboot3-am64x-gp-evm.bin >> tiboot3-am64x_sr2-hs-evm.bin >> >> tiboot3-am65x_sr2-gp-evm.bin >> tiboot3-am65x_sr2-hs-evm.bin >> >> tiboot3-j7200-gp-evm.bin >> tiboot3-j7200_sr2-hs-fs-evm.bin >> tiboot3-j7200_sr2-hs-evm.bin >> >> tiboot3-j721e-gp-evm.bin >> tiboot3-j721e_sr2-hs-fs-evm.bin >> tiboot3-j721e_sr1_1-hs-evm.bin >> >> tiboot3-j721s2-gp-evm.bin >> tiboot3-j721s2-hs-fs-evm.bin >> >> tiboot3-j722s-hs-fs-evm.bin >> >> tiboot3-j784s4-gp-evm.bin >> tiboot3-j784s4-hs-fs-evm.bin >> >> Maybe we need to introduce TI_K3_R5_LOADER_SOC_SUFFIX to handle sr2, sr1_1 or "" ? >> > At first, I also thought about a new configuration to specify an > additional suffix, but after verifying > that BR2_PACKAGE_TI_K3_SOC is only used in > boot/ti-k3-r5-loader/ti-k3-r5-loader.mk, the > adopted solution: > > - default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X > + default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X && > BR2_PACKAGE_TI_K3_SECTYPE_GP > + default "am64x_sr2" if BR2_PACKAGE_TI_K3_SOC_AM64X && > !BR2_PACKAGE_TI_K3_SECTYPE_GP > > seemed the simplest to me. > > And I think this approach can also be used for the variants you > listed, since for each {SOC,SEC_TYPE} pair > there exists one and only one tiboot3.bin. What about removing BR2_PACKAGE_TI_K3_SOC and BR2_PACKAGE_TI_K3_SECTYPE (inherited from ti-k3-image-gen, so we need them until we can remove this package) we just need to know the name of the file we should copy based on TI K3 SoC and Security type selection. config BR2_PACKAGE_TI_K3_TIBOOT3_BIN string default "tiboot3-am62ax-gp-evm.bin" if BR2_PACKAGE_TI_K3_SOC_AM62AX && BR2_PACKAGE_TI_K3_SECTYPE_GP default "tiboot3-am62ax-hs-evm.bin" if BR2_PACKAGE_TI_K3_SOC_AM62AX && BR2_PACKAGE_TI_K3_SECTYPE_HS default "tiboot3-am62ax-hs-fs-evm.bin" if BR2_PACKAGE_TI_K3_SOC_AM62AX && BR2_PACKAGE_TI_K3_SECTYPE_HS_FS ... define TI_K3_R5_LOADER_INSTALL_IMAGES_CMDS cp $(@D)/spl/u-boot-spl.bin $(BINARIES_DIR)/r5-u-boot-spl.bin cp $(@D)/$(BR2_PACKAGE_TI_K3_TIBOOT3_BIN) $(BINARIES_DIR)/tiboot3.bin endef So we can avoid using complex find -regex -exec -cp command :) BR2_PACKAGE_TI_K3_TIBOOT3_BIN can be defined in ti-k3-r5-loader package. Best regards, Romain > > Furthermore, if I'm not missing anything, this remains the only > adjustment we need to make since there are no > other configurations in buildroot among those you listed. So, in my > humble opinion, for now, this should be fine. > > So, please let me know if, in addition to squashing this patch into > "[21/23] configs/ti_am64x_sk_defconfig: > bump U-Boot version to 2024.01", I need to make any other adjustments > for version 9. > > Thanks and regards, > Dario > >> Best regards, >> Romain >> >> >>> >>> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> >>> >>> --- >>> >>> Added in v8 >>> >>> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> >>> --- >>> package/ti-k3/Config.in | 3 ++- >>> 1 file changed, 2 insertions(+), 1 deletion(-) >>> >>> diff --git a/package/ti-k3/Config.in b/package/ti-k3/Config.in >>> index b8545b7bca62..9c61f8880a15 100644 >>> --- a/package/ti-k3/Config.in >>> +++ b/package/ti-k3/Config.in >>> @@ -43,7 +43,8 @@ config BR2_PACKAGE_TI_K3_SOC >>> string >>> default "am62ax" if BR2_PACKAGE_TI_K3_SOC_AM62AX >>> default "am62x" if BR2_PACKAGE_TI_K3_SOC_AM62X >>> - default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X >>> + default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X && BR2_PACKAGE_TI_K3_SECTYPE_GP >>> + default "am64x_sr2" if BR2_PACKAGE_TI_K3_SOC_AM64X && !BR2_PACKAGE_TI_K3_SECTYPE_GP >>> default "am65x" if BR2_PACKAGE_TI_K3_SOC_AM65X >>> >>> config BR2_PACKAGE_TI_K3_SECTYPE >> > >
Hello Romain, On Sat, Mar 2, 2024 at 11:52 PM Romain Naour <romain.naour@smile.fr> wrote: > > Hello Dario, > > Le 02/03/2024 à 15:21, Dario Binacchi a écrit : > > Hi Romain, All, > > > > On Sat, Mar 2, 2024 at 12:06 PM Romain Naour <romain.naour@smile.fr> wrote: > >> > >> Hi Dario, > >> > >> Le 01/03/2024 à 14:36, Dario Binacchi a écrit : > >>> In the case of SOC am64x, ti-k3-r5-loader creates the following > >>> tiboot3.bin files: > >>> - GP -> tiboot3_am64x-gp-evm.bin > >>> - HS -> tiboot3_am64x_sr2-hs-evm.bin > >>> - HS_FS -> tiboot3_am64x_sr2-hs-fs-evm.bin > >>> > >>> The patch allows you to identify the correct file based on the SEC_TYPE > >>> option. > >> > >> It seems this patch should be merged with the AM64x u-boot version bump since > >> ti-k3-r5 (aka u-boot) now provide tiboot3.bin. > > > > I will squash it to [PATCH 21/23] configs/ti_am64x_sk_defconfig: bump > > U-Boot version to 2024.01 > > Ok > > > > >> > >> Also other TI K3 SoC variant like AM65 provide a sr2 binary: > >> > >> tiboot3-am62ax-hs-fs-evm.bin > >> tiboot3-am62ax-gp-evm.bin > >> tiboot3-am62ax-hs-evm.bin > >> > >> tiboot3-am62px-hs-fs-evm.bin > >> > >> tiboot3-am62x-hs-fs-evm.bin > >> tiboot3-am62x-gp-evm.bin > >> tiboot3-am62x-hs-evm.bin > >> > >> tiboot3-am64x_sr2-hs-fs-evm.bin > >> tiboot3-am64x-gp-evm.bin > >> tiboot3-am64x_sr2-hs-evm.bin > >> > >> tiboot3-am65x_sr2-gp-evm.bin > >> tiboot3-am65x_sr2-hs-evm.bin > >> > >> tiboot3-j7200-gp-evm.bin > >> tiboot3-j7200_sr2-hs-fs-evm.bin > >> tiboot3-j7200_sr2-hs-evm.bin > >> > >> tiboot3-j721e-gp-evm.bin > >> tiboot3-j721e_sr2-hs-fs-evm.bin > >> tiboot3-j721e_sr1_1-hs-evm.bin > >> > >> tiboot3-j721s2-gp-evm.bin > >> tiboot3-j721s2-hs-fs-evm.bin > >> > >> tiboot3-j722s-hs-fs-evm.bin > >> > >> tiboot3-j784s4-gp-evm.bin > >> tiboot3-j784s4-hs-fs-evm.bin > >> > >> Maybe we need to introduce TI_K3_R5_LOADER_SOC_SUFFIX to handle sr2, sr1_1 or "" ? > >> > > At first, I also thought about a new configuration to specify an > > additional suffix, but after verifying > > that BR2_PACKAGE_TI_K3_SOC is only used in > > boot/ti-k3-r5-loader/ti-k3-r5-loader.mk, the > > adopted solution: > > > > - default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X > > + default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X && > > BR2_PACKAGE_TI_K3_SECTYPE_GP > > + default "am64x_sr2" if BR2_PACKAGE_TI_K3_SOC_AM64X && > > !BR2_PACKAGE_TI_K3_SECTYPE_GP > > > > seemed the simplest to me. > > > > And I think this approach can also be used for the variants you > > listed, since for each {SOC,SEC_TYPE} pair > > there exists one and only one tiboot3.bin. > > What about removing BR2_PACKAGE_TI_K3_SOC and BR2_PACKAGE_TI_K3_SECTYPE > (inherited from ti-k3-image-gen, so we need them until we can remove this > package) we just need to know the name of the file we should copy based on TI K3 > SoC and Security type selection. > > config BR2_PACKAGE_TI_K3_TIBOOT3_BIN > string > default "tiboot3-am62ax-gp-evm.bin" if BR2_PACKAGE_TI_K3_SOC_AM62AX && > BR2_PACKAGE_TI_K3_SECTYPE_GP > default "tiboot3-am62ax-hs-evm.bin" if BR2_PACKAGE_TI_K3_SOC_AM62AX && > BR2_PACKAGE_TI_K3_SECTYPE_HS > default "tiboot3-am62ax-hs-fs-evm.bin" if BR2_PACKAGE_TI_K3_SOC_AM62AX && > BR2_PACKAGE_TI_K3_SECTYPE_HS_FS > ... > > define TI_K3_R5_LOADER_INSTALL_IMAGES_CMDS > cp $(@D)/spl/u-boot-spl.bin $(BINARIES_DIR)/r5-u-boot-spl.bin > cp $(@D)/$(BR2_PACKAGE_TI_K3_TIBOOT3_BIN) $(BINARIES_DIR)/tiboot3.bin > endef > > So we can avoid using complex find -regex -exec -cp command :) > > BR2_PACKAGE_TI_K3_TIBOOT3_BIN can be defined in ti-k3-r5-loader package. Sure, for me it's fine. However, this is an additional patch to add that isn't necessary at this moment. Can we consider adding it after this series has been merged? I recall that currently the compilation of the Hs and HS-FS variants for am62x are broken. Therefore, having verified with Andreas tests that the changes made in this series are okay for am62x_sk_defconfig and am64x_sk_defconfig, I would merge the series as soon as possible and then proceed with implementing further improvements. So, my intention is to submit version 9 with the only change being the squash of this patch to [PATCH 21/23] "configs/ti_am64x_sk_defconfig: bump U-Boot version to 2024.01". Do you agree? Thanks and regards, Dario > > Best regards, > Romain > > > > > > Furthermore, if I'm not missing anything, this remains the only > > adjustment we need to make since there are no > > other configurations in buildroot among those you listed. So, in my > > humble opinion, for now, this should be fine. > > > > So, please let me know if, in addition to squashing this patch into > > "[21/23] configs/ti_am64x_sk_defconfig: > > bump U-Boot version to 2024.01", I need to make any other adjustments > > for version 9. > > > > Thanks and regards, > > Dario > > > >> Best regards, > >> Romain > >> > >> > >>> > >>> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > >>> > >>> --- > >>> > >>> Added in v8 > >>> > >>> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > >>> --- > >>> package/ti-k3/Config.in | 3 ++- > >>> 1 file changed, 2 insertions(+), 1 deletion(-) > >>> > >>> diff --git a/package/ti-k3/Config.in b/package/ti-k3/Config.in > >>> index b8545b7bca62..9c61f8880a15 100644 > >>> --- a/package/ti-k3/Config.in > >>> +++ b/package/ti-k3/Config.in > >>> @@ -43,7 +43,8 @@ config BR2_PACKAGE_TI_K3_SOC > >>> string > >>> default "am62ax" if BR2_PACKAGE_TI_K3_SOC_AM62AX > >>> default "am62x" if BR2_PACKAGE_TI_K3_SOC_AM62X > >>> - default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X > >>> + default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X && BR2_PACKAGE_TI_K3_SECTYPE_GP > >>> + default "am64x_sr2" if BR2_PACKAGE_TI_K3_SOC_AM64X && !BR2_PACKAGE_TI_K3_SECTYPE_GP > >>> default "am65x" if BR2_PACKAGE_TI_K3_SOC_AM65X > >>> > >>> config BR2_PACKAGE_TI_K3_SECTYPE > >> > > > > > -- Dario Binacchi Senior Embedded Linux Developer dario.binacchi@amarulasolutions.com
Dario, Romain, On Sun, Mar 03, 2024 at 10:50:10AM +0100, Dario Binacchi wrote: > Hello Romain, > > On Sat, Mar 2, 2024 at 11:52 PM Romain Naour <romain.naour@smile.fr> wrote: > > > > Hello Dario, > > > > Le 02/03/2024 à 15:21, Dario Binacchi a écrit : > > > Hi Romain, All, > > > > > > On Sat, Mar 2, 2024 at 12:06 PM Romain Naour <romain.naour@smile.fr> wrote: > > >> > > >> Hi Dario, > > >> > > >> Le 01/03/2024 à 14:36, Dario Binacchi a écrit : > > >>> In the case of SOC am64x, ti-k3-r5-loader creates the following > > >>> tiboot3.bin files: > > >>> - GP -> tiboot3_am64x-gp-evm.bin > > >>> - HS -> tiboot3_am64x_sr2-hs-evm.bin > > >>> - HS_FS -> tiboot3_am64x_sr2-hs-fs-evm.bin > > >>> > > >>> The patch allows you to identify the correct file based on the SEC_TYPE > > >>> option. > > >> > > >> It seems this patch should be merged with the AM64x u-boot version bump since > > >> ti-k3-r5 (aka u-boot) now provide tiboot3.bin. > > > > > > I will squash it to [PATCH 21/23] configs/ti_am64x_sk_defconfig: bump > > > U-Boot version to 2024.01 > > > > Ok > > > > > > > >> > > >> Also other TI K3 SoC variant like AM65 provide a sr2 binary: > > >> > > >> tiboot3-am62ax-hs-fs-evm.bin > > >> tiboot3-am62ax-gp-evm.bin > > >> tiboot3-am62ax-hs-evm.bin > > >> > > >> tiboot3-am62px-hs-fs-evm.bin > > >> > > >> tiboot3-am62x-hs-fs-evm.bin > > >> tiboot3-am62x-gp-evm.bin > > >> tiboot3-am62x-hs-evm.bin > > >> > > >> tiboot3-am64x_sr2-hs-fs-evm.bin > > >> tiboot3-am64x-gp-evm.bin > > >> tiboot3-am64x_sr2-hs-evm.bin > > >> > > >> tiboot3-am65x_sr2-gp-evm.bin > > >> tiboot3-am65x_sr2-hs-evm.bin > > >> > > >> tiboot3-j7200-gp-evm.bin > > >> tiboot3-j7200_sr2-hs-fs-evm.bin > > >> tiboot3-j7200_sr2-hs-evm.bin > > >> > > >> tiboot3-j721e-gp-evm.bin > > >> tiboot3-j721e_sr2-hs-fs-evm.bin > > >> tiboot3-j721e_sr1_1-hs-evm.bin > > >> > > >> tiboot3-j721s2-gp-evm.bin > > >> tiboot3-j721s2-hs-fs-evm.bin > > >> > > >> tiboot3-j722s-hs-fs-evm.bin > > >> > > >> tiboot3-j784s4-gp-evm.bin > > >> tiboot3-j784s4-hs-fs-evm.bin > > >> > > >> Maybe we need to introduce TI_K3_R5_LOADER_SOC_SUFFIX to handle sr2, sr1_1 or "" ? > > >> > > > At first, I also thought about a new configuration to specify an > > > additional suffix, but after verifying > > > that BR2_PACKAGE_TI_K3_SOC is only used in > > > boot/ti-k3-r5-loader/ti-k3-r5-loader.mk, the > > > adopted solution: > > > > > > - default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X > > > + default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X && > > > BR2_PACKAGE_TI_K3_SECTYPE_GP > > > + default "am64x_sr2" if BR2_PACKAGE_TI_K3_SOC_AM64X && > > > !BR2_PACKAGE_TI_K3_SECTYPE_GP > > > > > > seemed the simplest to me. > > > > > > And I think this approach can also be used for the variants you > > > listed, since for each {SOC,SEC_TYPE} pair > > > there exists one and only one tiboot3.bin. > > > > What about removing BR2_PACKAGE_TI_K3_SOC and BR2_PACKAGE_TI_K3_SECTYPE > > (inherited from ti-k3-image-gen, so we need them until we can remove this > > package) we just need to know the name of the file we should copy based on TI K3 > > SoC and Security type selection. > > > > config BR2_PACKAGE_TI_K3_TIBOOT3_BIN > > string > > default "tiboot3-am62ax-gp-evm.bin" if BR2_PACKAGE_TI_K3_SOC_AM62AX && > > BR2_PACKAGE_TI_K3_SECTYPE_GP > > default "tiboot3-am62ax-hs-evm.bin" if BR2_PACKAGE_TI_K3_SOC_AM62AX && > > BR2_PACKAGE_TI_K3_SECTYPE_HS > > default "tiboot3-am62ax-hs-fs-evm.bin" if BR2_PACKAGE_TI_K3_SOC_AM62AX && > > BR2_PACKAGE_TI_K3_SECTYPE_HS_FS > > ... > > > > define TI_K3_R5_LOADER_INSTALL_IMAGES_CMDS > > cp $(@D)/spl/u-boot-spl.bin $(BINARIES_DIR)/r5-u-boot-spl.bin > > cp $(@D)/$(BR2_PACKAGE_TI_K3_TIBOOT3_BIN) $(BINARIES_DIR)/tiboot3.bin > > endef > > > > So we can avoid using complex find -regex -exec -cp command :) > > > > BR2_PACKAGE_TI_K3_TIBOOT3_BIN can be defined in ti-k3-r5-loader package. > > Sure, for me it's fine. > > However, this is an additional patch to add that isn't necessary at this moment. > Can we consider adding it after this series has been merged? I recall > that currently the compilation of > the Hs and HS-FS variants for am62x are broken. Therefore, having > verified with Andreas tests that the > changes made in this series are okay for am62x_sk_defconfig and > am64x_sk_defconfig, I would merge > the series as soon as possible and then proceed with implementing > further improvements. I'd agree here, I think what we have now and what has already been posted as v9 is more than good enough to make a cut and hopefully have an initial solution that's acceptable to others here as well, and serve as a base for future additions/improvements. Software development is iterative IMHO anyways. Thanks, Andreas > > So, my intention is to submit version 9 with the only change being the > squash of this patch to [PATCH 21/23] > "configs/ti_am64x_sk_defconfig: bump U-Boot version to 2024.01". > > Do you agree? > > Thanks and regards, > Dario > > > > > Best regards, > > Romain > > > > > > > > > > Furthermore, if I'm not missing anything, this remains the only > > > adjustment we need to make since there are no > > > other configurations in buildroot among those you listed. So, in my > > > humble opinion, for now, this should be fine. > > > > > > So, please let me know if, in addition to squashing this patch into > > > "[21/23] configs/ti_am64x_sk_defconfig: > > > bump U-Boot version to 2024.01", I need to make any other adjustments > > > for version 9. > > > > > > Thanks and regards, > > > Dario > > > > > >> Best regards, > > >> Romain > > >> > > >> > > >>> > > >>> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > >>> > > >>> --- > > >>> > > >>> Added in v8 > > >>> > > >>> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > >>> --- > > >>> package/ti-k3/Config.in | 3 ++- > > >>> 1 file changed, 2 insertions(+), 1 deletion(-) > > >>> > > >>> diff --git a/package/ti-k3/Config.in b/package/ti-k3/Config.in > > >>> index b8545b7bca62..9c61f8880a15 100644 > > >>> --- a/package/ti-k3/Config.in > > >>> +++ b/package/ti-k3/Config.in > > >>> @@ -43,7 +43,8 @@ config BR2_PACKAGE_TI_K3_SOC > > >>> string > > >>> default "am62ax" if BR2_PACKAGE_TI_K3_SOC_AM62AX > > >>> default "am62x" if BR2_PACKAGE_TI_K3_SOC_AM62X > > >>> - default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X > > >>> + default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X && BR2_PACKAGE_TI_K3_SECTYPE_GP > > >>> + default "am64x_sr2" if BR2_PACKAGE_TI_K3_SOC_AM64X && !BR2_PACKAGE_TI_K3_SECTYPE_GP > > >>> default "am65x" if BR2_PACKAGE_TI_K3_SOC_AM65X > > >>> > > >>> config BR2_PACKAGE_TI_K3_SECTYPE > > >> > > > > > > > > > > > -- > > Dario Binacchi > > Senior Embedded Linux Developer > > dario.binacchi@amarulasolutions.com > > __________________________________ > > > Amarula Solutions SRL > > Via Le Canevare 30, 31100 Treviso, Veneto, IT > > T. +39 042 243 5310 > info@amarulasolutions.com > > www.amarulasolutions.com
diff --git a/package/ti-k3/Config.in b/package/ti-k3/Config.in index b8545b7bca62..9c61f8880a15 100644 --- a/package/ti-k3/Config.in +++ b/package/ti-k3/Config.in @@ -43,7 +43,8 @@ config BR2_PACKAGE_TI_K3_SOC string default "am62ax" if BR2_PACKAGE_TI_K3_SOC_AM62AX default "am62x" if BR2_PACKAGE_TI_K3_SOC_AM62X - default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X + default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X && BR2_PACKAGE_TI_K3_SECTYPE_GP + default "am64x_sr2" if BR2_PACKAGE_TI_K3_SOC_AM64X && !BR2_PACKAGE_TI_K3_SECTYPE_GP default "am65x" if BR2_PACKAGE_TI_K3_SOC_AM65X config BR2_PACKAGE_TI_K3_SECTYPE