From patchwork Wed May 5 14:15:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 1474354 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=hyj1tohh; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FZzKN3Pxwz9sSs for ; Thu, 6 May 2021 00:16:22 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CD33182CFD; Wed, 5 May 2021 16:16:12 +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="hyj1tohh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4246E82CFD; Wed, 5 May 2021 16:16:11 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) (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 2DCC280C99 for ; Wed, 5 May 2021 16:16:08 +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=bmeng.cn@gmail.com Received: by mail-pf1-x430.google.com with SMTP id i13so2203434pfu.2 for ; Wed, 05 May 2021 07:16:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=QLZ5DCZirltVwtdbB1u5kYOyNf0t3Q1wHsRZV5u8xc8=; b=hyj1tohhk1iRGMdHMINFWg+wB6PY/wK7uuKTOX90IyN95oyOVxi8RY/5BwEI3P9GUS kEXWU8Zu3CSI5m5O8C4r6MRWwG6ajzvwzNIxfeyA/O8NzCXTESRXzMIylH6ivqYJP417 SoTvH+mO4EZnyj+kWImVYfN3RP2fPuqq+jM8QzufJRgAqJWtM2oDS1fAXNUEhpO7p9Ah 3089fwwY/IaBSM1bMWmuNxC3QCCutsXcJAtPci7uQERMPe3XHxpNZGHBxCNcgVb7RmDh t49c4kvoc1FUm+Y+AC2b4EqYqe692dT2ZR66pB+32/SS9Xeqzu55PQcdWktdRqFxguj4 +LSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=QLZ5DCZirltVwtdbB1u5kYOyNf0t3Q1wHsRZV5u8xc8=; b=dNChN1+LM7SdREp8CaG4P0t8PH0RQE8aYf5fx7HP3GB6w30/sBlBxSbJTUb8ccI1EX V+l0qhHFW7Q17a6QeGmcRJ/7lKNcbzEXuEsqQAg9jJIIxTs+YE/WBm+F83J5qkUdNdv2 3bZZrPbhSeQpkIudkv73Vv9FmaGfaTRYa69bItbKt2O4W4Np1V1Fpe4syUQdh7idbK1S tOe8ylLPPeklbV8tJ/Sb6NMv5XH7HbigwYaYmkPJJCBN99WpXDbVcIy2WLvtU6NinC2l GF/vT1gqVJV98V2dLyPCz7fNxXTfCM7LrDrSel68YeFV7XcSz2LnGHEirr/KWHxt0ToU iJhg== X-Gm-Message-State: AOAM53349p7gbnsTu81km5sHn7e2r2W3L8W0tC54jr1iAypbW5GWI02q /eNQg/ZbTvY+ACZef1qWs3U= X-Google-Smtp-Source: ABdhPJzid9891zsAARKUdipjzzXpt/LArQPteHgQctmjN3wF3A5XE0aRdDdGUNqaAKavTGnCaEjRBg== X-Received: by 2002:a65:4c89:: with SMTP id m9mr28159493pgt.330.1620224166357; Wed, 05 May 2021 07:16:06 -0700 (PDT) Received: from i9-aorus-gtx1080.localdomain (144.168.56.201.16clouds.com. [144.168.56.201]) by smtp.gmail.com with ESMTPSA id t10sm7831482pju.18.2021.05.05.07.16.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 May 2021 07:16:05 -0700 (PDT) From: Bin Meng To: Simon Glass , u-boot@lists.denx.de Cc: Rick Chen , Bin Meng Subject: [PATCH 0/9] riscv: Partially move to binman to generate u-boot.itb Date: Wed, 5 May 2021 22:15:48 +0800 Message-Id: <20210505141557.23901-1-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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.102.4 at phobos.denx.de X-Virus-Status: Clean This series updates binman to handle creation of u-boot.itb image for RISC-V SiFive Unleashed board. QEMU RISC-V remains unchanged, as binman uses a dtb to describe the image format, but for QEMU RISC-V there is no dtb as dtb is passed to U-Boot via CONFIG_OF_PRIOR_STAGE. Not sure how such use case could be properly supported by binman? Bin Meng (9): common: kconfig: Correct a typo in SPL_LOAD_FIT binman: Correct '-a' description in the doc binman: Correct the comment for ATF entry type binman: test: Rename 172_fit_fdt.dts to 170_fit_fdt.dts binman: test: Correct the name of 170_fit_fdt_missing_prop.dts binman: Add support for RISC-V OpenSBI fw_dynamic blob makefile: Update clean rule to remove files generated by binman makefile: Pass OpenSBI blob to binman make rules riscv: sifive: unleashed: Switch to use binman to generate u-boot.itb .gitignore | 4 +- Makefile | 6 +- arch/riscv/dts/binman.dtsi | 70 +++++++++++++++++++ .../dts/hifive-unleashed-a00-u-boot.dtsi | 1 + board/sifive/unleashed/Kconfig | 1 + common/Kconfig.boot | 2 +- configs/sifive_unleashed_defconfig | 1 + tools/binman/binman.rst | 4 +- tools/binman/entries.rst | 13 ++++ tools/binman/etype/atf_bl31.py | 2 +- tools/binman/etype/opensbi.py | 23 ++++++ tools/binman/ftest.py | 17 +++-- .../test/{172_fit_fdt.dts => 170_fit_fdt.dts} | 0 tools/binman/test/201_opensbi.dts | 16 +++++ 14 files changed, 148 insertions(+), 12 deletions(-) create mode 100644 arch/riscv/dts/binman.dtsi create mode 100644 tools/binman/etype/opensbi.py rename tools/binman/test/{172_fit_fdt.dts => 170_fit_fdt.dts} (100%) create mode 100644 tools/binman/test/201_opensbi.dts