From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B9CCC48BDF for ; Mon, 21 Jun 2021 02:56:13 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E4EA06113E for ; Mon, 21 Jun 2021 02:56:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E4EA06113E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0BA1082917; Mon, 21 Jun 2021 04:56:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=sholland.org header.i=@sholland.org header.b="AZi23/vP"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="r827C42Y"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 91760829B5; Mon, 21 Jun 2021 04:56:03 +0200 (CEST) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7223A80C67 for ; Mon, 21 Jun 2021 04:55:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=samuel@sholland.org Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 4853D5C0165; Sun, 20 Jun 2021 22:55:57 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 20 Jun 2021 22:55:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm3; bh=RIx+5TdLzw9eRS98F3XBWBQPeV kDYZvSYFdTv9ily3s=; b=AZi23/vP/C576ezCKCgrLkeVJ1t1Mp6ZojcYi3+3jT 9eY2mIhkNpaq54HqMybvz3fx2Bfj1+y8ZN2nwxkvvCM3Aa7TI7qGkaRJjJVvPeM4 3CofrShuYus/E0c3hAoKMmR5Iakm3tEalOs1XNWgT2n5kBVFWSbYHDBT23kF/98/ q8kwx1V7vcSReKiKD9QO+ExG/ho8kp04Zx6hOX3xSM7CpZIXWhbxdkSfVoe4P0Ew xd5N25AsP4Rkm4cNFrSqAFxWlm6xPOXTPUGtrSzqbZ3leur0omjMTM7q4ADy7KjB 3jrg8STT853NdNU5IW4CokDchn4HFEOktMAl69/+iypg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=RIx+5TdLzw9eRS98F 3XBWBQPeVkDYZvSYFdTv9ily3s=; b=r827C42YYvit7l4kJ5CPJYp41GqNAkT2p fW1QfLTSdvgkUUidfBWKV/2KkMPQdvhrVtCLcy8lOsVQs2FjkKJXKj5jK0rHlkh6 1Jhjl1lsBAQfJtHwA+A2HJA6msYsdOWvurRvr91LTctk+lQcE1X9jihfdE1LaKVR i57NVMo02SkrdDcSdqBKSl3Bl+YXXrTX7scQ89Gi8Ay0dgS6JnijX/Y2NfI+K5Ri O7mrcfRE5hebZepZv0LIKH142q6O4rQfhs2ttEqgrM22FRyYvM+4l1EBFumDadAT HSVT6spPyEXEtfFG538nxGuF2aYhBVWyvUE5Wn2qqLSzYTuDN5Eyg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeefkedgieefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgvlhcu jfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtffrrg htthgvrhhnpeeiteekhfehuddugfeltddufeejjeefgeevheekueffhffhjeekheeiffdt vedtveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 20 Jun 2021 22:55:56 -0400 (EDT) From: Samuel Holland To: Jagan Teki , Andre Przywara , Hans de Goede Cc: u-boot@lists.denx.de, Samuel Holland Subject: [PATCH 0/4] sunxi: TOC0 image type support Date: Sun, 20 Jun 2021 21:55:51 -0500 Message-Id: <20210621025555.19390-1-samuel@sholland.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean This series adds support for the TOC0 image format used by the Allwinner secure boot ROM (SBROM). This series has been tested on the following SoCs/boards, with the eFuse burnt to enable secure mode: - A64: Pine A64 Plus - H5: Orange Pi Zero Plus - H6: Pine H64 Model B - H616: Orange Pi Zero 2 Samuel Holland (4): tools: Refactor mkimage linking with OpenSSL tools: mkimage: Add Allwinner TOC0 support sunxi: Support both SPL image types sunxi: Support building a SPL as a TOC0 image arch/arm/Kconfig | 1 + arch/arm/include/asm/arch-sunxi/spl.h | 2 - arch/arm/mach-imx/mxs/Kconfig | 2 + arch/arm/mach-mvebu/Kconfig | 1 + arch/arm/mach-sunxi/Kconfig | 2 + arch/arm/mach-sunxi/board.c | 20 +- board/sunxi/Kconfig | 24 + common/Kconfig.boot | 2 + common/image.c | 1 + include/image.h | 1 + include/sunxi_image.h | 205 ++++++++ scripts/Makefile.spl | 3 +- scripts/config_whitelist.txt | 1 - tools/Kconfig | 3 + tools/Makefile | 23 +- tools/mxsimage.c | 3 - tools/sunxi_toc0.c | 710 ++++++++++++++++++++++++++ 17 files changed, 976 insertions(+), 28 deletions(-) create mode 100644 board/sunxi/Kconfig create mode 100644 tools/sunxi_toc0.c -- 2.31.1