[OpenWrt-Devel] [PATCH] lantiq: fix brnImage build

Oswald Buddenhagen oswald.buddenhagen at gmx.de
Sat Apr 23 05:26:56 EDT 2016


Mathias Kresin <openwrt <at> kresin.me> writes:

> Use the kernel with the appended dtb as base, otherwise the kernel will
> panic with "no dtb found".
> 
indeed. confirmed to work now.

(and i'll freely admit that i failed to figure out how that appended image
ends up in the symbols __dtb_start/__dtb_end (the latter in particular) ...
:})

> Signed-off-by: Mathias Kresin <openwrt <at> kresin.me>
> ---
>  target/linux/lantiq/image/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/target/linux/lantiq/image/Makefile
b/target/linux/lantiq/image/Makefile
> index c3cb48a..e63c134 100644
> --- a/target/linux/lantiq/image/Makefile
> +++ b/target/linux/lantiq/image/Makefile
>  <at>  <at>  -37,7 +37,7  <at>  <at>  define PatchKernelLzma
>  endef
> 
>  define MkBrnImage
> -	mkbrncmdline -i $(KDIR)/vmlinux-$(5) -o $(KDIR)/vmlinux-$(5)-brn
BRN-BOOT $(7)
> +	mkbrncmdline -i $(KDIR)/vmlinux-$(5).tmp -o $(KDIR)/vmlinux-$(5)-brn
BRN-BOOT $(7)
>  	$(call CompressLzma,$(KDIR)/vmlinux-$(5)-brn,$(KDIR)/vmlinux-$(5)-brn.lzma)
>  	mkbrnimg -s $(1) -m $(2) -p $(3) -o $(4) $(KDIR)/vmlinux-$(5)-brn.lzma
$(KDIR)/root.$(6)
>  endef
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list