From patchwork Sat Mar 30 16:02: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: 3061 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 D09913F333 for ; Sat, 30 Mar 2024 17:02:51 +0100 (CET) Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-558aafe9bf2sf2369930a12.1 for ; Sat, 30 Mar 2024 09:02:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711814571; cv=pass; d=google.com; s=arc-20160816; b=BkXO2X3/0LDhsfZhQ47VNB5KLBL21sMQUSSoNOBfV+ZJdnkT3kg5B1Ft/GPterzAdz 0NsiJWHH95Rw+N1gStj+ZQSJ/3DVtFAak9SoY0UdAHMR9nQCbbSQguMRSxOXqq13oNqj 8bz/PtsgHyPXtP9PeFwwPB2ElFFfFM1xa+T588VJWereJaLXhagwhorR8sp7dj5o1dPn w7Y0414gsFxT2AQMk0hzZOs9aQiP1F+mSRJRWiZ3zEs8loOSM59xjVTSFVVmzMZqoOnv unhdf25/rfueIO/L6ITRsvt/mlhlzUdqToqctEQd3jTndhdyds7rlbD8gj7x1JCDJ5OW 4mQQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=Z1NMjQ8g1GwpKPfvr0uKYVABHVyoZjNoYEnoeCe8g3M=; fh=cpGe9vcukv7/8rdth2wdsGEqkfWmFTtW+rKmvTdLR2I=; b=G7P44BGbSIIQ8Jvr0vB97KGjUcm0u3sziiFDLDZ7uJIv30TjoboOgm/q1DIGfD0ZJp tpzZAv1/LL2T26jTnS8R6bAPwegYsN2zjCZEJCYrcNO6FJVX913DzFBF8s7A37nJn9Wj HpHdXkK5CeWNJhHjfkLP2Z/EJvDIdg3ATYgvqOB7gAYJljx27hqnZAyI9a9ZwfpNaKv6 uGeaqgyBn9Uoq61jNpnYIrt/cu2y5et8rWF/olrpIpFo+aQ9/qEwr0skZn3oUsp+hRXj apOUowzAFrnM9eyi+6cFjwpwyqchoUbMTDXLHaooP5PcYtiPeuS35gEHtpHFMZegYkav Lztw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IVk5mvNu; 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=1711814571; x=1712419371; 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:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=Z1NMjQ8g1GwpKPfvr0uKYVABHVyoZjNoYEnoeCe8g3M=; b=Ap2IjbvpwK6LFt/RtL1Fo/lW16MWj0pkWRbO/hy2ApoBNNAFVfSjSGXlVjEi4C4CIx +9Wu6pKRPcHtpDksW6TgZOOisVv2IyIGgFIO2bm20gKPEoTqf30OHLKM15XKNACwrUwF w0i8G0pW+KUa6rhA8LBIzkwNNysmu1ooxr9u0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711814571; x=1712419371; 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 :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Z1NMjQ8g1GwpKPfvr0uKYVABHVyoZjNoYEnoeCe8g3M=; b=FfWIxYliIxjDxMeFQiaV6vQ0dk657AknXtJqtmyMwabKruXiCLMnJuKfrse2iOZtIq sIv1kLj3lW0rbUq5qmQ9P2IwG7cloiZ5SPAbD4jrV53hki/LoD93ZiuKN+Vn0gn1+Va3 yWI2jMy9A9svU7w7Sn2I4uL66SdFCQc2Vq7gmyreXSc67PwbPj2gQLvTu9XzZpCeISQ/ +0dUPSRP79SFeVA7eTnzp9BWpZwoTBIik3HbI3vITIBip7Jif6KwuOgk4siC11qgLUIs uv77mIboMirL8lvlxXBY8O/kKfUaMmpdGIP+zNJAPaZIzpYCg8VltgEwokuRzIt9Ogrw 4Cfw== X-Forwarded-Encrypted: i=2; AJvYcCVJGxuJubdsBjRyv+/IqGLlb6xZJhg/OfGfWa5Mvz8SJADj4GsACk52yVOsVSxjBcUmhuDgytOhBlW/RVr52oMbys8OOJBffLHaa/KiOOomqaqtSZBtGgTr3a0FjA== X-Gm-Message-State: AOJu0YxyAVZOmgrgyJO5ABDjMobnLb9NpZq8UnMwF+j+LtVtpqG752a3 3yY1bGZN44Tdcf1g/BIazLBCPxDRv0UOGndqJFlaDtMp9deqBemsj76Kl9MbUJISpQ== X-Google-Smtp-Source: AGHT+IFBARU2YjsSDny0WYkjlEMhBA6E3eSBYxHBcEl7sjeXm+wu6v/uCPr+tjBxozMADuRyXWYsjg== X-Received: by 2002:a05:6402:2692:b0:568:145a:4a19 with SMTP id w18-20020a056402269200b00568145a4a19mr3817847edd.4.1711814571285; Sat, 30 Mar 2024 09:02:51 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:2692:b0:56c:4cb0:f667 with SMTP id w18-20020a056402269200b0056c4cb0f667ls72660edd.1.-pod-prod-03-eu; Sat, 30 Mar 2024 09:02:49 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWn8YqD3MBn4LxSu1bTYXM1tmWwU8FqTmqQeBzhfhLnhh9+HpmVuYm9KJwZ5xoxGOVNpkp5mLM/9aYxvIYKdRfBXtlBhW+1W5wCL+DvEf0s+kP/ X-Received: by 2002:a05:6402:35c3:b0:56c:16c6:2091 with SMTP id z3-20020a05640235c300b0056c16c62091mr3265001edc.1.1711814569513; Sat, 30 Mar 2024 09:02:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711814569; cv=none; d=google.com; s=arc-20160816; b=NrLoxb6SH+nYwl2EXF9b/f3vXi727MKEjWShtz2uv1bJiROlCuyftgM7CRKlgUOfM2 L3VetHV+tKl5MEiv9NNXYuCaFDmJqd+CfjWqGl1LCheFsBl+L21S6/5GiigjGzv4Fzzh JznSau5kGd2+wrUQfp+6vvnf8kOs4XK1aRVLMiWUTkSlzy6MawV2t0kZvCO556eSpOhU vF7lcDDMvCVFE4QHVHF0AiDLFSv5FHyLSUNM2V2EYtJJ878Y4nKrjq2WmWjoLxW06Mjf LDvpXO4Q7brbL6x0OTi9ZLy+4JBCuaCIhfOd8cBfNZhFnQ8ELLDcqW6+nprpNUbB8ZB0 hrmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=Y1hxhYSG6Wz6phcIuxyzpYIMbkYW3jcihJy37QUvGYY=; fh=12G/hCUPhV/FlOIc8z/VnGod7mticzpdwzY02FdDOP4=; b=ys4+taodJGd8AdGdOBfUf51mc0Zy4oAZrDxGUjRI3F+Jk4AqFJ+MgD3JXplUCIYr/I L/5TYQiJte/tZeycG0TifTEV5LULWdPQSk88Pr2JqUymcQya6w7tdTVilMYcPu7Z6ACf 9qFEwa7SvoOPUiGDnAi312OnZOpUmARR07zVzQYpqyep7zNHlQ2atlF9fIB2bjWW6oH3 L+kVscNhrRRW0KvNivnEHjWTCr/aZQpybNW0oN1mNnxDj4rTHd8XpA9ZpCeOoaFplL9H qHVzkN8hdOpgmNuimS98CEmrAUMox1O6V0hHk9H83NfbsS/AphlWB5LZcAX52AGlKNka C6Bg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IVk5mvNu; 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 n7-20020a509347000000b00565be5f876esor1481168eda.1.2024.03.30.09.02.49 for (Google Transport Security); Sat, 30 Mar 2024 09:02:49 -0700 (PDT) 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; AJvYcCWxyA6MsHJhIpOnByNgH6ZYsK4gv03XK6O6ZwbUezayrmgdychC+Vbbw/orYDFBNI6U0Xj0mgTLZo/ZqeY87wkwf09X+IkZNXcatPifwz5BYEZI X-Received: by 2002:a05:6402:5114:b0:568:8e22:4eff with SMTP id m20-20020a056402511400b005688e224effmr3448528edd.37.1711814569026; Sat, 30 Mar 2024 09:02:49 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-87-8-99-67.retail.telecomitalia.it. [87.8.99.67]) by smtp.gmail.com with ESMTPSA id f13-20020a056402004d00b0056c633354c6sm2127107edu.45.2024.03.30.09.02.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 09:02:48 -0700 (PDT) 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, "Yann E . Morin" Subject: [PATCH v10 00/12] Add support for AM62x-SK HS-FS devices Date: Sat, 30 Mar 2024 17:02:32 +0100 Message-ID: <20240330160244.3214733-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=IVk5mvNu; 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: , The SK-AM62B-P1 is the newest version of SK-AM62 which includes high-security field-securable (HS-FS) silicon to optionally customize keys and encryption for security applications. This requires enabling the BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS_FS option, which, however, was buggy. This series fixes the errors and bumps the Linux kernel and U-Boot required for such a new device. Furthermore, this version complete the series by updating the ti_am64x_sk_defconfig as requested by Romain Naour: https://patchwork.ozlabs.org/project/buildroot/patch/20240224205654.1546744-17-dario.binacchi@amarulasolutions.com/ I have successfully executed compilation tests for all possible combinations of platform and security type: am62x -> GP, HS, HS-FS am64x -> GP, HS, HS-FS The AM62x HS-FS configuration has also been tested on the SK-AM62B-P1 board. Version 9 has merged the first 10 patches into the mainline. This version therefore contains the remaining patches to which the patch suggested by Yann E. Morin has been added ("boot/ti-k3-r5-loader: drop hash for version 2022.10" [1]), and has removed the patch "boot/ti-k3-image-gen: remove package", which is not strictly required by the series and does not cause regressions. [1] https://patchwork.ozlabs.org/project/buildroot/patch/20240304153253.732708-6-dario.binacchi@amarulasolutions.com Dario Binacchi (12): boot/ti-k3-r5-loader: drop hash for version 2022.10 boot/ti-k3-r5-loader: set binman environment boot/uboot: add BR2_TARGET_UBOOT_USE_BINMAN option package/ti-k3: move TI_K3_{SECTYPE,SOC} out of the image-gen scope package/ti-k3: disable HS-FS for AM65 SOC boot/ti-k3/ti-k3-r5-loader: install tiboot3.bin configs/ti_am62x_sk_defconfig: bump U-Boot version to 2024.01 configs/ti_am62x_sk_defconfig: bump Linux version to 6.6.18 board/ti/am62x-sk: generalize post-build.sh board/ti/am62x-sk: move post-{build,image}.sh to board/ti/common/am6xx configs/ti_am64x_sk_defconfig: bump U-Boot version to 2024.01 configs/ti_am64x_sk_defconfig: bump Linux version to 6.6.18 board/ti/am62x-sk/genimage.cfg | 7 ++- board/ti/am64x-sk/genimage.cfg | 7 ++- board/ti/common/am6xx/post-build.sh | 58 +++++++++++++++++++++ board/ti/common/am6xx/post-image.sh | 11 ++++ boot/ti-k3-image-gen/Config.in | 61 ++--------------------- boot/ti-k3-image-gen/ti-k3-image-gen.mk | 4 +- boot/ti-k3-r5-loader/Config.in | 1 + boot/ti-k3-r5-loader/ti-k3-r5-loader.hash | 1 - boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 12 ++++- boot/uboot/Config.in | 23 +++++---- boot/uboot/uboot.mk | 12 ++++- configs/ti_am62x_sk_defconfig | 20 ++++---- configs/ti_am64x_sk_defconfig | 20 ++++---- package/Config.in | 1 + package/ti-k3/Config.in | 61 +++++++++++++++++++++++ package/ti-k3/ti-k3.mk | 7 +++ 16 files changed, 213 insertions(+), 93 deletions(-) create mode 100755 board/ti/common/am6xx/post-build.sh create mode 100755 board/ti/common/am6xx/post-image.sh create mode 100644 package/ti-k3/Config.in create mode 100644 package/ti-k3/ti-k3.mk Tested-by: Bryan Brattlof