From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: Chuanhong Guo <gch981213@gmail.com>
Cc: linux-mips@vger.kernel.org,
John Thomson <git@johnthomson.fastmail.com.au>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] MIPS: zboot: put appended dtb into a section
Date: Fri, 6 Nov 2020 11:48:48 +0100 [thread overview]
Message-ID: <20201106104848.GA9806@alpha.franken.de> (raw)
In-Reply-To: <20201026122926.1774569-1-gch981213@gmail.com>
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=<target>.dtb vmlinuz
>
> Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
> ---
> 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 ]
prev parent reply other threads:[~2020-11-06 10:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-26 12:29 Chuanhong Guo
2020-10-26 13:11 ` John Thomson
2020-11-06 10:48 ` Thomas Bogendoerfer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201106104848.GA9806@alpha.franken.de \
--to=tsbogend@alpha.franken.de \
--cc=gch981213@gmail.com \
--cc=git@johnthomson.fastmail.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®