76

Odp: Zapasowe łącze na modemie GSM

Bez sensu smile Weź go jeszcze raz odinstaluj i zainstaluj ponownie, odświeżyłem indeksy w repo.

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

77

Odp: Zapasowe łącze na modemie GSM

To już robiłem smile Ale ok spróbuje jeszcze raz. Tak to robię:

opkg update
opkg install kmod-usb-core kmod-usb2 kmod-usb-serial kmod-usb-serial-option usb-modeswitch block-mount kmod-fs-ext4

do /etc/rc.local dodaje

usbmode -s

i dalej

opkg update
opkg install chat comgt
uci set network.wan2=interface
uci set network.wan2.proto=3g
uci set network.wan2.service=umts
uci set network.wan2.device=/dev/ttyUSB0
uci set network.wan2.apn=internet
uci set network.wan2.username=internet
uci set network.wan2.password=internet
uci set network.wan2.defaultroute=1
uci set network.wan2.auto=0
uci commit network
uci set firewall.@zone[1].network='wan wan2'
uci commit firewall
opkg update
opkg install simplefailover
/etc/init.d/simplefailover enable
reboot

Czy wszystko ok robię?

78

Odp: Zapasowe łącze na modemie GSM

tak. Z tym że pamiętaj że jeżeli chcesz ręcznie uruchamiać simplefailover to pamiętaj o jego ubiciu jeżeli chodzi w tle.

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

79 (edytowany przez tenobcy 2014-12-30 00:48:32)

Odp: Zapasowe łącze na modemie GSM

Chcę automatycznie czy wystarczy /etc/init.d/simplefailover enable? Odinstalowałem i ponownie zainstalowałem. Działa wszystko ok o dziwo bo już to robiłem wcześniej i nie działało hmm
Niestety po restarcie nie działa dopiero wydanie komendy /etc/init.d/simplefailover start przełącza połączenie. Aby działało prawidłowo dodałem do rc.local (sleep 30; /etc/init.d/simplefailover start) &
Cezary skoro teraz działa proszę powiedz jak tą całą konfigurację przenieść teraz na extroota po ówczesnym zainstalowaniu jego?

80

Odp: Zapasowe łącze na modemie GSM

Tak, tylko enable.
Przeniesienie konfiguracji to:

tar -C /overlay -cvf - . | tar -C /mnt/sda1 -xf -

Zakładając że chwilowo masz w /mnt/sda1 nośnik zamontowany. Tylko pamiętaj o tym usb-modeswitch - nie możesz jeszcze raz przełączać przełączonego modemu, żeby nie nastąpiło odłączenie nośnika ponowne.

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

81 (edytowany przez tenobcy 2014-12-30 09:12:43)

Odp: Zapasowe łącze na modemie GSM

Cezary o co chodzi z tym usb-modeswitch? Jest tak mam działającą konfiguracje simplefailover wg instalacji jaką podałem w poscie  77 (trzy posty wyżej) konfiguruje extroota na karcie w modemie, który działa ale ponownie muszę instalować wszystkie pakiety ewentualnie przenieść całą konfigurację wg tego co podałeś post wyżej i co z tym usb-modeswitch?

82

Odp: Zapasowe łącze na modemie GSM

Masz go nie używać na extroocie.

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

83

Odp: Zapasowe łącze na modemie GSM

Czyli ma być wyłączony albo najlepiej nie zainstalowany, ok za chwilę sprawdzę czy przełączy na połączenie modemowe.

84

Odp: Zapasowe łącze na modemie GSM

usb-modeswitch instalujesz we flash. On przełącza modem, nośnik zastępuje /overlay i w rezultacie już go nie widzisz. Nie instalujesz ponownie bo nie masz już takiej potrzeby. Sterowniki od modemu tylko.

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

85 (edytowany przez tenobcy 2014-12-30 10:28:16)

Odp: Zapasowe łącze na modemie GSM

Ok mam extroota przeniesionego z flash wg metody jaką podałeś wyżej zainstalowane mam kmod-usb-core kmod-usb2 kmod-usb-serial kmod-usb-serial-option block-mount kmod-fs-ext4 chat comgt i usb-modeswitch ale wyłączone.
Modem jest rozpoznawany jako:

root@OpenWrt:~# cat /sys/kernel/debug/usb/devices
T:  Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  4 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=14fe Rev= 1.02
S:  Manufacturer=HUAWEI
S:  Product=HUAWEI Mobile
C:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Jak wypnę kabel z internetem to nie przełącza na połączenie modemowe

