Xiaomi WiFi Router 3G

I get this dmesg log:
any idea? network seams to be ok.

[   41.426794] br-lan: port 3(wlan1) entered blocking state
[   41.432151] br-lan: port 3(wlan1) entered forwarding state
[  804.252831] ------------[ cut here ]------------
[  804.257491] WARNING: CPU: 2 PID: 0 at net/core/skbuff.c:4347 skb_try_coalesce+0x228/0x340
[  804.265656] Modules linked in: pppoe ppp_async l2tp_ppp pptp pppox ppp_mppe ppp_generic nf_nat_pptp nf_conntrack_pptp mt76x2e mt7603e mt76 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE ebtable_nat ebtable_filter ebtable_broute cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_recent xt_quota xt_pkttype xt_physdev xt_owner xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_iprange xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_addrtype xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_IPMARK xt_HL xt_DSCP xt_CLASSIFY usblp uas ts_fsm ts_bm slhc nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_rtsp nf_nat_redirect nf_nat_proto_gre nf_nat_masquerade_ipv4 nf_nat_irc nf_conntrack_ipv4 nf_nat_ipv4 nf_nat_h323 nf_nat_ftp nf_nat_amanda
[  804.336460]  nf_log_ipv4 nf_defrag_ipv4 nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtsp nf_conntrack_rtcache nf_conntrack_proto_gre nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast ts_kmp nf_conntrack_amanda macvlan iptable_mangle iptable_filter ipt_ECN ip_tables ebtables ebt_vlan ebt_stp ebt_snat ebt_redirect ebt_pkttype ebt_mark_m ebt_mark ebt_limit ebt_ip6 ebt_ip ebt_dnat ebt_arpreply ebt_arp ebt_among ebt_802_3 crc_itu_t crc_ccitt compat_xtables compat br_netfilter natcap fuse sch_cake act_connmark act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_tbf sch_htb sch_hfsc sch_ingress ledtrig_usbport xt_set ip_set_list_set ip_set_hash_netiface ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6t_NPT ip6t_MASQUERADE nf_nat_masquerade_ipv6 ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 nf_nat nf_conntrack ip6t_rt ip6t_frag ip6t_hbh ip6t_eui64 ip6t_mh ip6t_ah ip6t_ipv6header ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables msdos ip6_gre ip_gre gre ifb sit l2tp_netlink l2tp_core udp_tunnel ip6_udp_tunnel ip6_tunnel tunnel6 tunnel4 ip_tunnel tun vfat fat autofs4 nls_utf8 nls_iso8859_1 nls_cp437 sha256_generic sha1_generic seqiv jitterentropy_rng drbg hmac ghash_generic gf128mul gcm ecb ctr cmac usb_storage leds_gpio xhci_mtk xhci_plat_hcd xhci_pci xhci_hcd ohci_platform ohci_hcd softdog ehci_platform sd_mod scsi_mod ehci_hcd gpio_button_hotplug ext4 jbd2 mbcache exfat usbcore nls_base usb_common crc32c_generic
[  804.492874] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 4.9.72 #0
[  804.498763] Stack : 00000000 00000000 80537c0a 00000033 803e8a14 00000000 00000000 80530000
[  804.507110]         8fc543bc 804c9f07 80461f50 00000002 00000000 80533824 8fc1dd2f 804e7840
[  804.515456]         00000006 8006b154 00000001 80530000 804d0264 804d0268 80466f34 8fc1dbd4
[  804.523811]         00000003 800a78d8 8fc1dd2f 804e7840 00000006 00000124 8fd7f000 00c1dbd4
[  804.532158]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  804.540500]         ...
[  804.542938] Call Trace:
[  804.545401] [<8000f5f8>] show_stack+0x70/0x8c
[  804.549751] [<801da1f4>] dump_stack+0x94/0xd0
[  804.554094] [<8002acf8>] __warn+0x110/0x118
[  804.558257] [<8002ad94>] warn_slowpath_null+0x1c/0x28
[  804.563295] [<802cb91c>] skb_try_coalesce+0x228/0x340
[  804.568329] [<8032f4f4>] tcp_try_coalesce+0x70/0xd4
[  804.573229] ---[ end trace 9828d4540f77a2c7 ]---
[  806.081050] device wlan0 left promiscuous mode
[  806.085861] br-lan: port 2(wlan0) entered disabled state
[  807.066286] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  807.078161] br-lan: port 2(wlan0) entered blocking state
[  807.083534] br-lan: port 2(wlan0) entered disabled state

Happened to me sometimes as well, doesn't seem to be smth severe. At least the devices keeps functioning without side affects.

I want to test this driver for stability, but i can't compile LEDE with 4.4 kernel...

Compilation fails at ".../dtc/dtc No such file or directory". :frowning:

I have no such a problem with 4.9.

Has somebody tried samba on this router? I have bad performance especially write speeds are slow (about 20MB/s) over GbE. Reads are normal (about 50MB/s). CPU isn't overloaded, it is about 20% load. Also I cannot manage to use my JMS567 USB3.0 UAS SATA adapter. It is found by lsusb, but not in /dev/sda1. So I must use another USB 3.0 SATA adapter. What do you recommend to do?

There are 2 cores with 4 threads, so when it says 25% you're maxing one core. I think that's the limiting factor.

Format to ext4. Must be Read 80/ Write 30MB/s

Do you have any special configuration for mount or samba? Which protocol will be faster? Maybe ftp or a protocol that uses multicore

Can someone please help me. I can't manage to mount a fat32 usb stick. Where can i find a guide?

All you need: https://wiki.openwrt.org/doc/howto/storage

I see that now on GitHub there are two branches :smiley:
Do I have to change the feed
src-git mtk https://github.com/Nossiac/mtk-openwrt-feeds;lede-17.01
to
src-git mtk https://github.com/Nossiac/mtk-openwrt-feeds;master ?

Thanks

i can't see the device under /dev/sdaX, even though the usb is plugged in and recognised

usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk

I had the same problem. Do you use JMS567 or any UAS controller? Because I have to use another controller to work.

where can i check?

you must install usbutils with command opkg update & opkg install usbutils. Then you can check with command lsusb. You will see your devices.

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0781:5583 SanDisk Corp. Ultra Fit
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

this is what i get, but if I run ls in /dev, i can't see anything like sda0 or something.:scream: please help i am still a noob with lede

I cannot find this in LEDE trunk. Do you happen to have a link to this particular commit?

Did you install all packages? Little tip: https://medium.com/openwrt-iot/lede-openwrt-setting-up-usb-storage-support-adec9c0d484e

https://lede-project.org/docs/user-guide/usb-drives
https://lede-project.org/docs/user-guide/usb-drives-quickstart

Still it recognise the usb stick but i don't see it under /dev/sd*

I have installed the pakages with the--force-depends option, because they required a newer version of the kernel. Maybe that is the problem?

--edit
thank you all guys, solved by updating the kernel

is it possible to flash original firmware or padavan with this method ? I have no backup...