Received: by 10.192.165.148 with SMTP id m20csp3180771imm; Mon, 23 Apr 2018 01:55:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx49MjIKY0DjgmXjpgZiH4CGB6J613zu2x5Q4aHLLgoB7IYininIsaqcg1NJ7cKcIR2AAITUZ X-Received: by 10.98.93.153 with SMTP id n25mr10479770pfj.143.1524473722071; Mon, 23 Apr 2018 01:55:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524473722; cv=none; d=google.com; s=arc-20160816; b=0t+vH6Mui/IR0rq/Bl2bGGIzcFMO23P1MMKD/e7lltd+P3LLuCdlutOXokcgqlI4C+ umbTWimjcE3Q9IemKpRXARnXuAjjYFTxqoj4kswcyyiOF/4glS7LAHsT5MnVDag96P4n l1T957fBM2PPUJ56RsltGuipI4mJb341AttNxgOySdNZ6YPDMB5P76td0pqXGJ86eAsf J0OcOV9NRYQ2iLUySfx8xqIHDgmxTJpRYmLCc7mmJ37XywN1xAfdoQ+xWKIrAJRJPPl4 12/48dvvaJZ+IOU3G0GYOPxlmRycf2/SwH6YXSQzEoafZxzwx7snsxuC2FSSTL6hCaYe TQ9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:references:cc:to:subject:reply-to :dkim-signature:arc-authentication-results; bh=DtTKBDqbBeXnQXS12orvN+0Ht/dt8WDaO/5bjpVDpMc=; b=wUw9nijdb45tTEwGvHiO5YzUAQt0Y2v3nr+Xgi35k8P0x1S8ETCPXhi6EFdUuJDPNu IpUxafybzatQBKgMC63UeBisVmhvwztv/zuFALpPMJbz3k6mZTJSUSkGEZZNEa2wV9YY CHMH97cEZUgTGFjaWdTkKzPYSZc7UX5BTtZCaUQzoBccdIN3ningAXXXCltMhMC6Cef0 7onaB0fpTy51cWIbqFs2B3hEyR78WGp4+/anRoeccchMEClZF/G+mSfz7AcHSqPwvsaN uflnfIB0l2E4mT0kfrZD1BmEWGDsw1POUS6KTG2vuNz3cCN4ftz/Xg2bfpyi3SnsMtEL tkDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=erPAt9oO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s1si9241090pgb.281.2018.04.23.01.55.08; Mon, 23 Apr 2018 01:55:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=erPAt9oO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754513AbeDWIx1 (ORCPT + 99 others); Mon, 23 Apr 2018 04:53:27 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:42515 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754255AbeDWIxV (ORCPT ); Mon, 23 Apr 2018 04:53:21 -0400 Received: by mail-wr0-f193.google.com with SMTP id s18-v6so38891654wrg.9 for ; Mon, 23 Apr 2018 01:53:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=reply-to:subject:to:cc:references:from:openpgp:message-id:date :user-agent:mime-version:in-reply-to; bh=DtTKBDqbBeXnQXS12orvN+0Ht/dt8WDaO/5bjpVDpMc=; b=erPAt9oOeVeVeztS7yv+p9Qch4W7SeZ49MIKXyaUYYKL6lMsFT5jgBC5ompkTeBnnI tJ1+GVmKQNtIMACkNuxXNfK2Lmr0ekLbF0bl4m59vlTa+DA1NxY27omJqaHYJZlpg+gK HJavFyp5eBA8TmpFVvrhuw/9xJKSG6IhYVYH/TetwTJ2tN+xsdhmrmz85cb7uWDXuR7z tc4lK8qjAchSs7N8HNf7dhsYsFWdOxCY74M23iJf1ylBmkhTB6utI7ZECZ3FU4Gz+cWz RLKnQqwKzyyA2XkXziFq1K6pY8ETCJZtuZRsd9u6SIX/jzg1y18UmlmnFaSfNjy0b4MC 9WKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from:openpgp :message-id:date:user-agent:mime-version:in-reply-to; bh=DtTKBDqbBeXnQXS12orvN+0Ht/dt8WDaO/5bjpVDpMc=; b=cvaZJMAkvpEKRkNIBDuk0Xh0Cxf8II9xIFM8/WQqBhbjtlaaoRzg71bT7sYSXuVDOl 6dFDVRMj3OKQEyb3ZB/q1Xu1TzodQN5Mrz2iiHtnKZFntLb348WPP26Lansd+RxtUas8 UcLTc1AaxxEGB7mSi5aUOTJ3aBIInyI+fplhH2jfLI1chkCMKJ8wwFCdrOvTYwpfdIrA a7IIuS5I7WrFSEZkiMNOLa9os1DJttA4fifsBOki2WgLR9kaGqAn6czxPjxO752s2v9t 5QBGlaf9mL71eA4VsHjr3LEZeUx6nK/+ClbIHanjXLaXi8oqJH6817dyFqVIOImj0kSZ Ic0A== X-Gm-Message-State: ALQs6tBLRBbXC1TGDWnCuNsf1qJctOp4UcRsp0yke8XN8SnT9+636pr6 3vlMUq1aUkPBZsrMC6sWXHQPMA== X-Received: by 10.28.28.85 with SMTP id c82mr9306522wmc.69.1524473600392; Mon, 23 Apr 2018 01:53:20 -0700 (PDT) Received: from [64.233.167.108] ([149.199.62.254]) by smtp.gmail.com with ESMTPSA id u35-v6sm17877172wrc.29.2018.04.23.01.53.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Apr 2018 01:53:19 -0700 (PDT) Reply-To: monstr@monstr.eu Subject: Re: [PATCH] microblaze: Fix simpleImage format generation To: Michal Simek , linux-kernel@vger.kernel.org Cc: Masahiro Yamada , Philippe Ombredanne , Kate Stewart , Greg Kroah-Hartman References: From: Michal Simek Openpgp: preference=signencrypt Message-ID: Date: Mon, 23 Apr 2018 10:53:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="D4Mjy8Mc8hTztoQPs2hYY9oGjKCWwGnmh" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --D4Mjy8Mc8hTztoQPs2hYY9oGjKCWwGnmh Content-Type: multipart/mixed; boundary="PVtWc8UBMK0HO7r8dBbPwIUO37KzCdhKk"; protected-headers="v1" From: Michal Simek Reply-To: monstr@monstr.eu To: Michal Simek , linux-kernel@vger.kernel.org Cc: Masahiro Yamada , Philippe Ombredanne , Kate Stewart , Greg Kroah-Hartman Message-ID: Subject: Re: [PATCH] microblaze: Fix simpleImage format generation References: In-Reply-To: --PVtWc8UBMK0HO7r8dBbPwIUO37KzCdhKk Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 10.4.2018 16:00, Michal Simek wrote: > simpleImage generation was broken for some time. This patch is fixing > steps how simpleImage.*.ub file is generated. Steps are objdump of > vmlinux and create .ub. > Also make sure that there is striped elf version with .strip suffix. >=20 > Signed-off-by: Michal Simek > --- >=20 > arch/microblaze/boot/Makefile | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) >=20 > diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makef= ile > index fd46385a4c97..600e5a198bd2 100644 > --- a/arch/microblaze/boot/Makefile > +++ b/arch/microblaze/boot/Makefile > @@ -22,17 +22,19 @@ $(obj)/linux.bin.gz: $(obj)/linux.bin FORCE > quiet_cmd_cp =3D CP $< $@$2 > cmd_cp =3D cat $< >$@$2 || (rm -f $@ && echo false) > =20 > -quiet_cmd_strip =3D STRIP $@ > +quiet_cmd_strip =3D STRIP $< $@$2 > cmd_strip =3D $(STRIP) -K microblaze_start -K _end -K __log_buf \ > - -K _fdt_start vmlinux -o $@ > + -K _fdt_start $< -o $@$2 > =20 > UIMAGE_LOADADDR =3D $(CONFIG_KERNEL_BASE_ADDR) > +UIMAGE_IN =3D $@ > +UIMAGE_OUT =3D $@.ub > =20 > $(obj)/simpleImage.%: vmlinux FORCE > $(call if_changed,cp,.unstrip) > $(call if_changed,objcopy) > $(call if_changed,uimage) > - $(call if_changed,strip) > - @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' > + $(call if_changed,strip,.strip) > + @echo 'Kernel: $(UIMAGE_OUT) is ready' ' (#'`cat .version`')' > =20 > clean-files +=3D simpleImage.*.unstrip linux.bin.ub >=20 Applied. Thanks, Michal --=20 Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Xilinx Microblaze Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP SoCs --PVtWc8UBMK0HO7r8dBbPwIUO37KzCdhKk-- --D4Mjy8Mc8hTztoQPs2hYY9oGjKCWwGnmh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlrdnvoACgkQykllyylKDCHb/gCdGAImJrnMj63R4RvueVaYkmF+ xacAoISbOZRZWR4zSYn8tXEPuRum7FWQ =Xcie -----END PGP SIGNATURE----- --D4Mjy8Mc8hTztoQPs2hYY9oGjKCWwGnmh--