Optimized build for the D-Link DIR-860L

@Bartvz

Amazing work, both 2.4GHz and 5GHz are improved.
I still can't install kmod-fs-ext4 and cryptsetup but i'll find out how:
4.9.58-1-a345f61d6c61923a3dc5d9c031da0c4b is installed, but opkg looks for kernel (= 4.9.58-1-c73fe18acc237b2deea3d69093beba28)

Anyway thanks again!

Edit: did --force-depends , hopefully it works

Edit2: It didn't, i get
[14311.592000] ext4: Unknown symbol posix_acl_chmod (err 0)
Probably the kernel doesn't have support and CONFIG_EXT4_FS_POSIX_ACL CONFIG_FS_POSIX_ACL aren't set.

Edit3: Can't even mount vfat, kmod-fs-vfat installed and module loaded, when i insert a simple 4GB flashdrive i get
[537.921096] usb 1-1: new high-speed USB device number 4 using xhci-mtk
tried with ohci, ehci etc, without luck, can someone confirm this is working or i messed something.

Wow that is an impressive improvement for sure! 5ghz WiFi already was pretty decent. Did your 2.4ghz speeds improve as well?

Do we know why it is that much faster? Some work on the drivers?

Yes, this commit specifically; https://git.lede-project.org/?p=source.git;a=commit;h=fa6fd45613d05da96b6733b15f91e51482378bb0

Router Cpu usage stuck to 100% and i am using 860L as a simple AP, no firewall no DHCP, no adblock. Does anyone else noticed it?

CPU usage is fine on my 860l, check with top which process is eating the CPU.

25% permanent cpu usage on /usr/bin/dropbearkey is it normal? system 1.03 1.0 1.0 permanent too.

Doesn't seem normal. Did you reinstall dropbear like I had to do?

yes same issue after reinstalling dropbear, BUT wihout dropbear was ok for a couple of minutes reached 1.44 and now down to 0.00 probably was luci which remain open, seems ok now! without dropbear! reinstall it to check again?

is anyone able to mount flash drive ? I'm trying with the simplest setup fat32/4GB usb flash however i get

[59672.129862] scsi_mod: Unknown symbol sg_free_table_chained (err 0)
[59672.142603] scsi_mod: Unknown symbol sg_alloc_table_chained (err 0)

when trying to insmod scsi_mod.ko

I've tried whatever i could thinŠŗ of, but seems something is missing from the kernel ?

Have not tested 2.4 GHz but I will do so with the build which is now building. It contains a newer mt76x2 driver which should fix some issues with HT20.
Edit: Letting iperf3 run for 60 seconds on r5442 gives me the following results:

2.4 GHz band connecting at 144 Mbps:
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-60.02 sec 526 MBytes 73.5 Mbits/sec sender
[ 4] 0.00-60.02 sec 526 MBytes 73.5 Mbits/sec receiver

5 GHz band connecting at 866.7 Mbps:
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-60.00 sec 411 MBytes 57.4 Mbits/sec sender
[ 4] 0.00-60.00 sec 411 MBytes 57.4 Mbits/sec receiver

My builds did not come with block devices support. In the build which is now compiling I have enabled it and support for vfat and ext4 file systems. Two caveats:
1: I do not use USB storage so I have not tested if it works.
2: It might cause your WiFi throughput to decrease due to electrical interference.

@rajsris and everyone else reporting dropbear not working/having ssh problems, redid my build environment which hopefully will solve not working.
Edit: No dice, still not able to establish an ssh connection out of the box. However, now there are at least some dropbear lines in the system log. Reinstalling dropbear should make it work again.

That's because gcc7.x bugs dropbear on mips when -Os cflag is used. The workaround is either to compile with -O2 or remove the patch that relates to Os from gcc patches folder

1 Like

Lots more MT76 changes!

https://github.com/lede-project/source/commit/e966ed236f12b55ca98fa8c86a2e6c56ebd61f90
https://github.com/lede-project/source/commit/04127f0fec955cd4f298a7a9206c1c9cc8b2b362

@Bartvz

I tested mounting and it works (had some issues with samba but got them resolved). Initial test were ok - got around 25+ mb/sec from a hdd, but it was with usb 2.0 enclosure (waiting for for 3.0 with UASP) .

Other problem i have is mounting luks encrypted partitions, can't seem to load the dm module. Will post more details when i have such.

Anyway thanks for your hardwork, do you have a paypal so i can send you a beer?

Thank you! Sometimes it's something simple!

Lots of good ones as well. OP updated with a new build containing those!

Disk encryption needs a couple of kmod's to work. I don't use it myself but you need to install the following packages:

kmod-crypto-xts kmod-crypto-iv kmod-crypto-misc kmod-crypto-user cryptsetup

Let me know how it goes!
You can always buy me a coffee :slight_smile:

@Bartvz

A coffee is on your way :slight_smile:

I have all of the crypto packages installed

root@DARK:/lib/modules/4.9.58# cryptsetup luksOpen /dev/sda3 storage
Cannot initialize device-mapper. Is dm_mod kernel module loaded?    
root@DARK:/lib/modules/4.9.58# insmod dm-mod.ko (tryied with dm-crypt as well)
failed to insert dm-mod.ko
[78208.065346] dm_crypt: Unknown symbol dm_put_device (err 0)
[78208.076428] dm_crypt: Unknown symbol dm_accept_partial_bio (err 0)
[78208.088854] dm_crypt: Unknown symbol dm_shift_arg (err 0)
[78208.099706] dm_crypt: Unknown symbol dm_unregister_target (err 0)
[78208.112131] dm_crypt: Unknown symbol dm_read_arg_group (err 0)
[78208.123881] dm_crypt: Unknown symbol dm_register_target (err 0)
[78208.135766] dm_crypt: Unknown symbol dm_table_get_mode (err 0)
[78208.147463] dm_crypt: Unknown symbol dm_get_device (err 0)
[78215.949897] dm_mod: Unknown symbol dm_kobject_release (err 0)

If i have time will test with the new release to see if the new kernel is ok with those modules as well.
Eventually when the latest mt76 updates go into a stable build I'll probably switch to that so i can install/update packages, but i'm not that patient
Do i have to reconfigure my router each time i update (because this is what i do, when removing the checkbox keep settings)?

The mt76 updates have been added to the 17.01 branch. So you could compile from that branch if you'd like :slight_smile:

@Mushoz

I can probably compile the branch but that will result to having a snapshot (correct me if i'm wrong) so I'll still get errors/warnings when installing kernel modules.

I'm not sure on that, haven't tried it myself. But if you are compiling yourself anyways, isn't it easier to simply include the kernel modules that you would like to use?

I can confirm that the latest release did not break SSH and I was able to successfully get in without reinstalling dropbear.