From patchwork Fri Mar 1 13:36:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3032 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 195BF3F057 for ; Fri, 1 Mar 2024 14:36:50 +0100 (CET) Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-566195235a4sf1377007a12.3 for ; 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 (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 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 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- Added in v8 Signed-off-by: Dario Binacchi --- 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