Linksys WRT3200ACM help bug

Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.)
Goto page 1, 2  Next
Author Message
MyWay
DD-WRT Novice


Joined: 16 Apr 2020
Posts: 14

PostPosted: Thu Apr 16, 2020 8:49    Post subject: Linksys WRT3200ACM help bug Reply with quote
Hello,
I have enabled USB Tether following the guide (https://wiki.dd-wrt.com/wiki/index.php/Cellular_Phone/USB_Modem_as_WAN_connection ) on the wiki and it almost works. I'm having two issues and I don't know if they are related:
1. When I boot the router, even if I set the commands on startup it doesn't work and I have to manually ssh inside it and run commands manually)
2. Randomly it doesn't work anymore, last time it happenede I watched at logs and got this:
Code:

Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.081186] ------------[ cut here ]------------
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.085838] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:323 dev_watchdog+0x170/0x24c
Apr 16 10:32:29 DD-WRT kern.info kernel: [ 2020.094144] NETDEV WATCHDOG: usb0 (rndis_host): transmit queue 0 timed out
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.101048] Modules linked in: nf_nat_pptp nf_conntrack_pptp nf_nat_proto_gre nf_conntrack_proto_gre rndis_host cdc_ether usbnet ledtrig_usbport vhci_hcd usbip_host usbip_core xhci_plat_hcd xhci_pci xhci_hcd ehci_pci ehci_pla
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.150861] CPU: 0 PID: 0 Comm: swapper/0 Tainted: P 4.9.218 #1728
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.158375] Hardware name: Marvell Armada 380/385 (Device Tree)
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.164331] [] (unwind_backtrace) from [] (show_stack+0x10/0x14)
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.172112] [] (show_stack) from [] (dump_stack+0x90/0xa4)
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.179369] [] (dump_stack) from [] (__warn+0xe4/0x100)
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.186364] [] (__warn) from [] (warn_slowpath_fmt+0x38/0x48)
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.193881] [] (warn_slowpath_fmt) from [] (dev_watchdog+0x170/0x24c)
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.202098] [] (dev_watchdog) from [] (run_timer_softirq+0x498/0xa9c)
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.210313] [] (run_timer_softirq) from [] (__do_softirq+0xc4/0x268)
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.218441] [] (__do_softirq) from [] (irq_exit+0xd4/0x168)
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.225783] [] (irq_exit) from [] (__handle_domain_irq+0xa4/0xb4)
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.233649] [] (__handle_domain_irq) from [] (gic_handle_irq+0x48/0x74)
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.242039] [] (gic_handle_irq) from [] (__irq_svc+0x58/0x74)
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.249553] Exception stack(0xc0a01f60 to 0xc0a01fa8)
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.254627] 1f60: 00000000 0085cac6 dfbd22b4 c0119fa0 00000000 c0a12939 c0a0447c c0a00000
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.262840] 1f80: c0a0442c c077e1c0 00000000 00000000 60000093 c0a01fb0 c010c368 c010c36c
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.271052] 1fa0: 60000013 ffffffff
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.274557] [] (__irq_svc) from [] (arch_cpu_idle+0x34/0x38)
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.281987] [] (arch_cpu_idle) from [] (cpu_startup_entry+0xdc/0x13c)
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.290204] [] (cpu_startup_entry) from [] (start_kernel+0x354/0x360)
Apr 16 10:32:29 DD-WRT kern.warn kernel: [ 2020.298427] ---[ end trace 16912dc9555af558 ]---


