[OpenWrt-Devel] Build errors when activating the Device Tree flag for Raspberry Pi

John Crispin blogic at openwrt.org
Tue Jul 14 04:42:52 EDT 2015


current HEAD seems to build fine for me. could you retry with the patch
i merged today ?



On 14/07/2015 10:10, John Crispin wrote:
> ok, let me have a look, my testing showed that it worked, maybe i tested
> the wrong tree...
> 
> On 14/07/2015 10:08, Jernej Izak wrote:
>>  
>>
>> Hi,
>>
>>  
>>
>> About activating device tree on build OpenWRT with Raspberry pi.
>>
>> We tried to add patch
>> “0002-kernel-fix-build-with-CONFIG_MTD-unset.patch” to
>> “/target/linux/generic/patches-3.18” in second try to
>> “/target/linux/brcm2708/patches-3.18 but we still got below error:
>>
>>  
>>
>> /Applying patch generic/0002-kernel-fix-build-with-CONFIG_MTD-unset.patch
>> (Stripping trailing CRs from patch; use --binary to disable.)
>> can't find file to patch at input line 21
>> Perhaps you used the wrong -p or --strip option?
>> The text leading up to this was:
>> --------------------------
>> |From f98ce9c7abf1e13443d129aba0e01fe63265445f Mon Sep 17 00:00:00 2001
>> |From: Hauke Mehrtens <hauke at hauke-m.de <mailto:hauke at hauke-m.de>>
>> |Date: Sun, 12 Jul 2015 13:39:30 +0200
>> |Subject: [PATCH 2/2] kernel: fix build with CONFIG_MTD unset
>> |
>> |of_get_mac_address_mtd() accesses functions behind CONFIG_MTD without
>> |checking if it is available, deactivate this function if
>> |of_get_mac_address_mtd is not available.
>> |
>> |Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de <mailto:hauke at hauke-m.de>>
>> |---
>> | .../patches-3.18/681-NET-add-of_get_mac_address_mtd.patch   | 13
>> +++++++++++--
>> | .../patches-4.0/681-NET-add-of_get_mac_address_mtd.patch    | 13
>> +++++++++++--
>> | .../patches-4.1/681-NET-add-of_get_mac_address_mtd.patch    | 13
>> +++++++++++--
>> | 3 files changed, 33 insertions(+), 6 deletions(-)
>> |
>> |diff --git
>> a/target/linux/generic/patches-3.18/681-NET-add-of_get_mac_address_mtd.patch
>> b/target/linux/generic/patches-3.18/681-NET-add-of_get_mac_address_mtd.patch
>> |index 8ce17fe..2603f11 100644
>> |---
>> a/target/linux/generic/patches-3.18/681-NET-add-of_get_mac_address_mtd.patch
>> |+++
>> b/target/linux/generic/patches-3.18/681-NET-add-of_get_mac_address_mtd.patch
>> --------------------------
>> No file to patch.  Skipping patch.
>> 2 out of 2 hunks ignored
>> (Stripping trailing CRs from patch; use --binary to disable.)
>> can't find file to patch at input line 62
>> Perhaps you used the wrong -p or --strip option?
>> The text leading up to this was:
>> --------------------------
>> |diff --git
>> a/target/linux/generic/patches-4.0/681-NET-add-of_get_mac_address_mtd.patch
>> b/target/linux/generic/patches-4.0/681-NET-add-of_get_mac_address_mtd.patch
>> |index 8ce17fe..2603f11 100644
>> |---
>> a/target/linux/generic/patches-4.0/681-NET-add-of_get_mac_address_mtd.patch
>> |+++
>> b/target/linux/generic/patches-4.0/681-NET-add-of_get_mac_address_mtd.patch
>> --------------------------
>> No file to patch.  Skipping patch.
>> 2 out of 2 hunks ignored
>> (Stripping trailing CRs from patch; use --binary to disable.)
>> can't find file to patch at input line 103
>> Perhaps you used the wrong -p or --strip option?
>> The text leading up to this was:
>> --------------------------
>> |diff --git
>> a/target/linux/generic/patches-4.1/681-NET-add-of_get_mac_address_mtd.patch
>> b/target/linux/generic/patches-4.1/681-NET-add-of_get_mac_address_mtd.patch
>> |index 6542898..ecbe75c 100644
>> |---
>> a/target/linux/generic/patches-4.1/681-NET-add-of_get_mac_address_mtd.patch
>> |+++
>> b/target/linux/generic/patches-4.1/681-NET-add-of_get_mac_address_mtd.patch
>> --------------------------
>> No file to patch.  Skipping patch.
>> 2 out of 2 hunks ignored
>> Patch generic/0002-kernel-fix-build-with-CONFIG_MTD-unset.patch does not
>> apply (enforce with -f)
>> make[4]: ***
>> [/home/jernej/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_musl-1.1.10_eabi/linux-brcm2708_bcm2708/linux-3.18.18/.quilt_checked]
>> Error 1
>> make[4]: Leaving directory `/home/jernej/openwrt/target/linux/brcm2708'
>> make[3]: *** [compile] Error 2
>> make[3]: Leaving directory `/home/jernej/openwrt/target/linux'
>> make[2]: *** [target/linux/compile] Error 2
>> make[2]: Leaving directory `/home/jernej/openwrt'
>> make[1]: ***
>> [/home/jernej/openwrt/staging_dir/target-arm_arm1176jzf-s+vfp_musl-1.1.10_eabi/stamp/.target_compile]
>> Error 2
>> make[1]: Leaving directory `/home/jernej/openwrt'
>> make: *** [world] Error 2/
>>
>>  
>>
>>  
>>
>> /With Best Regards, Mit//Freundlichen Grüßen/
>>
>>  
>>
>> Jernej Izak
>>
>>  
>>
>>
>>
>> _______________________________________________
>> openwrt-devel mailing list
>> openwrt-devel at lists.openwrt.org
>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> 
_______________________________________________
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