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@xxxxxxxxx> > --- > 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@xxxxxxxxxxxxxxxxxxxxxxxxxxx/ > > 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 ]