1 (edytowany przez Cezary 2015-01-29 20:47:43)

Temat: Tryb NDIS w Huawei E3131

W nowszych wersjach kernela pojawił się sterownik huawej-cdc-ncm przeznaczony m.in dla modemu E3131. Cała historia tego modemu opisana jest na listach dyskusyjnych związanych z linux-usb, okazało się że modem nie reaguje na zwykłe polecenia AT przeznaczone do łączenia jeżeli nie zostały one wysłane specjalnym kanałem komunikacyjnym. Ten sterownik to robi; dzięki temu możliwe jest uruchomienie trybu NDIS dla tego modemu.

Ponieważ pojawiło się kilka różnych łat, włączyłem je do moich źródeł BB dzięki czemu mógł zaistnieć ten sterownik w postaci pakietu kmod-usb-net-huawei-cdc-ncm. Po zainstalowaniu tworzy się nowe urządzenie o nazwie /dev/cdc-wdm0. przez niego możemy "czystym" tekstem rozmawiać z modemem.

Aby zainicjalizować podłączenie wystarczy wysłać polecenie:

 # echo -e 'AT^NDISDUP=1,1,"APN"\r' > /dev/cdc-wdm0

a później pobrać przez dhcp adres na interfejsie wwan0.
Aby zakończyć połączenie:

 # echo -e 'AT^NDISDUP=1,0\r' > /dev/cdc-wdm0

Połączenie można wykonać ręcznie, ale przygotowałem także odpowiednie pakiety aby można było automatycznie zestawić połączenie. Pakiety dostępne są tylko w moim repozytorium i nie stanowią części oficjalnego wydania BB (są częścią obecnego trunka)
Instalacja:

 # opkg update
 # opkg install comgt-ncm kmod-usb-net-huawei-cdc-ncm

Konfiguracja: sekcja wan w pliku /etc/config/network

config interface 'wan'
        option proto 'ncm'
        option apn 'internet'
        option device '/dev/cdc-wdm0'

I to wszytko. Po ifup wan lub restarcie routera powinien się połączyć.

Przykładowe informacje z mojego modemu (Huawei E3131s-2):

root@OpenWrt:/# ifconfig wwan0
wwan0     Link encap:Ethernet  HWaddr 58:2C:80:13:92:63  
          inet addr:109.243.136.37  Bcast:109.243.136.39  Mask:255.255.255.252
          inet6 addr: fe80::5a2c:80ff:fe13:9263/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1308 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1653 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:538840 (526.2 KiB)  TX bytes:11600423 (11.0 MiB)

root@OpenWrt:/# 3ginfo
Status: Połączony
Czas polaczenia: 0d, 00:05:33
Przeslano danych: 570.0 KiB / 13.5 MiB
Operator: Play
Tryb pracy: HSPA+
Sila sygnalu: 87%
Urzadzenie: huawei E3131
MCC MNC: 260 06
LAC: 0070 (112)
LCID: - (-)
RNC: - (-)
eNB: - (-)
CID: 2DA8 (11688)
CSQ: 27
RSSI: -59 dBm

UWAGI:
- czasami sterownik się wiesza. Objawia się to przyznaniem adresów ip ale brakiem całkowitego ruchu - ani pingi ani inna transmisja nie przechodzi. Wtedy jedynym rozwiązaniem jest restart modemu/routera
- źle naliczane są liczniki transmisji (do widać po danych np. przy ifconfig czy 3ginfo). To znany problem na styku kernela/sterownika cdc/huawei i nie zostanie rozwiązany aż do momentu pojawienia się nowego kernela  z przepisanym podsystemem cdc.

Dla porównania: normalna konfiguracja RAS dla modemu E3131:

config interface 'wan'
        option proto '3g'
        option apn 'internet'
        option device '/dev/ttyUSB0'
Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

2

Odp: Tryb NDIS w Huawei E3131

No pięknie Cezary. Brawo! Świetny news.

Pozdr,

3

Odp: Tryb NDIS w Huawei E3131

Cezary czy dla simplefailove można zastosować ten tryb? Czy taka konfiguracja będzie odpowiednia?

config interface 'wan2'
    option proto '3g'
    option service 'umts'
    option device '/dev/cdc-wdm0'
    option apn 'internet'
    option username 'internet'
    option password 'internet'
    option defaultroute '1'
    option auto '0'
    option ifname 'wwan0'

Pytam bo przy próbie połączenia otrzymuje

Tue Jan  6 12:20:31 2015 daemon.notice netifd: Interface 'wan2' is setting up now
Tue Jan  6 12:20:31 2015 daemon.notice netifd: wan2 (3878): comgt 12:20:31 -> -- Error Report --
Tue Jan  6 12:20:31 2015 daemon.notice netifd: wan2 (3878): comgt 12:20:31 -> ---->       ^
Tue Jan  6 12:20:31 2015 daemon.notice netifd: wan2 (3878): comgt 12:20:31 -> Error @6, line 1, Can't control /dev/cdc-wdm0, please try again.
Tue Jan  6 12:20:31 2015 daemon.notice netifd: wan2 (3878): . (1)
Tue Jan  6 12:20:31 2015 daemon.notice netifd: wan2 (3878): 
Tue Jan  6 12:20:31 2015 daemon.notice pppd[3892]: pppd 2.4.7 started by root, uid 0
Tue Jan  6 12:20:31 2015 daemon.err pppd[3892]: tcgetattr: Inappropriate ioctl for device (line 979)
Tue Jan  6 12:20:32 2015 user.notice /usr/bin/simplefailover: Changing connection to main wan: wan
Tue Jan  6 12:20:32 2015 daemon.info pppd[3892]: Exit.
Tue Jan  6 12:20:32 2015 daemon.notice netifd: Interface 'wan2' is now down

4

Odp: Tryb NDIS w Huawei E3131

Przecież widzisz że nie. Podałem jak ma wyglądać sekcja, to czemu pomieszałeś jedno z drugim?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: Tryb NDIS w Huawei E3131

No dobra zainstalowałem czysty obraz openwrt (Twój) zrobiłem wszystko zgodnie z opisem i nie łączy:

