CreatorDev / openwrt-old

GNU General Public License v2.0
12 stars 16 forks source link

402-ath_regd_optional.patch no longer compatible with kernel since 4.7 #146

Open lockheed opened 8 years ago

lockheed commented 8 years ago

The patch worked fine in 4.6 linux kernel, but with 4.7 it stops compilation process with the following:

Hunk #1 succeeded at 39 (offset 2 lines).
patching file drivers/net/wireless/ath/regd.c
Hunk #1 FAILED at 341.
Hunk #2 FAILED at 374.
Hunk #3 FAILED at 402.
3 out of 4 hunks FAILED -- saving rejects to file drivers/net/wireless/ath/regd.c.rej
patching file drivers/net/wireless/ath/Kconfig
Hunk #1 succeeded at 22 (offset -1 lines).
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:
--------------------------
|--- a/.local-symbols
|+++ b/.local-symbols
--------------------------
File to patch: 
abhijit-mahajani-imgtec commented 8 years ago

Hello @lockheed , can you please expand more on the issue ? how do you reproduce it? which version you are using? because currently MIPS pistachio is supporting linux 4.4.7 which is there on default branch. Are you building for Ci40 using https://github.com/CreatorDev/openwrt build instructions or trying a new kernel with it?

lockheed commented 8 years ago

The issue can be reproduced simply by trying to patch any kernel above 4.6 branch (4.8 is also affected just as 4.7 is). I am using this patch to patch a x64 kernel on regular server/desktop linux, not OpenWRT.

I understand your focus here is OpenWRT and 4.7+ kernels are not in it yet, but since the patch was compatible with general linux kernel before, perhaps you could update it for newer kernels, or at least give me some pointers on how can I modify the patch myself?