[LEDE-DEV] [PATCH v2 2/3] ipq806x: Add support for new device: tew827dru

Mathias Kresin dev at kresin.me
Sun Sep 11 00:02:01 PDT 2016


10.09.2016 03:35, J Mo:
> diff --git a/target/linux/ipq806x/patches-4.4/800-devicetree.patch b/target/linux/ipq806x/patches-4.4/800-devicetree.patch
> index 85f2534..ae174fd 100644
> --- a/target/linux/ipq806x/patches-4.4/800-devicetree.patch
> +++ b/target/linux/ipq806x/patches-4.4/800-devicetree.patch
> @@ -12,7 +12,7 @@ Signed-off-by: Jonas Gorski <jogo at openwrt.org>
>
>  --- a/arch/arm/boot/dts/Makefile
>  +++ b/arch/arm/boot/dts/Makefile
> -@@ -506,7 +506,13 @@ dtb-$(CONFIG_ARCH_QCOM) += \
> +@@ -506,7 +506,14 @@ dtb-$(CONFIG_ARCH_QCOM) += \
>   	qcom-apq8084-ifc6540.dtb \
>   	qcom-apq8084-mtp.dtb \
>   	qcom-ipq8064-ap148.dtb \
> @@ -23,6 +23,7 @@ Signed-off-by: Jonas Gorski <jogo at openwrt.org>
>  +	qcom-ipq8064-r7500.dtb \
>  +	qcom-ipq8064-r7500v2.dtb \
>  +	qcom-ipq8065-r7800.dtb \
> ++	qcom-ipq8064-tew827dru.dtb \
>   	qcom-msm8660-surf.dtb \
>   	qcom-msm8960-cdp.dtb \
>   	qcom-msm8974-sony-xperia-honami.dtb
>

After your change:

Applying patch platform/800-devicetree.patch
patching file arch/arm/boot/dts/Makefile
patch: **** malformed patch at line 29: qcom-msm8974-sony-xperia-honami.dtb

If you edit the patch by hand, you should adjust the patch header as well:

-@@ -506,7 +506,13 @@ dtb-$(CONFIG_ARCH_QCOM) += \
+@@ -506,7 +506,14 @@ dtb-$(CONFIG_ARCH_QCOM) += \

But I still get a build error using the patches from patchwork:

bash: /data/build/lede/scripts/its-maker.sh: Permission denied
Makefile:223: recipe for target 
'/data/build/lede/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/tmp/lede-ipq806x-TEW827DRU-squashfs-factory.bin' 
failed

You have a few trailing whitespace errors in your patches. Please use 
./scripts/checkpatch.pl on your patches and fix at least the trailing 
whitespace errors!



More information about the Lede-dev mailing list