Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1171827pxb; Fri, 6 Nov 2020 02:56:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBL+cWgGe6KEt9AZjCYg8G9tyS5huZyNzvB94Ddzyog+IVBmTF/tNEc/3uK1+oTgLvDP6M X-Received: by 2002:a50:fe98:: with SMTP id d24mr1322931edt.223.1604660209749; Fri, 06 Nov 2020 02:56:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604660209; cv=none; d=google.com; s=arc-20160816; b=uZrdUJOMoH550fsAu616QHtYCRf3KPmryaFvzDydIuooL++ZIOxpFQTs3bMDj9Fofz bVEyHsjCTYxViVVPWuuqsdoBxn7GKel1lZTcySdRucvoWgZTHYc3aQrpcmt2qHx8ETeb WLyMFHL68kd7v4/dc1kL2TSfb/7Bis3qQM1+AihUznyWxoKuYDiijgo1eWTKp2SyqUPq 6wumTBYePZmBtPvFAGvWCU14+WgdQtq9BzL67xe/ZzVfjkFElWirtdrKNzBaojEkeL7B OfSyH9wsRdWNWbL2zByWyUKFt59VGyzC1n1D493Qy/55VzO4d6MD8TrLpx83EOBiaUvb 5+3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Op/DYWlaIqpgGBiYPk/S1B40cHm3pZgUiw4j+TmvlMs=; b=fgJGUnx+mhqRmUkgDNcRzT6v7NsBNiJAvH7dChxoTF+ms1OHLZ8cfMS2F+pkrmYnzy CJO5HFBjYZsGEY5mJvaE2JsJ5uxx/u/Qx2MnIVmF8wogEIcIe9iz2P4/E3L4IEIJ/pnT 6g7PByRLKUOmAY7Za5EadENYB4hoqzFyRpMkHtUo1yMJ+SEwtwv4+cacantO/i1m2Sox w6JTyvrK7AXQt/YeoenZgjlbYQsWdqYVsdS750bTuLJc6F2hFspUAzrkz0YGasW5FCfp X/UqZcnLoXeD9t6F6UxJg2EnjCKYE8s/BzcognZpRizOyL74sGz7wJVC+4iqCWe2WZQP LMBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d17si657662edj.42.2020.11.06.02.56.27; Fri, 06 Nov 2020 02:56:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727207AbgKFKyN (ORCPT + 99 others); Fri, 6 Nov 2020 05:54:13 -0500 Received: from elvis.franken.de ([193.175.24.41]:41174 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726642AbgKFKxz (ORCPT ); Fri, 6 Nov 2020 05:53:55 -0500 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1kazNQ-0000vt-00; Fri, 06 Nov 2020 11:53:52 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 2895BC4DD9; Fri, 6 Nov 2020 11:48:48 +0100 (CET) Date: Fri, 6 Nov 2020 11:48:48 +0100 From: Thomas Bogendoerfer To: Chuanhong Guo Cc: linux-mips@vger.kernel.org, John Thomson , open list Subject: Re: [PATCH] MIPS: zboot: put appended dtb into a section Message-ID: <20201106104848.GA9806@alpha.franken.de> References: <20201026122926.1774569-1-gch981213@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201026122926.1774569-1-gch981213@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 26, 2020 at 08:29:25PM +0800, Chuanhong Guo wrote: > This will make a separated section for dtb appear in ELF, and we can > then use objcopy to patch a dtb into vmlinuz when RAW_APPENDED_DTB > is set in kernel config. > > command to patch a dtb: > objcopy --set-section-flags=.appended_dtb=alloc,contents \ > --update-section=.appended_dtb=.dtb vmlinuz > > Signed-off-by: Chuanhong Guo > --- > Note: > This should supersede this patch on linux-mips: > [2/2] mips: boot compressed: add support for vlinuz ELF DTB [0] > > [0] https://patchwork.kernel.org/project/linux-mips/patch/20201015201100.4130-2-git@johnthomson.fastmail.com.au/ > > arch/mips/boot/compressed/ld.script | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]