Modify

Opened 4 years ago

Closed 3 years ago

#17249 closed defect (duplicate)

RB750UP: Trouble with various USB modems (E3276 E173 E220 K3715)

Reported by: raver@… Owned by: developers
Priority: normal Milestone:
Component: kernel Version: Trunk
Keywords: rb750up e3276 e173 e220 k3715 Cc:

Description

Arch: ar71xx
Machine: Mikrotik RB750UP
Modems tested: Huawei E3276 E173 E220 K3715.

Hi,
I began to have problems with several USB modems and Mikrotik RB750UP units.
PPP connection initially starts up correctly on all modems, but after a few moments I get these messages:

E173 E220 K3715
The router is runnig r41815, 3.10.49 kernel.

[72155.340000] usb 1-1.1: new high-speed USB device number 5 using ehci-platform
[72156.120000] usb 1-1.1: USB disconnect, device number 5
[72160.200000] usb 1-1.1: new high-speed USB device number 6 using ehci-platform
[72160.320000] option 1-1.1:1.0: GSM modem (1-port) converter detected
[72160.330000] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB0
[72160.360000] cdc_ether 1-1.1:1.1 wwan0: register 'cdc_ether' at usb-ehci-platform-1.1, Mobile Broadband Network Device, 02:50:f3:00:00:00
[72160.370000] option 1-1.1:1.3: GSM modem (1-port) converter detected
[72160.390000] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB1
[72160.390000] option 1-1.1:1.4: GSM modem (1-port) converter detected
[72160.410000] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB2
[72225.300000] option1 ttyUSB0: option_instat_callback: error -2
[72226.440000] option1 ttyUSB0: option_instat_callback: error -2
[72229.100000] option1 ttyUSB0: option_instat_callback: error -2
[72230.850000] option1 ttyUSB0: option_instat_callback: error -2
[72231.980000] option1 ttyUSB0: option_instat_callback: error -2
[72234.580000] option1 ttyUSB0: option_instat_callback: error -2
[72236.310000] option1 ttyUSB0: option_instat_callback: error -2
[72237.450000] option1 ttyUSB0: option_instat_callback: error -2
[72240.060000] option1 ttyUSB0: option_instat_callback: error -2
[72241.800000] option1 ttyUSB0: option_instat_callback: error -2
[72242.930000] option1 ttyUSB0: option_instat_callback: error -2
...

In the case of E173, the ethernet interface (cdc_ether) also hangs up.
I also had problems with older releases (r40380, 3.10.34 kernel).

...
option1 ttyUSB0: option_instat_callback: error -71
...

Interestingly, the ZTE MF632 works fine on the same router (also r40380, 3.10.34 kernel).
I did connect the modems to both a powered and unpowered USB hub, but to no avail.

E3276
The router is running r40585, 3.10.36 kernel.
PPP connection also starts up but almost immediately all serial ports hang up, but no output is shown by dmesg.
Using wwan0 interface (NCM protocol) throws this error:

