From patchwork Thu Apr 12 13:41:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 133275 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp1700210ljb; Thu, 12 Apr 2018 06:42:18 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/hj6edPed3ift9eh+ZB16Vy6V5f5aFgsPCynZKcMainwMSStSSE/FIUBedCfXoh88X0je0 X-Received: by 10.80.249.133 with SMTP id q5mr15519560edn.171.1523540538558; Thu, 12 Apr 2018 06:42:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523540538; cv=none; d=google.com; s=arc-20160816; b=F7QcTN5VX+7Sw6UL72rEPhlgO1pobZLvof3hJCepRbz98A9RPFSuJzCShXKyg9z8dV 5kar3mg2UMzBrKoG0zoXBERTbg+Xo6MhRt7uVc+t5DVS5C4LVLGwDD7g/ls4EPL9SGG3 onwwQY43yVYiwG4cLPdrEC0OFTD405IozghOY8Wcd7Ic9b/6UNd888mjfsIdWdpJPEon yiYbF4ZntG82X4Ho1aUjMcjWfBEdPR8hSgeZXPBfKHIYq0JxoRts2onFXZ4z6BW3KoYz DnvCTu+3axkW6y+/9DvXT0CxEZvH4Ds4+fcE9i7Q09/qh+8i3yo78nd7YAZFytxd+YZ/ wBUw== 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=MubJXTI6xXpxnC+S4UzJttQZKAq6MT/4oAcXoP2PwFo=; b=mnoJPmtvyX5LHueEh2RdjHCY8Y4MIbupjhIt0KKp23eK7dwnHQ6rcD/GwuOACjfZZ5 SO9s5LjomS9hSvz15Xz4xgosftEeFPobzBozoZYcFb0LEl/TQJhoktzvkwAT6PgXP1+q zRWLBQ+hRYx4DMczKf/63lDMI3SkEdOGyPlS/W571+Bhz8zFpu9AnP9oNPaQGcK8jBlo y94U5BRbkep6uAPVOd14mtcMcHPh8bKVCb6E9CsgbIheEH06uf7riOdYferoVz3wQrVt JrEqjgCvmdrJ/jffqTiuPdrYuWzNk1iFZECIktt6thlnaXxpw1AeyUOvzRXd4D7Pxdmy Qn5g== 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 f2si1603614edc.118.2018.04.12.06.42.18; Thu, 12 Apr 2018 06:42:18 -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 081DFC21DFD; Thu, 12 Apr 2018 13:42:04 +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 EAED7C21C38; Thu, 12 Apr 2018 13:42:02 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 56CB6C21C6A; Thu, 12 Apr 2018 13:42:01 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id F3A3DC21C2C for ; Thu, 12 Apr 2018 13:42:00 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 2D109ADCC; Thu, 12 Apr 2018 13:42:00 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Thu, 12 Apr 2018 15:41:55 +0200 Message-Id: <20180412134158.69300-1-agraf@suse.de> X-Mailer: git-send-email 2.12.3 Subject: [U-Boot] [PATCH v2 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. 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