root@OpenWrt:~# logread
Tue Dec 30 09:06:44 2014 kern.notice kernel: [    0.570000] 0x000000380000-0x0000007f0000 : "rootfs_data"
Tue Dec 30 09:06:44 2014 kern.notice kernel: [    0.580000] 0x0000007f0000-0x000000800000 : "art"
Tue Dec 30 09:06:44 2014 kern.notice kernel: [    0.590000] 0x000000020000-0x0000007f0000 : "firmware"
Tue Dec 30 09:06:44 2014 kern.info kernel: [    0.620000] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
Tue Dec 30 09:06:44 2014 kern.info kernel: [    1.840000] libphy: ag71xx_mdio: probed
Tue Dec 30 09:06:44 2014 kern.info kernel: [    2.390000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
Tue Dec 30 09:06:44 2014 kern.info kernel: [    2.400000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
Tue Dec 30 09:06:44 2014 kern.info kernel: [    2.410000] TCP: cubic registered
Tue Dec 30 09:06:44 2014 kern.info kernel: [    2.420000] NET: Registered protocol family 17
Tue Dec 30 09:06:44 2014 kern.notice kernel: [    2.420000] Bridge firewalling registered
Tue Dec 30 09:06:44 2014 kern.info kernel: [    2.420000] 8021q: 802.1Q VLAN Support v1.8
Tue Dec 30 09:06:44 2014 kern.err kernel: [    2.430000] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Tue Dec 30 09:06:44 2014 kern.info kernel: [    2.440000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Tue Dec 30 09:06:44 2014 kern.info kernel: [    2.450000] Freeing unused kernel memory: 256K (80350000 - 80390000)
Tue Dec 30 09:06:44 2014 kern.info kernel: [    4.900000] usbcore: registered new interface driver usbfs
Tue Dec 30 09:06:44 2014 kern.info kernel: [    4.900000] usbcore: registered new interface driver hub
Tue Dec 30 09:06:44 2014 kern.info kernel: [    4.910000] usbcore: registered new device driver usb
Tue Dec 30 09:06:44 2014 kern.notice kernel: [    4.950000] SCSI subsystem initialized
Tue Dec 30 09:06:44 2014 kern.info kernel: [    4.960000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Tue Dec 30 09:06:44 2014 kern.info kernel: [    4.970000] ehci-platform: EHCI generic platform driver
Tue Dec 30 09:06:44 2014 kern.info kernel: [    4.970000] ehci-platform ehci-platform: EHCI Host Controller
Tue Dec 30 09:06:44 2014 kern.info kernel: [    4.980000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
Tue Dec 30 09:06:44 2014 kern.info kernel: [    4.990000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
Tue Dec 30 09:06:44 2014 kern.info kernel: [    5.020000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
Tue Dec 30 09:06:44 2014 kern.info kernel: [    5.020000] hub 1-0:1.0: USB hub found
Tue Dec 30 09:06:44 2014 kern.info kernel: [    5.030000] hub 1-0:1.0: 1 port detected
Tue Dec 30 09:06:44 2014 kern.info kernel: [    5.030000] usbcore: registered new interface driver usb-storage
Tue Dec 30 09:06:44 2014 kern.info kernel: [    5.360000] usb 1-1: new high-speed USB device number 2 using ehci-platform
Tue Dec 30 09:06:44 2014 kern.info kernel: [    5.510000] hub 1-1:1.0: USB hub found
Tue Dec 30 09:06:44 2014 kern.info kernel: [    5.510000] hub 1-1:1.0: 4 ports detected
Tue Dec 30 09:06:44 2014 kern.info kernel: [    5.800000] usb 1-1.2: new high-speed USB device number 3 using ehci-platform
Tue Dec 30 09:06:44 2014 kern.info kernel: [    5.910000] hub 1-1.2:1.0: USB hub found
Tue Dec 30 09:06:44 2014 kern.info kernel: [    5.910000] hub 1-1.2:1.0: 4 ports detected
Tue Dec 30 09:06:44 2014 kern.info kernel: [    6.260000] usb 1-1.1: new high-speed USB device number 4 using ehci-platform
Tue Dec 30 09:06:44 2014 kern.info kernel: [    6.370000] usb-storage 1-1.1:1.0: USB Mass Storage device detected
Tue Dec 30 09:06:44 2014 kern.info kernel: [    6.380000] scsi0 : usb-storage 1-1.1:1.0
Tue Dec 30 09:06:44 2014 kern.info kernel: [    6.380000] usb-storage 1-1.1:1.1: USB Mass Storage device detected
Tue Dec 30 09:06:44 2014 kern.info kernel: [    6.390000] scsi1 : usb-storage 1-1.1:1.1
Tue Dec 30 09:06:44 2014 kern.info kernel: [    6.400000] eth0: link up (1000Mbps/Full duplex)
Tue Dec 30 09:06:44 2014 kern.info kernel: [    6.490000] usb 1-1.2.1: new full-speed USB device number 5 using ehci-platform
Tue Dec 30 09:06:44 2014 kern.info kernel: [    6.620000] usb-storage 1-1.2.1:1.2: USB Mass Storage device detected
Tue Dec 30 09:06:44 2014 kern.info kernel: [    6.630000] scsi2 : usb-storage 1-1.2.1:1.2
Tue Dec 30 09:06:44 2014 kern.notice kernel: [    7.380000] scsi 0:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Tue Dec 30 09:06:44 2014 kern.notice kernel: [    7.390000] scsi 1:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Tue Dec 30 09:06:44 2014 kern.notice kernel: [    7.400000] sd 1:0:0:0: [sda] Attached SCSI removable disk
Tue Dec 30 09:06:44 2014 kern.notice kernel: [    7.650000] scsi 2:0:0:0: Direct-Access     Brother  DCP-J125         1.00 PQ: 0 ANSI: 2
Tue Dec 30 09:06:44 2014 kern.notice kernel: [    7.720000] sd 2:0:0:0: [sdb] Attached SCSI removable disk
Tue Dec 30 09:06:44 2014 kern.notice kernel: [    8.880000] sd 1:0:0:0: [sda] 61765632 512-byte logical blocks: (31.6 GB/29.4 GiB)
Tue Dec 30 09:06:44 2014 kern.notice kernel: [    8.880000] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Tue Dec 30 09:06:44 2014 kern.info kernel: [    8.900000]  sda: sda1
Tue Dec 30 09:06:44 2014 kern.notice kernel: [    9.030000] jffs2: notice: (436) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 15 of xref (0 dead, 3 orphan) found.
Tue Dec 30 09:06:44 2014 kern.info kernel: [   14.160000] EXT4-fs (sda1): mounted filesystem without journal. Opts: 
Tue Dec 30 09:06:44 2014 kern.info kernel: [   14.210000] eth0: link down
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.570000] NET: Registered protocol family 10
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.610000] nf_conntrack version 0.5.0 (1973 buckets, 7892 max)
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.620000] ip6_tables: (C) 2000-2006 Netfilter Core Team
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.660000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.660000] Backport generated by backports.git backports-20140320-37-g5c33da0
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.670000] ip_tables: (C) 2000-2006 Netfilter Core Team
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.730000] usbcore: registered new interface driver usbserial
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.750000] usbcore: registered new interface driver usbserial_generic
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.750000] usbserial: USB Serial support registered for generic
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.790000] xt_time: kernel timezone is -0000
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.820000] cfg80211: Calling CRDA to update world regulatory domain
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.820000] cfg80211: World regulatory domain updated:
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.830000] cfg80211:  DFS Master region: unset
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.830000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.840000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.850000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.860000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.870000] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.880000] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.880000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.890000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.900000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
Tue Dec 30 09:06:44 2014 kern.info kernel: [   16.980000] PPP generic driver version 2.4.2
Tue Dec 30 09:06:44 2014 kern.info kernel: [   17.000000] NET: Registered protocol family 24
Tue Dec 30 09:06:44 2014 kern.info kernel: [   17.040000] usbcore: registered new interface driver option
Tue Dec 30 09:06:44 2014 kern.info kernel: [   17.060000] usbserial: USB Serial support registered for GSM modem (1-port)
Tue Dec 30 09:06:44 2014 kern.debug kernel: [   17.100000] ath: EEPROM regdomain: 0x0
Tue Dec 30 09:06:44 2014 kern.debug kernel: [   17.100000] ath: EEPROM indicates default country code should be used
Tue Dec 30 09:06:44 2014 kern.debug kernel: [   17.100000] ath: doing EEPROM country->regdmn map search
Tue Dec 30 09:06:44 2014 kern.debug kernel: [   17.100000] ath: country maps to regdmn code: 0x3a
Tue Dec 30 09:06:44 2014 kern.debug kernel: [   17.100000] ath: Country alpha2 being used: US
Tue Dec 30 09:06:44 2014 kern.debug kernel: [   17.100000] ath: Regpair used: 0x3a
Tue Dec 30 09:06:44 2014 kern.debug kernel: [   17.120000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Tue Dec 30 09:06:44 2014 kern.info kernel: [   17.120000] cfg80211: Calling CRDA for country: US
Tue Dec 30 09:06:44 2014 kern.info kernel: [   17.130000] ieee80211 phy0: Atheros AR9340 Rev:0 mem=0xb8100000, irq=47
Tue Dec 30 09:06:44 2014 kern.warn kernel: [   17.130000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
Tue Dec 30 09:06:44 2014 kern.debug kernel: [   17.150000] ath: EEPROM regdomain: 0x0
Tue Dec 30 09:06:44 2014 kern.debug kernel: [   17.150000] ath: EEPROM indicates default country code should be used
Tue Dec 30 09:06:44 2014 kern.debug kernel: [   17.150000] ath: doing EEPROM country->regdmn map search
Tue Dec 30 09:06:44 2014 kern.debug kernel: [   17.150000] ath: country maps to regdmn code: 0x3a
Tue Dec 30 09:06:44 2014 kern.debug kernel: [   17.150000] ath: Country alpha2 being used: US
Tue Dec 30 09:06:44 2014 kern.debug kernel: [   17.150000] ath: Regpair used: 0x3a
Tue Dec 30 09:06:44 2014 kern.info kernel: [   17.150000] cfg80211: Regulatory domain changed to country: US
Tue Dec 30 09:06:44 2014 kern.info kernel: [   17.160000] cfg80211:  DFS Master region: FCC
Tue Dec 30 09:06:44 2014 kern.info kernel: [   17.160000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Tue Dec 30 09:06:44 2014 kern.info kernel: [   17.170000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
Tue Dec 30 09:06:44 2014 kern.info kernel: [   17.180000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 mBm), (N/A)
Tue Dec 30 09:06:44 2014 kern.info kernel: [   17.190000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 mBm), (0 s)
Tue Dec 30 09:06:44 2014 kern.info kernel: [   17.200000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
Tue Dec 30 09:06:44 2014 kern.info kernel: [   17.210000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
Tue Dec 30 09:06:44 2014 kern.debug kernel: [   17.230000] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
Tue Dec 30 09:06:44 2014 kern.info kernel: [   17.230000] ieee80211 phy1: Atheros AR9300 Rev:4 mem=0xb0000000, irq=40
Tue Dec 30 09:06:46 2014 user.emerg syslog: 'radio0' is disabled
Tue Dec 30 09:06:46 2014 user.emerg syslog: 'radio1' is disabled
Tue Dec 30 09:06:46 2014 user.emerg syslog: 'radio0' is disabled
Tue Dec 30 09:06:46 2014 user.emerg syslog: 'radio1' is disabled
Tue Dec 30 09:06:46 2014 user.emerg syslog: this file has been obseleted. please call "/sbin/block mount" directly
Tue Dec 30 09:06:46 2014 user.emerg syslog: /sbin/block: line 2: /tmp/overlay/sbin/usbmode: not found
Tue Dec 30 09:06:46 2014 user.err syslog: /dev/sda1 is already mounted
Tue Dec 30 09:06:46 2014 user.emerg syslog: block: /dev/sda1 is already mounted
Tue Dec 30 09:06:47 2014 authpriv.info dropbear[1165]: Not backgrounding
Tue Dec 30 09:06:48 2014 user.emerg syslog: setting up led USB1
Tue Dec 30 09:06:48 2014 user.emerg syslog: setting up led USB2
Tue Dec 30 09:06:49 2014 user.emerg syslog: setting up led WLAN2G
Tue Dec 30 09:06:49 2014 user.emerg syslog: - init complete -
Tue Dec 30 09:06:49 2014 kern.info kernel: [   25.170000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Tue Dec 30 09:06:49 2014 kern.info kernel: [   25.190000] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
Tue Dec 30 09:06:49 2014 kern.info kernel: [   25.200000] device eth0.1 entered promiscuous mode
Tue Dec 30 09:06:49 2014 kern.info kernel: [   25.200000] device eth0 entered promiscuous mode
Tue Dec 30 09:06:49 2014 daemon.notice netifd: Interface 'lan' is enabled
Tue Dec 30 09:06:49 2014 daemon.notice netifd: Interface 'lan' is setting up now
Tue Dec 30 09:06:49 2014 kern.info kernel: [   25.220000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
Tue Dec 30 09:06:49 2014 daemon.notice netifd: Interface 'lan' is now up
Tue Dec 30 09:06:49 2014 daemon.notice netifd: Interface 'loopback' is enabled
Tue Dec 30 09:06:49 2014 daemon.notice netifd: Interface 'loopback' is setting up now
Tue Dec 30 09:06:49 2014 daemon.notice netifd: Interface 'loopback' is now up
Tue Dec 30 09:06:49 2014 kern.info kernel: [   25.250000] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
Tue Dec 30 09:06:50 2014 daemon.notice netifd: Interface 'wan' is enabled
Tue Dec 30 09:06:50 2014 daemon.notice netifd: Network device 'lo' link is up
Tue Dec 30 09:06:50 2014 daemon.notice netifd: Interface 'loopback' has link connectivity 
Tue Dec 30 09:06:50 2014 kern.info kernel: [   25.600000] eth0: link up (1000Mbps/Full duplex)
Tue Dec 30 09:06:50 2014 daemon.notice netifd: Network device 'eth0' link is up
Tue Dec 30 09:06:50 2014 daemon.notice netifd: VLAN 'eth0.2' link is up
Tue Dec 30 09:06:50 2014 daemon.notice netifd: Interface 'wan' has link connectivity 
Tue Dec 30 09:06:50 2014 daemon.notice netifd: Interface 'wan' is setting up now
Tue Dec 30 09:06:50 2014 daemon.notice netifd: VLAN 'eth0.1' link is up
Tue Dec 30 09:06:50 2014 kern.info kernel: [   25.630000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Tue Dec 30 09:06:50 2014 kern.info kernel: [   25.630000] br-lan: port 1(eth0.1) entered forwarding state
Tue Dec 30 09:06:50 2014 kern.info kernel: [   25.640000] br-lan: port 1(eth0.1) entered forwarding state
Tue Dec 30 09:06:50 2014 kern.info kernel: [   25.650000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
Tue Dec 30 09:06:50 2014 kern.info kernel: [   25.650000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
Tue Dec 30 09:06:50 2014 daemon.notice netifd: Bridge 'br-lan' link is up
Tue Dec 30 09:06:50 2014 daemon.notice netifd: Interface 'lan' has link connectivity 
Tue Dec 30 09:06:50 2014 kern.info kernel: [   25.690000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Tue Dec 30 09:06:50 2014 user.notice /usr/bin/simplefailover: No gateway on wan?
Tue Dec 30 09:06:50 2014 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Tue Dec 30 09:06:50 2014 daemon.notice netifd: wan (1315): udhcpc (v1.22.1) started
Tue Dec 30 09:06:50 2014 daemon.notice netifd: wan (1315): Sending discover...
Tue Dec 30 09:06:52 2014 daemon.notice netifd: wan (1315): Sending select for 192.168.1.11...
Tue Dec 30 09:06:52 2014 kern.info kernel: [   27.640000] br-lan: port 1(eth0.1) entered forwarding state
Tue Dec 30 09:06:52 2014 daemon.notice netifd: wan (1315): Lease of 192.168.1.11 obtained, lease time 86400
Tue Dec 30 09:06:52 2014 daemon.notice netifd: Interface 'wan6' is enabled
Tue Dec 30 09:06:52 2014 daemon.notice netifd: Network alias 'eth0.2' link is up
Tue Dec 30 09:06:52 2014 daemon.notice netifd: Interface 'wan6' has link connectivity 
Tue Dec 30 09:06:52 2014 daemon.notice netifd: Interface 'wan6' is setting up now
Tue Dec 30 09:06:52 2014 daemon.notice netifd: Interface 'wan' is now up
Tue Dec 30 09:06:54 2014 daemon.info dnsmasq[1372]: started, version 2.71 cachesize 150
Tue Dec 30 09:06:54 2014 daemon.info dnsmasq[1372]: 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 Dec 30 09:06:54 2014 daemon.info dnsmasq-dhcp[1372]: DHCP, IP range 192.168.3.100 -- 192.168.3.249, lease time 12h
Tue Dec 30 09:06:54 2014 daemon.info dnsmasq[1372]: using local addresses only for domain lan
Tue Dec 30 09:06:54 2014 daemon.info dnsmasq[1372]: reading /tmp/resolv.conf.auto
Tue Dec 30 09:06:54 2014 daemon.info dnsmasq[1372]: using local addresses only for domain lan
Tue Dec 30 09:06:54 2014 daemon.info dnsmasq[1372]: using nameserver 192.168.1.254#53
Tue Dec 30 09:06:54 2014 daemon.info dnsmasq[1372]: read /etc/hosts - 1 addresses
Tue Dec 30 09:06:54 2014 daemon.info dnsmasq[1372]: read /tmp/hosts/dhcp - 1 addresses
Tue Dec 30 09:06:54 2014 daemon.info dnsmasq-dhcp[1372]: read /etc/ethers - 0 addresses
Tue Dec 30 09:06:55 2014 daemon.info dnsmasq[1372]: exiting on receipt of SIGTERM
Tue Dec 30 09:06:55 2014 daemon.info dnsmasq[1426]: started, version 2.71 cachesize 150
Tue Dec 30 09:06:55 2014 daemon.info dnsmasq[1426]: 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 Dec 30 09:06:55 2014 daemon.info dnsmasq-dhcp[1426]: DHCP, IP range 192.168.3.100 -- 192.168.3.249, lease time 12h
Tue Dec 30 09:06:55 2014 daemon.info dnsmasq[1426]: using local addresses only for domain lan
Tue Dec 30 09:06:55 2014 daemon.info dnsmasq[1426]: reading /tmp/resolv.conf.auto
Tue Dec 30 09:06:55 2014 daemon.info dnsmasq[1426]: using local addresses only for domain lan
Tue Dec 30 09:06:55 2014 daemon.info dnsmasq[1426]: using nameserver 192.168.1.254#53
Tue Dec 30 09:06:55 2014 daemon.info dnsmasq[1426]: read /etc/hosts - 1 addresses
Tue Dec 30 09:06:55 2014 daemon.info dnsmasq[1426]: read /tmp/hosts/dhcp - 1 addresses
Tue Dec 30 09:06:55 2014 daemon.info dnsmasq-dhcp[1426]: read /etc/ethers - 0 addresses
Tue Dec 30 09:06:55 2014 user.notice firewall: Reloading firewall due to ifup of wan (eth0.2)
Tue Dec 30 09:15:37 2014 authpriv.info dropbear[1663]: Child connection from 192.168.3.106:60574
Tue Dec 30 09:15:41 2014 authpriv.notice dropbear[1663]: Password auth succeeded for 'root' from 192.168.3.106:60574
Tue Dec 30 09:17:53 2014 daemon.notice netifd: Interface 'wan2' is setting up now
Tue Dec 30 09:17:54 2014 user.notice /usr/bin/simplefailover: Changing connection to backup wan: wan2
Tue Dec 30 09:17:54 2014 daemon.notice netifd: Interface 'wan2' is now down

Jak włączę usbmode /etc/init.d/usbmode start przy zaniku internetu przełącza na połączenie modemowe ale w extroot pojawiają się błędy hmm No i o co tu chodzi?

86 (edytowany przez Cezary 2014-12-30 10:33:14)

Odp: Zapasowe łącze na modemie GSM

usbmode wołane jest także na hotplugu przy pojawieniu się dowolnego urządzenia usb. Więc nie, odinstaluj go całkowicie lub wywal skrypty chociaż.

PS. Nie, ten modem nie jest przełączony - identyfikator urządzenia na to wskazuje. Więc dobrze zrobiłeś ten skrypt od przełączania modemu?

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

87 (edytowany przez tenobcy 2014-12-30 10:36:58)

Odp: Zapasowe łącze na modemie GSM

No więc właśnie widzisz, że nie przełącza. Ok proszę powiedz po odinstalowaniu usbmode jakie skrypty mam usunąć? Wszystko tzn całą konfiguracje skopiowałem z flash gdzie wszystko działało prawidłowo z tym, że tam miałem /etc/init.d/usbmode enable

88

Odp: Zapasowe łącze na modemie GSM

Jak odinstalujesz usb-modeswitch to żadnych jego skryptów już nie ma. Ale masz z extroota odinstalować, nie z flash na którym on jets potrzebny do działania skryptu przełączającego.

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

89

Odp: Zapasowe łącze na modemie GSM

Ok już to robię. A we flashu ma być cały czas włączony czyli /etc/init.d/usbmode enable?

90

Odp: Zapasowe łącze na modemie GSM

Nie ma znaczenia, skrypt block go samodzielnie i tak woła

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

91

Odp: Zapasowe łącze na modemie GSM

Odinstalowałem no i modem nie jest przełączony hmm

T:  Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  4 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=14fe Rev= 1.02
S:  Manufacturer=HUAWEI
S:  Product=HUAWEI Mobile
C:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

92

Odp: Zapasowe łącze na modemie GSM

A skrypt block Ci się w ogóle wykonuje? Bo raczej nie.

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

93

Odp: Zapasowe łącze na modemie GSM

Jak to sprawdzić? Włączyć?

94

Odp: Zapasowe łącze na modemie GSM

No przecież od samego to wałkujemy - potrzebujesz przerobiony skrypt block żeby modem na stałe przełączyć w tryb modemu -patrz inną wątek.

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

95

Odp: Zapasowe łącze na modemie GSM

Jeżeli chodzi o to http://eko.one.pl/forum/viewtopic.php?p … 14#p124114 to zrobiłem wszystko wg opisu.

96

Odp: Zapasowe łącze na modemie GSM

tenobcy napisał/a:

Jeżeli chodzi o to http://eko.one.pl/forum/viewtopic.php?p … 14#p124114 to zrobiłem wszystko wg opisu.

Chyba jednak niekoniecznie, bo modem masz nie przełączony.

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

97

Odp: Zapasowe łącze na modemie GSM

Kurde no jak nie zrobiłem jak zrobiłem hmm

root@OpenWrt:~# cat /sbin/block
#!/bin/sh
/tmp/overlay/sbin/usbmode -s -c /tmp/overlay/etc/usb-mode.json
for i in 1 2 3 4 5 6 7 8 9 10; do
  [ -e /dev/sda1 ] && break
  sleep 1 
done
exec /sbin/block_/block $*
root@OpenWrt:~# ls -la /sbin/
drwxr-xr-x    1 root     root          4096 Dec 30 09:46 .
drwxr-xr-x    1 root     root          4096 Dec 30 09:08 ..
-rwxr-xr-x    1 root     root          3016 Dec 13 08:55 askfirst
-rwxr-xr-x    1 root     root           178 Dec 30 08:55 block
drwxr-xr-x    2 root     root          4096 Dec 30 09:08 block_
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 devmem -> ../bin/busybox
-rwxrwxr-x    1 root     root           200 Aug  3 14:47 devstatus
-rwxrwxr-x    1 root     root            28 Aug  3 14:47 firstboot
-rwxr-xr-x    1 root     root        116824 Dec 13 09:02 fw3
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 halt -> ../bin/busybox
-rwxrwxr-x    1 root     root           352 Aug  3 14:47 hotplug-call
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 hwclock -> ../bin/busybox
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 ifconfig -> ../bin/busybox
lrwxrwxrwx    1 root     root             4 Dec 13 09:27 ifdown -> ifup
-rwxrwxr-x    1 root     root           273 Aug  3 14:47 ifstatus
-rwxrwxr-x    1 root     root          1320 Aug  3 14:47 ifup
-rwxr-xr-x    1 root     root         10391 Dec 13 08:55 init
lrwxrwxrwx    1 root     root            16 Dec 13 09:27 jffs2mark -> /sbin/jffs2reset
-rwxr-xr-x    1 root     root          4824 Dec 13 08:55 jffs2reset
-rwxr-xr-x    1 root     root          9752 Dec 13 08:55 kmodloader
-rwxrwxr-x    1 root     root           500 Aug  3 14:47 led.sh
-rwxr-xr-x    1 root     root          7320 Dec 13 08:55 logd
-rwxr-xr-x    1 root     root          8824 Dec 13 08:55 logread
-rwxr-xr-x    1 root     root           924 Sep 23 08:16 luci-reload
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 mkswap -> ../bin/busybox
-rwxr-xr-x    1 root     root          3576 Dec 13 08:55 mount_root
-rwxr-xr-x    1 root     root         20872 Dec 13 08:55 mtd
-rwxr-xr-x    1 root     root         79608 Dec 13 08:55 netifd
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 pivot_root -> ../bin/busybox
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 poweroff -> ../bin/busybox
-rwxr-xr-x    1 root     root         40088 Dec 13 08:55 procd
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 reboot -> ../bin/busybox
-rwxr-xr-x    1 root     root           489 Dec 13 08:55 reload_config
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 route -> ../bin/busybox
-rwxr-xr-x    1 root     root          1614 Dec 13 08:55 snapshot
-rwxr-xr-x    1 root     root          6312 Dec 13 08:55 snapshot_tool
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 start-stop-daemon -> ../bin/busybox
-rwxr-xr-x    1 root     root         10632 Dec 13 08:55 swconfig
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 switch_root -> ../bin/busybox
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 sysctl -> ../bin/busybox
-rwxrwxr-x    1 root     root          2509 Aug 16 23:02 sysinfo.sh
-rwxrwxr-x    1 root     root          5617 Aug  3 14:47 sysupgrade
-rwxr-xr-x    1 root     root         10760 Dec 13 08:55 ubusd
-rwxr-xr-x    1 root     root          9096 Dec 13 08:55 uci
-rwxr-xr-x    1 root     root          4440 Dec 13 08:55 udevtrigger
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 udhcpc -> ../bin/busybox
-rwxr-xr-x    1 root     root          4312 Dec 13 08:55 validate_data
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 vconfig -> ../bin/busybox
-rwxrwxr-x    1 root     root          2299 Aug  3 14:47 wget2nand
-rwxrwxr-x    1 root     root          4590 Aug  3 14:47 wifi

98

Odp: Zapasowe łącze na modemie GSM

A gdzie masz usbmode? Z extroota miałeś go wywalić, nie z flash.

PS. Zrób nowy wątek. Wyłącz router, odłącz modem, uruchom go z flash normalnie, pokaż

uci show fstab
ls -al /sbin/*
opkg list_installed
cat /sbin/block
logread

Wyłącz, podłącz modem z kartą, pozwól mu się uruchomić, pokaż jeszcze raz to samo.

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

99 (edytowany przez tenobcy 2014-12-30 11:02:00)

Odp: Zapasowe łącze na modemie GSM

To co wyżej jest na extroot bo przecież przekopiowałem całą konfigurację z flash na extroot usuwając usbmode, a to z flash:

root@OpenWrt:~# cat /sbin/block
#!/bin/sh
/tmp/overlay/sbin/usbmode -s -c /tmp/overlay/etc/usb-mode.json
for i in 1 2 3 4 5 6 7 8 9 10; do
  [ -e /dev/sda1 ] && break
  sleep 1 
done
exec /sbin/block_/block $*
root@OpenWrt:~# ls -la /sbin/
drwxr-xr-x    1 root     root             0 Dec 30 08:55 .
drwxr-xr-x    1 root     root             0 Jan  1  1970 ..
-rwxr-xr-x    1 root     root          3016 Dec 13 08:55 askfirst
-rwxr-xr-x    1 root     root           178 Dec 30 08:55 block
drwxr-xr-x    2 root     root             0 Dec 30 08:55 block_
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 devmem -> ../bin/busybox
-rwxrwxr-x    1 root     root           200 Aug  3 14:47 devstatus
-rwxrwxr-x    1 root     root            28 Aug  3 14:47 firstboot
-rwxr-xr-x    1 root     root        116824 Dec 13 09:02 fw3
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 halt -> ../bin/busybox
-rwxrwxr-x    1 root     root           352 Aug  3 14:47 hotplug-call
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 hwclock -> ../bin/busybox
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 ifconfig -> ../bin/busybox
lrwxrwxrwx    1 root     root             4 Dec 13 09:27 ifdown -> ifup
-rwxrwxr-x    1 root     root           273 Aug  3 14:47 ifstatus
-rwxrwxr-x    1 root     root          1320 Aug  3 14:47 ifup
-rwxr-xr-x    1 root     root         10391 Dec 13 08:55 init
lrwxrwxrwx    1 root     root            16 Dec 13 09:27 jffs2mark -> /sbin/jffs2reset
-rwxr-xr-x    1 root     root          4824 Dec 13 08:55 jffs2reset
-rwxr-xr-x    1 root     root          9752 Dec 13 08:55 kmodloader
-rwxrwxr-x    1 root     root           500 Aug  3 14:47 led.sh
-rwxr-xr-x    1 root     root          7320 Dec 13 08:55 logd
-rwxr-xr-x    1 root     root          8824 Dec 13 08:55 logread
-rwxr-xr-x    1 root     root           924 Sep 23 08:16 luci-reload
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 mkswap -> ../bin/busybox
-rwxr-xr-x    1 root     root          3576 Dec 13 08:55 mount_root
-rwxr-xr-x    1 root     root         20872 Dec 13 08:55 mtd
-rwxr-xr-x    1 root     root         79608 Dec 13 08:55 netifd
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 pivot_root -> ../bin/busybox
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 poweroff -> ../bin/busybox
-rwxr-xr-x    1 root     root         40088 Dec 13 08:55 procd
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 reboot -> ../bin/busybox
-rwxr-xr-x    1 root     root           489 Dec 13 08:55 reload_config
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 route -> ../bin/busybox
-rwxr-xr-x    1 root     root          1614 Dec 13 08:55 snapshot
-rwxr-xr-x    1 root     root          6312 Dec 13 08:55 snapshot_tool
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 start-stop-daemon -> ../bin/busybox
-rwxr-xr-x    1 root     root         10632 Dec 13 08:55 swconfig
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 switch_root -> ../bin/busybox
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 sysctl -> ../bin/busybox
-rwxrwxr-x    1 root     root          2509 Aug 16 23:02 sysinfo.sh
-rwxrwxr-x    1 root     root          5617 Aug  3 14:47 sysupgrade
-rwxr-xr-x    1 root     root         10760 Dec 13 08:55 ubusd
-rwxr-xr-x    1 root     root          9096 Dec 13 08:55 uci
-rwxr-xr-x    1 root     root          4440 Dec 13 08:55 udevtrigger
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 udhcpc -> ../bin/busybox
-rwxr-xr-x    1 root     root          9896 Dec 13 08:55 usbmode
-rwxr-xr-x    1 root     root          4312 Dec 13 08:55 validate_data
lrwxrwxrwx    1 root     root            14 Dec 13 09:27 vconfig -> ../bin/busybox
-rwxrwxr-x    1 root     root          2299 Aug  3 14:47 wget2nand
-rwxrwxr-x    1 root     root          4590 Aug  3 14:47 wifi

100 (edytowany przez tenobcy 2014-12-30 17:29:27)

Odp: Zapasowe łącze na modemie GSM

Ok Cezary pokombinujemy później bo muszę chwilowo lecieć hmm Problem przeniesiony do nowego tematu http://eko.one.pl/forum/viewtopic.php?id=10297 zgodnie z sugestią Cezarego.