Ernillew / wl500g

Automatically exported from code.google.com/p/wl500g
0 stars 0 forks source link

MF820 is not working with RT-N16 #386

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install 1.9.2.7-rtn-r4772 firmware (on RT-N16 router) 
2. Plug in ZTE MF820 4g modem
3. Insert info (apn etc)
3. press connect at USB Network Devices-3G/CDMA Modem
5. autodetect device- yes
6. click view at View connected modems
7. select ZTE modem from the list
8. click apply and restart modem

What is the expected output? What do you see instead?
The expected outcome would be that I have internet but it is not the case. 
Additionally, everything works fine when I am using a ZTE MF190 3G modem (with 
the same ISP), but when I try to use the 4G ZTE MF820 I can not get internet 
working on the router. As suggested at issue 305, I tried all combinations of 
Data port number and User interface port (using port numbers 1-4, 16 
combinations) but none worked.

What version of the product are you using?
1.9.2.7-rtn-r4772 firmware

Please provide any additional information below.
At USB Network Devices-3G/CDMA Modem-Modem type I have GPRS/EDGE/UMTS/HSDPA 
selected.

Original issue reported on code.google.com by lazlowmi...@gmail.com on 3 Mar 2013 at 9:32

GoogleCodeExporter commented 9 years ago
None of us has MF820. So, without logs, it is impossible to determine root of 
problem.

Original comment by lly.dev on 3 Mar 2013 at 6:51

