[OpenWrt-Devel] Linux 4.x

Baptiste Clenet bapclenet at gmail.com
Mon Jun 8 07:49:58 EDT 2015


2015-06-08 10:53 GMT+02:00 Varka Bhadram <varkabhadram at gmail.com>:
> On 06/08/2015 01:36 PM, Baptiste Clenet wrote:
>
>>>>
>>>> I've edited variable KERNEL_PATCHVER:=3.18 to KERNEL_PATCHVER:=4.0.4
>>>> in target/Linux/ramips/Makefile in order to get Linux 4.0.4 installed
>>>
>>>
>>> Also you need to specify the configuration file for 4.0.4 kernel.
>>>
>>> just copy the file target/linux/ramips/mt7628/config-3.18 as
>>> target/linux/ramips/mt7628/config-4.0
>>>
>>> I hope it will resolve this error.
>>>
>>> --
>>> Varka Bhadram
>>>
>>
>> Thanks Varka, I copied the files, I'm trying to make now. On question
>> came up, what about patches? There are many patches for Linux 3.18, is
>> there any for Linux 4.0? target/linux/ramips/mt7628 only contains a
>> folder for 3.18 patches.
>
>
> There may be so-many patches merged into 4.0 from patches-3.18 directory..?
>
> I just created a directory with the name patches-4.0 under
> target/linux/ramips/ .
>
> I think its a bad solution. But the build was successful and able generate
> the
> binaries in bin/ramips directory. I don't know whether these binaries
> working
> or not. I don't have hardware to test these binaries.
>
> I only copied one patch from patches-3.18 to 4.0 to fix one build error.
> i.e., 0103-MIPS-OWRTDTB.patch
>
> Hope it helps. Its just a shoot in the dark for your problem.
>
> Test it and update the results.
>
> Thanks
>
> --
> Varka Bhadram
>

Without adding the patch 0103-MIPS-OWRTDTB.patch, I got an error:

WARNING: kmod-6lowpan-iphc is not available in the kernel config -
generating empty package

...

ERROR: module '/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/net/bluetooth/rfcomm/rfcomm.ko'
is missing.

This is about a package I added in menuconfig but I need them. Those
package worked well while compiling with Linux 3.18. Any idea?

Varka, which configuration did you use? Only the minimal? (I mean set
Target and Subtarget in menuconfig)

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