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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id C9F10C433F5 for ; Mon, 16 May 2022 11:08:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4D6BD83F15; Mon, 16 May 2022 13:08:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=mirx.dev Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=mirx.dev header.i=@mirx.dev header.b="l4E4vlqm"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="o9BzBVat"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EBA3484092; Mon, 16 May 2022 13:08:14 +0200 (CEST) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (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 77E9983A9F for ; Mon, 16 May 2022 13:08:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=mirx.dev Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=andrew@mirx.dev Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id C1F95320098F; Mon, 16 May 2022 07:08:03 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 16 May 2022 07:08:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mirx.dev; h=cc :cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm3; t=1652699283; x=1652785683; bh=s8dVkPOZ2f3vBCQcRK7pCFXl5 AeLbJxdkOsGsuJv0BA=; b=l4E4vlqmIIwbyaMgWdrmbjxqmRR4U6lj1EFONjs7L LgeNRUxOXprwRlvQNcdHY2MmUBYw9vkhQnb62CfswMlJeQ2PAoqxA5++M8OLHcMS CVcoMYYS3v+8PjXOqnZvF4W67LkGztkSftyvS8HVBA16XhxSl9BDyhDPToyNWFof pYu89ttYzHEq6DW7NO7v3xYIfL2PrIaXoVpJ/sdjhbmP8PIuE7IembUcakbEJ6Dc 7F0Q1OMhWT6+tiuubOSKBNapVqnnV+euQBiFRlGLidus5u0VTyGnFfIACOXQyxQM tvR0LYbDO2ql9fAE8LSPVbMcYqagLeE/iiZD8Eik19utw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1652699283; x=1652785683; bh=s 8dVkPOZ2f3vBCQcRK7pCFXl5AeLbJxdkOsGsuJv0BA=; b=o9BzBVatkl+bfuPR0 vN4X/TtQZ3XAVfVGKt6lVPVNI7NXLPQbikvxfNDTlXZ5NGpItdxxpNZXqX0enN2Z Fjy0RPKynDT4Oi3LWn3pHfmLo9ziYEH9+783rNy31qgT47AT3Tbn3OJvoI8LPnCv SrrQp5A1lTLiKT6NdbVpb6Zy5vmbL3lunAtIZS4EWNdzI7euXhu6vWo5XKgMUCy4 1+q1yW1PHtFmdweG9bx3kCgW2kF5tZMYfGLzSoyxXRobVT6FSw5V+9ZTRG6/hMYn vzwBpDkMOSAaynNYzZJFMpTlWTirHqkd6KpNX774+IK/RioDiAp8AxZiXsMCD/Ra 3ijKA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrheehgdefhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpeetnhgurhgvficu tegssghothhtuceorghnughrvgifsehmihhrgidruggvvheqnecuggftrfgrthhtvghrnh epgefgffeggffgheegfedvgfekveekfeegfeevgeetkeeggeeugeegffdtleelgffgnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghnughrvg ifsehmihhrgidruggvvh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 16 May 2022 07:07:54 -0400 (EDT) From: Andrew Abbott To: U-Boot Mailing List Cc: Jagan Teki , Johan Jonker , Simon Glass , Samuel Dionne-Riel , Peter Robinson , Kever Yang , Philipp Tomsich , Andrew Abbott , Alper Nebi Yasak , Andre Przywara , Bharat Gooty , Bin Meng , Fabio Estevam , Heiko Thiery , Heinrich Schuchardt , Klaus Goger , Levin Du , =?UTF-8?q?Marek=20Beh=C3=BAn?= , "Marty E. Plummer" , Michal Simek , Philipp Tomsich , Quentin Schulz , Rayagonda Kokatanur , Rick Chen , Sean Anderson , Suniel Mahesh Subject: [RFC PATCH v2 0/8] Build Rockchip final images using binman Date: Mon, 16 May 2022 21:07:04 +1000 Message-Id: <20220516110712.178958-1-andrew@mirx.dev> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.5 at phobos.denx.de X-Virus-Status: Clean My original goal was to produce SPI images for Rockchip platforms (specifically for me, ROCKPro64, and in the future ROCK64). Looking into it, it seemed nicer to just switch the SD/MMC image generation over to binman as well in the process. This is my attempt to move Rockchip final full image generation to binman, adding the option to make full SPI images as well. Other questions: - I noticed that ATF generation for ARM64 Rockchip is done via a Python script instead of binman. I don't currently know how to change that over to binman, but is that something worth pursuing as part of this? Please give me your feedback! Changes in v2: - Revert u-boot-rockchip-sdmmc.bin name to u-boot-rockchip.bin, to keep the name the same as before. - Fix whitespace issues. - Remove note from docs about different offsets in SPI flash for different SoCs - this was a bad assumption on my part, it doesn't work this way. - Update name of SD/MMC image in the docs from u-boot-rockchip-sdmmc.bin to u-boot-rockchip.bin. Andrew Abbott (8): binman: mkimage: Support ':'-separated inputs rockchip: Add binman definitions for final images soc: rockchip: Include common U-Boot dtsi file board: rockchip: Move SPI U-Boot offset to config rockchip: Remove obsolete Makefile targets rockchip: Enable binman for ARM64 doc: rockchip: Update for new binman image generation board: rockpro64: Enable building SPI image Kconfig | 4 +- Makefile | 31 ++---------- arch/arm/Kconfig | 2 +- arch/arm/dts/rk3308-u-boot.dtsi | 2 + arch/arm/dts/rk3328-u-boot.dtsi | 2 + arch/arm/dts/rk3368-lion-haikou-u-boot.dtsi | 1 - arch/arm/dts/rk3368-u-boot.dtsi | 1 + arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi | 4 -- arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi | 1 - arch/arm/dts/rk3399-roc-pc-u-boot.dtsi | 4 -- arch/arm/dts/rk3399-rockpro64-u-boot.dtsi | 4 -- arch/arm/dts/rk3568-u-boot.dtsi | 2 + arch/arm/dts/rockchip-u-boot.dtsi | 53 ++++++++++++++++++-- arch/arm/mach-rockchip/Kconfig | 7 ++- arch/arm/mach-rockchip/rk3399/Kconfig | 1 + configs/lion-rk3368_defconfig | 1 + configs/pinebook-pro-rk3399_defconfig | 1 + configs/puma-rk3399_defconfig | 2 +- configs/roc-pc-rk3399_defconfig | 1 + configs/rockpro64-rk3399_defconfig | 1 + doc/board/rockchip/rockchip.rst | 29 +++-------- tools/binman/etype/mkimage.py | 33 +++++++----- 22 files changed, 100 insertions(+), 87 deletions(-) -- 2.36.0