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 03A05C433EF for ; Wed, 12 Jan 2022 17:21:46 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 107E48339D; Wed, 12 Jan 2022 18:21:44 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org 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=kernel.org header.i=@kernel.org header.b="DC+BSFMD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AE436832CF; Wed, 12 Jan 2022 18:21:41 +0100 (CET) Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D8D2883180 for ; Wed, 12 Jan 2022 18:21:38 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 813EBB8200E; Wed, 12 Jan 2022 17:21:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30A3CC36AEC; Wed, 12 Jan 2022 17:21:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642008097; bh=g2bfnjmbFI1Kfez+m7+4xnJ1iKC5TrafyrwACQp/1HA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DC+BSFMDQGDaxMb2P5rFkBvefUKDQ7nJGnSjzYJp3qGrUmuNDmxCALKVARK2kjYRs aoq9nBv0apxSqV2ZlaHLYrxoqk0CUouVRnSs3eQFykiXzyFDobJpIae9ToAfjg8DLu fjqDZ9KlDb7esAo3Svwavo+nr+Zv8ovJSiJPMgN/NuQie8VFQSz7SRip4Gzje3wVFr XfetCqh+CPclgbM8UvrOaR/BD5mn4AX6EbHRM7k8nUwoLyDmMXPJwk9ViwURhAOyFI mF1G4RnALDZUfbbQ8AZwkHPKOfcnFhIS9QYJHWGXh64aXKwI3Q3i8ygPemMKklcTab 1vPevV6OW/g0A== Received: by pali.im (Postfix) id 5C5D0768; Wed, 12 Jan 2022 18:21:34 +0100 (CET) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Stefan Roese , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Chris Packham Cc: u-boot@lists.denx.de Subject: [PATCH u-boot-marvell v2 00/20] tools: kwbimage: Load address fixes Date: Wed, 12 Jan 2022 18:20:34 +0100 Message-Id: <20220112172054.5961-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211221155416.8557-1-pali@kernel.org> References: <20211221155416.8557-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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.2 at phobos.denx.de X-Virus-Status: Clean This patch series fixes generating images in kwbimage format, main fix is setting correct load address of U-Boot SPL. Also it adds support for generating kwbimage config file from existing kwbimage file via dumpimage tool. Changes in v2: * Fix base address for Sheeva CPUs (A370, AXP), it is 0x40004000 * Fix information about mapped area of load address (it is L2, not CESA) * Add new kwbimage config option CPU Pali Rohár (20): tools: kwbimage: Mark all local functions as static tools: kwbimage: Deduplicate v1 regtype header finishing tools: kwbimage: Fix generating image with multiple DATA_DELAY commands tools: kwbimage: Preserve order of BINARY, DATA and DATA_DELAY commands arm: mvebu: Generate kwbimage.cfg with $(call cmd, ...) tools: kwbimage: Add support for specifying CPU core tools: kwbimage: Add support for specifying LOAD_ADDRESS for BINARY command tools: kwbimage: Check the return value of image_headersz_v1() tools: kwbimage: Check for maximal kwbimage header size arm: mvebu: Set CPU for U-Boot SPL binary in kwbimage arm: mvebu: Correctly set LOAD_ADDRESS for U-Boot SPL binary in kwbimage tools: kwbimage: Enforce 128-bit boundary alignment only for Sheeva CPU arm: mvebu: Enable BootROM output on A38x tools: kwbimage: Add missing check for maximal value for DATA_DELAY tools: kwbimage: Show binary image offset in mkimage -l, in addition to size tools: kwbimage: Dump kwbimage config file on '-p -1' option tools: kwbimage: Do not cast const pointers to non-const pointers tools: kwbimage/kwboot: Check ext field for non-zero value tools: kwbimage: Extract main data image without -p arg for dumpimage tools: kwbimage: Fix mkimage/dumpimage -l argument arch/arm/mach-mvebu/Makefile | 25 +- arch/arm/mach-mvebu/kwbimage.cfg.in | 10 +- tools/kwbimage.c | 549 +++++++++++++++++++++++----- tools/kwbimage.h | 10 +- tools/kwboot.c | 4 +- 5 files changed, 486 insertions(+), 112 deletions(-) -- 2.20.1