From patchwork Thu Apr 12 13:48:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 133282 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp1707775ljb; Thu, 12 Apr 2018 06:51:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+6H7kkzDi3a+RlYujU2YMFDD4ZrRWwP045vDR1tvZ+j0D3BP6MmaZSGZTEBtqvhnr+m4Oj X-Received: by 10.80.155.6 with SMTP id o6mr15483578edi.280.1523541064870; Thu, 12 Apr 2018 06:51:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523541064; cv=none; d=google.com; s=arc-20160816; b=rcMv4/WLkgF4bQibsr9VqFTFOhM5fRXbXF6ZR1RWrnH4mAdX2MjV2z7jHb/73cb6uo 5+MQvsVeeKJ+vFJOGqwRa2JFg1SVUWQSWBgGuhJnTtipMqcN4IrYg9XfW0eXS25gOPfy fyhhi5io5e/j7j/HGl6SGFe6rBrzABv1inrKnCJKe9Ez+YwrIQEYkqPHJdT9mNa0dspw Vlr6h8Taqyx6BENh0p8qSvc1GoIrHjioXKAvE4Oc1YcP/iCy+DL+bnc2teP4IdVM2Ea8 jrgJphTluQyUf4AvwHtVZbFQP+IG5gKQCPlLdkW5jbqbIsIRFelMy1/tPx734ZO4RgD1 9sFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from :arc-authentication-results; bh=Fb6IY72/cgfCGaT3YcKSUkdZMNc5CQlr5nHbqaGT7e4=; b=nLeoWx55XMFHqGY5AQ03lH/rRLSrKLqvS3zp1U9ZG+I2PQghWQbwHITpRkVbCVUezu 7qXNp/3FdgIYAdvUNAEPQGGcTkxF+aFbwNtqYQU+BMJTQdxSdGnwBNBL6QGDCTyB+Du1 /Z7Cx7/xa7/t04f3s9VF1bP7stbkakk6S96J/WJJCde0PKd+dfDTrDL9apVCXcXMmUNQ mBhuCLMhxHZ4UtfMnhWSJ5WYfGaEFJEYFUMHYhd1NyteIcH26ubVxxGMFV054VNuCSOb dbQ34caPWpxX6FZh3o1IMWCiCfwbnfOAweIN3cuyNe20NOerO5TPrkbywV492m+Qz5TP CU2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id 35si66087edk.410.2018.04.12.06.51.04; Thu, 12 Apr 2018 06:51:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 49A75C21C50; Thu, 12 Apr 2018 13:50:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 69ECCC21E0D; Thu, 12 Apr 2018 13:48:28 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E4B8CC21C2C; Thu, 12 Apr 2018 13:48:24 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id 3B719C21C50 for ; Thu, 12 Apr 2018 13:48:24 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id EAE41ADE3; Thu, 12 Apr 2018 13:48:23 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Thu, 12 Apr 2018 15:48:20 +0200 Message-Id: <20180412134823.77239-1-agraf@suse.de> X-Mailer: git-send-email 2.12.3 Subject: [U-Boot] [PATCH v3 0/3] tools: zynqmpimage: Support partitions X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" A good chunk of the booting chain of ZynqMP based systems is open source (depending on your definition of it), except for the image generation flow. This patch set aims to change that, with read and write support for boot.bin partitions which allows us to create boot.bin files using only open source tools. v1 -> v2: - Add bif based generation - Add documentation pointer - Split definitions into separate header v2 -> v3: - zero initialize header - reduce default debug verbosity Alexander Graf (3): tools: zynqmpimage: Add partition read support tools: zynqmpimage: Move defines to header tools: zynqmpimage: Add bif support common/image.c | 1 + include/image.h | 1 + tools/Makefile | 1 + tools/imagetool.h | 1 + tools/mkimage.c | 3 + tools/zynqmpbif.c | 839 ++++++++++++++++++++++++++++++++++++++++++++++++++++ tools/zynqmpimage.c | 141 ++++++--- tools/zynqmpimage.h | 135 +++++++++ 8 files changed, 1080 insertions(+), 42 deletions(-) create mode 100644 tools/zynqmpbif.c create mode 100644 tools/zynqmpimage.h