New kernel versions

This topic exists to avoid duplicating work to support new kernel versions in LEDE. If for some reason you are working on this, please reply with a link to your work.

Support for Linux 4.11 and 4.12 exists in my staging tree.

Note that this only updates the generic target.

Next LTS Kernel is 4.14 still a long way to go.

@stintel I'm trying to compile your 4.12 staging kernel for bcm53xx, however, I get errors below.

  CC [M]  net/ipv6/ip6_tunnel.o
net/ipv6/ip6_tunnel.c: In function 'ip6_tnl_netlink_parms':
net/ipv6/ip6_tunnel.c:2120:4: error: too few arguments to function 'nla_parse_nested'
    nla_parse_nested(fmrd, IFLA_IPTUN_FMR_MAX,
    ^~~~~~~~~~~~~~~~
In file included from ./include/net/rtnetlink.h:5:0,
                 from ./include/net/sch_generic.h:12,
                 from ./include/linux/filter.h:20,
                 from ./include/net/sock.h:64,
                 from ./include/net/inet_sock.h:27,
                 from ./include/net/icmp.h:23,
                 from net/ipv6/ip6_tunnel.c:50:
./include/net/netlink.h:754:19: note: declared here
 static inline int nla_parse_nested(struct nlattr *tb[], int maxtype,
                   ^~~~~~~~~~~~~~~~
net/ipv6/ip6_tunnel.c: In function 'ip6_tnl_fill_info':
net/ipv6/ip6_tunnel.c:2333:57: error: expected expression before '||' token
      nla_put_u32(skb, IFLA_IPTUN_FWMARK, parm->fwmark)) ||
                                                         ^~
net/ipv6/ip6_tunnel.c:2334:52: error: expected statement before ')' token
      !(fmrs = nla_nest_start(skb, IFLA_IPTUN_FMRS)))
                                                    ^
scripts/Makefile.build:308: recipe for target 'net/ipv6/ip6_tunnel.o' failed
make[7]: *** [net/ipv6/ip6_tunnel.o] Error 1
scripts/Makefile.build:561: recipe for target 'net/ipv6' failed
make[6]: *** [net/ipv6] Error 2

Looks like a problem with target/linux/generic/patches-4.12/666-Add-support-for-MAP-E-FMRs-mesh-mode.patch. Haven't seen this problem myself. You could try fixing the patch yourself, or simply remove that patch for now, until I can look into it.
@npcomplete Should be fixed.

Build for ramips (mt7621):

  • bad: native support of usb and ethernet not working.
  • good: sdhc interface now much stable, don't produce messages "XXX sdc_busy timeout: before CMD<12> ..." when accessing sdhc card.

Ok, I'm repaired USB, adjusted switch driver and repaired watchdog. Basically, mt7621 is working with 4.12.1

@stintel send patches to you?

@stintel Now, I'm seeing errors wrt exfat-nofuse modules. Will post errors later tonight.

Good news, MT7621 should use kernel 4.12 instead of 4.9, kernel 4.9 tf card read sucks, not suggest for a release version firmware.

1 Like

If you want to test - grab sources from here
Based on 4.12.4 kernel, compile & run-time tested on MT7621 (mikrotik RB750Gr3).

1 Like

hi LynxChaus, I download the source ball but comipile failed with: package/Makefile:109: recipe for target 'package/kernel/mac80211/compile' failed
my Profile is MT7621 MQMaker WiTi.

Currently, mac80211 backport not compatible with 4.12.x kernel. Hauke Mehrtens prepared new backport patch but it not sufficient - mac80211 compiled, mt76 driver - is not.

I found missed patch for mt76. Try this version - based on 12.4.8, compile tested.

Hi, @LynxChaus. This version compile ok after remove sqm. But it kernel v12.4.8 have the same problem like v4.9.x with SDHC tf card as extroot I described in Ramips mt7621 mtk-sd: MediaTek MT6575 MSDC Driver time sequential error with kernel 4.9.x

[ 6380.480000] do_page_fault(): sending SIGSEGV to git for invalid read access from 0ff4c000
[ 6380.490000] epc = 0ff4c001 in libgcc_s.so.1[77ed0000+22000]
[ 6380.510000] ra  = 00402e2c in git[400000+118000]

Which card ? Did you try other card?

It not about tf card brand or class, with kernel 4.4.83 or lower, everything work perfect .
After upgrade to kernel 4.9.x or 12.4.8, tf card become bugged with MT7621 SD interface.

What issues did you find in that kernel version?
Your posts are very confusing.

see Ramips mt7621 mtk-sd: MediaTek MT6575 MSDC Driver time sequential error with kernel 4.9.x

Anyone see this error?

CC drivers/net/phy/swconfig.o
drivers/net/phy/swconfig.c:273:8: error: 'GENL_ID_GENERATE' undeclared here (not in a function)
.id = GENL_ID_GENERATE,
^~~~~~~~~~~~~~~~
drivers/net/phy/swconfig.c: In function 'swconfig_parse_ports':
drivers/net/phy/swconfig.c:600:7: error: too few arguments to function 'nla_parse_nested'
if (nla_parse_nested(tb, SWITCH_PORT_ATTR_MAX, nla,
^~~~~~~~~~~~~~~~
In file included from ./include/net/genetlink.h:5:0,
from ./include/linux/switch.h:19,
from drivers/net/phy/swconfig.c:25:
./include/net/netlink.h:754:19: note: declared here
static inline int nla_parse_nested(struct nlattr *tb[], int maxtype,
^~~~~~~~~~~~~~~~
drivers/net/phy/swconfig.c: In function 'swconfig_parse_link':
drivers/net/phy/swconfig.c:622:6: error: too few arguments to function 'nla_parse_nested'
if (nla_parse_nested(tb, SWITCH_LINK_ATTR_MAX, nla, link_policy))
^~~~~~~~~~~~~~~~
In file included from ./include/net/genetlink.h:5:0,
from ./include/linux/switch.h:19,
from drivers/net/phy/swconfig.c:25:
./include/net/netlink.h:754:19: note: declared here
static inline int nla_parse_nested(struct nlattr *tb[], int maxtype,
^~~~~~~~~~~~~~~~
drivers/net/phy/swconfig.c: In function 'swconfig_init':
drivers/net/phy/swconfig.c:1226:9: error: implicit declaration of function 'genl_register_family_with_ops' [-Werror=implicit-function-declaration]
return genl_register_family_with_ops(&switch_fam, swconfig_ops);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:302: recipe for target 'drivers/net/phy/swconfig.o' failed
make[8]: *** [drivers/net/phy/swconfig.o] Error 1

For which arch you try build kernel?