root@OpenWrt:~# logread
Tue Jan  6 12:55:36 2015 kern.notice kernel: [    0.580000] 0x0000007f0000-0x000000800000 : "art"
Tue Jan  6 12:55:36 2015 kern.notice kernel: [    0.590000] 0x000000020000-0x0000007f0000 : "firmware"
Tue Jan  6 12:55:36 2015 kern.info kernel: [    0.620000] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
Tue Jan  6 12:55:36 2015 kern.info kernel: [    1.840000] libphy: ag71xx_mdio: probed
Tue Jan  6 12:55:36 2015 kern.info kernel: [    2.390000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
Tue Jan  6 12:55:36 2015 kern.info kernel: [    2.400000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
Tue Jan  6 12:55:36 2015 kern.info kernel: [    2.410000] TCP: cubic registered
Tue Jan  6 12:55:36 2015 kern.info kernel: [    2.420000] NET: Registered protocol family 17
Tue Jan  6 12:55:36 2015 kern.notice kernel: [    2.420000] Bridge firewalling registered
Tue Jan  6 12:55:36 2015 kern.info kernel: [    2.420000] 8021q: 802.1Q VLAN Support v1.8
Tue Jan  6 12:55:36 2015 kern.err kernel: [    2.430000] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Tue Jan  6 12:55:36 2015 kern.info kernel: [    2.440000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Tue Jan  6 12:55:36 2015 kern.info kernel: [    2.450000] Freeing unused kernel memory: 256K (80350000 - 80390000)
Tue Jan  6 12:55:36 2015 kern.info kernel: [    4.890000] usbcore: registered new interface driver usbfs
Tue Jan  6 12:55:36 2015 kern.info kernel: [    4.900000] usbcore: registered new interface driver hub
Tue Jan  6 12:55:36 2015 kern.info kernel: [    4.900000] usbcore: registered new device driver usb
Tue Jan  6 12:55:36 2015 kern.notice kernel: [    4.950000] SCSI subsystem initialized
Tue Jan  6 12:55:36 2015 kern.info kernel: [    4.960000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Tue Jan  6 12:55:36 2015 kern.info kernel: [    4.960000] ehci-platform: EHCI generic platform driver
Tue Jan  6 12:55:36 2015 kern.info kernel: [    4.970000] ehci-platform ehci-platform: EHCI Host Controller
Tue Jan  6 12:55:36 2015 kern.info kernel: [    4.980000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
Tue Jan  6 12:55:36 2015 kern.info kernel: [    4.990000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
Tue Jan  6 12:55:36 2015 kern.info kernel: [    5.010000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
Tue Jan  6 12:55:36 2015 kern.info kernel: [    5.010000] hub 1-0:1.0: USB hub found
Tue Jan  6 12:55:36 2015 kern.info kernel: [    5.020000] hub 1-0:1.0: 1 port detected
Tue Jan  6 12:55:36 2015 kern.info kernel: [    5.020000] usbcore: registered new interface driver usb-storage
Tue Jan  6 12:55:36 2015 kern.info kernel: [    5.340000] usb 1-1: new high-speed USB device number 2 using ehci-platform
Tue Jan  6 12:55:36 2015 kern.info kernel: [    5.490000] hub 1-1:1.0: USB hub found
Tue Jan  6 12:55:36 2015 kern.info kernel: [    5.490000] hub 1-1:1.0: 4 ports detected
Tue Jan  6 12:55:36 2015 kern.info kernel: [    5.780000] usb 1-1.1: new high-speed USB device number 3 using ehci-platform
Tue Jan  6 12:55:37 2015 kern.info kernel: [    5.890000] usb-storage 1-1.1:1.0: USB Mass Storage device detected
Tue Jan  6 12:55:37 2015 kern.info kernel: [    5.900000] scsi0 : usb-storage 1-1.1:1.0
Tue Jan  6 12:55:37 2015 kern.info kernel: [    6.260000] usb 1-1.2: new high-speed USB device number 4 using ehci-platform
Tue Jan  6 12:55:37 2015 kern.info kernel: [    6.370000] usb-storage 1-1.2:1.0: USB Mass Storage device detected
Tue Jan  6 12:55:37 2015 kern.info kernel: [    6.380000] scsi1 : usb-storage 1-1.2:1.0
Tue Jan  6 12:55:37 2015 kern.info kernel: [    6.380000] usb-storage 1-1.2:1.1: USB Mass Storage device detected
Tue Jan  6 12:55:37 2015 kern.info kernel: [    6.390000] scsi2 : usb-storage 1-1.2:1.1
Tue Jan  6 12:55:37 2015 kern.info kernel: [    6.430000] eth0: link up (1000Mbps/Full duplex)
Tue Jan  6 12:55:37 2015 kern.notice kernel: [    6.900000] scsi 0:0:0:0: Direct-Access     Generic  USB  SD Reader   1.00 PQ: 0 ANSI: 0 CCS
Tue Jan  6 12:55:37 2015 kern.notice kernel: [    6.910000] sd 0:0:0:0: [sda] 61765632 512-byte logical blocks: (31.6 GB/29.4 GiB)
Tue Jan  6 12:55:37 2015 kern.notice kernel: [    6.920000] sd 0:0:0:0: [sda] Write Protect is off
Tue Jan  6 12:55:37 2015 kern.debug kernel: [    6.920000] sd 0:0:0:0: [sda] Mode Sense: 4b 00 00 08
Tue Jan  6 12:55:37 2015 kern.err kernel: [    6.920000] sd 0:0:0:0: [sda] No Caching mode page found
Tue Jan  6 12:55:37 2015 kern.err kernel: [    6.930000] sd 0:0:0:0: [sda] Assuming drive cache: write through
Tue Jan  6 12:55:37 2015 kern.err kernel: [    6.940000] sd 0:0:0:0: [sda] No Caching mode page found
Tue Jan  6 12:55:37 2015 kern.err kernel: [    6.940000] sd 0:0:0:0: [sda] Assuming drive cache: write through
Tue Jan  6 12:55:37 2015 kern.info kernel: [    6.950000]  sda: sda1 sda2
Tue Jan  6 12:55:37 2015 kern.err kernel: [    6.960000] sd 0:0:0:0: [sda] No Caching mode page found
Tue Jan  6 12:55:37 2015 kern.err kernel: [    6.960000] sd 0:0:0:0: [sda] Assuming drive cache: write through
Tue Jan  6 12:55:37 2015 kern.notice kernel: [    6.970000] sd 0:0:0:0: [sda] Attached SCSI removable disk
Tue Jan  6 12:55:37 2015 kern.notice kernel: [    7.380000] scsi 1:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Tue Jan  6 12:55:37 2015 kern.notice kernel: [    7.390000] scsi 2:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Tue Jan  6 12:55:37 2015 kern.notice kernel: [    7.400000] sd 2:0:0:0: [sdb] Attached SCSI removable disk
Tue Jan  6 12:55:37 2015 kern.notice kernel: [    8.920000] jffs2: notice: (435) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 15 of xref (0 dead, 2 orphan) found.
Tue Jan  6 12:55:37 2015 kern.notice kernel: [    8.990000] jffs2: notice: (432) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 15 of xref (0 dead, 2 orphan) found.
Tue Jan  6 12:55:37 2015 kern.info kernel: [    9.040000] eth0: link down
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.440000] NET: Registered protocol family 10
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.460000] nf_conntrack version 0.5.0 (1973 buckets, 7892 max)
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.500000] ip6_tables: (C) 2000-2006 Netfilter Core Team
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.530000] usbcore: registered new interface driver cdc_wdm
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.530000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.540000] Backport generated by backports.git backports-20140320-37-g5c33da0
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.560000] ip_tables: (C) 2000-2006 Netfilter Core Team
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.620000] usbcore: registered new interface driver usbserial
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.640000] usbcore: registered new interface driver usbserial_generic
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.640000] usbserial: USB Serial support registered for generic
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.700000] xt_time: kernel timezone is -0000
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.720000] usbcore: registered new interface driver cdc_ncm
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.760000] cfg80211: Calling CRDA to update world regulatory domain
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.760000] cfg80211: World regulatory domain updated:
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.770000] cfg80211:  DFS Master region: unset
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.770000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.780000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.790000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.800000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.810000] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.820000] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.820000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.830000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.840000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.850000] usbcore: registered new interface driver huawei_cdc_ncm
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.930000] PPP generic driver version 2.4.2
Tue Jan  6 12:55:37 2015 kern.info kernel: [   11.950000] NET: Registered protocol family 24
Tue Jan  6 12:55:37 2015 kern.info kernel: [   12.010000] usbcore: registered new interface driver option
Tue Jan  6 12:55:37 2015 kern.info kernel: [   12.030000] usbserial: USB Serial support registered for GSM modem (1-port)
Tue Jan  6 12:55:37 2015 kern.debug kernel: [   12.070000] ath: EEPROM regdomain: 0x0
Tue Jan  6 12:55:37 2015 kern.debug kernel: [   12.070000] ath: EEPROM indicates default country code should be used
Tue Jan  6 12:55:37 2015 kern.debug kernel: [   12.070000] ath: doing EEPROM country->regdmn map search
Tue Jan  6 12:55:37 2015 kern.debug kernel: [   12.070000] ath: country maps to regdmn code: 0x3a
Tue Jan  6 12:55:37 2015 kern.debug kernel: [   12.070000] ath: Country alpha2 being used: US
Tue Jan  6 12:55:37 2015 kern.debug kernel: [   12.070000] ath: Regpair used: 0x3a
Tue Jan  6 12:55:37 2015 kern.debug kernel: [   12.090000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Tue Jan  6 12:55:37 2015 kern.info kernel: [   12.090000] cfg80211: Calling CRDA for country: US
Tue Jan  6 12:55:37 2015 kern.info kernel: [   12.100000] ieee80211 phy0: Atheros AR9340 Rev:0 mem=0xb8100000, irq=47
Tue Jan  6 12:55:37 2015 kern.warn kernel: [   12.100000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
Tue Jan  6 12:55:37 2015 kern.debug kernel: [   12.110000] ath: EEPROM regdomain: 0x0
Tue Jan  6 12:55:37 2015 kern.debug kernel: [   12.110000] ath: EEPROM indicates default country code should be used
Tue Jan  6 12:55:37 2015 kern.debug kernel: [   12.110000] ath: doing EEPROM country->regdmn map search
Tue Jan  6 12:55:37 2015 kern.debug kernel: [   12.110000] ath: country maps to regdmn code: 0x3a
Tue Jan  6 12:55:37 2015 kern.debug kernel: [   12.110000] ath: Country alpha2 being used: US
Tue Jan  6 12:55:37 2015 kern.debug kernel: [   12.110000] ath: Regpair used: 0x3a
Tue Jan  6 12:55:37 2015 kern.info kernel: [   12.130000] cfg80211: Regulatory domain changed to country: US
Tue Jan  6 12:55:37 2015 kern.info kernel: [   12.130000] cfg80211:  DFS Master region: FCC
Tue Jan  6 12:55:37 2015 kern.info kernel: [   12.140000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Tue Jan  6 12:55:37 2015 kern.info kernel: [   12.150000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
Tue Jan  6 12:55:37 2015 kern.info kernel: [   12.150000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 mBm), (N/A)
Tue Jan  6 12:55:37 2015 kern.info kernel: [   12.160000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 mBm), (0 s)
Tue Jan  6 12:55:37 2015 kern.info kernel: [   12.170000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
Tue Jan  6 12:55:37 2015 kern.info kernel: [   12.180000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
Tue Jan  6 12:55:37 2015 kern.debug kernel: [   12.200000] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
Tue Jan  6 12:55:37 2015 kern.info kernel: [   12.220000] ieee80211 phy1: Atheros AR9300 Rev:4 mem=0xb0000000, irq=40
Tue Jan  6 12:55:38 2015 user.emerg syslog: 'radio0' is disabled
Tue Jan  6 12:55:38 2015 user.emerg syslog: 'radio1' is disabled
Tue Jan  6 12:55:38 2015 user.emerg syslog: 'radio0' is disabled
Tue Jan  6 12:55:38 2015 user.emerg syslog: 'radio1' is disabled
Tue Jan  6 12:55:39 2015 user.emerg syslog: this file has been obseleted. please call "/sbin/block mount" directly
Tue Jan  6 12:55:39 2015 kern.info kernel: [   16.770000] usb 1-1.2: USB disconnect, device number 4
Tue Jan  6 12:55:39 2015 user.err syslog: /dev/mtdblock3 is already mounted
Tue Jan  6 12:55:39 2015 user.emerg syslog: block: /dev/mtdblock3 is already mounted
Tue Jan  6 12:55:41 2015 authpriv.info dropbear[1150]: Not backgrounding
Tue Jan  6 12:55:42 2015 user.emerg syslog: setting up led USB1
Tue Jan  6 12:55:42 2015 user.emerg syslog: setting up led USB2
Tue Jan  6 12:55:42 2015 user.emerg syslog: setting up led WLAN2G
Tue Jan  6 12:55:42 2015 user.emerg syslog: - init complete -
Tue Jan  6 12:55:43 2015 kern.info kernel: [   20.320000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Tue Jan  6 12:55:43 2015 kern.info kernel: [   20.330000] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
Tue Jan  6 12:55:43 2015 kern.info kernel: [   20.340000] device eth0.1 entered promiscuous mode
Tue Jan  6 12:55:43 2015 kern.info kernel: [   20.340000] device eth0 entered promiscuous mode
Tue Jan  6 12:55:43 2015 daemon.notice netifd: Interface 'lan' is enabled
Tue Jan  6 12:55:43 2015 daemon.notice netifd: Interface 'lan' is setting up now
Tue Jan  6 12:55:43 2015 daemon.notice netifd: Interface 'lan' is now up
Tue Jan  6 12:55:43 2015 daemon.notice netifd: Interface 'loopback' is enabled
Tue Jan  6 12:55:43 2015 daemon.notice netifd: Interface 'loopback' is setting up now
Tue Jan  6 12:55:43 2015 daemon.notice netifd: Interface 'loopback' is now up
Tue Jan  6 12:55:43 2015 daemon.notice netifd: Interface 'wan' is setting up now
Tue Jan  6 12:55:43 2015 kern.info kernel: [   20.360000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
Tue Jan  6 12:55:43 2015 daemon.notice netifd: Network device 'lo' link is up
Tue Jan  6 12:55:43 2015 daemon.notice netifd: Interface 'loopback' has link connectivity 
Tue Jan  6 12:55:43 2015 daemon.err huawei-ncm[1217]: The specified control device does not exist
Tue Jan  6 12:55:43 2015 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Tue Jan  6 12:55:44 2015 kern.info kernel: [   21.520000] eth0: link up (1000Mbps/Full duplex)
Tue Jan  6 12:55:44 2015 daemon.notice netifd: Network device 'eth0' link is up
Tue Jan  6 12:55:44 2015 daemon.notice netifd: VLAN 'eth0.1' link is up
Tue Jan  6 12:55:44 2015 kern.info kernel: [   21.530000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Tue Jan  6 12:55:44 2015 kern.info kernel: [   21.530000] br-lan: port 1(eth0.1) entered forwarding state
Tue Jan  6 12:55:44 2015 kern.info kernel: [   21.540000] br-lan: port 1(eth0.1) entered forwarding state
Tue Jan  6 12:55:44 2015 kern.info kernel: [   21.550000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
Tue Jan  6 12:55:44 2015 kern.info kernel: [   21.550000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Tue Jan  6 12:55:44 2015 daemon.notice netifd: Bridge 'br-lan' link is up
Tue Jan  6 12:55:44 2015 daemon.notice netifd: Interface 'lan' has link connectivity 
Tue Jan  6 12:55:45 2015 kern.info kernel: [   22.390000] usb 1-1.2: new high-speed USB device number 5 using ehci-platform
Tue Jan  6 12:55:45 2015 kern.info kernel: [   22.510000] option 1-1.2:1.0: GSM modem (1-port) converter detected
Tue Jan  6 12:55:45 2015 kern.info kernel: [   22.520000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
Tue Jan  6 12:55:45 2015 kern.info kernel: [   22.530000] usb 1-1.2: MAC-Address: 58:2c:80:13:92:63
Tue Jan  6 12:55:45 2015 kern.info kernel: [   22.540000] huawei_cdc_ncm 1-1.2:1.1: cdc-wdm0: USB WDM device
Tue Jan  6 12:55:45 2015 kern.info kernel: [   22.550000] huawei_cdc_ncm 1-1.2:1.1 wwan0: register 'huawei_cdc_ncm' at usb-ehci-platform-1.2, Huawei CDC NCM device, 58:2c:80:13:92:63
Tue Jan  6 12:55:45 2015 kern.info kernel: [   22.570000] option 1-1.2:1.2: GSM modem (1-port) converter detected
Tue Jan  6 12:55:45 2015 kern.info kernel: [   22.570000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
Tue Jan  6 12:55:45 2015 kern.info kernel: [   22.590000] option 1-1.2:1.3: GSM modem (1-port) converter detected
Tue Jan  6 12:55:45 2015 kern.info kernel: [   22.590000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
Tue Jan  6 12:55:45 2015 kern.info kernel: [   22.610000] usb-storage 1-1.2:1.4: USB Mass Storage device detected
Tue Jan  6 12:55:45 2015 kern.info kernel: [   22.610000] scsi3 : usb-storage 1-1.2:1.4
Tue Jan  6 12:55:45 2015 kern.info kernel: [   22.620000] usb-storage 1-1.2:1.5: USB Mass Storage device detected
Tue Jan  6 12:55:45 2015 kern.info kernel: [   22.620000] scsi4 : usb-storage 1-1.2:1.5
Tue Jan  6 12:55:46 2015 kern.info kernel: [   23.540000] br-lan: port 1(eth0.1) entered forwarding state
Tue Jan  6 12:55:46 2015 kern.notice kernel: [   23.620000] scsi 3:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Tue Jan  6 12:55:46 2015 kern.notice kernel: [   23.640000] scsi 4:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Tue Jan  6 12:55:46 2015 kern.notice kernel: [   23.670000] sd 4:0:0:0: [sdb] Attached SCSI removable disk
Tue Jan  6 12:55:47 2015 daemon.info dnsmasq[1441]: started, version 2.71 cachesize 150
Tue Jan  6 12:55:47 2015 daemon.info dnsmasq[1441]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC
Tue Jan  6 12:55:47 2015 daemon.info dnsmasq-dhcp[1441]: DHCP, IP range 192.168.3.100 -- 192.168.3.249, lease time 12h
Tue Jan  6 12:55:47 2015 daemon.info dnsmasq[1441]: using local addresses only for domain lan
Tue Jan  6 12:55:47 2015 daemon.warn dnsmasq[1441]: no servers found in /tmp/resolv.conf.auto, will retry
Tue Jan  6 12:55:47 2015 daemon.info dnsmasq[1441]: read /etc/hosts - 1 addresses
Tue Jan  6 12:55:47 2015 daemon.info dnsmasq[1441]: read /tmp/hosts/dhcp - 1 addresses
Tue Jan  6 12:55:47 2015 daemon.info dnsmasq-dhcp[1441]: read /etc/ethers - 0 addresses
Tue Jan  6 12:55:48 2015 user.err syslog: Unkown action change
Tue Jan  6 12:55:48 2015 user.err syslog: Unkown action change
Tue Jan  6 12:56:01 2015 authpriv.info dropbear[1515]: Child connection from 192.168.3.106:38035
Tue Jan  6 12:56:08 2015 authpriv.notice dropbear[1515]: Password auth succeeded for 'root' from 192.168.3.106:38035

6

Odp: Tryb NDIS w Huawei E3131

Zrób konfig, zresetuj router.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: Tryb NDIS w Huawei E3131

Konfig w /etc/config/network? Jeżeli tak to zrobiłem, zrestartowałem i nadal to samo hmm Mam modem E3131s-2

8

Odp: Tryb NDIS w Huawei E3131

A teraz: led na modemie zapaliła się na stałe?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9

Odp: Tryb NDIS w Huawei E3131

Wcale nie świeci

10

Odp: Tryb NDIS w Huawei E3131

Więc Ci nie łączy. Jesteś w zasięgu?

Mały debug: zrób sobie dwie sesje. W jeden wpisz cat /dev/cdc-wdm0, w drugiej echo -e 'AT^NDISDUP=1,1,"internet"\r' > /dev/cdc-wdm0 i zobacz jaka będzie odpowiedź na pierwszej.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11

Odp: Tryb NDIS w Huawei E3131

Tak jestem w zasięgu. O teraz po wydaniu echo -e 'AT^NDISDUP=1,1,"internet"\r' > /dev/cdc-wdm0 zapaliła się dioda na modemie, a w cat /dev/cdc-wdm0 jest:

root@OpenWrt:~# cat /dev/cdc-wdm0

^SIMST:1,0

^MODE: 5,4

^RSSI: 8

^SRVST: 2

^RSSI: 8

OK

^MODE: 5,9

^NDISSTAT:1,,,"IPV4"

^DSFLOWRPT:00000002,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:00000004,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:00000006,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:00000008,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:0000000A,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^MODE: 5,4

^DSFLOWRPT:0000000C,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:0000000E,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:00000010,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:00000012,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:00000014,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:00000016,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:00000018,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:0000001A,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:0000001C,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^RSSI: 11

^DSFLOWRPT:0000001E,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:00000020,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:00000022,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:00000024,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:00000026,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:00000028,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:0000002A,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:0000002C,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:0000002E,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:00000030,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:00000032,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:00000034,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:00000036,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:00000038,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

^DSFLOWRPT:0000003A,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000

W logach pojawiło się:

Tue Jan  6 13:15:06 2015 kern.err kernel: [  731.980000] huawei_cdc_ncm 1-1.2:1.1: unknown notification 42 received: index 256 len 2048
Tue Jan  6 13:15:38 2015 authpriv.info dropbear[1656]: Child connection from 192.168.3.106:38282
Tue Jan  6 13:15:43 2015 authpriv.notice dropbear[1656]: Password auth succeeded for 'root' from 192.168.3.106:38282

Jednak internetu nie ma

root@OpenWrt:~# ping -c5 8.8.4.4
PING 8.8.4.4 (8.8.4.4): 56 data bytes
ping: sendto: Network is unreachable

12

Odp: Tryb NDIS w Huawei E3131

W logach to Ci się nic nie pojawiło. Teraz zrób udhcpc -i wlan0

PS. Zrób ls -al /lib/netifd/proto

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

13

Odp: Tryb NDIS w Huawei E3131

Nic nie zmienia udhcpc -i wlan0, a:

root@OpenWrt:~# ls -al /lib/netifd/proto
drwxrwxr-x    1 root     root             0 Jan  6 12:54 .
drwxrwxr-x    1 root     root             0 Aug 18 19:22 ..
-rwxr-xr-x    1 root     root          2259 Jan  5 22:31 3g.sh
-rwxrwxr-x    1 root     root          1935 Nov  8 19:35 dhcp.sh
-rwxr-xr-x    1 root     root          3116 Jan  5 22:31 dhcpv6.sh
-rwxr-xr-x    1 root     root          2223 Jan  5 22:31 directip.sh
-rwxrwxr-x    1 root     root          1551 Jan  5 19:17 huaweincm.sh
-rwxr-xr-x    1 root     root          4744 Jan  5 22:31 ppp.sh

14

Odp: Tryb NDIS w Huawei E3131

eee. udhcpc -i wwan0 oczywiście.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

15 (edytowany przez tenobcy 2015-01-06 14:35:22)

Odp: Tryb NDIS w Huawei E3131

Teraz jest tak:

root@OpenWrt:~# udhcpc -i wwan0
udhcpc (v1.22.1) started
Sending discover...
Sending select for 10.255.25.166...
Lease of 10.255.25.166 obtained, lease time 518400
udhcpc: ifconfig wwan0 10.255.25.166 netmask 255.255.255.252 broadcast +
udhcpc: setting default routers: 10.255.25.165

W konsoli pinguje:

root@OpenWrt:~# ping -c5 8.8.4.4
PING 8.8.4.4 (8.8.4.4): 56 data bytes
64 bytes from 8.8.4.4: seq=1 ttl=249 time=42.864 ms
64 bytes from 8.8.4.4: seq=2 ttl=249 time=32.658 ms
64 bytes from 8.8.4.4: seq=3 ttl=249 time=32.458 ms
64 bytes from 8.8.4.4: seq=4 ttl=249 time=32.277 ms

--- 8.8.4.4 ping statistics ---
5 packets transmitted, 4 packets received, 20% packet loss
round-trip min/avg/max = 32.277/35.064/42.864 ms

W konsoli na kompie nie pinguje:

user@user-GE620DX:~$ ping -c5 wp.pl
ping: unknown host wp.pl

Internetu nie ma hmm Może jakiś firewall?

16

Odp: Tryb NDIS w Huawei E3131

A to czasami nie jest aero2?

Pokaż uci show network

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

17

Odp: Tryb NDIS w Huawei E3131

Orange pisałem już smile

root@OpenWrt:~# uci show network
network.loopback=interface
network.loopback.ifname=lo
network.loopback.proto=static
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.0.0.0
network.globals=globals
network.globals.ula_prefix=fd3b:14a2:1137::/48
network.lan=interface
network.lan.ifname=eth0.1
network.lan.force_link=1
network.lan.type=bridge
network.lan.proto=static
network.lan.ipaddr=192.168.3.1
network.lan.netmask=255.255.255.0
network.lan.ip6assign=60
network.wan=interface
network.wan.ifname=wwan0
network.wan.proto=huaweincm
network.wan.apn=internet
network.wan.device=/dev/cdc-wdm0
network.wan.username=internet
network.wan.password=internet
network.wan6=interface
network.wan6.ifname=@wan
network.wan6.proto=dhcpv6
network.@switch[0]=switch
network.@switch[0].name=switch0
network.@switch[0].reset=1
network.@switch[0].enable_vlan=1
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device=switch0
network.@switch_vlan[0].vlan=1
network.@switch_vlan[0].ports=0t 2 3 4 5
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device=switch0
network.@switch_vlan[1].vlan=2
network.@switch_vlan[1].ports=0t 1

18

Odp: Tryb NDIS w Huawei E3131

To się rozłącz i połącz jeszcze raz. Przy orange często jak 10* dostajesz to nie ma internetu i tyle.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

19

Odp: Tryb NDIS w Huawei E3131

No dobrze po ifdown wan i ifup wan poszło internet ruszył ale przy ponownym uruchomieniu routera połączenie już nie wstaje hmm

20

Odp: Tryb NDIS w Huawei E3131

logread
ifstatus wan
ifstatus wan_dhcp

pokaż po restarcie i odczekaniu z minuty.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

21 (edytowany przez tenobcy 2015-01-06 14:46:47)

Odp: Tryb NDIS w Huawei E3131

Po starcie

root@OpenWrt:~# logread
Tue Jan  6 13:20:54 2015 kern.notice kernel: [    0.580000] 0x0000007f0000-0x000000800000 : "art"
Tue Jan  6 13:20:54 2015 kern.notice kernel: [    0.590000] 0x000000020000-0x0000007f0000 : "firmware"
Tue Jan  6 13:20:54 2015 kern.info kernel: [    0.620000] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
Tue Jan  6 13:20:54 2015 kern.info kernel: [    1.840000] libphy: ag71xx_mdio: probed
Tue Jan  6 13:20:54 2015 kern.info kernel: [    2.390000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
Tue Jan  6 13:20:54 2015 kern.info kernel: [    2.400000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
Tue Jan  6 13:20:54 2015 kern.info kernel: [    2.410000] TCP: cubic registered
Tue Jan  6 13:20:54 2015 kern.info kernel: [    2.420000] NET: Registered protocol family 17
Tue Jan  6 13:20:54 2015 kern.notice kernel: [    2.420000] Bridge firewalling registered
Tue Jan  6 13:20:54 2015 kern.info kernel: [    2.420000] 8021q: 802.1Q VLAN Support v1.8
Tue Jan  6 13:20:54 2015 kern.err kernel: [    2.430000] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Tue Jan  6 13:20:54 2015 kern.info kernel: [    2.440000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Tue Jan  6 13:20:54 2015 kern.info kernel: [    2.450000] Freeing unused kernel memory: 256K (80350000 - 80390000)
Tue Jan  6 13:20:54 2015 kern.info kernel: [    4.890000] usbcore: registered new interface driver usbfs
Tue Jan  6 13:20:54 2015 kern.info kernel: [    4.900000] usbcore: registered new interface driver hub
Tue Jan  6 13:20:54 2015 kern.info kernel: [    4.910000] usbcore: registered new device driver usb
Tue Jan  6 13:20:54 2015 kern.notice kernel: [    4.950000] SCSI subsystem initialized
Tue Jan  6 13:20:54 2015 kern.info kernel: [    4.960000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Tue Jan  6 13:20:54 2015 kern.info kernel: [    4.960000] ehci-platform: EHCI generic platform driver
Tue Jan  6 13:20:54 2015 kern.info kernel: [    4.970000] ehci-platform ehci-platform: EHCI Host Controller
Tue Jan  6 13:20:54 2015 kern.info kernel: [    4.980000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
Tue Jan  6 13:20:54 2015 kern.info kernel: [    4.990000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
Tue Jan  6 13:20:54 2015 kern.info kernel: [    5.010000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
Tue Jan  6 13:20:54 2015 kern.info kernel: [    5.010000] hub 1-0:1.0: USB hub found
Tue Jan  6 13:20:54 2015 kern.info kernel: [    5.020000] hub 1-0:1.0: 1 port detected
Tue Jan  6 13:20:54 2015 kern.info kernel: [    5.020000] usbcore: registered new interface driver usb-storage
Tue Jan  6 13:20:54 2015 kern.info kernel: [    5.340000] usb 1-1: new high-speed USB device number 2 using ehci-platform
Tue Jan  6 13:20:54 2015 kern.info kernel: [    5.490000] hub 1-1:1.0: USB hub found
Tue Jan  6 13:20:54 2015 kern.info kernel: [    5.490000] hub 1-1:1.0: 4 ports detected
Tue Jan  6 13:20:54 2015 kern.info kernel: [    5.780000] usb 1-1.1: new high-speed USB device number 3 using ehci-platform
Tue Jan  6 13:20:54 2015 kern.info kernel: [    5.890000] usb-storage 1-1.1:1.0: USB Mass Storage device detected
Tue Jan  6 13:20:54 2015 kern.info kernel: [    5.900000] scsi0 : usb-storage 1-1.1:1.0
Tue Jan  6 13:20:54 2015 kern.info kernel: [    6.260000] usb 1-1.2: new high-speed USB device number 4 using ehci-platform
Tue Jan  6 13:20:54 2015 kern.info kernel: [    6.370000] usb-storage 1-1.2:1.0: USB Mass Storage device detected
Tue Jan  6 13:20:54 2015 kern.info kernel: [    6.380000] scsi1 : usb-storage 1-1.2:1.0
Tue Jan  6 13:20:54 2015 kern.info kernel: [    6.380000] usb-storage 1-1.2:1.1: USB Mass Storage device detected
Tue Jan  6 13:20:54 2015 kern.info kernel: [    6.390000] scsi2 : usb-storage 1-1.2:1.1
Tue Jan  6 13:20:54 2015 kern.info kernel: [    6.430000] eth0: link up (1000Mbps/Full duplex)
Tue Jan  6 13:20:54 2015 kern.notice kernel: [    6.900000] scsi 0:0:0:0: Direct-Access     Generic  USB  SD Reader   1.00 PQ: 0 ANSI: 0 CCS
Tue Jan  6 13:20:54 2015 kern.notice kernel: [    6.910000] sd 0:0:0:0: [sda] 61765632 512-byte logical blocks: (31.6 GB/29.4 GiB)
Tue Jan  6 13:20:54 2015 kern.notice kernel: [    6.920000] sd 0:0:0:0: [sda] Write Protect is off
Tue Jan  6 13:20:54 2015 kern.debug kernel: [    6.920000] sd 0:0:0:0: [sda] Mode Sense: 4b 00 00 08
Tue Jan  6 13:20:54 2015 kern.err kernel: [    6.920000] sd 0:0:0:0: [sda] No Caching mode page found
Tue Jan  6 13:20:54 2015 kern.err kernel: [    6.930000] sd 0:0:0:0: [sda] Assuming drive cache: write through
Tue Jan  6 13:20:54 2015 kern.err kernel: [    6.940000] sd 0:0:0:0: [sda] No Caching mode page found
Tue Jan  6 13:20:54 2015 kern.err kernel: [    6.940000] sd 0:0:0:0: [sda] Assuming drive cache: write through
Tue Jan  6 13:20:54 2015 kern.info kernel: [    6.950000]  sda: sda1 sda2
Tue Jan  6 13:20:54 2015 kern.err kernel: [    6.960000] sd 0:0:0:0: [sda] No Caching mode page found
Tue Jan  6 13:20:54 2015 kern.err kernel: [    6.960000] sd 0:0:0:0: [sda] Assuming drive cache: write through
Tue Jan  6 13:20:54 2015 kern.notice kernel: [    6.970000] sd 0:0:0:0: [sda] Attached SCSI removable disk
Tue Jan  6 13:20:54 2015 kern.notice kernel: [    7.380000] scsi 1:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Tue Jan  6 13:20:54 2015 kern.notice kernel: [    7.390000] scsi 2:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Tue Jan  6 13:20:54 2015 kern.notice kernel: [    7.400000] sd 2:0:0:0: [sdb] Attached SCSI removable disk
Tue Jan  6 13:20:54 2015 kern.notice kernel: [    8.930000] jffs2: notice: (434) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 15 of xref (0 dead, 2 orphan) found.
Tue Jan  6 13:20:54 2015 kern.notice kernel: [    9.000000] jffs2: notice: (431) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 15 of xref (0 dead, 2 orphan) found.
Tue Jan  6 13:20:54 2015 kern.info kernel: [    9.050000] eth0: link down
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.550000] NET: Registered protocol family 10
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.580000] nf_conntrack version 0.5.0 (1973 buckets, 7892 max)
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.600000] ip6_tables: (C) 2000-2006 Netfilter Core Team
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.660000] usbcore: registered new interface driver cdc_wdm
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.680000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.680000] Backport generated by backports.git backports-20140320-37-g5c33da0
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.700000] ip_tables: (C) 2000-2006 Netfilter Core Team
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.760000] usbcore: registered new interface driver usbserial
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.780000] usbcore: registered new interface driver usbserial_generic
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.780000] usbserial: USB Serial support registered for generic
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.820000] xt_time: kernel timezone is -0000
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.830000] usbcore: registered new interface driver cdc_ncm
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.870000] cfg80211: Calling CRDA to update world regulatory domain
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.870000] cfg80211: World regulatory domain updated:
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.880000] cfg80211:  DFS Master region: unset
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.880000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.890000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.900000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.910000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.920000] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.930000] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.930000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.940000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.950000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
Tue Jan  6 13:20:54 2015 kern.info kernel: [   11.960000] usbcore: registered new interface driver huawei_cdc_ncm
Tue Jan  6 13:20:54 2015 kern.info kernel: [   12.020000] PPP generic driver version 2.4.2
Tue Jan  6 13:20:54 2015 kern.info kernel: [   12.050000] NET: Registered protocol family 24
Tue Jan  6 13:20:54 2015 kern.info kernel: [   12.100000] usbcore: registered new interface driver option
Tue Jan  6 13:20:54 2015 kern.info kernel: [   12.120000] usbserial: USB Serial support registered for GSM modem (1-port)
Tue Jan  6 13:20:54 2015 kern.debug kernel: [   12.160000] ath: EEPROM regdomain: 0x0
Tue Jan  6 13:20:54 2015 kern.debug kernel: [   12.160000] ath: EEPROM indicates default country code should be used
Tue Jan  6 13:20:54 2015 kern.debug kernel: [   12.160000] ath: doing EEPROM country->regdmn map search
Tue Jan  6 13:20:54 2015 kern.debug kernel: [   12.160000] ath: country maps to regdmn code: 0x3a
Tue Jan  6 13:20:54 2015 kern.debug kernel: [   12.160000] ath: Country alpha2 being used: US
Tue Jan  6 13:20:54 2015 kern.debug kernel: [   12.160000] ath: Regpair used: 0x3a
Tue Jan  6 13:20:54 2015 kern.debug kernel: [   12.180000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Tue Jan  6 13:20:54 2015 kern.info kernel: [   12.180000] cfg80211: Calling CRDA for country: US
Tue Jan  6 13:20:54 2015 kern.info kernel: [   12.190000] ieee80211 phy0: Atheros AR9340 Rev:0 mem=0xb8100000, irq=47
Tue Jan  6 13:20:54 2015 kern.warn kernel: [   12.190000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
Tue Jan  6 13:20:54 2015 kern.debug kernel: [   12.200000] ath: EEPROM regdomain: 0x0
Tue Jan  6 13:20:54 2015 kern.debug kernel: [   12.200000] ath: EEPROM indicates default country code should be used
Tue Jan  6 13:20:54 2015 kern.debug kernel: [   12.200000] ath: doing EEPROM country->regdmn map search
Tue Jan  6 13:20:54 2015 kern.debug kernel: [   12.200000] ath: country maps to regdmn code: 0x3a
Tue Jan  6 13:20:54 2015 kern.debug kernel: [   12.200000] ath: Country alpha2 being used: US
Tue Jan  6 13:20:54 2015 kern.debug kernel: [   12.200000] ath: Regpair used: 0x3a
Tue Jan  6 13:20:54 2015 kern.info kernel: [   12.220000] cfg80211: Regulatory domain changed to country: US
Tue Jan  6 13:20:54 2015 kern.info kernel: [   12.220000] cfg80211:  DFS Master region: FCC
Tue Jan  6 13:20:54 2015 kern.info kernel: [   12.230000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Tue Jan  6 13:20:54 2015 kern.info kernel: [   12.240000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
Tue Jan  6 13:20:54 2015 kern.info kernel: [   12.240000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 mBm), (N/A)
Tue Jan  6 13:20:54 2015 kern.info kernel: [   12.250000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 mBm), (0 s)
Tue Jan  6 13:20:54 2015 kern.info kernel: [   12.260000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
Tue Jan  6 13:20:54 2015 kern.info kernel: [   12.270000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
Tue Jan  6 13:20:54 2015 kern.debug kernel: [   12.300000] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
Tue Jan  6 13:20:54 2015 kern.info kernel: [   12.300000] ieee80211 phy1: Atheros AR9300 Rev:4 mem=0xb0000000, irq=40
Tue Jan  6 13:20:55 2015 user.emerg syslog: 'radio0' is disabled
Tue Jan  6 13:20:55 2015 user.emerg syslog: 'radio1' is disabled
Tue Jan  6 13:20:55 2015 user.emerg syslog: 'radio0' is disabled
Tue Jan  6 13:20:55 2015 user.emerg syslog: 'radio1' is disabled
Tue Jan  6 13:20:56 2015 user.emerg syslog: this file has been obseleted. please call "/sbin/block mount" directly
Tue Jan  6 13:20:56 2015 kern.info kernel: [   16.770000] usb 1-1.2: USB disconnect, device number 4
Tue Jan  6 13:20:56 2015 user.err syslog: /dev/mtdblock3 is already mounted
Tue Jan  6 13:20:56 2015 user.emerg syslog: block: /dev/mtdblock3 is already mounted
Tue Jan  6 13:20:58 2015 authpriv.info dropbear[1150]: Not backgrounding
Tue Jan  6 13:20:59 2015 user.emerg syslog: setting up led USB1
Tue Jan  6 13:20:59 2015 user.emerg syslog: setting up led USB2
Tue Jan  6 13:20:59 2015 user.emerg syslog: setting up led WLAN2G
Tue Jan  6 13:20:59 2015 user.emerg syslog: - init complete -
Tue Jan  6 13:21:00 2015 kern.info kernel: [   20.380000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Tue Jan  6 13:21:00 2015 kern.info kernel: [   20.390000] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
Tue Jan  6 13:21:00 2015 kern.info kernel: [   20.400000] device eth0.1 entered promiscuous mode
Tue Jan  6 13:21:00 2015 kern.info kernel: [   20.400000] device eth0 entered promiscuous mode
Tue Jan  6 13:21:00 2015 daemon.notice netifd: Interface 'lan' is enabled
Tue Jan  6 13:21:00 2015 daemon.notice netifd: Interface 'lan' is setting up now
Tue Jan  6 13:21:00 2015 daemon.notice netifd: Interface 'lan' is now up
Tue Jan  6 13:21:00 2015 kern.info kernel: [   20.420000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
Tue Jan  6 13:21:00 2015 daemon.notice netifd: Interface 'loopback' is enabled
Tue Jan  6 13:21:00 2015 daemon.notice netifd: Interface 'loopback' is setting up now
Tue Jan  6 13:21:00 2015 daemon.notice netifd: Interface 'loopback' is now up
Tue Jan  6 13:21:00 2015 daemon.notice netifd: Interface 'wan' is setting up now
Tue Jan  6 13:21:00 2015 daemon.notice netifd: Network device 'lo' link is up
Tue Jan  6 13:21:00 2015 daemon.notice netifd: Interface 'loopback' has link connectivity 
Tue Jan  6 13:21:00 2015 daemon.err huawei-ncm[1221]: The specified control device does not exist
Tue Jan  6 13:21:00 2015 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Tue Jan  6 13:21:01 2015 kern.info kernel: [   21.470000] eth0: link up (1000Mbps/Full duplex)
Tue Jan  6 13:21:01 2015 daemon.notice netifd: Network device 'eth0' link is up
Tue Jan  6 13:21:01 2015 daemon.notice netifd: VLAN 'eth0.1' link is up
Tue Jan  6 13:21:01 2015 kern.info kernel: [   21.480000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Tue Jan  6 13:21:01 2015 kern.info kernel: [   21.480000] br-lan: port 1(eth0.1) entered forwarding state
Tue Jan  6 13:21:01 2015 kern.info kernel: [   21.490000] br-lan: port 1(eth0.1) entered forwarding state
Tue Jan  6 13:21:01 2015 kern.info kernel: [   21.500000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
Tue Jan  6 13:21:01 2015 kern.info kernel: [   21.500000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Tue Jan  6 13:21:01 2015 daemon.notice netifd: Bridge 'br-lan' link is up
Tue Jan  6 13:21:01 2015 daemon.notice netifd: Interface 'lan' has link connectivity 
Tue Jan  6 13:21:02 2015 kern.info kernel: [   22.390000] usb 1-1.2: new high-speed USB device number 5 using ehci-platform
Tue Jan  6 13:21:02 2015 kern.info kernel: [   22.510000] option 1-1.2:1.0: GSM modem (1-port) converter detected
Tue Jan  6 13:21:02 2015 kern.info kernel: [   22.520000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
Tue Jan  6 13:21:02 2015 kern.info kernel: [   22.540000] usb 1-1.2: MAC-Address: 58:2c:80:13:92:63
Tue Jan  6 13:21:02 2015 kern.info kernel: [   22.540000] huawei_cdc_ncm 1-1.2:1.1: cdc-wdm0: USB WDM device
Tue Jan  6 13:21:02 2015 kern.info kernel: [   22.560000] huawei_cdc_ncm 1-1.2:1.1 wwan0: register 'huawei_cdc_ncm' at usb-ehci-platform-1.2, Huawei CDC NCM device, 58:2c:80:13:92:63
Tue Jan  6 13:21:02 2015 kern.info kernel: [   22.570000] option 1-1.2:1.2: GSM modem (1-port) converter detected
Tue Jan  6 13:21:02 2015 kern.info kernel: [   22.590000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
Tue Jan  6 13:21:02 2015 kern.info kernel: [   22.590000] option 1-1.2:1.3: GSM modem (1-port) converter detected
Tue Jan  6 13:21:02 2015 kern.info kernel: [   22.610000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
Tue Jan  6 13:21:02 2015 kern.info kernel: [   22.610000] usb-storage 1-1.2:1.4: USB Mass Storage device detected
Tue Jan  6 13:21:02 2015 kern.info kernel: [   22.630000] scsi3 : usb-storage 1-1.2:1.4
Tue Jan  6 13:21:02 2015 kern.info kernel: [   22.630000] usb-storage 1-1.2:1.5: USB Mass Storage device detected
Tue Jan  6 13:21:02 2015 kern.info kernel: [   22.650000] scsi4 : usb-storage 1-1.2:1.5
Tue Jan  6 13:21:03 2015 kern.info kernel: [   23.490000] br-lan: port 1(eth0.1) entered forwarding state
Tue Jan  6 13:21:03 2015 kern.notice kernel: [   23.630000] scsi 3:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Tue Jan  6 13:21:03 2015 kern.notice kernel: [   23.650000] scsi 4:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Tue Jan  6 13:21:03 2015 kern.notice kernel: [   23.690000] sd 4:0:0:0: [sdb] Attached SCSI removable disk
Tue Jan  6 13:21:04 2015 daemon.info dnsmasq[1441]: started, version 2.71 cachesize 150
Tue Jan  6 13:21:04 2015 daemon.info dnsmasq[1441]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC
Tue Jan  6 13:21:04 2015 daemon.info dnsmasq-dhcp[1441]: DHCP, IP range 192.168.3.100 -- 192.168.3.249, lease time 12h
Tue Jan  6 13:21:04 2015 daemon.info dnsmasq[1441]: using local addresses only for domain lan
Tue Jan  6 13:21:04 2015 daemon.warn dnsmasq[1441]: no servers found in /tmp/resolv.conf.auto, will retry
Tue Jan  6 13:21:04 2015 daemon.info dnsmasq[1441]: read /etc/hosts - 1 addresses
Tue Jan  6 13:21:04 2015 daemon.info dnsmasq[1441]: read /tmp/hosts/dhcp - 1 addresses
Tue Jan  6 13:21:04 2015 daemon.info dnsmasq-dhcp[1441]: read /etc/ethers - 0 addresses
Tue Jan  6 13:21:05 2015 user.err syslog: Unkown action change
Tue Jan  6 13:21:05 2015 user.err syslog: Unkown action change
Tue Jan  6 13:21:19 2015 authpriv.info dropbear[1516]: Child connection from 192.168.3.106:38380
Tue Jan  6 13:21:24 2015 authpriv.notice dropbear[1516]: Password auth succeeded for 'root' from 192.168.3.106:38380
root@OpenWrt:~# ifstatus wan
{
    "up": false,
    "pending": true,
    "available": true,
    "autostart": false,
    "proto": "huaweincm",
    "data": {
        
    },
    "errors": [
        {
            "subsystem": "huaweincm",
            "code": "NO_DEVICE"
        }
    ]
}
root@OpenWrt:~# ifstatus wan_dhcp
Interface wan_dhcp not found

22

Odp: Tryb NDIS w Huawei E3131

NO_DEVICE

Modyfikacja U-Boot dla routerów (gotowe obrazy)
Free Your Router, Again!

Podejmę się naprawy każdego routera, wymienię RAM i FLASH (32-128 MB już dostępne!) na większy

23 (edytowany przez tenobcy 2015-01-06 15:14:22)

Odp: Tryb NDIS w Huawei E3131

No i co dalej? Dlaczego tak jest?

24

Odp: Tryb NDIS w Huawei E3131

tenobcy napisał/a:

No i co dalej? Dlaczego tak jest?

Bo modem pojawia się później, już po tym jak netifd próbował podnieść wan:

Tue Jan  6 13:21:00 2015 daemon.notice netifd: Interface 'wan' is setting up now
Tue Jan  6 13:21:00 2015 daemon.notice netifd: Network device 'lo' link is up
Tue Jan  6 13:21:00 2015 daemon.notice netifd: Interface 'loopback' has link connectivity 
Tue Jan  6 13:21:00 2015 daemon.err huawei-ncm[1221]: The specified control device does not exist
[...]
ue Jan  6 13:21:02 2015 kern.info kernel: [   22.390000] usb 1-1.2: new high-speed USB device number 5 using ehci-platform
Tue Jan  6 13:21:02 2015 kern.info kernel: [   22.510000] option 1-1.2:1.0: GSM modem (1-port) converter detected
Tue Jan  6 13:21:02 2015 kern.info kernel: [   22.520000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
Tue Jan  6 13:21:02 2015 kern.info kernel: [   22.540000] usb 1-1.2: MAC-Address: 58:2c:80:13:92:63
Tue Jan  6 13:21:02 2015 kern.info kernel: [   22.540000] huawei_cdc_ncm 1-1.2:1.1: cdc-wdm0: USB WDM device
Tue Jan  6 13:21:02 2015 kern.info kernel: [   22.560000] huawei_cdc_ncm 1-1.2:1.1 wwan0: register 'huawei_cdc_ncm' at usb-ehci-platform-1.2, Huawei CDC NCM device, 58:2c:80:13:92:63
Tue Jan  6 13:21:02 2015 kern.info kernel: [   22.570000] option 1-1.2:1.2: GSM modem (1-port) converter detected
Tue Jan  6 13:21:02 2015 kern.info kernel: [   22.590000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[...]

Możesz sobie dodać "ifup wan" w skrypcie hotplug od USB na zdarzeniu "add".

Modyfikacja U-Boot dla routerów (gotowe obrazy)
Free Your Router, Again!

Podejmę się naprawy każdego routera, wymienię RAM i FLASH (32-128 MB już dostępne!) na większy

25 (edytowany przez tenobcy 2015-01-06 15:29:06)

Odp: Tryb NDIS w Huawei E3131

No dobra sprawa się rozwiązała dało mi to do myślenia, podłączyłem modem przez aktywny hub tracera przy starcie modem łączy i działa prawidłowo.

PS. Czy wymiana zasilacza WDR4300 na z 1,5A na 2A pomoże?