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 15152C433EF for ; Mon, 7 Feb 2022 22:08:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 34E9583835; Mon, 7 Feb 2022 23:08:26 +0100 (CET) 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="ZBmou/9Q"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BF896838F8; Mon, 7 Feb 2022 23:08:24 +0100 (CET) Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) (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 7ED1D837E2 for ; Mon, 7 Feb 2022 23:08:21 +0100 (CET) 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-ej1-x62a.google.com with SMTP id ka4so46135173ejc.11 for ; Mon, 07 Feb 2022 14:08:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PozJvqUpgcT6ayfgTeDK0C57S8FOLQioub2zGAjpa10=; b=ZBmou/9QY4xvo+c6fmQ+JkzWUakdp1RjssBSUmttST92VEsLnhRXQvLZdZAUeatwPC 6FEjYbobMl/i56oTXovlI9q6o77qR0lFAeSUvpmeXnYcl8gcop28FuHB0+2kgvCwW1mZ MD5E4xohUBfNiUCcfaBNbd0Qv0xxC1vjrsv1IeVjqk0gNp42aCf1xyLbo74hyzptNG/b 5USgM91nEW2X1zUvOmQiGFdoAcROTjshiyHbDHBBMLtikL6DvVxyVx/9WtjQJSZcKV5W YL/rEcEAdYYNatajUbt/19t+d69kT+Ck4iNTDFYBBCR+VJrHF3tEjT2sTN2KTNUic17s 2vOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PozJvqUpgcT6ayfgTeDK0C57S8FOLQioub2zGAjpa10=; b=tEnpQr9lWJKnxVR92bz5hapHH0dQ3zqf1rCA3wBdCOkVIvPf6p+9lXHae2jTe3fYX9 PEvJWU0ct+GYU71OI5iAkqTJ79aZWjlssX/ii3V8QPlp49R57isJAj8f0q6HFqwrq7qj IdlNDCCBdJdWrnBSZ1lUU2OlEUaUVgWHYefPe1fIbphEzZDtVVj4vrz1b74mTC/hAeI3 exUaMEZrHmeK8ZFiRQWLVzgpuIQbSymQg4mc7S23MWT2cPZjKwPyuzk8ty5a2/d8+c/H /dWgbALRR/vGfQn1nHunxZNV2U/s4e+TQquTqhgx/eO4OCZ3LNND7QzXsx9ILvNOuGqp anGQ== X-Gm-Message-State: AOAM530R7MnhSq7MJfLNqAg+Hs3JMcRfPAqCasz+zyYOMDPU6v5nlgPX YjJJ2zOxXGbPjVLDuwEVj3T1oKs5bRs= X-Google-Smtp-Source: ABdhPJyInZPJFAa5clPmOnGFoa7j80i8NzmKL3ytwKz8Eus2+WY4p/tWDN1gEuU34BIyNqYDF8WGaA== X-Received: by 2002:a17:907:9615:: with SMTP id gb21mr1326752ejc.404.1644271701026; Mon, 07 Feb 2022 14:08:21 -0800 (PST) Received: from localhost.localdomain ([178.233.26.119]) by smtp.gmail.com with ESMTPSA id v16sm4081300ejo.156.2022.02.07.14.08.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 14:08:20 -0800 (PST) From: Alper Nebi Yasak To: u-boot@lists.denx.de Cc: Heiko Thiery , Jan Kiszka , Simon Glass , Alper Nebi Yasak Subject: [PATCH v2 0/5] binman: Improvements to FIT entry type Date: Tue, 8 Feb 2022 01:08:03 +0300 Message-Id: <20220207220809.4497-1-alpernebiyasak@gmail.com> X-Mailer: git-send-email 2.34.1 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 I've managed to build images like in doc/chromium/chainload.rst wtih binman, but ran into an issue with entry expansion in FIT and worked on it a bit. I also added SetImagePos() because that documentation asks for precise placement of u-boot.bin inside the FIT and I felt like doing it as an easier way to know the positions. I would try to refactor and experiment with FIT things more, but I know Simon's currently working on converting SPL_FIT_GENERATOR to binman. Instead I'm just sending things I have already done with some tests added, hopefully without too many conflicts. Changes in v2: - Split reused testSimpleFit code into a helper function - Check missing_bintools list instead of catching Fdt exceptions - Add tag: "Reviewed-by: Simon Glass " v1: https://patchwork.ozlabs.org/project/uboot/list/?series=284714 Alper Nebi Yasak (5): binman: Fix subentry expansion for FIT entry type binman: Register and check bintools from FIT subentries binman: Check missing bintools of Section subclasses binman: Convert FIT entry type to a subclass of Section entry type binman: Update image positions of FIT subentries tools/binman/etype/fit.py | 90 ++++++--- tools/binman/etype/section.py | 1 + tools/binman/ftest.py | 171 +++++++++++++++++- .../binman/test/220_fit_subentry_bintool.dts | 39 ++++ 4 files changed, 266 insertions(+), 35 deletions(-) create mode 100644 tools/binman/test/220_fit_subentry_bintool.dts -- 2.34.1