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

Hauke Mehrtens hauke at hauke-m.de
Sun Apr 24 12:24:59 EDT 2016


On 04/22/2016 08:39 AM, Mathias Kresin wrote:
> Use the kernel with the appended dtb as base, otherwise the kernel will
> panic with "no dtb found".
> 
> 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
> @@ -37,7 +37,7 @@ 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
> 
Thanks for finding this.

I think it should be better to rename this in PatchKernelLzma to the old
name so we are sure the old code still works.

Hauke
_______________________________________________
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