<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>About activating device tree on build OpenWRT with Raspberry pi. <o:p></o:p></p><p class=MsoNormal>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:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-left:36.0pt'><i>Applying patch generic/0002-kernel-fix-build-with-CONFIG_MTD-unset.patch<br>(Stripping trailing CRs from patch; use --binary to disable.)<br>can't find file to patch at input line 21<br>Perhaps you used the wrong -p or --strip option?<br>The text leading up to this was:<br>--------------------------<br>|From f98ce9c7abf1e13443d129aba0e01fe63265445f Mon Sep 17 00:00:00 2001<br>|From: Hauke Mehrtens <<a href="mailto:hauke@hauke-m.de">hauke@hauke-m.de</a>><br>|Date: Sun, 12 Jul 2015 13:39:30 +0200<br>|Subject: [PATCH 2/2] kernel: fix build with CONFIG_MTD unset<br>|<br>|of_get_mac_address_mtd() accesses functions behind CONFIG_MTD without<br>|checking if it is available, deactivate this function if<br>|of_get_mac_address_mtd is not available.<br>|<br>|Signed-off-by: Hauke Mehrtens <<a href="mailto:hauke@hauke-m.de">hauke@hauke-m.de</a>><br>|---<br>| .../patches-3.18/681-NET-add-of_get_mac_address_mtd.patch | 13 +++++++++++--<br>| .../patches-4.0/681-NET-add-of_get_mac_address_mtd.patch | 13 +++++++++++--<br>| .../patches-4.1/681-NET-add-of_get_mac_address_mtd.patch | 13 +++++++++++--<br>| 3 files changed, 33 insertions(+), 6 deletions(-)<br>|<br>|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<br>|index 8ce17fe..2603f11 100644<br>|--- a/target/linux/generic/patches-3.18/681-NET-add-of_get_mac_address_mtd.patch<br>|+++ b/target/linux/generic/patches-3.18/681-NET-add-of_get_mac_address_mtd.patch<br>--------------------------<br>No file to patch. Skipping patch.<br>2 out of 2 hunks ignored<br>(Stripping trailing CRs from patch; use --binary to disable.)<br>can't find file to patch at input line 62<br>Perhaps you used the wrong -p or --strip option?<br>The text leading up to this was:<br>--------------------------<br>|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<br>|index 8ce17fe..2603f11 100644<br>|--- a/target/linux/generic/patches-4.0/681-NET-add-of_get_mac_address_mtd.patch<br>|+++ b/target/linux/generic/patches-4.0/681-NET-add-of_get_mac_address_mtd.patch<br>--------------------------<br>No file to patch. Skipping patch.<br>2 out of 2 hunks ignored<br>(Stripping trailing CRs from patch; use --binary to disable.)<br>can't find file to patch at input line 103<br>Perhaps you used the wrong -p or --strip option?<br>The text leading up to this was:<br>--------------------------<br>|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<br>|index 6542898..ecbe75c 100644<br>|--- a/target/linux/generic/patches-4.1/681-NET-add-of_get_mac_address_mtd.patch<br>|+++ b/target/linux/generic/patches-4.1/681-NET-add-of_get_mac_address_mtd.patch<br>--------------------------<br>No file to patch. Skipping patch.<br>2 out of 2 hunks ignored<br>Patch generic/0002-kernel-fix-build-with-CONFIG_MTD-unset.patch does not apply (enforce with -f)<br>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<br>make[4]: Leaving directory `/home/jernej/openwrt/target/linux/brcm2708'<br>make[3]: *** [compile] Error 2<br>make[3]: Leaving directory `/home/jernej/openwrt/target/linux'<br>make[2]: *** [target/linux/compile] Error 2<br>make[2]: Leaving directory `/home/jernej/openwrt'<br>make[1]: *** [/home/jernej/openwrt/staging_dir/target-arm_arm1176jzf-s+vfp_musl-1.1.10_eabi/stamp/.target_compile] Error 2<br>make[1]: Leaving directory `/home/jernej/openwrt'<br>make: *** [world] Error 2<o:p></o:p></i></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><i><span lang=DE-AT style='font-size:9.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:EN-GB'>With Best Regards, Mit</span></i><span lang=DE-AT style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-GB'> </span><i><span lang=DE-AT style='font-size:9.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:EN-GB'>Freundlichen Grüßen<o:p></o:p></span></i></p><p class=MsoNormal><span lang=DE-AT style='font-size:4.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:EN-GB'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Arial",sans-serif;color:black;mso-fareast-language:EN-GB'>Jernej Izak<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>