[  837.780000] cdc_ncm: wwan0: 150 mbit/s downlink 150 mbit/s uplink
[  837.790000] cdc_ncm: wwan0: network connection: connected
[ 1225.010000] ------------[ cut here ]------------
[ 1225.010000] WARNING: at net/sched/sch_generic.c:255 dev_watchdog+0x1e8/0x26c()
[ 1225.020000] NETDEV WATCHDOG: wwan0 (cdc_ncm): transmit queue 0 timed out
[ 1225.020000] Modules linked in: ppp_async option iptable_nat cdc_mbim usb_wwan qmi_wwan ppp_generic nf_nat_ipv4 nf_conntrack_netlink nf_conntrack_ipv4 iptable_raw iptable_mangle iptable_filter ipt_REJECT ipt_MASQUERADE ipt_ECN ip_tables cdc_ncm cdc_ether xt_time xt_tcpudp xt_tcpmss xt_string xt_statistic xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY x_tables usbserial usbnet ts_kmp ts_fsm ts_bm slhc nfnetlink nf_nat nf_defrag_ipv4 nf_conntrack crc_ccitt cdc_wdm tun zram lzo_decompress lzo_compress zsmalloc ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[ 1225.090000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.10.36 #1
[ 1225.100000] Stack : 00000000 00000000 00000000 00000000 80352e9a 00000032 802f9098 00000055
[ 1225.100000] 	  802ac420 802f8e1b 00000000 80352648 802f9098 00000055 8037381c 00000001
[ 1225.100000] 	  00000004 800790bc 00000003 80076b40 802d3728 00000055 802adce8 802f3c74
[ 1225.100000] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1225.100000] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 802f3c00
[ 1225.100000] 	  ...
[ 1225.130000] Call Trace:
[ 1225.140000] [<8006e384>] show_stack+0x48/0x70
[ 1225.140000] [<80076c3c>] warn_slowpath_common+0x78/0xa8
[ 1225.150000] [<80076c98>] warn_slowpath_fmt+0x2c/0x38
[ 1225.150000] [<8020d8d4>] dev_watchdog+0x1e8/0x26c
[ 1225.160000] [<80082924>] call_timer_fn.isra.38+0x24/0x80
[ 1225.160000] [<80082afc>] run_timer_softirq+0x17c/0x1bc
[ 1225.170000] [<8007d9b8>] __do_softirq+0xd0/0x1b8
[ 1225.170000] [<8007db40>] do_softirq+0x48/0x68
[ 1225.180000] [<8007dd74>] irq_exit+0x54/0x70
[ 1225.180000] [<80060830>] ret_from_irq+0x0/0x4
[ 1225.180000] [<80060a80>] __r4k_wait+0x20/0x40
[ 1225.190000] [<8009f004>] cpu_startup_entry+0xa4/0x104
[ 1225.190000] [<80314910>] start_kernel+0x38c/0x3a4
[ 1225.200000] 
[ 1225.200000] ---[ end trace c8a289e1e4c6bcfb ]---

Could all these issues be related?
I'm available to provide more info and do further testing if necessary.

Thanks in advance.

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by raver@…

Forgot to mention I made these changes in order to get RB750UP working and enable USB support.

Index: target/linux/ar71xx/Makefile
===================================================================
--- target/linux/ar71xx/Makefile	(revision 41815)
+++ target/linux/ar71xx/Makefile	(working copy)
@@ -10,7 +10,7 @@
 BOARD:=ar71xx
 BOARDNAME:=Atheros AR7xxx/AR9xxx
 FEATURES:=mips16
-CPU_TYPE=34kc
+CPU_TYPE=24kc
 SUBTARGETS:=generic nand mikrotik
 
 LINUX_VERSION:=3.10.49
Index: target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c
===================================================================
--- target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c	(revision 41815)
+++ target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c	(working copy)
@@ -169,6 +169,9 @@
 	rb750_nand_data.disable_pins = rb750_nand_disable_pins;
 	rb750_nand_data.latch_change = rb750_latch_change;
 	platform_device_register(&rb750_nand_device);
+
+	/* USB port on 750UP */
+	ath79_register_usb();
 }
 
 MIPS_MACHINE(ATH79_MACH_RB_750, "750i", "MikroTik RouterBOARD 750",
Index: target/linux/ar71xx/patches-3.10/610-MIPS-ath79-openwrt-machines.patch
===================================================================
--- target/linux/ar71xx/patches-3.10/610-MIPS-ath79-openwrt-machines.patch	(revision 41815)
+++ target/linux/ar71xx/patches-3.10/610-MIPS-ath79-openwrt-machines.patch	(working copy)
@@ -1153,12 +1153,13 @@
 +obj-$(CONFIG_ATH79_MACH_CARAMBOLA2)	+= mach-carambola2.o
 --- a/arch/mips/ath79/prom.c
 +++ b/arch/mips/ath79/prom.c
-@@ -180,6 +180,12 @@ void __init prom_init(void)
+@@ -180,6 +180,13 @@ void __init prom_init(void)
  			ath79_prom_append_cmdline("board", env);
  		}
  	}
 +
 +	if (strstr(arcs_cmdline, "board=750Gr3") ||
++	    strstr(arcs_cmdline, "board=750i") ||
 +	    strstr(arcs_cmdline, "board=951G") ||
 +	    strstr(arcs_cmdline, "board=2011L") ||
 +	    strstr(arcs_cmdline, "board=711Gr100"))

comment:2 Changed 3 years ago by raver@…

Tried trunk r41997 / 3.10.49 kernel on a WNDR3800 and a K3715 modem, and I also get the same errors when establishing PPP connections.

option1 ttyUSB0: option_instat_callback: error -2

comment:3 Changed 3 years ago by nbd

  • Resolution set to duplicate
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.