GoogleCodeExporter commented 9 years ago
Here is the log:
Jan  1 01:00:01 syslogd started: BusyBox v1.20.2
Jan  1 01:00:01 kernel: klogd started: BusyBox v1.20.2 (2012-12-22 13:10:27 MSK)
Jan  1 01:00:01 kernel: Linux version 2.6.22.19 (root@localhost) (gcc version 
4.6.3 (GCC) ) #3 Sun Dec 23 20:09:37 MSK 2012
Jan  1 01:00:01 kernel: CPU revision is: 00019740
Jan  1 01:00:01 kernel: Determined physical RAM map:
Jan  1 01:00:01 kernel:  memory: 08000000 @ 00000000 (usable)
Jan  1 01:00:01 kernel: Built 1 zonelists.  Total pages: 32512
Jan  1 01:00:01 kernel: Kernel command line: root=/dev/mtdblock2 noinitrd 
init=/sbin/init console=ttyS0,115200
Jan  1 01:00:01 kernel: Primary instruction cache 32kB, physically tagged, 
4-way, linesize 32 bytes.
Jan  1 01:00:01 kernel: Primary data cache 32kB, 4-way, linesize 32 bytes.
Jan  1 01:00:01 kernel: Synthesized TLB refill handler (17 instructions).
Jan  1 01:00:01 kernel: Synthesized TLB load handler fastpath (30 instructions).
Jan  1 01:00:01 kernel: Synthesized TLB store handler fastpath (30 
instructions).
Jan  1 01:00:01 kernel: Synthesized TLB modify handler fastpath (29 
instructions).
Jan  1 01:00:01 kernel: PID hash table entries: 512 (order: -1, 2048 bytes)
Jan  1 01:00:01 kernel: CPU: BCM4716 rev 1 at 480 MHz
Jan  1 01:00:01 kernel: Using 240.000 MHz high precision timer.
Jan  1 01:00:01 kernel: console [ttyS0] enabled
Jan  1 01:00:01 kernel: Dentry cache hash table entries: 16384 (order: 4, 65536 
bytes)
Jan  1 01:00:01 kernel: Inode-cache hash table entries: 8192 (order: 3, 32768 
bytes)
Jan  1 01:00:01 kernel: Memory: 126592k/131072k available (2483k kernel code, 
4392k reserved, 526k data, 116k init, 0k highmem)
Jan  1 01:00:01 kernel: SLUB: Genslabs=6, HWalign=32, Order=0-1, MinObjects=4, 
CPUs=1, Nodes=1
Jan  1 01:00:01 kernel: Mount-cache hash table entries: 512
Jan  1 01:00:01 kernel: NET: Registered protocol family 16
Jan  1 01:00:01 kernel: PCI: Using membase 8000000
Jan  1 01:00:01 kernel: PCI: Initializing host
Jan  1 01:00:01 kernel: PCI: Reset RC
Jan  1 01:00:01 kernel: PCI: Fixing up bus 0
Jan  1 01:00:01 kernel: PCI: Fixing up bridge
Jan  1 01:00:01 kernel: PCI: Fixing up bridge
Jan  1 01:00:01 kernel: PCI: Enabling device 0000:01:00.1 (0004 -> 0006)
Jan  1 01:00:01 kernel: PCI: Fixing up bus 1
Jan  1 01:00:01 kernel: Time: MIPS clocksource has been installed.
Jan  1 01:00:01 kernel: NET: Registered protocol family 2
Jan  1 01:00:01 kernel: IP route cache hash table entries: 1024 (order: 0, 4096 
bytes)
Jan  1 01:00:01 kernel: TCP established hash table entries: 4096 (order: 3, 
32768 bytes)
Jan  1 01:00:01 kernel: TCP bind hash table entries: 4096 (order: 2, 16384 
bytes)
Jan  1 01:00:01 kernel: TCP: Hash tables configured (established 4096 bind 4096)
Jan  1 01:00:01 kernel: TCP reno registered
Jan  1 01:00:01 kernel: squashfs: version 3.4 (2008/08/26) Phillip Lougher
Jan  1 01:00:01 kernel: squashfs: LZMA suppport for slax.org by jro
Jan  1 01:00:01 kernel: io scheduler noop registered (default)
Jan  1 01:00:01 kernel: HDLC line discipline: version $Revision: 4.8 $, 
maxframe=4096
Jan  1 01:00:01 kernel: N_HDLC line discipline registered.
Jan  1 01:00:01 kernel: Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, 
IRQ sharing enabled
Jan  1 01:00:01 kernel: serial8250: ttyS0 at MMIO 0xb8000300 (irq = 8) is a 
16550A
Jan  1 01:00:01 kernel: loop: module loaded
Jan  1 01:00:01 kernel: PPP generic driver version 2.4.2
Jan  1 01:00:01 kernel: PPP Deflate Compression module registered
Jan  1 01:00:01 kernel: PPP BSD Compression module registered
Jan  1 01:00:01 kernel: MPPE/MPPC encryption/compression module registered
Jan  1 01:00:01 kernel: Physically mapped flash: Found 1 x16 devices at 0x0 in 
8-bit bank
Jan  1 01:00:01 kernel:  Amd/Fujitsu Extended Query Table at 0x0040
Jan  1 01:00:01 kernel: Physically mapped flash: CFI does not contain boot bank 
location. Assuming top.
Jan  1 01:00:01 kernel: number of CFI chips: 1
Jan  1 01:00:01 kernel: cfi_cmdset_0002: Disabling erase-suspend-program due to 
code brokenness.
Jan  1 01:00:01 kernel: Flash device: 0x2000000 at 0x1c000000
Jan  1 01:00:01 kernel: Physically mapped flash: squashfs filesystem found at 
block 1318
Jan  1 01:00:01 kernel: Creating 5 MTD partitions on "Physically mapped flash":
Jan  1 01:00:01 kernel: 0x00000000-0x00040000 : "boot"
Jan  1 01:00:01 kernel: 0x00040000-0x01fe0000 : "linux"
Jan  1 01:00:01 kernel: 0x00149a78-0x01fe0000 : "rootfs"
Jan  1 01:00:01 kernel: 0x01fe0000-0x02000000 : "nvram"
Jan  1 01:00:01 kernel: 0x005e0000-0x01fe0000 : "flashfs"
Jan  1 01:00:01 kernel: Found a 0MB  serial flash
Jan  1 01:00:01 kernel: sflash: found no supported devices
Jan  1 01:00:01 kernel: GACT probability NOT on
Jan  1 01:00:01 kernel: Mirror/redirect action on
Jan  1 01:00:01 kernel: u32 classifier
Jan  1 01:00:01 kernel:     Performance counters on
Jan  1 01:00:01 kernel:     input device check on 
Jan  1 01:00:01 kernel:     Actions configured 
Jan  1 01:00:01 kernel: Netfilter messages via NETLINK v0.30.
Jan  1 01:00:01 kernel: nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
Jan  1 01:00:01 kernel: BCM fast NAT: INIT
Jan  1 01:00:01 kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
Jan  1 01:00:01 kernel: TCP cubic registered
Jan  1 01:00:01 kernel: NET: Registered protocol family 1
Jan  1 01:00:01 kernel: NET: Registered protocol family 10
Jan  1 01:00:01 kernel: ip6_tables: (C) 2000-2006 Netfilter Core Team
Jan  1 01:00:01 kernel: IPv6 over IPv4 tunneling driver
Jan  1 01:00:01 kernel: NET: Registered protocol family 17
Jan  1 01:00:01 kernel: 802.1Q VLAN Support v1.8 Ben Greear 
<greearb@candelatech.com>
Jan  1 01:00:01 kernel: All bugs added by David S. Miller <davem@redhat.com>
Jan  1 01:00:01 kernel: VFS: Mounted root (squashfs filesystem) readonly.
Jan  1 01:00:01 kernel: Freeing unused kernel memory: 116k freed
Jan  1 01:00:01 kernel: Algorithmics/MIPS FPU Emulator v1.5
Jan  1 01:00:01 kernel: emf: module license 'Proprietary' taints kernel.
Jan  1 01:00:01 kernel: eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet 
Controller 5.60.127.5 
Jan  1 01:00:01 kernel: eth1: Broadcom BCM4329 802.11 Wireless Controller 
5.60.127.5 
Jan  1 01:00:01 kernel: vlan1: dev_set_promiscuity(master, 1)
Jan  1 01:00:01 kernel: device eth0 entered promiscuous mode
Jan  1 01:00:01 kernel: device vlan1 entered promiscuous mode
Jan  1 01:00:01 kernel: device eth1 entered promiscuous mode
Jan  1 01:00:01 kernel: br0: port 2(eth1) entering forwarding state
Jan  1 01:00:01 kernel: br0: port 1(vlan1) entering forwarding state
Jan  1 01:00:02 dropbear[219]: Running in background
Jan  1 01:00:02 dnsmasq[226]: started, version 2.65 cachesize 512
Jan  1 01:00:02 dnsmasq[226]: compile time options: IPv6 GNU-getopt no-RTC 
no-DBus no-i18n no-IDN DHCP DHCPv6 no-scripts TFTP no-conntrack
Jan  1 01:00:02 dnsmasq-dhcp[226]: DHCP, IP range 192.168.1.101 -- 
192.168.1.254, lease time 1d
Jan  1 01:00:02 dnsmasq[226]: read /etc/hosts - 2 addresses
Jan  1 01:00:02 miniupnpd[227]: HTTP listening on port 58509
Jan  1 01:00:02 miniupnpd[227]: Listening for NAT-PMP traffic on port 5351
Jan  1 01:00:02 kernel: usbcore: registered new interface driver usbfs
Jan  1 01:00:02 kernel: usbcore: registered new interface driver hub
Jan  1 01:00:02 kernel: usbcore: registered new device driver usb
Jan  1 01:00:03 kernel: ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) 
Driver
Jan  1 01:00:03 kernel: USB20H mdio control register : 0x8000000c
Jan  1 01:00:03 kernel: ehci_hcd 0000:00:04.1: EHCI Host Controller
Jan  1 01:00:03 kernel: ehci_hcd 0000:00:04.1: new USB bus registered, assigned 
bus number 1
Jan  1 01:00:03 kernel: ehci_hcd 0000:00:04.1: irq 5, io mem 0x18004000
Jan  1 01:00:03 kernel: ehci_hcd 0000:00:04.1: USB 0.0 started, EHCI 1.00
Jan  1 01:00:03 kernel: usb usb1: configuration #1 chosen from 1 choice
Jan  1 01:00:03 kernel: hub 1-0:1.0: USB hub found
Jan  1 01:00:03 kernel: hub 1-0:1.0: 2 ports detected
Jan  1 01:00:03 kernel: ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Jan  1 01:00:03 kernel: USB20H mdio control register : 0x8000000c
Jan  1 01:00:03 kernel: ohci_hcd 0000:00:04.0: OHCI Host Controller
Jan  1 01:00:03 kernel: ohci_hcd 0000:00:04.0: new USB bus registered, assigned 
bus number 2
Jan  1 01:00:03 kernel: ohci_hcd 0000:00:04.0: irq 5, io mem 0x18009000
Jan  1 01:00:03 kernel: usb usb2: configuration #1 chosen from 1 choice
Jan  1 01:00:03 kernel: hub 2-0:1.0: USB hub found
Jan  1 01:00:03 kernel: hub 2-0:1.0: 2 ports detected
Jan  1 01:00:03 kernel: usb 1-1: new high speed USB device using ehci_hcd and 
address 2
Jan  1 01:00:03 kernel: usb 1-1: configuration #1 chosen from 1 choice
Jan  1 01:00:03 kernel: hub 1-1:1.0: USB hub found
Jan  1 01:00:03 kernel: hub 1-1:1.0: 4 ports detected
Jan  1 01:00:03 kernel: usb 1-2: new high speed USB device using ehci_hcd and 
address 3
Jan  1 01:00:03 kernel: usb 1-2: configuration #1 chosen from 1 choice
Jan  1 01:00:04 kernel: usb 1-1.1: new high speed USB device using ehci_hcd and 
address 4
Jan  1 01:00:04 kernel: usb 1-1.1: configuration #1 chosen from 1 choice
Jan  1 01:00:04 kernel: usb 1-1.4: new high speed USB device using ehci_hcd and 
address 5
Jan  1 01:00:04 kernel: usb 1-1.4: configuration #1 chosen from 1 choice
Jan  1 01:00:04 kernel: usblp0: USB Bidirectional printer dev 5 if 1 alt 0 
proto 2 vid 0x03F0 pid 0x5617
Jan  1 01:00:04 kernel: drivers/usb/class/usblp.c: usblp0 Device ID string 
[121]='MFG:Hewlett-Packard;MDL:HP LaserJet M1120 
MFP;CMD:ZJS,HBS,PJL,ACL;CLS:PRINTER;DES:HP LaserJet M1120 MFP;FWVER:20080228;'
Jan  1 01:00:04 kernel: usbcore: registered new interface driver usblp
Jan  1 01:00:04 kernel: SCSI subsystem initialized
Jan  1 01:00:05 kernel: Initializing USB Mass Storage driver...
Jan  1 01:00:05 kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Jan  1 01:00:05 kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Jan  1 01:00:05 kernel: usbcore: registered new interface driver usb-storage
Jan  1 01:00:05 kernel: USB Mass Storage support registered.
Jan  1 01:00:05 kernel: fuse init (API version 7.9)
Jan  1 01:00:05 kernel: usbcore: registered new interface driver cdc_acm
Jan  1 01:00:05 kernel: drivers/usb/class/cdc-acm.c: v0.26:USB Abstract Control 
Model driver for USB modems and ISDN adapters
Jan  1 01:00:05 kernel: usbcore: registered new interface driver usbserial
Jan  1 01:00:06 kernel: drivers/usb/serial/usb-serial.c: USB Serial support 
registered for generic
Jan  1 01:00:06 kernel: usbcore: registered new interface driver 
usbserial_generic
Jan  1 01:00:06 kernel: drivers/usb/serial/usb-serial.c: USB Serial Driver core
Jan  1 01:00:06 kernel: drivers/usb/serial/usb-serial.c: USB Serial support 
registered for GSM modem (1-port)
Jan  1 01:00:06 kernel: usbcore: registered new interface driver option
Jan  1 01:00:06 kernel: drivers/usb/serial/option.c: USB Driver for GSM modems: 
v0.7.2
Jan  1 01:00:06 admin: modem with dataport: 1.1.4 not found
Jan  1 01:00:06 WAN port: cable disconnected
Jan  1 01:00:07 kernel: scsi 1:0:0:0: CD-ROM            L_T_E     USB SCSI 
CD-ROM  USB PQ: 0 ANSI: 0
Jan  1 01:00:07 kernel: scsi 0:0:0:0: Direct-Access     SMI                     
  1100 PQ: 0 ANSI: 0 CCS
