<p dir="ltr"><br>
On Jun 8, 2015 6:41 PM, "Baptiste Clenet" <<a href="mailto:bapclenet@gmail.com">bapclenet@gmail.com</a>> wrote:<br>
><br>
> 2015-06-08 14:46 GMT+02:00 Baptiste Clenet <<a href="mailto:bapclenet@gmail.com">bapclenet@gmail.com</a>>:<br>
> > 2015-06-08 14:20 GMT+02:00 Varka Bhadram <<a href="mailto:varkabhadram@gmail.com">varkabhadram@gmail.com</a>>:<br>
> >> On 06/08/2015 05:48 PM, Baptiste Clenet wrote:<br>
> >>><br>
> >>> 2015-06-08 14:10 GMT+02:00 Varka Bhadram <<a href="mailto:varkabhadram@gmail.com">varkabhadram@gmail.com</a>>:<br>
> >>>><br>
> >>>> On 06/08/2015 05:27 PM, Baptiste Clenet wrote:<br>
> >>>>><br>
> >>>>> 2015-06-08 13:49 GMT+02:00 Baptiste Clenet <<a href="mailto:bapclenet@gmail.com">bapclenet@gmail.com</a>>:<br>
> >>>>>><br>
> >>>>>> 2015-06-08 10:53 GMT+02:00 Varka Bhadram <<a href="mailto:varkabhadram@gmail.com">varkabhadram@gmail.com</a>>:<br>
> >>>>>>><br>
> >>>>>>> On 06/08/2015 01:36 PM, Baptiste Clenet wrote:<br>
> >>>>>>><br>
> >>>>>>>>>> I've edited variable KERNEL_PATCHVER:=3.18 to<br>
> >>>>>>>>>> KERNEL_PATCHVER:=4.0.4<br>
> >>>>>>>>>> in target/Linux/ramips/Makefile in order to get Linux 4.0.4<br>
> >>>>>>>>>> installed<br>
> >>>>>>>>><br>
> >>>>>>>>><br>
> >>>>>>>>> Also you need to specify the configuration file for 4.0.4 kernel.<br>
> >>>>>>>>><br>
> >>>>>>>>> just copy the file target/linux/ramips/mt7628/config-3.18 as<br>
> >>>>>>>>> target/linux/ramips/mt7628/config-4.0<br>
> >>>>>>>>><br>
> >>>>>>>>> I hope it will resolve this error.<br>
> >>>>>>>>><br>
> >>>>>>>>> --<br>
> >>>>>>>>> Varka Bhadram<br>
> >>>>>>>>><br>
> >>>>>>>> Thanks Varka, I copied the files, I'm trying to make now. On question<br>
> >>>>>>>> came up, what about patches? There are many patches for Linux 3.18,<br>
> >>>>>>>> is<br>
> >>>>>>>> there any for Linux 4.0? target/linux/ramips/mt7628 only contains a<br>
> >>>>>>>> folder for 3.18 patches.<br>
> >>>>>>><br>
> >>>>>>><br>
> >>>>>>> There may be so-many patches merged into 4.0 from patches-3.18<br>
> >>>>>>> directory..?<br>
> >>>>>>><br>
> >>>>>>> I just created a directory with the name patches-4.0 under<br>
> >>>>>>> target/linux/ramips/ .<br>
> >>>>>>><br>
> >>>>>>> I think its a bad solution. But the build was successful and able<br>
> >>>>>>> generate<br>
> >>>>>>> the<br>
> >>>>>>> binaries in bin/ramips directory. I don't know whether these binaries<br>
> >>>>>>> working<br>
> >>>>>>> or not. I don't have hardware to test these binaries.<br>
> >>>>><br>
> >>>>> Why is it a bad solution?<br>
> >>>>><br>
> >>>>>>> I only copied one patch from patches-3.18 to 4.0 to fix one build<br>
> >>>>>>> error.<br>
> >>>>>>> i.e., 0103-MIPS-OWRTDTB.patch<br>
> >>>>>>><br>
><br>
> "/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/MT7628.dtb<br>
> DTB marker not found!"<br>
> Was it the error?<br>
><br>
> I added 'trunk/target/linux/ramips/patches-4.0/0103-MIPS-OWRTDTB.patch'<br>
> but it didn't solve the problem. Do I need to tell OPENWRT to use<br>
> patches-4.0?<br>
><br>
Try <br>
make target/linux/{clean,prepare} V=s<br>
make</p>
<p dir="ltr">> Baptiste<br>
><br>
> >>>>>>> Hope it helps. Its just a shoot in the dark for your problem.<br>
> >>>>>>><br>
> >>>>>>> Test it and update the results.<br>
> >>>>>>><br>
> >>>>>>> Thanks<br>
> >>>>>>><br>
> >>>>>>> --<br>
> >>>>>>> Varka Bhadram<br>
> >>>>>>><br>
> >>>>>> Without adding the patch 0103-MIPS-OWRTDTB.patch, I got an error:<br>
> >>>>>><br>
> >>>>>> WARNING: kmod-6lowpan-iphc is not available in the kernel config -<br>
> >>>>>> generating empty package<br>
> >>>>>><br>
> >>>>>> ...<br>
> >>>>>><br>
> >>>>>> ERROR: module<br>
> >>>>>><br>
> >>>>>> '/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/net/bluetooth/rfcomm/rfcomm.ko'<br>
> >>>>>> is missing.<br>
> >>>>>><br>
> >>>>>> This is about a package I added in menuconfig but I need them. Those<br>
> >>>>>> package worked well while compiling with Linux 3.18. Any idea?<br>
> >>>><br>
> >>>><br>
> >>>> What package did you add..?<br>
> >>><br>
> >>> I added :<br>
> >>> - kmod-bluetooth<br>
> >>> - kmod-bluetooth_6lowpan<br>
> >>> - kmod-6lowpan<br>
> >>> - kmod-ieee802154<br>
> >>> - kmod-ieee802154-6lowpan<br>
> >>> - kmod-ieee802154-drivers<br>
> >>> - kmod-mac802154<br>
> >>> - kmod-wpan-at86rf230<br>
> >>> - iw<br>
> >>> - wpan-tools<br>
> >><br>
> >><br>
> >> These are already came into OpenWrt with [1].<br>
> >><br>
> >> [1]:<a href="https://lists.openwrt.org/pipermail/openwrt-devel/2015-April/032515.html">https://lists.openwrt.org/pipermail/openwrt-devel/2015-April/032515.html</a><br>
> >><br>
> >> --<br>
> >> Varka Bhadram<br>
> >><br>
> ><br>
> > Yes, I saw, I meant by added "set in menuconfig".<br>
> ><br>
> > You meant that with or without those module, it should work?<br>
> ><br>
> > Baptiste<br>
</p>