New kernel versions

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?

bcm53xx. Should have mentioned that before.

This tree not contain adopted patches for bcm53xx. If you want build vanilla 4.12 - move two patches
0000-revert-mtd-nand-Remove-unused-chip--write_page-hook.patch and 0001-fix-net-phy-swconfig-for-4.12.patch from target/linux/ramips/patches-4.12/ to target/linux/generic/patches-4.12/ and rebuild kernel.

will give it a shot

Those patches did get rid of the compilation errors. However, I'm seeing kernel panics. I'll just wait until someone more capable than me tries this. Thanks!!

Finally rebased this work after https://git.lede-project.org/74d00a8c and renamed the branch from linux-4.12 to kernel. Link updated in initial post.