Jan  1 01:00:08 kernel: sd 0:0:0:0: [sda] 7907328 512-byte hardware sectors 
(4049 MB)
Jan  1 01:00:08 kernel: sd 0:0:0:0: [sda] Write Protect is off
Jan  1 01:00:08 kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
Jan  1 01:00:08 kernel:  sda: sda1 sda2 sda3
Jan  1 01:00:08 kernel: sd 0:0:0:0: [sda] Attached SCSI removable disk
Jan  1 01:00:09 dnsmasq-dhcp[226]: DHCPREQUEST(br0) 192.168.1.230 
70:f1:a1:3f:a3:7d 
Jan  1 01:00:09 dnsmasq-dhcp[226]: DHCPACK(br0) 192.168.1.230 70:f1:a1:3f:a3:7d 
Eve-PC
Jan  1 01:00:12 dnsmasq-dhcp[226]: DHCPREQUEST(br0) 192.168.1.136 
70:f9:27:07:94:c1 
Jan  1 01:00:12 dnsmasq-dhcp[226]: DHCPACK(br0) 192.168.1.136 70:f9:27:07:94:c1 
Jan  1 01:00:13 dnsmasq-dhcp[226]: DHCPINFORM(br0) 192.168.1.230 
70:f1:a1:3f:a3:7d 
Jan  1 01:00:13 dnsmasq-dhcp[226]: DHCPACK(br0) 192.168.1.230 70:f1:a1:3f:a3:7d 
Eve-PC
Jan  1 01:00:15 kernel: kjournald starting.  Commit interval 5 seconds
Jan  1 01:00:15 kernel: EXT3-fs warning: maximal mount count reached, running 
e2fsck is recommended
Jan  1 01:00:15 USB storage: ext3 fs at /dev/discs/disca/part3 mounted to 
/tmp/mnt/disca_3
Jan  1 01:00:15 kernel: EXT3 FS on sda3, internal journal
Jan  1 01:00:15 kernel: EXT3-fs: recovery complete.
Jan  1 01:00:15 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Jan  1 01:00:15 kernel: kjournald starting.  Commit interval 5 seconds
Jan  1 01:00:15 kernel: EXT3-fs warning: maximal mount count reached, running 
e2fsck is recommended
Jan  1 01:00:15 USB storage: ext3 fs at /dev/discs/disca/part2 mounted to 
/tmp/mnt/disca_2
Jan  1 01:00:15 kernel: EXT3 FS on sda2, internal journal
Jan  1 01:00:15 kernel: EXT3-fs: recovery complete.
Jan  1 01:00:15 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Jan  1 01:00:16 admin: modem with dataport: 1.1.4 not found
Jan  1 01:00:25 admin: modem with dataport: 1.1.4 not found
Jan  1 01:00:35 admin: modem with dataport: 1.1.4 not found
Jan  1 01:00:45 admin: modem with dataport: 1.1.4 not found
Jan  1 01:00:55 admin: modem with dataport: 1.1.4 not found
Jan  1 01:01:00 dnsmasq-dhcp[226]: DHCPINFORM(br0) 192.168.1.125 
00:22:15:81:79:a0 
Jan  1 01:01:00 dnsmasq-dhcp[226]: DHCPACK(br0) 192.168.1.125 00:22:15:81:79:a0 
Laco-PC
Jan  1 01:01:05 admin: modem with dataport: 1.1.4 not found
Jan  1 01:01:15 admin: modem with dataport: 1.1.4 not found
Jan  1 01:01:25 admin: modem with dataport: 1.1.4 not found

