From patchwork Mon Aug 23 07:37:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1519572 X-Patchwork-Delegate: monstr@monstr.eu 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=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=g+0DX3hn; 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GtPJy6ps9z9sWS for ; Mon, 23 Aug 2021 17:39:46 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5AA3A83208; Mon, 23 Aug 2021 09:38:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="g+0DX3hn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 928E6831D4; Mon, 23 Aug 2021 09:38:14 +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=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) (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 E16708312B for ; Mon, 23 Aug 2021 09:38:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ej1-x62e.google.com with SMTP id u14so10190982ejf.13 for ; Mon, 23 Aug 2021 00:38:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hwE+h9AtYxeGrT0SJifHY/b0keVE9DPvx5jV1YM/2Kw=; b=g+0DX3hnTIpvT6SdEcRMZgOil3ap4xaZV5vocEmE36IP6yenm6aASSzDscDwdkYEh0 5saqG7l1gZ3PXO2Qiyl6LupymsnWyJQ78c8F1p33E82kZmdk6Unr51BrfF0zJTXPLv6i qQo5mtZTEvvhxHsFi4USi07d4Z90GttXnayEmhzAXUJa41qt8vsziu1aTXQXh57WDZuj DznK9ReQdRroTQ40VQaPLMABjwKZYAaVL9rtciI+OxgukJbfzRTbCjpUfdKZMeu1KhT+ 4fWGE3NeTRv9WMadsICHj++xn7thbtbqOTXa1B5UBRq7cvrWsIpYnZGRWq/8PShVLIO6 Vo8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=hwE+h9AtYxeGrT0SJifHY/b0keVE9DPvx5jV1YM/2Kw=; b=IbGM3e5o4qaEWFCdm2qdlPgTSCeQeaMDoXO+XKZWAiXZXGJuH6QEXWONZKmnaCat3j k/MAoWzfe/y9wNrD66GqmpPEJ9lqgjxDrLnUAaqJmVbxGoJYXRz+drnXi5y8HzI/q3i9 3AmgTpCnUVfUOjT9QTblZFT8N2mZJqrsFQ+45d1tuuHMtvAVuSIzkelYH+63oAPrBdrE nohymceh7/ngrbbtR2fFtM9mdsX17jw52uBk0Id69KUH3Yfqb5O+89wkUV7ldVcu7r3W wpB2yN4r8yW6klRzL5Qka6aY659jmAe0/W/UaWGr846tRLuqbrs9q73e5R9K8g3KXFsc 8PdQ== X-Gm-Message-State: AOAM531bp7qrYcFg5oXzFMMzRCc1G3n/oP2UEYuRcINuXJKtnqn6alU1 nPXuZxgoCPmg9zPvyBTub7tn6g== X-Google-Smtp-Source: ABdhPJw/hK65vb7HjdgtnM/guo7dBz7QQdRvlthBSWirI/hQLPzSgSjrBp9pNCBreJFhlnyCiYvmEw== X-Received: by 2002:a17:907:7896:: with SMTP id ku22mr35518475ejc.166.1629704290548; Mon, 23 Aug 2021 00:38:10 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6:f666:9af6:3fed:e53b]) by smtp.gmail.com with ESMTPSA id t10sm8793337edv.1.2021.08.23.00.38.09 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Aug 2021 00:38:10 -0700 (PDT) From: Michal Simek To: andre.przywara@arm.com, u-boot@lists.denx.de, git@xilinx.com Cc: Bin Meng , Chee Hong Ang , =?utf-8?q?Marek_Beh=C3=BAn?= , =?utf-8?q?Pali_Roh=C3=A1?= =?utf-8?q?r?= , Simon Glass Subject: [PATCH 07/10] Makefile: Align fit-dtb.blob and u-boot.itb by 64bits Date: Mon, 23 Aug 2021 09:37:54 +0200 Message-Id: <07e38a4009054fba63f6e46f393ad33efb495f4b.1629704273.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: References: 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.103.2 at phobos.denx.de X-Virus-Status: Clean Enabling MULTI_DTB_FIT and DTB_RESELECT can end up with multi DTBs in FIT image placed and aligned only by 32bits (4bytes). Based on device tree specification: "Specifically, the memory reservation block shall be aligned to an 8-byte boundary and the structure block to a 4-byte boundary." is 64bit (8bytes) alignment required. That's why make sure that fit-dtb.blob and u-boot.itb as our primary target images for Xilinx ZynqMP are all 64bit aligned. Signed-off-by: Michal Simek Reviewed-by: Andre Przywara --- Changes in v2: - Update subject and commit message - Enable 64bit alignment for all - reported by Andre Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 269e353a28ad..0de909123cf9 100644 --- a/Makefile +++ b/Makefile @@ -1169,6 +1169,8 @@ MKIMAGEFLAGS_fit-dtb.blob = -f auto -A $(ARCH) -T firmware -C none -O u-boot \ -a 0 -e 0 -E \ $(patsubst %,-b arch/$(ARCH)/dts/%.dtb,$(subst ",,$(CONFIG_OF_LIST))) -d /dev/null +MKIMAGEFLAGS_fit-dtb.blob += -B 0x8 + ifneq ($(EXT_DTB),) u-boot-fit-dtb.bin: u-boot-nodtb.bin $(EXT_DTB) $(call if_changed,cat) @@ -1431,6 +1433,7 @@ MKIMAGEFLAGS_u-boot.itb = else MKIMAGEFLAGS_u-boot.itb = -E endif +MKIMAGEFLAGS_u-boot.itb += -B 0x8 ifdef U_BOOT_ITS u-boot.itb: u-boot-nodtb.bin \