OpenWrt Forum Archive

Topic: Need help configuring Huawei EC306 3G dongle

The content of this topic has been archived on 12 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Greetings,

Using this:
http://wiki.openwrt.org/doc/recipes/3gdongle
article I'm trying to configure 3G connection on my router.
But having problems "on the start": although I can see usbserial_generic in logs -- I see no ttyUSB0 in it...

[    0.000000] Linux version 3.10.21 (fnord@tschunk) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 r38999) ) #1 Sat Dec 7 14:15:30 UTC 2013
[    0.000000] MyLoader: sysp=fa89c804, boardp=69cd3b24, parts=31a09c82
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR9330 rev 1
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat 80324b60, node_mem_map 81000000
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8192 pages, LIFO batch:0
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  board=TL-MR13U console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 28652k/32768k available (2315k kernel code, 4116k reserved, 609k data, 272k init, 0k highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.080000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 512
[    0.090000] NET: Registered protocol family 16
[    0.100000] MIPS: machine is TP-LINK TL-MR13U v1
[    0.350000] bio: create slab <bio-0> at 0
[    0.360000] Switching to clocksource MIPS
[    0.360000] NET: Registered protocol family 2
[    0.370000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.370000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.370000] TCP: Hash tables configured (established 512 bind 512)
[    0.380000] TCP: reno registered
[    0.380000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.390000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.400000] NET: Registered protocol family 1
[    0.400000] PCI: CLS 0 bytes, default 32
[    0.420000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.420000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.430000] msgmni has been set to 55
[    0.440000] io scheduler noop registered
[    0.440000] io scheduler deadline registered (default)
[    0.450000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.460000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UART
[    0.460000] console [ttyATH0] enabled, bootconsole disabled
[    0.480000] ath79-spi ath79-spi: master is unqueued, this is deprecated
[    0.480000] m25p80 spi0.0: found s25sl032p, expected m25p80
[    0.490000] m25p80 spi0.0: s25sl032p (4096 Kbytes)
[    0.490000] 5 tp-link partitions found on MTD device spi0.0
[    0.500000] Creating 5 MTD partitions on "spi0.0":
[    0.500000] 0x000000000000-0x000000020000 : "u-boot"
[    0.510000] 0x000000020000-0x000000123d84 : "kernel"
[    0.510000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.530000] 0x000000123d84-0x0000003f0000 : "rootfs"
[    0.530000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.550000] mtd: device 2 (rootfs) set to be root filesystem
[    0.550000] 1 squashfs-split partitions found on MTD device rootfs
[    0.560000] 0x000000330000-0x0000003f0000 : "rootfs_data"
[    0.560000] 0x0000003f0000-0x000000400000 : "art"
[    0.570000] 0x000000020000-0x0000003f0000 : "firmware"
[    0.590000] libphy: ag71xx_mdio: probed
[    1.140000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[    1.150000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    1.160000] TCP: cubic registered
[    1.160000] NET: Registered protocol family 17
[    1.160000] Bridge firewalling registered
[    1.170000] 8021q: 802.1Q VLAN Support v1.8
[    1.180000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    1.190000] Freeing unused kernel memory: 272K (8033c000 - 80380000)
[    4.600000] usbcore: registered new interface driver usbfs
[    4.600000] usbcore: registered new interface driver hub
[    4.610000] usbcore: registered new device driver usb
[    4.620000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.630000] ehci-platform: EHCI generic platform driver
[    4.630000] ehci-platform ehci-platform: EHCI Host Controller
[    4.630000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    4.640000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    4.670000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    4.670000] hub 1-0:1.0: USB hub found
[    4.670000] hub 1-0:1.0: 1 port detected
[    4.680000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.000000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    5.860000] jffs2: notice: (325) jffs2_build_xattr_subsystem: complete building xattr subsystem, 16 of xdatum (1 unchecked, 15 orphan) and 26 of xref (0 dead, 15 orphan) found.
[    7.130000] NET: Registered protocol family 10
[    7.150000] nf_conntrack version 0.5.0 (451 buckets, 1804 max)
[    7.160000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    7.190000] uhci_hcd: USB Universal Host Controller Interface driver
[    7.200000] usbcore: registered new interface driver cdc_acm
[    7.200000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    7.210000] Loading modules backported from Linux version master-2013-11-05-0-gafa3093
[    7.220000] Backport generated by backports.git backports-20130802-0-gdb67a3f
[    7.230000] ip_tables: (C) 2000-2006 Netfilter Core Team
[    7.270000] usbcore: registered new interface driver usbserial
[    7.270000] usbcore: registered new interface driver usbserial_generic
[    7.280000] usbserial: USB Serial support registered for generic
[    7.310000] xt_time: kernel timezone is -0000
[    7.350000] cfg80211: Calling CRDA to update world regulatory domain
[    7.350000] cfg80211: World regulatory domain updated:
[    7.360000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    7.360000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    7.370000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    7.380000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[    7.390000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (300 mBi, 2000 mBm)
[    7.390000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (300 mBi, 2000 mBm)
[    7.400000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm)
[    7.480000] PPP generic driver version 2.4.2
[    7.480000] NET: Registered protocol family 24
[    7.540000] usbcore: registered new interface driver option
[    7.540000] usbserial: USB Serial support registered for GSM modem (1-port)
[    7.570000] ath: EEPROM regdomain: 0x0
[    7.570000] ath: EEPROM indicates default country code should be used
[    7.570000] ath: doing EEPROM country->regdmn map search
[    7.570000] ath: country maps to regdmn code: 0x3a
[    7.570000] ath: Country alpha2 being used: US
[    7.570000] ath: Regpair used: 0x3a
[    7.580000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[    7.600000] cfg80211: Calling CRDA for country: US
[    7.610000] cfg80211: Regulatory domain changed to country: US
[    7.610000] cfg80211:  DFS Master region FCC
[    7.610000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    7.620000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[    7.630000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (300 mBi, 1700 mBm)
[    7.640000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (300 mBi, 2400 mBm)
[    7.650000] cfg80211:   (5490000 KHz - 5600000 KHz @ 80000 KHz), (300 mBi, 2400 mBm)
[    7.650000] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2400 mBm)
[    7.660000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (300 mBi, 3000 mBm)
[    7.670000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm)
[    7.690000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[   14.660000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   14.710000] IPv6: ADDRCONF(NETDEV_UP): br-wifi: link is not ready
[   15.450000] eth0: link up (100Mbps/Full duplex)
[   15.450000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   15.790000] cfg80211: Calling CRDA for country: JP
[   15.830000] cfg80211: Regulatory domain changed to country: JP
[   15.830000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   15.840000] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[   15.850000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm)
[   15.850000] cfg80211:   (4910000 KHz - 4990000 KHz @ 40000 KHz), (N/A, 2300 mBm)
[   15.860000] cfg80211:   (5030000 KHz - 5090000 KHz @ 40000 KHz), (N/A, 2300 mBm)
[   15.870000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm)
[   15.870000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2000 mBm)
[   15.880000] cfg80211:   (5490000 KHz - 5710000 KHz @ 160000 KHz), (N/A, 2300 mBm)
[   17.420000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   17.430000] device wlan0 entered promiscuous mode
[   17.730000] br-wifi: port 1(wlan0) entered forwarding state
[   17.730000] br-wifi: port 1(wlan0) entered forwarding state
[   17.740000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   17.750000] IPv6: ADDRCONF(NETDEV_CHANGE): br-wifi: link becomes ready
[   19.730000] br-wifi: port 1(wlan0) entered forwarding state
[   26.190000] device wlan0 left promiscuous mode
[   26.190000] br-wifi: port 1(wlan0) entered disabled state
[   26.780000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   26.790000] device wlan0 entered promiscuous mode
[   26.790000] br-wifi: port 1(wlan0) entered forwarding state
[   26.790000] br-wifi: port 1(wlan0) entered forwarding state
[   27.170000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   28.790000] br-wifi: port 1(wlan0) entered forwarding state

I tried adding
echo '12d1 1505 ff' > /sys/bus/usb-serial/drivers/option1/new_id
to rc.local -- no luck.

I believe to have all needed packages installed:

6relayd - 2013-10-21-ad00c3dd9ee42f172870708724858ab502b3a689
base-files - 149-r38999
busybox - 1.19.4-7
chat - 2.4.5-10
dnsmasq - 2.66-5
dropbear - 2013.59-1
firewall - 2013-11-18
hostapd-common - 20131120-1
ip6tables - 1.4.20-1
iptables - 1.4.20-1
iw - 3.10-1
jshn - 2013-12-02-318d682d29a8974aa53bd7dc523f1514eb0eddb9
kernel - 3.10.21-1-bd7c1eb843051f66db2be660b4508824
kmod-ath - 3.10.21+2013-11-05-5
kmod-ath9k - 3.10.21+2013-11-05-5
kmod-ath9k-common - 3.10.21+2013-11-05-5
kmod-cfg80211 - 3.10.21+2013-11-05-5
kmod-crypto-aes - 3.10.21-1
kmod-crypto-arc4 - 3.10.21-1
kmod-crypto-core - 3.10.21-1
kmod-crypto-hash - 3.10.21-1
kmod-crypto-manager - 3.10.21-1
kmod-crypto-pcompress - 3.10.21-1
kmod-gpio-button-hotplug - 3.10.21-1
kmod-ip6tables - 3.10.21-1
kmod-ipt-conntrack - 3.10.21-1
kmod-ipt-core - 3.10.21-1
kmod-ipt-nat - 3.10.21-1
kmod-ipt-nathelper - 3.10.21-1
kmod-ipv6 - 3.10.21-1
kmod-leds-gpio - 3.10.21-1
kmod-ledtrig-default-on - 3.10.21-1
kmod-ledtrig-netdev - 3.10.21-1
kmod-ledtrig-timer - 3.10.21-1
kmod-ledtrig-usbdev - 3.10.21-1
kmod-lib-crc-ccitt - 3.10.21-1
kmod-mac80211 - 3.10.21+2013-11-05-5
kmod-nls-base - 3.10.21-1
kmod-ppp - 3.10.21-1
kmod-pppoe - 3.10.21-1
kmod-pppox - 3.10.21-1
kmod-slhc - 3.10.21-1
kmod-usb-acm - 3.10.21-1
kmod-usb-core - 3.10.21-1
kmod-usb-ohci - 3.10.21-1
kmod-usb-serial - 3.10.21-1
kmod-usb-serial-option - 3.10.21-1
kmod-usb-serial-wwan - 3.10.21-1
kmod-usb-uhci - 3.10.21-1
kmod-usb2 - 3.10.21-1
libblobmsg-json - 2013-12-02-318d682d29a8974aa53bd7dc523f1514eb0eddb9
libc - 0.9.33.2-1
libgcc - 4.6-linaro-1
libip4tc - 1.4.20-1
libip6tc - 1.4.20-1
libjson-c - 0.11-2
libjson-script - 2013-12-02-318d682d29a8974aa53bd7dc523f1514eb0eddb9
libnl-tiny - 0.1-3
libpthread - 0.9.33.2-1
librt - 0.9.33.2-1
libsqlite3 - 3071201-1
libubox - 2013-12-02-318d682d29a8974aa53bd7dc523f1514eb0eddb9
libubus - 2013-11-07-8ea96670367e5dd23988b51ee4f0f790393effaf
libuci - 2013-12-02.1-1
libusb-1.0 - 1.0.9-1
libxtables - 1.4.20-1
mtd - 20
netifd - 2013-12-03-45df0e856445469c8647bfcd89c96872d274ef94
odhcp6c - 2013-10-29-60c9e4d5a26f530e89ed6254e8c09380b50fac08
opkg - 618-6
ppp - 2.4.5-10
ppp-mod-pppoe - 2.4.5-10
procd - 2013-11-22-dc3988c38546c37a02030af8201048272caa7ded
swconfig - 10
uboot-envtools - 2013.10-1
ubox - 2013-11-28-30deade42ebd7fa112ee2693e9c2cc6532f0e3cf
ubus - 2013-11-07-8ea96670367e5dd23988b51ee4f0f790393effaf
ubusd - 2013-11-07-8ea96670367e5dd23988b51ee4f0f790393effaf
uci - 2013-12-02.1-1
wpad-mini - 20131120-1

Can someone help me with this configuration?

Best regards...

replace '12d1 1505 ff'  with '12d1 1505'

(Last edited by neryba on 13 Dec 2013, 22:41)

Install OpenWRT's mode switching package ( usbmode ), remove the echo command you added to rc.local
12d1:1505 is the usb id for the dongle in windows install mode (cd-rom mode) and will be switched to 12d1:1506 by usbmode.
The option driver supports the 12d1:1506 id so no need to use the newid function.

Thanks, JonnyM, it seems that modem is now connected (I'll try to configure it farther). The only thing I'm not sure is normal: there are three ttyUSB in my modem now:

[    0.000000] Linux version 3.10.21 (fnord@tschunk) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 r38999) ) #1 Sat Dec 7 14:15:30 UTC 2013
[    0.000000] MyLoader: sysp=fa89c804, boardp=69cd3b24, parts=31a09c82
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR9330 rev 1
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat 80324b60, node_mem_map 81000000
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8192 pages, LIFO batch:0
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  board=TL-MR13U console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 28652k/32768k available (2315k kernel code, 4116k reserved, 609k data, 272k init, 0k highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.080000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 512
[    0.090000] NET: Registered protocol family 16
[    0.100000] MIPS: machine is TP-LINK TL-MR13U v1
[    0.350000] bio: create slab <bio-0> at 0
[    0.360000] Switching to clocksource MIPS
[    0.360000] NET: Registered protocol family 2
[    0.370000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.370000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.370000] TCP: Hash tables configured (established 512 bind 512)
[    0.380000] TCP: reno registered
[    0.380000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.390000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.400000] NET: Registered protocol family 1
[    0.400000] PCI: CLS 0 bytes, default 32
[    0.420000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.420000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.430000] msgmni has been set to 55
[    0.440000] io scheduler noop registered
[    0.440000] io scheduler deadline registered (default)
[    0.440000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.460000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UART
[    0.460000] console [ttyATH0] enabled, bootconsole disabled
[    0.480000] ath79-spi ath79-spi: master is unqueued, this is deprecated
[    0.480000] m25p80 spi0.0: found s25sl032p, expected m25p80
[    0.490000] m25p80 spi0.0: s25sl032p (4096 Kbytes)
[    0.490000] 5 tp-link partitions found on MTD device spi0.0
[    0.500000] Creating 5 MTD partitions on "spi0.0":
[    0.500000] 0x000000000000-0x000000020000 : "u-boot"
[    0.510000] 0x000000020000-0x000000123d84 : "kernel"
[    0.510000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.530000] 0x000000123d84-0x0000003f0000 : "rootfs"
[    0.530000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.550000] mtd: device 2 (rootfs) set to be root filesystem
[    0.550000] 1 squashfs-split partitions found on MTD device rootfs
[    0.560000] 0x000000330000-0x0000003f0000 : "rootfs_data"
[    0.560000] 0x0000003f0000-0x000000400000 : "art"
[    0.570000] 0x000000020000-0x0000003f0000 : "firmware"
[    0.590000] libphy: ag71xx_mdio: probed
[    1.140000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[    1.150000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    1.160000] TCP: cubic registered
[    1.160000] NET: Registered protocol family 17
[    1.160000] Bridge firewalling registered
[    1.170000] 8021q: 802.1Q VLAN Support v1.8
[    1.180000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    1.190000] Freeing unused kernel memory: 272K (8033c000 - 80380000)
[    4.600000] usbcore: registered new interface driver usbfs
[    4.600000] usbcore: registered new interface driver hub
[    4.610000] usbcore: registered new device driver usb
[    4.620000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.630000] ehci-platform: EHCI generic platform driver
[    4.630000] ehci-platform ehci-platform: EHCI Host Controller
[    4.640000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    4.640000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    4.670000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    4.670000] hub 1-0:1.0: USB hub found
[    4.670000] hub 1-0:1.0: 1 port detected
[    4.680000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.000000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    6.170000] eth0: link up (100Mbps/Full duplex)
[    6.800000] jffs2: notice: (325) jffs2_build_xattr_subsystem: complete building xattr subsystem, 16 of xdatum (1 unchecked, 15 orphan) and 65 of xref (0 dead, 15 orphan) found.
[    6.840000] eth0: link down
[    8.290000] uhci_hcd: USB Universal Host Controller Interface driver
[    8.300000] usbcore: registered new interface driver cdc_acm
[    8.300000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    8.310000] Loading modules backported from Linux version master-2013-11-05-0-gafa3093
[    8.320000] Backport generated by backports.git backports-20130802-0-gdb67a3f
[    8.330000] nf_conntrack version 0.5.0 (451 buckets, 1804 max)
[    8.360000] usbcore: registered new interface driver usbserial
[    8.360000] usbcore: registered new interface driver usbserial_generic
[    8.370000] usbserial: USB Serial support registered for generic
[    8.400000] xt_time: kernel timezone is -0000
[    8.430000] cfg80211: Calling CRDA to update world regulatory domain
[    8.430000] cfg80211: World regulatory domain updated:
[    8.440000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    8.440000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    8.450000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    8.460000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[    8.470000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (300 mBi, 2000 mBm)
[    8.470000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (300 mBi, 2000 mBm)
[    8.480000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm)
[    8.490000] ip_tables: (C) 2000-2006 Netfilter Core Team
[    8.590000] PPP generic driver version 2.4.2
[    8.600000] NET: Registered protocol family 24
[    8.640000] usbcore: registered new interface driver option
[    8.640000] usbserial: USB Serial support registered for GSM modem (1-port)
[    8.680000] ath: EEPROM regdomain: 0x0
[    8.680000] ath: EEPROM indicates default country code should be used
[    8.680000] ath: doing EEPROM country->regdmn map search
[    8.680000] ath: country maps to regdmn code: 0x3a
[    8.680000] ath: Country alpha2 being used: US
[    8.680000] ath: Regpair used: 0x3a
[    8.690000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[    8.700000] cfg80211: Calling CRDA for country: US
[    8.700000] cfg80211: Regulatory domain changed to country: US
[    8.710000] cfg80211:  DFS Master region FCC
[    8.710000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    8.720000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[    8.730000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (300 mBi, 1700 mBm)
[    8.740000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (300 mBi, 2400 mBm)
[    8.740000] cfg80211:   (5490000 KHz - 5600000 KHz @ 80000 KHz), (300 mBi, 2400 mBm)
[    8.750000] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2400 mBm)
[    8.760000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (300 mBi, 3000 mBm)
[    8.770000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm)
[    8.780000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[   15.290000] eth0: link up (100Mbps/Full duplex)
[   15.580000] cfg80211: Calling CRDA for country: JP
[   15.590000] cfg80211: Regulatory domain changed to country: JP
[   15.590000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   15.600000] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[   15.610000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm)
[   15.610000] cfg80211:   (4910000 KHz - 4990000 KHz @ 40000 KHz), (N/A, 2300 mBm)
[   15.620000] cfg80211:   (5030000 KHz - 5090000 KHz @ 40000 KHz), (N/A, 2300 mBm)
[   15.630000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm)
[   15.640000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2000 mBm)
[   15.640000] cfg80211:   (5490000 KHz - 5710000 KHz @ 160000 KHz), (N/A, 2300 mBm)
[   17.620000] device wlan0 entered promiscuous mode
[   17.930000] br-wifi: port 1(wlan0) entered forwarding state
[   17.940000] br-wifi: port 1(wlan0) entered forwarding state
[   19.940000] br-wifi: port 1(wlan0) entered forwarding state
[   25.520000] usb 1-1: USB disconnect, device number 2
[   27.400000] device wlan0 left promiscuous mode
[   27.400000] br-wifi: port 1(wlan0) entered disabled state
[   28.000000] device wlan0 entered promiscuous mode
[   28.000000] br-wifi: port 1(wlan0) entered forwarding state
[   28.010000] br-wifi: port 1(wlan0) entered forwarding state
[   29.970000] usb 1-1: new high-speed USB device number 4 using ehci-platform
[   30.010000] br-wifi: port 1(wlan0) entered forwarding state
[   31.090000] usb 1-1: USB disconnect, device number 4
[   37.960000] usb 1-1: new high-speed USB device number 5 using ehci-platform
[   38.120000] option 1-1:1.0: GSM modem (1-port) converter detected
[   38.130000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[   38.130000] option 1-1:1.2: GSM modem (1-port) converter detected
[   38.140000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[   38.160000] option 1-1:1.3: GSM modem (1-port) converter detected
[   38.160000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2

Which one should I use?..

Best regards...

It's normal to have three ttyUSB* devices.
Use the one that works best (try them all in your /etc/config/network).

ttyUSB0 is the modem device

You seem to have multiple disconnects of the dongle, MR13U may have problem to supply enough current on the usb bus.
In such case use a separately powered usb hub in between router and dongle.

(Last edited by JonnyM on 14 Dec 2013, 14:20)

Good evening,

Got some free time to configure this dongle...
Still having problems with that article (http://wiki.openwrt.org/doc/recipes/3gdongle):
First of all: they say:

Chat configuration

Now we need to check if the default chatscript does work with your 3g provider or not.

You can find it here '/etc/chatscripts/3g.chat', it looks like this:

, but I don't even have chatscripts (although I have chat installed:
root@OpenWrt:/# opkg list-installed | grep chat
chat - 2.4.5-10

Then:

Establishing connection

Just type on console 'ifup wan'

Now check dmesg logread for successful connect:

but after "ifup wan" absolutely nothing happening...

And if I'm starting pppd manually:

Tue Dec 17 18:27:08 2013 daemon.notice pppd[1288]: pppd 2.4.5 started by root, uid 0
Tue Dec 17 18:27:08 2013 daemon.info pppd[1288]: Using interface ppp0
Tue Dec 17 18:27:08 2013 daemon.notice pppd[1288]: Connect: ppp0 <--> /dev/pts/0
Tue Dec 17 18:27:08 2013 daemon.notice netifd: Interface 'wan' is now up
Tue Dec 17 18:27:08 2013 user.notice firewall: Reloading firewall due to ifup of wan (ppp0)
Tue Dec 17 18:27:38 2013 daemon.warn pppd[1288]: LCP: timeout sending Config-Requests
Tue Dec 17 18:27:38 2013 daemon.notice pppd[1288]: Connection terminated.
Tue Dec 17 18:27:38 2013 daemon.notice netifd: Interface 'wan' is now down
Tue Dec 17 18:27:38 2013 daemon.notice pppd[1288]: Modem hangup
Tue Dec 17 18:27:38 2013 daemon.info pppd[1288]: Exit.

/etc/chatscripts/3g.chat is included in comgt, so install it.

For a working setup under Attitude Adjustment 12.09, you need these packages:

comgt
kmod-usb2
kmod-usb-serial
kmod-usb-serial-option
kmod-usb-acm
usb-modeswitch
usb-modeswitch-data
sdparm
luci-proto-3g

In trunk I think there is no usb-modeswitch-data package anymore...

Then add to your /etc/config/network:

config interface wan2
        option ifname ppp0
        option pincode 1234
        option device /dev/ttyUSB0
        option apn your_providers_apn
        option service umts
        option proto 3g
        option auto '0'

Also edit 3g.chat and change the dial out string, if needed.
For example my provider in Greece requires this:
"ATD*99#"

Reboot or do a "/etc/init.d/network restart" and you are ready to... "ifup wan2" smile

PS: Don't forget to add wan2 to zone wan in /etc/config/firewall

config zone
        option name 'wan'
        ...
        ...
        ...
        ...
        ...
        option network 'wan wan2'

(Last edited by angelos on 17 Dec 2013, 22:04)

Hello,

The problem is that I have those packages installed:

root@OpenWrt:~# opkg list-installed
base-files - 149-r38999
busybox - 1.19.4-7
chat - 2.4.5-10
comgt - 0.32-21
dnsmasq - 2.66-5
dropbear - 2013.59-1
firewall - 2013-11-18
hostapd-common - 20131120-1
iptables - 1.4.20-1
iw - 3.10-1
jshn - 2013-12-02-318d682d29a8974aa53bd7dc523f1514eb0eddb9
kernel - 3.10.21-1-bd7c1eb843051f66db2be660b4508824
kmod-ath - 3.10.21+2013-11-05-5
kmod-ath9k - 3.10.21+2013-11-05-5
kmod-ath9k-common - 3.10.21+2013-11-05-5
kmod-cfg80211 - 3.10.21+2013-11-05-5
kmod-crypto-aes - 3.10.21-1
kmod-crypto-arc4 - 3.10.21-1
kmod-crypto-core - 3.10.21-1
kmod-crypto-hash - 3.10.21-1
kmod-crypto-manager - 3.10.21-1
kmod-crypto-pcompress - 3.10.21-1
kmod-gpio-button-hotplug - 3.10.21-1
kmod-ipt-conntrack - 3.10.21-1
kmod-ipt-core - 3.10.21-1
kmod-ipt-nat - 3.10.21-1
kmod-ipt-nathelper - 3.10.21-1
kmod-leds-gpio - 3.10.21-1
kmod-ledtrig-default-on - 3.10.21-1
kmod-ledtrig-netdev - 3.10.21-1
kmod-ledtrig-timer - 3.10.21-1
kmod-ledtrig-usbdev - 3.10.21-1
kmod-lib-crc-ccitt - 3.10.21-1
kmod-mac80211 - 3.10.21+2013-11-05-5
kmod-nls-base - 3.10.21-1
kmod-ppp - 3.10.21-1
kmod-pppoe - 3.10.21-1
kmod-pppox - 3.10.21-1
kmod-slhc - 3.10.21-1
kmod-usb-acm - 3.10.21-1
kmod-usb-core - 3.10.21-1
kmod-usb-ohci - 3.10.21-1
kmod-usb-serial - 3.10.21-1
kmod-usb-serial-option - 3.10.21-1
kmod-usb-serial-wwan - 3.10.21-1
kmod-usb-uhci - 3.10.21-1
kmod-usb2 - 3.10.21-1
libblobmsg-json - 2013-12-02-318d682d29a8974aa53bd7dc523f1514eb0eddb9
libc - 0.9.33.2-1
libgcc - 4.6-linaro-1
libip4tc - 1.4.20-1
libip6tc - 1.4.20-1
libjson-c - 0.11-2
libjson-script - 2013-12-02-318d682d29a8974aa53bd7dc523f1514eb0eddb9
libnl-tiny - 0.1-3
libpthread - 0.9.33.2-1
librt - 0.9.33.2-1
libsqlite3 - 3071201-1
libubox - 2013-12-02-318d682d29a8974aa53bd7dc523f1514eb0eddb9
libubus - 2013-11-07-8ea96670367e5dd23988b51ee4f0f790393effaf
libuci - 2013-12-02.1-1
libusb-1.0 - 1.0.9-1
libxtables - 1.4.20-1
mtd - 20
netifd - 2013-12-03-45df0e856445469c8647bfcd89c96872d274ef94
opkg - 618-6
ppp - 2.4.5-10
ppp-mod-pppoe - 2.4.5-10
procd - 2013-11-22-dc3988c38546c37a02030af8201048272caa7ded
swconfig - 10
uboot-envtools - 2013.10-1
ubox - 2013-11-28-30deade42ebd7fa112ee2693e9c2cc6532f0e3cf
ubus - 2013-11-07-8ea96670367e5dd23988b51ee4f0f790393effaf
ubusd - 2013-11-07-8ea96670367e5dd23988b51ee4f0f790393effaf
uci - 2013-12-02.1-1
usb-modeswitch - 2013-08-20-575c8e8dec6d1f544debe867ebc0bde051209c17
wpad-mini - 20131120-1

and I have interface configured:

config interface wan
    option ifname ppp0
    option device /dev/ttyUSB0
    option service cdma/evdo
    option username 'IT'
    option password 'IT'

I have modem connected:

root@OpenWrt:~# comgt info -d /dev/ttyUSB0
##### Wireless WAN Modem Configuration #####
Product text:
====

Manufacturer: huawei
Model: EC306
Revision: 11.102.25.00.00
ESN: +GSN:80950b10
+GCAP: +CIS707-A,CIS-856-B,+MS, +ES, +DS, +FCLASS
OK
====
Manufacturer:           huawei
IMEI and Serial Number: +GSN:80950b10
Manufacturer's Revision: 
11.102.25.00.
Hardware Revision:      

Network Locked:         ERROR:
Customisation:          

Band settings:          (
)
APN:                    

##### END #####

but after "ifup wan" absolutely nothing happens: logs are empty.

I don't see sdparm and luci-proto-3g in your package list.
Also in your wan config, there is no option for the apn and you use service cdma/evdo instead of umts.

Futhermore, you don't need to have usb-uhci and usb-ohci, these packages are for USB 1.1 and I suppose you have a USB 2.0 port.

Do the above and if you can't connect paste logread here...

I also saw this in your previous post:

Tue Dec 17 18:27:08 2013 daemon.notice pppd[1288]: Connect: ppp0 <--> /dev/pts/0

/dev/pts/0 is the pseudo-terminal device which is created by an ssh session.
How did you manage this? tongue

I would suggest go back to factory defaults and configure the device again, properly this time.

(Last edited by angelos on 18 Dec 2013, 10:23)

angelos wrote:

Also in your wan config, there is no option for the apn and you use service cdma/evdo instead of umts.

EC306 is a CDMA modem and CDMA does not use APN.
Dialstring for CDMA is #777

Hello,

angelos,
sdparm is used to configure devices, which represent themselves as SCSI-devices, like:

[426956.968000] sd 17:0:0:1: Attached scsi generic sg1 type 0
[426956.992000] sd 17:0:0:1: [sda] Attached SCSI removable disk

-- definitely not my case. And I'm not using LUCI, thus no reasons to install it's modles.
Also I'm configuring CDMA modem => no APN and corresponding service type.
Thanks for usb-uhci and usb-ohci -- I didn't know this. I'll remove this modules -- let's see if it'll change something.
And I managed to get "/dev/pts/0" by running daemon "by hand" -- to see if it'll give me some errors I could work with.

JonnyM, the problem is (as I see it) -- that chap-script even not being called... So, it's seems, something broken "before it"...

"cdma/evdo" is not a valid value for "option service". It must be either "cdma" or "evdo". Also your wan interface lacks "option proto 3g" so OpenWrt does not even know that your wan iface is supposed to be configured as 3g.

jow, thanks for the service and proto corrections (I totally messed the second-one (and I'm sure that I've seem service exactly as cdma/evdo in some config on the forum...)). But unfortunately I see no changes at all:

root@OpenWrt:~# ifup wan
root@OpenWrt:~# logread
Thu Jan  1 00:00:11 1970 kern.warn kernel: [    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Thu Jan  1 00:00:11 1970 kern.debug kernel: [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
Thu Jan  1 00:00:11 1970 kern.debug kernel: [    0.000000] pcpu-alloc: [0] 0 
Thu Jan  1 00:00:11 1970 kern.warn kernel: [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Thu Jan  1 00:00:11 1970 kern.notice kernel: [    0.000000] Kernel command line:  board=TL-MR13U console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.000000] Writing ErrCtl register=00000000
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.000000] Readback ErrCtl register=00000000
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.000000] Memory: 28652k/32768k available (2315k kernel code, 4116k reserved, 609k data, 272k init, 0k highmem)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.000000] NR_IRQS:51
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.080000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.080000] pid_max: default: 32768 minimum: 301
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.080000] Mount-cache hash table entries: 512
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.090000] NET: Registered protocol family 16
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.100000] MIPS: machine is TP-LINK TL-MR13U v1
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.350000] bio: create slab <bio-0> at 0
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.360000] Switching to clocksource MIPS
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.360000] NET: Registered protocol family 2
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.370000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.370000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.370000] TCP: Hash tables configured (established 512 bind 512)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.380000] TCP: reno registered
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.380000] UDP hash table entries: 256 (order: 0, 4096 bytes)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.390000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.400000] NET: Registered protocol family 1
Thu Jan  1 00:00:11 1970 kern.debug kernel: [    0.400000] PCI: CLS 0 bytes, default 32
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.420000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.420000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.430000] msgmni has been set to 55
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.440000] io scheduler noop registered
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.440000] io scheduler deadline registered (default)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.450000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.460000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UART
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.460000] console [ttyATH0] enabled, bootconsole disabled
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.480000] ath79-spi ath79-spi: master is unqueued, this is deprecated
Thu Jan  1 00:00:11 1970 kern.warn kernel: [    0.480000] m25p80 spi0.0: found s25sl032p, expected m25p80
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.490000] m25p80 spi0.0: s25sl032p (4096 Kbytes)
Thu Jan  1 00:00:11 1970 kern.notice kernel: [    0.490000] 5 tp-link partitions found on MTD device spi0.0
Thu Jan  1 00:00:11 1970 kern.notice kernel: [    0.500000] Creating 5 MTD partitions on "spi0.0":
Thu Jan  1 00:00:11 1970 kern.notice kernel: [    0.500000] 0x000000000000-0x000000020000 : "u-boot"
Thu Jan  1 00:00:11 1970 kern.notice kernel: [    0.510000] 0x000000020000-0x000000123d84 : "kernel"
Thu Jan  1 00:00:11 1970 kern.warn kernel: [    0.510000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
Thu Jan  1 00:00:11 1970 kern.notice kernel: [    0.530000] 0x000000123d84-0x0000003f0000 : "rootfs"
Thu Jan  1 00:00:11 1970 kern.warn kernel: [    0.530000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
Thu Jan  1 00:00:11 1970 kern.notice kernel: [    0.550000] mtd: device 2 (rootfs) set to be root filesystem
Thu Jan  1 00:00:11 1970 kern.notice kernel: [    0.550000] 1 squashfs-split partitions found on MTD device rootfs
Thu Jan  1 00:00:11 1970 kern.notice kernel: [    0.560000] 0x000000330000-0x0000003f0000 : "rootfs_data"
Thu Jan  1 00:00:11 1970 kern.notice kernel: [    0.560000] 0x0000003f0000-0x000000400000 : "art"
Thu Jan  1 00:00:11 1970 kern.notice kernel: [    0.570000] 0x000000020000-0x0000003f0000 : "firmware"
Thu Jan  1 00:00:11 1970 kern.info kernel: [    0.590000] libphy: ag71xx_mdio: probed
Thu Jan  1 00:00:11 1970 kern.info kernel: [    1.140000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
Thu Jan  1 00:00:11 1970 kern.info kernel: [    1.150000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
Thu Jan  1 00:00:11 1970 kern.info kernel: [    1.160000] TCP: cubic registered
Thu Jan  1 00:00:11 1970 kern.info kernel: [    1.160000] NET: Registered protocol family 17
Thu Jan  1 00:00:11 1970 kern.notice kernel: [    1.160000] Bridge firewalling registered
Thu Jan  1 00:00:11 1970 kern.info kernel: [    1.170000] 8021q: 802.1Q VLAN Support v1.8
Thu Jan  1 00:00:11 1970 kern.info kernel: [    1.180000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Thu Jan  1 00:00:11 1970 kern.info kernel: [    1.190000] Freeing unused kernel memory: 272K (8033c000 - 80380000)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    4.600000] usbcore: registered new interface driver usbfs
Thu Jan  1 00:00:11 1970 kern.info kernel: [    4.600000] usbcore: registered new interface driver hub
Thu Jan  1 00:00:11 1970 kern.info kernel: [    4.610000] usbcore: registered new device driver usb
Thu Jan  1 00:00:11 1970 kern.info kernel: [    4.620000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Thu Jan  1 00:00:11 1970 kern.info kernel: [    4.630000] ehci-platform: EHCI generic platform driver
Thu Jan  1 00:00:11 1970 kern.info kernel: [    4.630000] ehci-platform ehci-platform: EHCI Host Controller
Thu Jan  1 00:00:11 1970 kern.info kernel: [    4.640000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
Thu Jan  1 00:00:11 1970 kern.info kernel: [    4.640000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
Thu Jan  1 00:00:11 1970 kern.info kernel: [    4.670000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
Thu Jan  1 00:00:11 1970 kern.info kernel: [    4.670000] hub 1-0:1.0: USB hub found
Thu Jan  1 00:00:11 1970 kern.info kernel: [    4.670000] hub 1-0:1.0: 1 port detected
Thu Jan  1 00:00:11 1970 kern.info kernel: [    4.680000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Thu Jan  1 00:00:11 1970 kern.info kernel: [    6.170000] eth0: link up (100Mbps/Full duplex)
Thu Jan  1 00:00:11 1970 kern.notice kernel: [    6.800000] jffs2: notice: (322) jffs2_build_xattr_subsystem: complete building xattr subsystem, 16 of xdatum (1 unchecked, 15 orphan) and 70 of xref (0 dead, 15 orphan) found.
Thu Jan  1 00:00:11 1970 kern.info kernel: [    6.850000] eth0: link down
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.350000] usbcore: registered new interface driver cdc_acm
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.360000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.370000] Loading modules backported from Linux version master-2013-11-05-0-gafa3093
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.370000] Backport generated by backports.git backports-20130802-0-gdb67a3f
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.390000] nf_conntrack version 0.5.0 (451 buckets, 1804 max)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.410000] usbcore: registered new interface driver usbserial
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.420000] usbcore: registered new interface driver usbserial_generic
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.430000] usbserial: USB Serial support registered for generic
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.450000] xt_time: kernel timezone is -0000
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.490000] cfg80211: Calling CRDA to update world regulatory domain
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.490000] cfg80211: World regulatory domain updated:
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.500000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.500000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.510000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.520000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.530000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (300 mBi, 2000 mBm)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.530000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (300 mBi, 2000 mBm)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.540000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.550000] ip_tables: (C) 2000-2006 Netfilter Core Team
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.650000] PPP generic driver version 2.4.2
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.650000] NET: Registered protocol family 24
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.700000] usbcore: registered new interface driver option
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.700000] usbserial: USB Serial support registered for GSM modem (1-port)
Thu Jan  1 00:00:11 1970 kern.debug kernel: [    8.730000] ath: EEPROM regdomain: 0x0
Thu Jan  1 00:00:11 1970 kern.debug kernel: [    8.730000] ath: EEPROM indicates default country code should be used
Thu Jan  1 00:00:11 1970 kern.debug kernel: [    8.730000] ath: doing EEPROM country->regdmn map search
Thu Jan  1 00:00:11 1970 kern.debug kernel: [    8.730000] ath: country maps to regdmn code: 0x3a
Thu Jan  1 00:00:11 1970 kern.debug kernel: [    8.730000] ath: Country alpha2 being used: US
Thu Jan  1 00:00:11 1970 kern.debug kernel: [    8.730000] ath: Regpair used: 0x3a
Thu Jan  1 00:00:11 1970 kern.debug kernel: [    8.740000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.760000] cfg80211: Calling CRDA for country: US
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.760000] cfg80211: Regulatory domain changed to country: US
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.770000] cfg80211:  DFS Master region FCC
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.770000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.780000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.790000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (300 mBi, 1700 mBm)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.800000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (300 mBi, 2400 mBm)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.800000] cfg80211:   (5490000 KHz - 5600000 KHz @ 80000 KHz), (300 mBi, 2400 mBm)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.810000] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2400 mBm)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.820000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (300 mBi, 3000 mBm)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.830000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm)
Thu Jan  1 00:00:11 1970 kern.info kernel: [    8.840000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
Thu Jan  1 00:00:14 1970 daemon.notice netifd: Interface 'loopback' is now up
Thu Jan  1 00:00:14 1970 daemon.notice netifd: Interface 'wifi' is now up
Thu Jan  1 00:00:15 1970 daemon.notice netifd: lan (657): udhcpc (v1.19.4) started
Thu Jan  1 00:00:15 1970 daemon.notice netifd: lan (657): Sending discover...
Thu Jan  1 00:00:15 1970 authpriv.info dropbear[591]: Not backgrounding
Thu Jan  1 00:00:15 1970 kern.info kernel: [   15.510000] eth0: link up (100Mbps/Full duplex)
Thu Jan  1 00:00:15 1970 kern.info kernel: [   15.780000] cfg80211: Calling CRDA for country: JP
Thu Jan  1 00:00:15 1970 kern.info kernel: [   15.790000] cfg80211: Regulatory domain changed to country: JP
Thu Jan  1 00:00:15 1970 kern.info kernel: [   15.790000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Thu Jan  1 00:00:15 1970 kern.info kernel: [   15.800000] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Thu Jan  1 00:00:15 1970 kern.info kernel: [   15.810000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm)
Thu Jan  1 00:00:15 1970 kern.info kernel: [   15.810000] cfg80211:   (4910000 KHz - 4990000 KHz @ 40000 KHz), (N/A, 2300 mBm)
Thu Jan  1 00:00:15 1970 kern.info kernel: [   15.820000] cfg80211:   (5030000 KHz - 5090000 KHz @ 40000 KHz), (N/A, 2300 mBm)
Thu Jan  1 00:00:15 1970 kern.info kernel: [   15.830000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm)
Thu Jan  1 00:00:15 1970 kern.info kernel: [   15.840000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2000 mBm)
Thu Jan  1 00:00:15 1970 kern.info kernel: [   15.840000] cfg80211:   (5490000 KHz - 5710000 KHz @ 160000 KHz), (N/A, 2300 mBm)
Thu Jan  1 00:00:16 1970 user.notice firewall: Reloading firewall due to ifup of wifi (br-wifi)
Thu Jan  1 00:00:16 1970 user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Thu Jan  1 00:00:16 1970 user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Thu Jan  1 00:00:17 1970 daemon.notice netifd: radio0 (642): sh: bad number
Thu Jan  1 00:00:17 1970 kern.info kernel: [   17.520000] device wlan0 entered promiscuous mode
Thu Jan  1 00:00:18 1970 kern.info kernel: [   17.990000] br-wifi: port 1(wlan0) entered forwarding state
Thu Jan  1 00:00:18 1970 kern.info kernel: [   18.000000] br-wifi: port 1(wlan0) entered forwarding state
Thu Jan  1 00:00:18 1970 daemon.notice netifd: lan (657): Sending discover...
Thu Jan  1 00:00:18 1970 daemon.notice netifd: lan (657): Sending select for 192.168.1.34...
Thu Jan  1 00:00:18 1970 daemon.notice netifd: lan (657): Lease of 192.168.1.34 obtained, lease time 259200
Thu Jan  1 00:00:18 1970 daemon.notice netifd: Interface 'lan' is now up
Thu Jan  1 00:00:18 1970 user.notice firewall: Reloading firewall due to ifup of lan (eth0)
Thu Jan  1 00:00:20 1970 kern.info kernel: [   20.000000] br-wifi: port 1(wlan0) entered forwarding state
Thu Jan  1 00:00:20 1970 daemon.info dnsmasq[938]: started, version 2.66 cachesize 150
Thu Jan  1 00:00:20 1970 daemon.info dnsmasq[938]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth
Thu Jan  1 00:00:20 1970 daemon.info dnsmasq-dhcp[938]: DHCP, IP range 192.168.4.100 -- 192.168.4.199, lease time 1h
Thu Jan  1 00:00:20 1970 daemon.info dnsmasq[938]: using local addresses only for domain lan
Thu Jan  1 00:00:20 1970 daemon.info dnsmasq[938]: reading /tmp/resolv.conf.auto
Thu Jan  1 00:00:20 1970 daemon.info dnsmasq[938]: using nameserver 213.179.249.132#53
Thu Jan  1 00:00:20 1970 daemon.info dnsmasq[938]: using nameserver 213.179.249.131#53
Thu Jan  1 00:00:20 1970 daemon.info dnsmasq[938]: using local addresses only for domain lan
Thu Jan  1 00:00:20 1970 daemon.info dnsmasq[938]: read /etc/hosts - 1 addresses
Thu Jan  1 00:00:20 1970 daemon.info dnsmasq-dhcp[938]: read /etc/ethers - 0 addresses
Thu Jan  1 00:00:20 1970 user.emerg syslog: - init complete -
Wed Dec 18 21:52:26 2013 kern.info kernel: [   27.810000] device wlan0 left promiscuous mode
Wed Dec 18 21:52:26 2013 kern.info kernel: [   27.810000] br-wifi: port 1(wlan0) entered disabled state
Wed Dec 18 21:52:26 2013 daemon.notice netifd: radio0 (968): sh: bad number
Wed Dec 18 21:52:26 2013 kern.info kernel: [   28.420000] device wlan0 entered promiscuous mode
Wed Dec 18 21:52:26 2013 kern.info kernel: [   28.420000] br-wifi: port 1(wlan0) entered forwarding state
Wed Dec 18 21:52:26 2013 kern.info kernel: [   28.420000] br-wifi: port 1(wlan0) entered forwarding state
Wed Dec 18 21:52:28 2013 kern.info kernel: [   30.420000] br-wifi: port 1(wlan0) entered forwarding state
Wed Dec 18 21:53:00 2013 authpriv.info dropbear[1132]: Child connection from 192.168.1.33:49348
Wed Dec 18 21:53:02 2013 authpriv.notice dropbear[1132]: Password auth succeeded for 'root' from 192.168.1.33:49348
Wed Dec 18 21:53:21 2013 kern.info kernel: [   83.110000] usb 1-1: new high-speed USB device number 2 using ehci-platform
Wed Dec 18 21:53:22 2013 kern.info kernel: [   84.230000] usb 1-1: USB disconnect, device number 2
Wed Dec 18 21:53:29 2013 kern.info kernel: [   91.590000] usb 1-1: new high-speed USB device number 3 using ehci-platform
Wed Dec 18 21:53:30 2013 kern.info kernel: [   91.750000] option 1-1:1.0: GSM modem (1-port) converter detected
Wed Dec 18 21:53:30 2013 kern.info kernel: [   91.760000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Wed Dec 18 21:53:30 2013 kern.info kernel: [   91.760000] option 1-1:1.2: GSM modem (1-port) converter detected
Wed Dec 18 21:53:30 2013 kern.info kernel: [   91.770000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Wed Dec 18 21:53:30 2013 kern.info kernel: [   91.790000] option 1-1:1.3: GSM modem (1-port) converter detected
Wed Dec 18 21:53:30 2013 kern.info kernel: [   91.790000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2

and my "new" network is:

config interface 'loopback'
    option ifname 'lo'
    option proto 'static'
    option ipaddr '127.0.0.1'
    option netmask '255.0.0.0'

#config globals 'globals'
#    option ula_prefix 'fd79:b073:ffb9::/48'

config interface lan
    option ifname eth0
    option proto dhcp
    option hostname 'TL-MR13U'

config interface wan
    option ifname ppp0
    option device /dev/ttyUSB0
    option service evdo
    option prorto 3g
    option username 'IT'
    option password 'IT'

config interface wifi
    option ifname radio0
    option proto static
    option type bridge
    option ipaddr '192.168.4.1'
    option netmask '255.255.255.0'
    option defaultroute 0

change "option prorto 3g" to "option proto 3g"

jow, neryba,
Thank you very much! -- It's connected now.

P.S.
Never configure your router @midnight.

I am planning to buy the same dongle, i.e. EC-306/ EC306. I intend to try openwrt on my TL-WR1043ND router.

Does anyone know if it will work?

The discussion might have continued from here.