Original comment by lazlowmi...@gmail.com on 4 Mar 2013 at 9:40

GoogleCodeExporter commented 9 years ago
The modem has a small flash drive that is mounted as CD drive when connected to 
computer. Maybe that cause some problems? What would "modem with dataport: 
1.1.4 not found" mean?
Thanks for the help in advance!

Original comment by lazlowmi...@gmail.com on 4 Mar 2013 at 9:42

GoogleCodeExporter commented 9 years ago
First of all, please never post huge sheets in issue text, use attach.

At second, you have to try understand procedure of modem connect under Linux 
yourself. We are unable to provide step-by-step instructions for all modems & 
every user.

In your case seems to usb_modeswitch unable to switch modem from storage mode.

Original comment by lly.dev on 5 Mar 2013 at 6:08

GoogleCodeExporter commented 9 years ago
Please post diagnostic info (Status & Log - Diagnostic Information) and output 
of the command: nvram show | grep modem | sort (you can use System Setup - 
System Command page to execute the command).

Original comment by ad...@vampik.ru on 5 Mar 2013 at 1:17

GoogleCodeExporter commented 9 years ago
Firstly, sorry that I did not attach. I could not modify post, so left it that 
way, if you want you can delete that post...

Secondly, you made me aware of the Zero CD configuration. I created the 
usb_modeswitch.conf based on this link:
http://www.eigenmagic.com/2012/03/14/how-to-get-telstra-4g-mobile-broadband-work
ing-with-linux/
This is what the /usr/local/etc/usbmodeswitch.conf contains:
# Telstra ZTE LTE 4g modem
#
DefaultVendor=  0x19d2
DefaultProduct= 0x0167

