From patchwork Fri Apr 13 12:18:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 133370 Delivered-To: patch@linaro.org Received: by 10.46.84.18 with SMTP id i18csp669608ljb; Fri, 13 Apr 2018 05:20:34 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/supDqrk0TauHST208FBD39y41hkPDzNcTvrKpUua+pel6swH/u2oWR0ds7yTQay27JlMt X-Received: by 10.80.129.167 with SMTP id 36mr19689405ede.13.1523622033970; Fri, 13 Apr 2018 05:20:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523622033; cv=none; d=google.com; s=arc-20160816; b=lGipgCijSQFT4fRU2tWZd7b5L83b1JWp5Pq02nN85iCaKheYGDbFaPMf5z7aV7+drH +IrgCYLjp3igT9wS9kEv7ilhUNjvTf78yIzC4C995Rr3HiytNryHqauuaFwwPlqw6aVt C9GGY3lxr5N+VeESVHgWAVjO4W9dfoX6wmNLwdR8LW4UWf6OEwlOIMT27nr6Bq8MbAcI /SELgWoIX8cphK9Wlp5c0DIzTnpA910+FIPvQQNMpKq9MKqU2PglStrwJWSRKEQapfJr w9+g6UiVg5xupIUevOQqT3lZvWJJ3ucLWePtSNAhnclLjX/+bglhlXD07fiCOEwftpwA nNjw== 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=tjH2lX09bSOiAk+66x4SBZQIGUC7RVX4GHiArxbUA+A=; b=widVWkiBk2DDg3uf6JlBQe+4cBB8NLgqa468J8Dv6p1c6hAxJT7mAswkbDQJuW4dVs 9bVhMB47yQP+OBf9uGAasPjmyjsLWP7/lL2eFxOJpmfEX1e0Nk8aI0APun8ldgDk1nJN QaIR3B7E9aCPqUXWMvL8+k3/+yCzE6SYHzJWJPve4JTVB3GVoKmasvPcGk/X6Eq53+YA lZZW7DDO9j7a7Kx9cNVJc9Hsa5u/kI7l8aCsHNPbhQcW+2miJdSni5FLewLUZxE5MzEK VI7XPwFCFtiDQSlJI8+Z48wcVVEbcBK73KkFxIU2/vghb9LxNdeqRTYxT4nLZtZaZ6mT AOpg== 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 g37si5467676eda.74.2018.04.13.05.20.33; Fri, 13 Apr 2018 05:20:33 -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 769CDC21DD4; Fri, 13 Apr 2018 12:20:27 +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 09479C21DD7; Fri, 13 Apr 2018 12:18:59 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5F4A9C21C51; Fri, 13 Apr 2018 12:18:55 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id 9BC1BC21CB1 for ; Fri, 13 Apr 2018 12:18:54 +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 201D3AED0; Fri, 13 Apr 2018 12:18:54 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Fri, 13 Apr 2018 14:18:48 +0200 Message-Id: <20180413121852.38942-1-agraf@suse.de> X-Mailer: git-send-email 2.12.3 Subject: [U-Boot] [PATCH v4 0/4] 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 v3 -> v4: - checkpatch fixes - new patch: MAINTAINERS: Declare tools/zynq*.{c,h} as Xilinx maintained - add error handling - add fsbl_config support - add aarch32 support - allow a5x to be written as a53 - add offset support - add support for partition_owner - ensure pmufw comes before bootloader - simplify fsbl_config - add non-a53 boot support Alexander Graf (4): tools: zynqmpimage: Add partition read support tools: zynqmpimage: Move defines to header MAINTAINERS: Declare tools/zynq*.{c,h} as Xilinx maintained tools: zynqmpimage: Add bif support MAINTAINERS | 3 +- common/image.c | 1 + include/image.h | 1 + tools/Makefile | 1 + tools/imagetool.h | 1 + tools/mkimage.c | 7 + tools/zynqmpbif.c | 1008 +++++++++++++++++++++++++++++++++++++++++++++++++++ tools/zynqmpimage.c | 142 +++++--- tools/zynqmpimage.h | 139 +++++++ 9 files changed, 1260 insertions(+), 43 deletions(-) create mode 100644 tools/zynqmpbif.c create mode 100644 tools/zynqmpimage.h