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 71613C433EF for ; Thu, 19 May 2022 11:39:13 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 91A5083D8F; Thu, 19 May 2022 13:39:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="CDNnwOor"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E446883D61; Thu, 19 May 2022 13:39:06 +0200 (CEST) Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6D3A583D84 for ; Thu, 19 May 2022 13:39:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=alpernebiyasak@gmail.com Received: by mail-ed1-x535.google.com with SMTP id j4so2214269edq.6 for ; Thu, 19 May 2022 04:39:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:from:subject:to:cc :references:content-language:in-reply-to:content-transfer-encoding; bh=xT2nJQeRBpPpug4MysjhDMtSZVCEKMSQUnzyyXTQcAA=; b=CDNnwOorCdS/OFf7bALz1FEsIDBUnCB9CmBAPt65buxX+Yt5KO1NplnHlzY3FFkoXo WeQxRlKq11ZyLcuU+GyAvYX9m4/EkfzZfuCvIkxh0PPlw5d12eWEFnwzpmHbP1Aa9bGW B+N+/gVb0Gup8rsdRyFBaY09sUcpgPkT7zhKPLQVTXSE7LeSDbCnYUyE8r1wMxrVWjTr hbdS5n8qtpB+4DNRTrcsUC989LCnd6POqwkCxpY+2nZwDHWLR9Nnn3dGUzFS/uFKhO7N zH/2Yw2D8uZtgBKH4FGp6sskyvHKrZyVENDDpinZdJO2ltjTEan4f+5J9SP1dgSfO0Z2 6aVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:from :subject:to:cc:references:content-language:in-reply-to :content-transfer-encoding; bh=xT2nJQeRBpPpug4MysjhDMtSZVCEKMSQUnzyyXTQcAA=; b=yz/TvBB31npXX6hytWaXgNtRxPfbYSh55KiDkI7kjJvASOmNL+yBQXoWhpU9rlzYF7 r4CxQq5sMDewGikTwmfR7RLAlUbTRp4BD3uMAnfRQmRxE74gHAZPhdV8G0SgSnzSU1QJ RgJr87pke0uUupAuJwd3qnQ0c4vvjBssZ/bwAW4QMu5odxpq2eKxL4TtrvZu4B5DXhpT wo+qXiN2VqjrSwxihrBnd4s74V9OzDL4LIDMJGemwIFtuKHqQvaTH+benD6pSpb2jXol xTeWN/LxeJaB8UVlmKsovaFdJpI8dwdY+cZcipHzfUqkGKwARfzBxUcoF0XSxyVFJeKo 9WCQ== X-Gm-Message-State: AOAM533U5lveAvVW7/UTQbQD6VVEtMIvoZg1nQXZfLKRDKEnLayGce+1 IE2NCY6x7qVkP3ea5YtjODE= X-Google-Smtp-Source: ABdhPJwIWtb9X+ULDT3wmFSbQZV6MF4u1ZnANe1IQyHDYge+7jIdhA2zWKc+NkFZdDzzV9oNRbyOYA== X-Received: by 2002:a05:6402:2996:b0:42b:49a:6d24 with SMTP id eq22-20020a056402299600b0042b049a6d24mr1985937edb.145.1652960339929; Thu, 19 May 2022 04:38:59 -0700 (PDT) Received: from [192.168.0.74] ([178.233.178.185]) by smtp.gmail.com with ESMTPSA id r21-20020aa7d595000000b0042aba7ed532sm2652349edq.41.2022.05.19.04.38.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 May 2022 04:38:59 -0700 (PDT) Message-ID: <852802e0-ec1e-2329-23f1-d75ddbc9df36@gmail.com> Date: Thu, 19 May 2022 14:35:01 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 From: Alper Nebi Yasak Subject: Re: [RFC PATCH 2/8] rockchip: Add binman definitions for final images To: Johan Jonker Cc: Simon Glass , Philipp Tomsich , Kever Yang , Peter Robinson , Akash Gajjar , Jagan Teki , Samuel Dionne-Riel , Andrew Abbott , U-Boot Mailing List References: <20220425000329.28124-1-andrew@mirx.dev> <20220425000329.28124-3-andrew@mirx.dev> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 On 27/04/2022 12:22, Johan Jonker wrote: > [...] > > There's a trend to solve everything in python. > Don't have knowledge about python, but there's a 3rd image format for > NAND [1]. Could someone advise how to fit the extra XXX padding option > in the mkimage.py file? (Simon ?) Binman's mkimage support is mostly a wrapper around the mkimage executable, so that patch would need to be applied first. Assuming you want to run something like the example in that patch: > mkimage -n rk3066 -T rknand -d : -X 16384,1 I think you'd only need something like the first patch of this series for binman to get the multiple inputs working, and I expect a binman dtb fragment like the following would then work for the above command: mkimage { args = "-n", CONFIG_SYS_SOC, "-T", "rknand", "-X", "16384,1"; u-boot-tpl { }; u-boot-spl { }; }; > Could someone from Rockchip give info on whether the SD or SPI image > format has similarity to the NAND image format to reuse code? (Kever ?) > > Missing are u-boot documents on Rockchip file formats itself other then > reading the /tools/rkxxx.c code. (I don't know the formats' details, so can't comment on those.) > Currently there's a small section about rkimage, rksd and rkspi in > README.rockchip. Move that to rockchip.rst as well when busy with image > formats in this serie? > > Johan > > === > > [1] > [PATCH v4 11/19] rockchip: mkimage: add support for rockchip nand boot image > https://lore.kernel.org/u-boot/45576df80a77657cb2245ea1d1fc2e69908a909d.1502974488.git.paweljarosz3691@gmail.com/