From patchwork Mon Mar 4 15:32:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3036 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 F07593F1F3 for ; Mon, 4 Mar 2024 16:34:10 +0100 (CET) Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-558aafe9bf2sf5062937a12.1 for ; Mon, 04 Mar 2024 07:34:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709566450; cv=pass; d=google.com; s=arc-20160816; b=l2sG1bhvu41Tc268lE8qv/qaQxAz4lQtm/CzlRfISfI2RY6ZF6eEaQ9n5908eY4aPy NJIbxQm69UwKxZU+HkcGGF5glq4xpOWAbT+7YswODm19xN0vGJOGvI6IBNtPT5vBau1x mrwkK5LWHTmTk5HY0rS9YDixBOP7HOkHm3yJvcKZAdmqmpxziQLGDC9kXuH0lre0SRB3 Ntu8M4bYnV1AcbaokdZr62S2im1Y27O5hJ3GrnaxiO0gBOH79mMypmnHKpq1OEUncH4z 34eeN5JxEk2vBQ50lZDnvff8jQIpvxnhLffYOjIDDk1bsylwRHECWo6IgpcXDGL6rr5K pmhg== 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=fjuEvKs9edx8D4Zo/0Rv1bgwIQWYk3mp13Cncwghk5s=; fh=HpGaI+ktYxbO2+dULwv6gpsydpl84Z2hhrZRw2LAaQQ=; b=cJUMB0cOQe4ottOPVr3tYv+n0bsZBEfi3F1Byv9kC8M0Lc7QwXJ++Sx9e/GJcJLt7k p+fGa8Y5vEq3NOSGYbFFnCW+87j6nBFLxg0WeXC3WiILCWFohv5G5oRo8P2vny3Vunap WpeB+bss7pgzPB9sSjSIUP5US1eDO7hjr3rtsvDUU2AgS8VilVSdIBa4Bcrem7DF2VJz W2yOF2r+Bnbl+IYCOrxUG5GBIVyjlx/xF7hf3TQATWak/P/9aCnWYKd8J39qWDIVN4Gy YwaQPfLqsVsvnc0Wz6EruV3BKGrLR7vjvsNQH/7zi1eD+Xt9R6vNBIaTOQ7YqSNZrbQb udgA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lSTSWvVH; 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=1709566450; x=1710171250; 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=fjuEvKs9edx8D4Zo/0Rv1bgwIQWYk3mp13Cncwghk5s=; b=q9Pu6hPbe/W2okqjsEQwyF3AWP2aS7K4K27GQy5dEyIZf76G05AFMHD6ALv6XMkgxL F0N9KxOnCKSold8K2wnnAAW5GmX55WMd6OupYMCjvmFSSpNaOMvw9J8UZCwMnEJyQZXy lKoXKDvIBgFKWI+Oa9qXHMxxGgWc3k9tksXc8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709566450; x=1710171250; 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=fjuEvKs9edx8D4Zo/0Rv1bgwIQWYk3mp13Cncwghk5s=; b=ryAJfZBBUPa+Od47tHr/qkclQi7IOBw/oAmCNpwekjT44k97lxCDNyNNFry/rWxBEt CDHYeiMlQqjAKpDwu6n7onCws9gdslup7GkXNh5TkPqP+BuQ0Fo2mLMDuitvNd5yLlhT gjyW7ulXcAfus9TjlQze7ydDESuDFcwn1aofjML2fJwNvaSmlwerHVbzW/l780wb2hSR ZT6uKE5NEaQJCp60OlK6cUqIRfJC9jyFR/d+PvKdha2QJVHj240h1uQy1uziY9sdGSh5 2R7meBw0Hw0SjhFDbh9vVRVj+QWptb2vCAb34JBZ3sq9/JqY8X8TfpgG4RhlpMeYpMGb PSrQ== X-Forwarded-Encrypted: i=2; AJvYcCVsgxEVhfZg/KvPon5EIQsNXBO7I5r5PXGjYKs6nAqBd+xLoJa/GVJN1L/Ju6CV3aoQ743hXPGomPj+U5lSXKqBYDhFo31mpOfPOL6Lrjc5ef4QDu6xQyuL5H2DiA== X-Gm-Message-State: AOJu0YyGYNwJ08D1CdIFrdQ/NX3voEwOQV+RzcH9CV1yzatCZcHCA7bB PdBAquxQzRHb5hGp7PgYrrM+Qa0Q1qJOFEJ11fZoTrMXIXzV7rFOts9r3Deh6Pi6Sw== X-Google-Smtp-Source: AGHT+IFJmwntsDur6I/C85a3kf2p84ZbfrD51DDU9C9lPI+pEpD9dGdPZm2apmKAtCiwWmUlpUDUIQ== X-Received: by 2002:aa7:c856:0:b0:566:b4e0:9aaf with SMTP id g22-20020aa7c856000000b00566b4e09aafmr7548130edt.29.1709566450391; Mon, 04 Mar 2024 07:34:10 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:458b:b0:566:a8bd:678f with SMTP id ig11-20020a056402458b00b00566a8bd678fls295431edb.2.-pod-prod-03-eu; Mon, 04 Mar 2024 07:34:09 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXQloopKR8Ad77dgQOb6aar37yBkUNocHtX62DKg2McdZVjkaBMbyGqhdK3ZQq/OmM8QZwufkC/RKjV0NnH8/agd4SuilAEPNIRtdDPIy9CwW6i X-Received: by 2002:a17:906:e28a:b0:a45:524c:2565 with SMTP id gg10-20020a170906e28a00b00a45524c2565mr1802866ejb.45.1709566448746; Mon, 04 Mar 2024 07:34:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709566448; cv=none; d=google.com; s=arc-20160816; b=btSHX6MEIiLEiLENi34vq3bhub0+07H0K6F8qW3FYaD6Yy11Hpg2HVlsiIiZW2+sXD Xu2M6n10Vvlw5ua07fDAFUEH3nBORT2yYcxAXdy7zEc9AEd5rBUIHSMd9BsdHmbLd7da Ljq7bfMlBvsG+hF0XtsQs/KDAOzsaFFHDdBmL+bZiYlfq/X8ajS5mhlQsDjWt8Y7uvYp vsy8NHKeZPgH4pa4Ny/Z9kRpXgW2TaYuN1L9kIEugre+PATmngmviuhFjanubOmJvKHj Vh0IlZUjYTLcmCG1IFkO24MqBM0oNABkqlGOltuwujMBpuYn1rEH/KZT1r1iTtVEqTKT sMFA== 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=fanuiaShHmpNfEBOAuUM0iH+EUW77dl3EBxnTSWtkKE=; fh=0IzPjppDcm5IJXvKG3kti3t32PjcI5Ej2BYfyS18S50=; b=08Mvjn63x9R8Y/KZHifE2nh008N+iOkCc4gmZ9jRGJDVA89CAhd0x/J1QLU8S0HaLp 2Qauv7fZ39Gs8o+g7vb26eYs3w9BAx7XJRhO3g2u/HCEqRELfmYAJzF4dsTTyRvo0s8J 43xT+QPWww0bM4NZGITQmwnfZHXSDmEN+SE6m7wyTcshjdawgWMnM+5XfGmMxEniB5vl zFWlEr1YazUOM3xKImobLBDxlFv6Z6J4ilCKI0Pag8z5LrgZ9n7GloZRweXfF4GM/JtI eT3XeF7xIU4eN1llrVM7GnRWqzk2q2HhP4/kTOwoZ7bXTYyHWsCSJbclmnHBzmfn3f/x 2YJw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lSTSWvVH; 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 bo21-20020a170906d05500b00a45189159casor801554ejb.7.2024.03.04.07.34.08 for (Google Transport Security); Mon, 04 Mar 2024 07:34:08 -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; AJvYcCUV385QbtsEOGQL0EUewTlZaZv3xj2tf0e6TwSrpj5p6vuE7s7E5Wvkw6/1JjO1IEeiYsDI8tVUcQyYEW5b4OavPu/jT6qkw7vFZXuDV99ByFJH X-Received: by 2002:a17:906:6455:b0:a45:7ce3:d239 with SMTP id l21-20020a170906645500b00a457ce3d239mr875262ejn.48.1709566448248; Mon, 04 Mar 2024 07:34:08 -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.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 07:34:07 -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 00/22] Add support for AM62x-SK HS-FS devices Date: Mon, 4 Mar 2024 16:32:31 +0100 Message-ID: <20240304153253.732708-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=lSTSWvVH; 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 (21): 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 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