TargetVendor=  0x19d2
TargetProduct= 0x0257

MessageContent="55534243123456782400000080000685000000240000000000000000000000"

CheckSuccess=20

I changed the setting to use /usr/local/etc/usbmodeswitch.conf at the Zero CD 
setting of the router. Restarted it but still no internet.

I also tried disabling the virtual CD-ROM of the MF820 using minicom app under 
ubuntu by issuing the "AT+ZCDRUN=8" command. It succesfully changes it, but 
when I plug the modem to a laptop running windows 7 the virtual CD-ROM drive is 
still mounted. Strange, because on Ubuntu it is not mounted and the modem works 
as well but it does not work for some reason with the router...

I have also attached the result of "nvram show | grep modem | sort".

Please tell me if you have suggestions/ideas on what I should do!
Maybe I did not save the modem configuration after setting AT+ZCDRUN=8. In 
minicom I used alt + Z and q...

Thanks in advance for any help!

Original comment by lazlowmi...@gmail.com on 7 Mar 2013 at 8:16

Attachments:

GoogleCodeExporter commented 9 years ago
Please post diagnostic info (Status & Log - Diagnostic Information) as 
requested by Vampik. We need verbose usb endpoint information.

Original comment by lly.dev on 11 Mar 2013 at 7:27

GoogleCodeExporter commented 9 years ago
Please find attached the Status & Log - Diagnostic Information.

Original comment by lazlowmi...@gmail.com on 17 Mar 2013 at 3:19

Attachments:

GoogleCodeExporter commented 9 years ago
Please update to the latest release (RT-N16-1.9.2.7-rtn-r4923.trx) and try 
again. Please attach Status & Log - Diagnostic Information from the latest 
release.

Original comment by ad...@vampik.ru on 17 Mar 2013 at 4:09

GoogleCodeExporter commented 9 years ago
I upgraded to RT-N16-1.9.2.7-rtn-r4923.trx and it works now. And it internet 
works now.
Only thing is that /etc/fstab is deleted. If I create /etc/fstab again it 
always get deleted after reboot (I used flashfs save && flashfs commit && 
flashfs enable). How can I make fstab so that it is not deleted every time I 
reboot?
Thanks again!

Original comment by lazlowmi...@gmail.com on 17 Mar 2013 at 5:57

GoogleCodeExporter commented 9 years ago
flashfs content will be overwritten in case of firmware image changes its 
size(with 256Kb step). Never forget to backup flashfs before upgrade!

To save anything outside /usr/local you have to fill in /usr/local/.files - 
please read wl500g.info forum

Original comment by lly.dev on 17 Mar 2013 at 6:06