Some more info: I just bought the router and just installed last available beta build of DD-WRT (Firmware: DD-WRT v3.0-r42872 std (04/10/20). If you need more info just ask, thanks.
Sponsor
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5700

PostPosted: Thu Apr 16, 2020 9:04    Post subject: Reply with quote
Do you have a sleep timer set before the startup commands? A new build is out.

If you decide to upgrade first remove the startup commands, save, disconnect USB then reboot or power cycle.
MyWay
DD-WRT Novice


Joined: 16 Apr 2020
Posts: 14

PostPosted: Thu Apr 16, 2020 9:49    Post subject: Reply with quote
blkt wrote:
Do you have a sleep timer set before the startup commands? A new build is out.

If you decide to upgrade first remove the startup commands, save, disconnect USB then reboot or power cycle.

Yes, I have a sleep timer set between some commands, I will try to put it before all commands. Going to upgrade right now, let's see what happens, thanks.

UPDATE:
Upgraded.
Ok, regarding the first issue, it seems I have solved with a big "sleep 60" before any command, but I did just one reboot, so let's see.
MyWay
DD-WRT Novice


Joined: 16 Apr 2020
Posts: 14

PostPosted: Thu Apr 16, 2020 11:49    Post subject: Reply with quote
After about one hour, it stopped working, this time I can't see any crash:
Code:
Apr 16 12:48:13 DD-WRT daemon.info hostapd: ath0: STA a8:9c:ed:35:7b:8b IEEE 802.11: authenticated
Apr 16 13:27:59 DD-WRT daemon.info hostapd: ath1: STA 1c:87:2c:b6:45:32 IEEE 802.11: disassociated
Apr 16 13:27:59 DD-WRT kern.debug kernel: [ 3621.468083] ieee80211 phy1: staid 1 deleted
Apr 16 13:28:00 DD-WRT daemon.info hostapd: ath1: STA 1c:87:2c:b6:45:32 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Apr 16 13:29:35 DD-WRT daemon.debug ntpclient[3461]: Connecting to 2.pool.ntp.org [212.45.144.206] ...
Apr 16 13:29:35 DD-WRT daemon.info hostapd: ath0: STA a8:9c:ed:35:7b:8b WPA: group key handshake completed (WPA)
Apr 16 13:29:34 DD-WRT daemon.info ntpclient[3461]: Time set from 2.pool.ntp.org [212.45.144.206].
Apr 16 13:29:34 DD-WRT daemon.info process_monitor[2447]: cyclic NTP Update success (servers 2.pool.ntp.org 212.18.3.19 88.99.174.22)

It seems it stopped working after this line, but there is no track on the log of anything.

Any hint on what's happening? The client can still connect to wifi, but I can't navigate the internet anymore, even if I manually execute the USB tether steps. I thought it could be related to the Lease Time (since it's 1h), but no idea.
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5700

PostPosted: Thu Apr 16, 2020 12:28    Post subject: Reply with quote
Can you list the devices you have connected to ath0 and ath1? Try setting the lease time to 1440 minutes.
MyWay
DD-WRT Novice


Joined: 16 Apr 2020
Posts: 14

PostPosted: Thu Apr 16, 2020 12:34    Post subject: Reply with quote
Here is some data:


Code:
Wireless Nodes
Clients
MAC Address   Radioname   Interface   Uptime   TX Rate   RX Rate   Info   Signal   Noise   SNR   Signal Quality
A8:9C:ED:35:7B:8B      ath0   0:02:08   86M   54M   VHT20SGI   0   -107   107   
100%
1C:87:2C:B6:45:32      ath1   0:05:07   216M   1M   HT20SGI   0   -109   109   
100%


Code:
DHCP Clients
Hostname   IP Address   MAC Address   Client Lease Expiration   Delete
Mi9T-TelefonoMi   192.168.1.132   A8:9C:ED:35:7B:8B   0 days 23:58:14


Code:
Active Clients
Hostname   IP Address   MAC Address   Interface   Connections   Ratio [32768]
Mi9T-TelefonoMi   192.168.1.132   A8:9C:ED:35:7B:8B   br0   18   
0%
*   192.168.42.129   FA:B8:BD:A8:2F:C8   usb0   0   
0%
*   192.168.1.114   1C:87:2C:B6:45:32   br0   67   
0%


Lease time was already set to 1440, so no, my fault.

I was referring to WAN lease, which I don't know where to modify:
Code:
WAN
Configuration Type
Connection TypeAutomatic Configuration - DHCP
Connection Uptime0:08:15
IP Address192.168.42.101
Subnet Mask255.255.255.0
Gateway192.168.42.129
DNS 11.1.1.1
DNS 21.0.0.1
DNS 38.8.8.8
Remaining Lease Time0 days 00:51:43


I tought I could start as it is now and then by script switching to static IP (with the IP assigned by the USB mobile phone), would it work? Or I'd have the same problem when time to renew the lease?
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5700

PostPosted: Thu Apr 16, 2020 13:18    Post subject: Reply with quote
Do you also lose internet access over wired Ethernet?
MyWay
DD-WRT Novice


Joined: 16 Apr 2020
Posts: 14

PostPosted: Thu Apr 16, 2020 13:27    Post subject: Reply with quote
Couldn't try that, but I think 'yes', because on status I can't see anymore the IP assigned.
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5700

PostPosted: Thu Apr 16, 2020 13:34    Post subject: Reply with quote
Are you using the additional commands to hide tethering and MTU adjustments? Have you lowered MTU?

https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=321468 <---

https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320483
MyWay
DD-WRT Novice


Joined: 16 Apr 2020
Posts: 14

PostPosted: Thu Apr 16, 2020 14:08    Post subject: Reply with quote
I didn't, I will try it if the current trial fails. I have added a ping every 30 minutes to the startup commands and I'm still connected (the lease renewed), let's see for some more hours. Thanks for your help.
MyWay
DD-WRT Novice


Joined: 16 Apr 2020
Posts: 14

PostPosted: Thu Apr 16, 2020 17:07    Post subject: Reply with quote
It's still working so I'm posting my Startup code, maybe it's useful to people having the same problems:

Code:
sleep 60
cd /lib/modules/4.9.218
insmod usbnet.ko
insmod cdc_ether.ko
insmod rndis_host.ko
ifconfig usb0 up
udhcpc -i usb0
iptables --table nat --append POSTROUTING --out-interface usb0 -j MASQUERADE
iptables --append FORWARD --in-interface br0 -j ACCEPT

(
while sleep 1800; do
    ping -c1 -w 10 8.8.8.8 > /dev/null 2>&1
done
) &
MyWay
DD-WRT Novice


Joined: 16 Apr 2020
Posts: 14

PostPosted: Fri Apr 17, 2020 8:49    Post subject: Reply with quote
Update: I lost the connection at 0:00, maybe something related to the ISP?
MyWay
DD-WRT Novice


Joined: 16 Apr 2020
Posts: 14

PostPosted: Fri Apr 17, 2020 22:07    Post subject: Reply with quote
This is the log around 0:00 (today disconnected again at that time, but wireless connection is still working):

Code:
Apr 17 23:59:13 DD-WRT user.debug : ttraff: data for 17-4-2020 commited to nvram
Apr 18 00:00:00 DD-WRT user.info : udhcpc : udhcp client process successfully stopped
Apr 18 00:00:00 DD-WRT kern.info kernel: [80887.753138] device eth0 entered promiscuous mode
Apr 18 00:00:01 DD-WRT user.info : vpn modules : vpn modules successfully unloaded
Apr 18 00:00:01 DD-WRT user.info : vpn modules : nf_conntrack_proto_gre successfully loaded
Apr 18 00:00:01 DD-WRT user.info : vpn modules : nf_nat_proto_gre successfully loaded
Apr 18 00:00:01 DD-WRT user.info : vpn modules : nf_conntrack_pptp successfully loaded
Apr 18 00:00:01 DD-WRT user.info : vpn modules : nf_nat_pptp successfully loaded
Apr 18 00:00:01 DD-WRT kern.info kernel: [80888.446659] mvneta f1034000.ethernet eth0: configuring for fixed link mode
Apr 18 00:00:01 DD-WRT kern.info kernel: [80888.453647] device eth0 left promiscuous mode
Apr 18 00:00:01 DD-WRT kern.info kernel: [80888.458145] mvneta f1034000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
Apr 18 00:00:01 DD-WRT user.info : udhcpc : DHCP client successfully stopped


Any idea of what's happening? Maybe something related to ttraff committing data? I have tried running nvram commit from SSH, but nothing happens, so I don't think.

After that happened, running manually:
Code:
udhcpc -i usb0
iptables --table nat --append POSTROUTING --out-interface usb0 -j MASQUERADE
iptables --append FORWARD --in-interface br0 -j ACCEPT


let it work again. Meanwhile I have added a cron:

Code:
1 0 * * * (ifconfig usb0 up; udhcpc -i usb0; iptables --table nat --append POSTROUTING --out-interface usb0 -j MASQUERADE; iptables --append FORWARD --in-interface br0 -j ACCEPT) &
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14246
Location: Texas, USA

PostPosted: Fri Apr 17, 2020 22:54    Post subject: Reply with quote
Probably one of the reasons why I don't use ttraff. Probably something broken with the way it stops and restarts when it writes the data.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
MyWay
DD-WRT Novice


Joined: 16 Apr 2020
Posts: 14

PostPosted: Fri Apr 17, 2020 23:40    Post subject: Reply with quote
Tried disabling it then, let's see tomorrow.
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.) All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum