From patchwork Fri Mar 1 13:35:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3012 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A51C63F057 for ; Fri, 1 Mar 2024 14:36:28 +0100 (CET) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-566ed005867sf97966a12.3 for ; Fri, 01 Mar 2024 05:36:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709300188; cv=pass; d=google.com; s=arc-20160816; b=iS0gPpod1x2FM4sH876MbJ2Lqnj0b9ljjYLo8+6rJlfJFPGcK3u0FIZ4DzORf0JOV+ qkrvaGq7bg/NBzVwGOWGC6jCdUqMfTyi64Ny85z3E245bxCzNN1nXFHPYRALNi4cCbxo p1ANlOXACUPXO9duTapWtdk1fW+0vxzWxD8ZyfxBsOt/lpwIthf+GrP2cNXULBsg5eap l2ec/293G2Zv24TU1lOueTfvFMi1uDo6s0oxw3plhypPe01eFxjpGAKe8A7EfF3xvOoA VA6sUEZX3TJmnnj5o41SEyKl/vjk+xIY+hicWrbUY75VvhRQIpQLtzZHnM92/ttMEl4f d+9Q== 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=jI7gAcZSruSmkYMyEuveLhGHA5QIZoCenbX4pqaTTlo=; fh=hdAkTE6n/udb4WUCUPoB3SbZeYUUQG72dEo+p1YR83g=; b=ysdpuVRZt78aGkGaSIRDbiS0vXf8K6AikVIt+UnmHisqTPwvKKjOC41XKWFTf9Ytxu fqIrZKFecZR0gYyMa2Yr0rx5YiWcs8SM2VTCzGTDKwOnQTqrToxvvgBbMPOpUzapO1/g SYKmWfZ05jd0upyZljoeMP3Fh9Bb/RZWmDrlpZUikrSaegKImYTb0BFaopJkuleZNdW8 xWhqn0IlIwEWc1+jtPYye3etCjtdGjiPK0YYf6RNhv7AUw4Z1m0tDmXUxYCxKOGZgGwo 2eZybNO9/jJR8JBDbOBsuFj7529IYt1KuDVYvppWrhx8VyJXcsa4kRuXtbutyKCVi5h3 ij3w==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=J41X5i+o; 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=1709300188; x=1709904988; 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=jI7gAcZSruSmkYMyEuveLhGHA5QIZoCenbX4pqaTTlo=; b=TP7i0aO0aEIZKA/U1C7iRGYD5NU+iF9LkD4ZM8iWTiLDENhRcDGs1Gut/AaDR/s91y bo+H2GSyFQr6ezg0Qdn8pJH3M8dzYZnu4S1r//ogz4mkVMgdqaVncVmzvichAl+8gXVt 6f8g4jMD208ywBokENybG0I5VXmfUJ3U/SzBM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709300188; x=1709904988; 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=jI7gAcZSruSmkYMyEuveLhGHA5QIZoCenbX4pqaTTlo=; b=AMjvaVL5nzHM/unsNUfn7VKl4CY9icAG7GVN8XleMqNa4/B+WHVF6np1e61SI+5UXw g4j7jGsoDARGIqZOZU6ukt1fmSKXfk/hQWKTIk24AwzfQ1JvrsCRb6wwjRfvblKmz2xd urdW0ATYyrgWYF+tjT+lPF5ahuCqNwSE4gkAPrSkvPdtmE6D6hw1x0hODwQnNrR2pY81 qbRmCaUTTKjIx1NRfU3b1lHrY2fVZUqxgPki1FnC5PmBFR9TXe1jVTPLXoyuf0FbpFur nmHaxdGZ6iCADxTEPs/cEtQVsp2JP2yTtDnXW8zpz6S9zIApxvGqEAM0AzbZ86rAXOXN 3i5Q== X-Forwarded-Encrypted: i=2; AJvYcCXHHK055ytwT8lc/IcSaao05I4yz8h+kybY7AW+h2NNkK+SXUBE8DSqHtqPTCmS/gf4vxZ6aBVX07O2nSa/7MthAcwm6npQB9e4gC0HxCm/xVFliqj/U52NX3ubhw== X-Gm-Message-State: AOJu0YxAc0SlDu77L2Rr7ea0szJEPWvR92WqDHiSY6IpJwqhdn9IlvcX NqE4ez16hi6gp6SmqyE3ak688F96+6QVOxdnO/gO4OLj0bDRNuwNlKPSJeouKf9Q6g== X-Google-Smtp-Source: AGHT+IGr4CqGgHdIlhpYxEiySvxfJJ5Jvl2Nyh/mWLLZyKYBTfsNVQLUKUxA14ZEhZv6/aamDXX7eA== X-Received: by 2002:a50:85cc:0:b0:565:ec92:bec8 with SMTP id q12-20020a5085cc000000b00565ec92bec8mr1267851edh.7.1709300188030; Fri, 01 Mar 2024 05:36:28 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:1f05:b0:566:82f2:a1d with SMTP id b5-20020a0564021f0500b0056682f20a1dls1466781edb.1.-pod-prod-07-eu; Fri, 01 Mar 2024 05:36:26 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVc0fxcye9CWE3Gkx3Tx4oiz84A6UVJ6BXh9Qg5xnc9ACKHHoDD3/KzQt3xaAjSXXaYkgQ3nS4HF5WwOnTZiMOqYbhIB57/Td9SpowQ9gBNAzYd X-Received: by 2002:a50:cc08:0:b0:566:8fa7:5d0b with SMTP id m8-20020a50cc08000000b005668fa75d0bmr1264834edi.3.1709300186419; Fri, 01 Mar 2024 05:36:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709300186; cv=none; d=google.com; s=arc-20160816; b=F4caWEoAijUw5wnUGRK6bHglfsKWJi/ujYjYcxFO6IsBE0eDLct9BOWoafjJoR7KOo rrR6x3YMnLCVon6yY/H1h87Hs1j+nmv2OJtXgrESGCyZgTfueMTHBxMTDbtUQ3WJIb6V em+D3QDwQ0MlWR3rBEy2pMk5dikRf4pTNp3V9vtbx5mjopKrOCD8mfLdJMomHEr18l0D nfLAhOMIDi68bSbhztYC4UBknyiI7cTt81q3uOEE4i3XbqmgTgOePFc0puWr070ZkecA Y7wWPwtWhp/QAO3lrC8IcH5NpxxBkeTyC0+I+2KN+UwLi6nUJB+R3+ixOccJOM9jxkWS LXjA== 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=G6UxPbVvBOwoImhgswG6eCP9WfrrZdYN6MESVtmj/7w=; fh=nwCJ7UIzV0D+VP0CyejB9uL8bP9nhrqAJOhNxkuJHnY=; b=lVYssrQ/C7uXSuQgUfyIZsSx6WlYcCNsYpsbBDUt7Y7aHEBYpMnDyOiaOzZ1xb7fHw Tv1dDIikpXA16/j8iMdeNLTfPWzys7L9V16MDiPZA65myP8jYqAKH1tYAWPzHTHX1UmC ZxE7JLbm03iTAS3Z+YsmwwS359Reraf5301NFctkrkBs20San7Hj9df4fxdZWIBXmOqy wsw/7qwcVXKnFvBAWG7j4+DZRFXQoyUYu5kAk2ooQbJ2jXL9z2UTamPqLOZhaCyX98LJ 97clsfqCeLxx3R5PDvcmNQ1xwYT4JQuTq/40SDZT6FX1zpPEto3MnD8yYPy1peCc17Kq s6iw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=J41X5i+o; 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 w2-20020a056402268200b00566ab42dfaesor836327edd.7.2024.03.01.05.36.26 for (Google Transport Security); Fri, 01 Mar 2024 05:36:26 -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; AJvYcCWA8ptj/cbK5lF4zxNSa6IJODF4C6/mCLa4JSZtcKymybH6lRqUmrqlXvaJK28/ima2of54HWb9f4QGJY11Rlbs1z3KBK3D+FEfx5FZgjO7FetF X-Received: by 2002:a05:6402:901:b0:565:9fa4:dd59 with SMTP id g1-20020a056402090100b005659fa4dd59mr1303189edz.5.1709300186017; Fri, 01 Mar 2024 05:36:26 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 05:36:25 -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 00/23] Add support for AM62x-SK HS-FS devices Date: Fri, 1 Mar 2024 14:35:57 +0100 Message-ID: <20240301133620.3547430-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=J41X5i+o; 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 too and remove ti-k3-image-gen, 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. Dario Binacchi (22): configs/ti_am62x_sk_defconfig: fix BR2_TARGET_OPTEE_OS_PLATFORM setting configs/ti_am64x_sk_defconfig: fix BR2_TARGET_OPTEE_OS_PLATFORM setting configs/ti_am62x_sk_defconfig: explicitly set the ti-k3-r5-loader version configs/ti_am64x_sk_defconfig: explicitly set the ti-k3-r5-loader version boot/ti-k3-r5-loader: bump to version 2024.01 package/python-attrs: add host variant package/python-rpds-py: add host variant package/python-referencing: add host variant package/python-jsonschema-specifications: add host variant package/python-jsonschema: add host variant 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 package/ti-k3: fix BR2_PACKAGE_TI_K3_SOC setting for am64x SOC configs/ti_am64x_sk_defconfig: bump U-Boot version to 2024.01 configs/ti_am64x_sk_defconfig: bump Linux version to 6.6.18 Romain Naour (1): boot/ti-k3-image-gen: remove package Config.in.legacy | 7 ++ DEVELOPERS | 2 - 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/Config.in | 1 - boot/ti-k3-image-gen/Config.in | 77 ------------------- boot/ti-k3-image-gen/ti-k3-image-gen.hash | 3 - boot/ti-k3-image-gen/ti-k3-image-gen.mk | 54 ------------- boot/ti-k3-r5-loader/Config.in | 5 +- boot/ti-k3-r5-loader/ti-k3-r5-loader.hash | 2 +- 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 | 22 +++--- configs/ti_am64x_sk_defconfig | 22 +++--- package/Config.in | 1 + package/python-attrs/python-attrs.mk | 6 ++ .../python-jsonschema-specifications.mk | 10 +++ .../python-jsonschema/python-jsonschema.mk | 14 ++++ .../python-referencing/python-referencing.mk | 11 +++ package/python-rpds-py/python-rpds-py.mk | 1 + package/ti-k3/Config.in | 61 +++++++++++++++ package/ti-k3/ti-k3.mk | 7 ++ 25 files changed, 263 insertions(+), 173 deletions(-) create mode 100755 board/ti/common/am6xx/post-build.sh create mode 100755 board/ti/common/am6xx/post-image.sh delete mode 100644 boot/ti-k3-image-gen/Config.in delete mode 100644 boot/ti-k3-image-gen/ti-k3-image-gen.hash delete mode 100644 boot/ti-k3-image-gen/ti-k3-image-gen.mk create mode 100644 package/ti-k3/Config.in create mode 100644 package/ti-k3/ti-k3.mk Tested-by: Andreas Dannenberg Tested-by: Michael Trimarchi