Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp426420imu; Fri, 7 Dec 2018 03:26:35 -0800 (PST) X-Google-Smtp-Source: AFSGD/X7DdFmUkxbSBzsx1m6jioTVFLY/eLbOj9Zl37KNNmUp8St1juUQyxKwtV2cG58K6xiw8fn X-Received: by 2002:a62:29c3:: with SMTP id p186mr1877152pfp.117.1544181995391; Fri, 07 Dec 2018 03:26:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544181995; cv=none; d=google.com; s=arc-20160816; b=l2Uqz/IfDtigjChpDiBui0MsW1lr6LHQPo078656mtjUU9cqUUN05DDUIxWJW6W4ke /I9e3/qcN2Z3eW6LvIcd7mdBQvM3x/hx2brv5csTJbK/IPi9BwIXt+HRKTL4tPJuEzUL 05NUjQcV4ZI5cq/5emMg+oYRuSwDR29Y4S+0tVQszudmCpvubwbQ+8fyU/p4Xve/cYia 4t4y7cJJv9vOlF0MLgX83NWVl+NlQOf2cGE3PjGKo7NwyP1AmRUk1YL/Q42cYP9qDfZO 18lX02KraO46+UJ/4AGgW5RmSxHb3FBGvGFA6CWhTVFrq7DEFzGuHhalwp0IvimVPa7S MCaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=Tgtt4c6BX1Ibue1dg2RQbpwTj6dKjq0W5DkrHw3C9fo=; b=UZI3Zb4KpBvTyPeXUoD736PK/ytMHvNl7ePPqHPNRcM9DWuYu903zIaX/QCsOyRkBs fCTAYLMHOk9WSP6REoUSruAX0lvjS9BsyjyqlKVZjYSjwANb2NnTIfR6gQsk7Qu7E061 CVQcD7uMfdnT1vGUQ76qtVJIh2ay3/TuG1kA0DPw3dYeVyhsgwIpEJkjlhXvfbVMqDiS Z3v7PxlGGSqbJAM40cXx5nsNFn6/kpVMUZZuDeFlCgpy5o/iO6s0XKII1ci6zZAOyXAq /EPDSxtimdrgNsnxShZPxWlPtPY4Uy3l6TKbVPBFLrlkCtUYRzuBcqRx5dExrc8wg5nj gIHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=TnDCc3zw; 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 j20si2431647pgg.162.2018.12.07.03.26.19; Fri, 07 Dec 2018 03:26:35 -0800 (PST) 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=@nifty.com header.s=dec2015msa header.b=TnDCc3zw; 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 S1726013AbeLGLZq (ORCPT + 99 others); Fri, 7 Dec 2018 06:25:46 -0500 Received: from conssluserg-04.nifty.com ([210.131.2.83]:47899 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725985AbeLGLZq (ORCPT ); Fri, 7 Dec 2018 06:25:46 -0500 Received: from mail-vs1-f53.google.com (mail-vs1-f53.google.com [209.85.217.53]) (authenticated) by conssluserg-04.nifty.com with ESMTP id wB7BPbAE010199; Fri, 7 Dec 2018 20:25:38 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com wB7BPbAE010199 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1544181938; bh=Tgtt4c6BX1Ibue1dg2RQbpwTj6dKjq0W5DkrHw3C9fo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=TnDCc3zwxIN6fsZJsWwRO6gC/Y33C9zqPtVW3Xjx8clTaDj5xjZFZnRkFGim9N/OM Oc+k5Hn+Trb8WR6NSxMDveowjDBt+PfVnjDfxRepjl33c332bNQlarYeV3JV5Sx6fI VTjS1zL4qA4LAESjytxK1LhJEtBq5FRWhXmG+ttoPJSlpBaF3QA03RlxWPiWKjIg8b F0eGz7uPPuxusMpWM+9ppOrIegfkPJcMItTlk1EwGxLWkRb5OdIo+4zGjgmHcW3DWA ABBTkoe9sY6BsfjaKa6TlI/U/35RdnfcAEv6wITT/7+XUgPZS0h1WZ3B2quOnqfKVX iKhN8HELePJtg== X-Nifty-SrcIP: [209.85.217.53] Received: by mail-vs1-f53.google.com with SMTP id z3so2229212vsf.7; Fri, 07 Dec 2018 03:25:37 -0800 (PST) X-Gm-Message-State: AA+aEWb+yfdBMpc5jKsre9qTCGWQ7oHbX+J4kugP81BRBtGX0fSr1Adc Phypzt8VZEAFqqEhiZH75JP6mSXuVcgSf25eFso= X-Received: by 2002:a67:385a:: with SMTP id f87mr712446vsa.179.1544181936780; Fri, 07 Dec 2018 03:25:36 -0800 (PST) MIME-Version: 1.0 References: <1543823457-32478-1-git-send-email-yamada.masahiro@socionext.com> <8dd96009-976b-99a5-c8e5-8a2242a04371@monstr.eu> In-Reply-To: <8dd96009-976b-99a5-c8e5-8a2242a04371@monstr.eu> From: Masahiro Yamada Date: Fri, 7 Dec 2018 20:25:00 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/7] microblaze: fix various problems in building boot images To: Michal Simek Cc: Linux Kbuild mailing list , DTML , Linux Kernel Mailing List , Rob Herring , Mark Rutland Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 6, 2018 at 10:10 PM Michal Simek wrote: > > Hi, > > On 06. 12. 18 6:08, Masahiro Yamada wrote: > > Hi Michal, > > > > On Thu, Dec 6, 2018 at 1:41 AM Michal Simek wrote: > >> > >> On 03. 12. 18 8:50, Masahiro Yamada wrote: > >>> This patch set fixes various issues in microblaze Makefiles. > >>> > >>> BTW, "simpleImage.
" works like a phony target to generate the > >>> following four images, where the first three are just aliases. > >>> > >>> - arch/microblaze/boot/simpleImage.
: > >>> identical to arch/microblaze/boot/linux.bin > >> > >> It is not - fdt section should be empty. > >> simpleImage has this section filled. > >> > >>> > >>> - arch/microblaze/boot/simpleImage.
.unstrip: > >>> identical to vmlinux > >> > >> The same here with filled section. > > > > > > vmlinux is built anyway > > for whatever target you are building. > > > > What is the point of making a copy of vmlinux? > > They are the same. > > You can confirm it by 'diff' > > > > $ export CROSS_COMPILE=microblaze-linux- > > $ make ARCH=microblaze defconfig > > $ make -j8 ARCH=microblaze simpleImage.system > > $ diff arch/microblaze/boot/simpleImage.system.unstrip vmlinux > > I can't remember the reason for this. Maybe it was just a copy from > PowerPC which started to use this simpleImage format in past and MB just > copied it. > > >>> > >>> - arch/microblaze/boot/simpleImage.
.ub: > >>> identical to arch/microblaze/boot/linux.bin.ub > >> > >> as above. > >> > >>> > >>> - arch/microblaze/boot/simpleImage.
.strip: > >>> stripped vmlinux > >> > >> And this is there because unstrip version is quite huge and for early > >> issues you need to know only some symbols that's why debugger is not > >> overflow with stuff which none needs. > >> Maybe this is not an issue now but that strip version is used a lot. > >> > >> > >>> > >>> I am not sure how much useful those copies are, > >>> but, I tried my best to keep the same behavior. > >>> > >>> IMHO, I guess DTB=
would be more sensible, > >>> but it is up to Michal. > >> > >> What do you mean by this exactly? > > > > > > As I showed above, > > arch/microblaze/boot/simpleImage.system.unstrip > > is exactly the same as vmlinux. > > > > arch/microblaze/boot/simpleImage.
> > is objcopy'ed binary of vmlinux. > > > > arch/microblaze/boot/simpleImage.
.ub > > is objcopy'ed binary of vmlinux, with u-boot header prepended. > > > > You have already build-rules for them. > > > > > > > > It is true that the stripped image only exist in simpleImage, > > but I think "arch/microblaze/boot/vmlinux.strip" > > is a more sensible name. > > > > > > > > What I want to point out is: > > "Which file should be compiled in", > > is a part of the configuration. > > We generally do not change the final > > target name just for the difference of > > configuration. > > For example, ARM just uses "vmlinux", "Image", "zImage", etc. > > Never duplicate target-specific copies depending on configuration. > > > > > > Why does microblaze create copies for each DT > > instead of using generic image like linux.bin, linux.bin.ub, etc. ? > > > > If using generic image names is acceptable, > > "make simpleImage.
" is just a shorthand of > > "make DTB=
vmlinux linux.bin linux.bin.ub vmlinux.strip" > > > > > > Only the benefit of this approach is, > > you can keep all images for multiple boards at the same time. > > > > $ make ARCH=microblaze simpleImage.board1 > > $ make ARCH=microblaze simpleImage.board2 > > $ make ARCH=microblaze simpleImage.board3 > > yes that's one thing which came to my mind too. > > > > > > > > > > > Since I do not know how many users rely on this usage, > > I said "it is up to you". > > One thing is what it is sensible and the second thing is historical > connection to that names. Because Xilinx was having ppc405 and ppc440 > and microblaze as big endian architecture at that time was taking a lot > of stuff from powerpc that's why we took also that targets just to be > the same in distributions. > PPC was using simpleImage format in the same way that's why we have > adopted that too. > > Personally for me it is not a problem to remove that simpleImage format > but I have no idea how many people rely on that. > > I can't see any problem not to generate/copy simpleImage.
.unstrip > version but I would keep the rest same as before just to make sure that > we are not breaking anybody. OK, let's keep all simpleImage images. BTW, I noticed this series changed the behavior a bit. "make simpleImage.
" will overwrite linux.bin.ub where linux.bin.ub should not contain built-in DT. I will fix it just in case. -- Best Regards Masahiro Yamada