Re: [PATCH] MIPS: zboot: put appended dtb into a section

2020-11-06 Thread Thomas Bogendoerfer
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_

Re: [PATCH] MIPS: zboot: put appended dtb into a section

2020-10-26 Thread John Thomson
On Mon, 26 Oct 2020, at 12:29, 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. Thank you Chuanhong Guo, this worked for me. I have successfully network boot

[PATCH] MIPS: zboot: put appended dtb into a section

2020-10-26 Thread Chuanhong Guo
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 S