51

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Cezary napisał/a:

A czasami uruchomienie usb_modeswitch nie powoduje u Was ponownej inicjalizacji karty mimo że modem jest przełączony?

a ja na to:

vincencique napisał/a:

- odinstalowalem usb-modeswitch razem z powiązanymi pakietami,
- reboot, instalacja czystego extroot'a wg opisu wyzej.
- reboot, instalacja kilku przydatnych mi pakietow (3ginfo, ekg...) na extroocie.
- testowanie na różne sposoby przez dłuższy czas- rebooty, halty.. -  Wszystko gra ! big_smile

Wczoraj skusiłem się ponownie na extroot'a
- wyczyscilem wszystkie ustawienia przy pomocy failsafe
- usunalem usb-modeswitch z /etc/hotplug.d/usb/
- zainstalowalem sobie extroota
- dodalem kilka pakietow - 3ginfo, screen, ekg.

Dzis podczas pracy 'zniknal' na chwile internet, wiec sprawdzilem
logread

Oct 22 18:03:01 Gargoyle cron.err crond[2215]: USER root pid 2338 cmd /bin/3gtester
Oct 22 18:06:01 Gargoyle cron.err crond[2215]: USER root pid 2346 cmd /bin/3gtester
Oct 22 18:09:01 Gargoyle cron.err crond[2215]: USER root pid 2352 cmd /bin/3gtester
Oct 22 18:09:26 Gargoyle daemon.info hostapd: wlan0: STA 00:18:de:30:a4:7f WPA: group key handshake completed (RSN)
Oct 22 18:11:01 Gargoyle cron.err crond[2215]: USER root pid 2362 cmd /usr/bin/set_kernel_timezone >/dev/null 2>&1
Oct 22 18:12:01 Gargoyle cron.err crond[2215]: USER root pid 2364 cmd /bin/3gtester
Oct 22 18:15:01 Gargoyle cron.err crond[2215]: USER root pid 2372 cmd /bin/3gtester
Oct 22 18:18:01 Gargoyle cron.err crond[2215]: USER root pid 2378 cmd /bin/3gtester
Oct 22 18:19:13 Gargoyle user.info kernel: usb 1-1: USB disconnect, address 2
Oct 22 18:19:13 Gargoyle daemon.info pppd[1044]: Hangup (SIGHUP)
Oct 22 18:19:13 Gargoyle user.err kernel: option: option_instat_callback: error -143
Oct 22 18:19:13 Gargoyle daemon.notice pppd[1044]: Modem hangup
Oct 22 18:19:13 Gargoyle user.info kernel: option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Oct 22 18:19:13 Gargoyle daemon.info pppd[1044]: Connect time 48.1 minutes.
Oct 22 18:19:13 Gargoyle user.info kernel: option 1-1:1.0: device disconnected
Oct 22 18:19:13 Gargoyle daemon.info pppd[1044]: Sent 1799985 bytes, received 13237532 bytes.
Oct 22 18:19:13 Gargoyle user.info kernel: option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Oct 22 18:19:13 Gargoyle user.info kernel: option 1-1:1.1: device disconnected
Oct 22 18:19:13 Gargoyle user.info kernel: option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Oct 22 18:19:13 Gargoyle user.info kernel: option 1-1:1.2: device disconnected
Oct 22 18:19:13 Gargoyle daemon.notice pppd[1044]: Connection terminated.
Oct 22 18:19:13 Gargoyle user.warn kernel: ------------[ cut here ]------------
Oct 22 18:19:13 Gargoyle user.warn kernel: WARNING: at fs/buffer.c:1159 0x800fdaa8()
Oct 22 18:19:13 Gargoyle user.warn kernel: [truncated] Modules linked in: sierra option usbserial cdc_acm ledtrig_usbdev xt_IMQ imq ipt_weburl ipt_webmon ip
t_timerange nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp xt_iprange xt_HL
Oct 22 18:19:13 Gargoyle user.warn kernel: Call Trace:[<8006919c>] 0x8006919c
Oct 22 18:19:13 Gargoyle user.warn kernel: [<8006919c>] 0x8006919c
Oct 22 18:19:13 Gargoyle user.warn kernel: [<8007dc80>] 0x8007dc80
Oct 22 18:19:13 Gargoyle user.warn kernel: [<800fdaa8>] 0x800fdaa8
Oct 22 18:19:13 Gargoyle user.warn kernel: [<81b00000>] 0x81b00000
Oct 22 18:19:13 Gargoyle user.warn kernel: [<800fdaa8>] 0x800fdaa8
Oct 22 18:19:13 Gargoyle user.warn kernel: [<800f7fb8>] 0x800f7fb8
Oct 22 18:19:13 Gargoyle user.warn kernel: [<81af7178>] 0x81af7178
Oct 22 18:19:13 Gargoyle user.warn kernel: [<800fb900>] 0x800fb900
Oct 22 18:19:13 Gargoyle user.warn kernel: [<800fb900>] 0x800fb900
Oct 22 18:19:13 Gargoyle user.warn kernel: [<800fbaf4>] 0x800fbaf4
Oct 22 18:19:13 Gargoyle user.warn kernel: [<801055d0>] 0x801055d0
Oct 22 18:19:13 Gargoyle user.warn kernel: [<80191e68>] 0x80191e68
Oct 22 18:19:13 Gargoyle user.warn kernel: [<80159a54>] 0x80159a54
Oct 22 18:19:13 Gargoyle user.warn kernel: [<801553dc>] 0x801553dc
Oct 22 18:19:13 Gargoyle user.warn kernel: [<8011f938>] 0x8011f938
Oct 22 18:19:13 Gargoyle user.warn kernel: [<80192e2c>] 0x80192e2c
Oct 22 18:19:13 Gargoyle user.warn kernel: [<81b017d0>] 0x81b017d0
Oct 22 18:19:13 Gargoyle user.warn kernel: [<80097a24>] 0x80097a24
Oct 22 18:19:13 Gargoyle user.warn kernel: [<80195568>] 0x80195568
Oct 22 18:19:13 Gargoyle user.warn kernel: [<80121a10>] 0x80121a10
Oct 22 18:19:13 Gargoyle user.warn kernel: [<80195698>] 0x80195698
Oct 22 18:19:13 Gargoyle user.warn kernel: [<8019499c>] 0x8019499c
Oct 22 18:19:13 Gargoyle user.warn kernel: [<80192dc0>] 0x80192dc0
Oct 22 18:19:13 Gargoyle user.warn kernel: [<80192e5c>] 0x80192e5c
Oct 22 18:19:13 Gargoyle user.warn kernel: [<81b2b7a4>] 0x81b2b7a4
Oct 22 18:19:13 Gargoyle user.warn kernel: [<81b28260>] 0x81b28260
Oct 22 18:19:13 Gargoyle user.warn kernel: [<81b21c98>] 0x81b21c98
Oct 22 18:19:13 Gargoyle user.warn kernel: [<800974b0>] 0x800974b0
Oct 22 18:19:13 Gargoyle user.warn kernel: [<81b12254>] 0x81b12254
Oct 22 18:19:13 Gargoyle user.warn kernel: [<800979e8>] 0x800979e8
Oct 22 18:19:13 Gargoyle user.warn kernel: [<81b12388>] 0x81b12388
Oct 22 18:19:13 Gargoyle user.warn kernel: [<81b4a9f8>] 0x81b4a9f8
Oct 22 18:19:13 Gargoyle user.warn kernel: [<80097a24>] 0x80097a24
Oct 22 18:19:13 Gargoyle user.warn kernel: [<80195568>] 0x80195568
Oct 22 18:19:13 Gargoyle user.warn kernel: [<80121a10>] 0x80121a10
Oct 22 18:19:13 Gargoyle user.warn kernel: [<80195698>] 0x80195698
Oct 22 18:19:13 Gargoyle user.warn kernel: [<8019499c>] 0x8019499c
Oct 22 18:19:13 Gargoyle user.warn kernel: [<80192dc0>] 0x80192dc0
Oct 22 18:19:13 Gargoyle user.warn kernel: [<81b48268>] 0x81b48268
Oct 22 18:19:13 Gargoyle user.notice 3g-hotplug: Stopping interface wan for device ttyUSB0
Oct 22 18:19:14 Gargoyle daemon.info pppd[1044]: Terminating on signal 15
Oct 22 18:19:14 Gargoyle user.info firewall: removing wan (3g-wan) from zone wan
Oct 22 18:19:15 Gargoyle user.notice root: stopping ntpclient
Oct 22 18:19:16 Gargoyle daemon.info pppd[1044]: Exit.
Oct 22 18:19:20 Gargoyle user.info kernel: usb 1-1: new full speed USB device using ar71xx-ehci and address 3
Oct 22 18:19:20 Gargoyle user.info kernel: usb 1-1: configuration #1 chosen from 1 choice
Oct 22 18:19:20 Gargoyle user.info kernel: option 1-1:1.0: GSM modem (1-port) converter detected
Oct 22 18:19:20 Gargoyle user.info kernel: usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Oct 22 18:19:20 Gargoyle user.info kernel: option 1-1:1.1: GSM modem (1-port) converter detected
Oct 22 18:19:20 Gargoyle user.info kernel: usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Oct 22 18:19:20 Gargoyle user.info kernel: option 1-1:1.2: GSM modem (1-port) converter detected
Oct 22 18:19:20 Gargoyle user.info kernel: usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
Oct 22 18:19:20 Gargoyle user.info kernel: scsi7 : SCSI emulation for USB Mass Storage devices
Oct 22 18:19:20 Gargoyle user.debug kernel: usb-storage: device found at 3
Oct 22 18:19:20 Gargoyle user.debug kernel: usb-storage: waiting for device to settle before scanning
Oct 22 18:19:20 Gargoyle user.notice 3g-hotplug: Starting interface wan for device ttyUSB0
Oct 22 18:19:25 Gargoyle user.notice kernel: scsi 7:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Oct 22 18:19:25 Gargoyle user.debug kernel: usb-storage: device scan complete
Oct 22 18:19:25 Gargoyle user.notice kernel: sd 7:0:0:0: [sdb] 3862528 512-byte logical blocks: (1.97 GB/1.84 GiB)
Oct 22 18:19:25 Gargoyle user.notice kernel: sd 7:0:0:0: [sdb] Write Protect is off
Oct 22 18:19:25 Gargoyle user.debug kernel: sd 7:0:0:0: [sdb] Mode Sense: 00 00 00 00
Oct 22 18:19:25 Gargoyle user.err kernel: sd 7:0:0:0: [sdb] Assuming drive cache: write through
Oct 22 18:19:25 Gargoyle user.err kernel: sd 7:0:0:0: [sdb] Assuming drive cache: write through
Oct 22 18:19:25 Gargoyle user.info kernel:  sdb: sdb1
Oct 22 18:19:25 Gargoyle user.err kernel: sd 7:0:0:0: [sdb] Assuming drive cache: write through
Oct 22 18:19:25 Gargoyle user.notice kernel: sd 7:0:0:0: [sdb] Attached SCSI removable disk
Oct 22 18:19:26 Gargoyle daemon.info hostapd: wlan0: STA 00:18:de:30:a4:7f WPA: group key handshake completed (RSN)
Oct 22 18:19:26 Gargoyle daemon.notice pppd[2790]: pppd 2.4.4 started by root, uid 0
Oct 22 18:19:26 Gargoyle daemon.notice pppd[2790]: pppd 2.4.4 started by root, uid 0
Oct 22 18:19:27 Gargoyle local2.info chat[2800]: abort on (BUSY)
Oct 22 18:19:27 Gargoyle local2.info chat[2800]: abort on (NO CARRIER)
Oct 22 18:19:27 Gargoyle local2.info chat[2800]: abort on (ERROR)
Oct 22 18:19:27 Gargoyle local2.info chat[2800]: report (CONNECT)
Oct 22 18:19:27 Gargoyle local2.info chat[2800]: timeout set to 10 seconds
Oct 22 18:19:27 Gargoyle local2.info chat[2800]: send (AT&F^M)
Oct 22 18:19:28 Gargoyle local2.info chat[2800]: expect (OK)
Oct 22 18:19:28 Gargoyle local2.info chat[2800]: AT&F^M^M
Oct 22 18:19:28 Gargoyle local2.info chat[2800]: OK
Oct 22 18:19:28 Gargoyle local2.info chat[2800]:  -- got it
Oct 22 18:19:28 Gargoyle local2.info chat[2800]: send (ATE1^M)
Oct 22 18:19:28 Gargoyle local2.info chat[2800]: expect (OK)
Oct 22 18:19:28 Gargoyle local2.info chat[2800]: ^M
Oct 22 18:19:28 Gargoyle local2.info chat[2800]: ATE1^M^M
Oct 22 18:19:28 Gargoyle local2.info chat[2800]: OK
Oct 22 18:19:28 Gargoyle local2.info chat[2800]:  -- got it
Oct 22 18:19:28 Gargoyle local2.info chat[2800]: send (AT+CGDCONT=1,"IP","pro.plusgsm.pl"^M)
Oct 22 18:19:28 Gargoyle local2.info chat[2800]: timeout set to 30 seconds
Oct 22 18:19:28 Gargoyle local2.info chat[2800]: expect (OK)
Oct 22 18:19:28 Gargoyle local2.info chat[2800]: ^M
Oct 22 18:19:28 Gargoyle local2.info chat[2800]: AT+CGDCONT=1,"IP","pro.plusgsm.pl"^M^M
Oct 22 18:19:28 Gargoyle local2.info chat[2800]: OK
Oct 22 18:19:28 Gargoyle local2.info chat[2800]:  -- got it
Oct 22 18:19:28 Gargoyle local2.info chat[2800]: send (ATD*99***1#^M)
Oct 22 18:19:28 Gargoyle local2.info chat[2800]: expect (CONNECT)
Oct 22 18:19:28 Gargoyle local2.info chat[2800]: ^M
Oct 22 18:19:28 Gargoyle local2.info chat[2800]: ATD*99***1#^M^M
Oct 22 18:19:28 Gargoyle local2.info chat[2800]: NO CARRIER
Oct 22 18:19:28 Gargoyle local2.info chat[2800]:  -- failed
Oct 22 18:19:28 Gargoyle local2.info chat[2800]: Failed (NO CARRIER)
Oct 22 18:19:28 Gargoyle daemon.err pppd[2790]: Connect script failed
Oct 22 18:19:36 Gargoyle user.crit kernel: EXT2-fs error (device sda1): read_inode_bitmap: Cannot read inode bitmap - block_group = 1, inode_bitmap = 32888
Oct 22 18:19:36 Gargoyle user.notice fstab: mkdir: cannot create directory '/mnt/sda99': Input/output error
Oct 22 18:19:36 Gargoyle user.crit kernel: mini_fo: create_sto_dir: ERROR creating sto dir.
Oct 22 18:20:00 Gargoyle local2.info chat[2875]: abort on (BUSY)
Oct 22 18:20:00 Gargoyle local2.info chat[2875]: abort on (NO CARRIER)
Oct 22 18:20:00 Gargoyle local2.info chat[2875]: abort on (ERROR)
Oct 22 18:20:00 Gargoyle local2.info chat[2875]: report (CONNECT)
Oct 22 18:20:00 Gargoyle local2.info chat[2875]: timeout set to 10 seconds
Oct 22 18:20:00 Gargoyle local2.info chat[2875]: send (AT&F^M)
Oct 22 18:20:00 Gargoyle local2.info chat[2875]: expect (OK)
Oct 22 18:20:00 Gargoyle local2.info chat[2875]: AT&F^M^M
Oct 22 18:20:00 Gargoyle local2.info chat[2875]: OK
Oct 22 18:20:00 Gargoyle local2.info chat[2875]:  -- got it
Oct 22 18:20:00 Gargoyle local2.info chat[2875]: send (ATE1^M)
Oct 22 18:20:00 Gargoyle local2.info chat[2875]: expect (OK)
Oct 22 18:20:00 Gargoyle local2.info chat[2875]: ^M
Oct 22 18:20:00 Gargoyle local2.info chat[2875]: ATE1^M^M
Oct 22 18:20:00 Gargoyle local2.info chat[2875]: OK
Oct 22 18:20:00 Gargoyle local2.info chat[2875]:  -- got it
Oct 22 18:20:00 Gargoyle local2.info chat[2875]: send (AT+CGDCONT=1,"IP","pro.plusgsm.pl"^M)
Oct 22 18:20:01 Gargoyle local2.info chat[2875]: timeout set to 30 seconds
Oct 22 18:20:01 Gargoyle local2.info chat[2875]: expect (OK)
Oct 22 18:20:01 Gargoyle local2.info chat[2875]: ^M
Oct 22 18:20:01 Gargoyle local2.info chat[2875]: AT+CGDCONT=1,"IP","pro.plusgsm.pl"^M^M
Oct 22 18:20:01 Gargoyle local2.info chat[2875]: OK
Oct 22 18:20:01 Gargoyle local2.info chat[2875]:  -- got it
Oct 22 18:20:01 Gargoyle local2.info chat[2875]: send (ATD*99***1#^M)
Oct 22 18:20:01 Gargoyle local2.info chat[2875]: expect (CONNECT)
Oct 22 18:20:01 Gargoyle local2.info chat[2875]: ^M
Oct 22 18:20:01 Gargoyle local2.info chat[2875]: ATD*99***1#^M^M
Oct 22 18:20:01 Gargoyle local2.info chat[2875]: CONNECT
Oct 22 18:20:01 Gargoyle local2.info chat[2875]:  -- got it
Oct 22 18:20:01 Gargoyle local2.info chat[2875]: send ( ^M)
Oct 22 18:20:01 Gargoyle daemon.info pppd[2790]: Serial connection established.
Oct 22 18:20:01 Gargoyle daemon.info pppd[2790]: Using interface 3g-wan
Oct 22 18:20:01 Gargoyle daemon.notice pppd[2790]: Connect: 3g-wan <--> /dev/ttyUSB0
Oct 22 18:20:02 Gargoyle daemon.warn pppd[2790]: Could not determine remote IP address: defaulting to 10.64.64.64
Oct 22 18:20:02 Gargoyle daemon.notice pppd[2790]: local  IP address 87.251.241.15
Oct 22 18:20:02 Gargoyle daemon.notice pppd[2790]: remote IP address 10.64.64.64
Oct 22 18:20:02 Gargoyle daemon.notice pppd[2790]: primary   DNS address 212.2.96.51
Oct 22 18:20:02 Gargoyle daemon.notice pppd[2790]: secondary DNS address 212.2.96.52
Oct 22 18:20:03 Gargoyle user.notice ifup: Enabling Router Solicitations on wan (3g-wan)
Oct 22 18:20:03 Gargoyle user.info firewall: adding wan (3g-wan) to zone wan
Oct 22 18:20:04 Gargoyle user.notice root: starting ntpclient
Oct 22 18:20:06 Gargoyle user.crit kernel: EXT2-fs error (device sda1): ext2_get_inode: unable to read inode block - inode=32198, block=131074
Oct 22 18:20:06 Gargoyle user.crit kernel: EXT2-fs error (device sda1): read_inode_bitmap: Cannot read inode bitmap - block_group = 4, inode_bitmap = 131073
Oct 22 18:20:06 Gargoyle user.crit kernel: EXT2-fs error (device sda1): read_inode_bitmap: Cannot read inode bitmap - block_group = 4, inode_bitmap = 131073
Oct 22 18:20:06 Gargoyle cron.err crond[3148]: crond (busybox 1.15.3) started, log level 5
Oct 22 18:21:01 Gargoyle cron.err crond[3148]: USER root pid 3485 cmd /bin/3gtester
Oct 22 18:21:01 Gargoyle cron.err crond[3148]: USER root pid 3486 cmd /usr/bin/set_kernel_timezone >/dev/null 2>&1
Oct 22 18:21:27 Gargoyle authpriv.info dropbear[3493]: Child connection from 192.168.1.190:2170
Oct 22 18:23:42 Gargoyle authpriv.warn dropbear[3493]: Bad password attempt for 'root' from 192.168.1.190:2170
Oct 22 18:23:46 Gargoyle authpriv.notice dropbear[3493]: Password auth succeeded for 'root' from 192.168.1.190:2170
Oct 22 18:24:01 Gargoyle cron.err crond[3148]: USER root pid 3501 cmd /bin/3gtester
Oct 22 18:27:01 Gargoyle cron.err crond[3148]: USER root pid 3509 cmd /bin/3gtester
Oct 22 18:29:26 Gargoyle daemon.info hostapd: wlan0: STA 00:18:de:30:a4:7f WPA: group key handshake completed (RSN)
Oct 22 18:30:01 Gargoyle cron.err crond[3148]: USER root pid 3521 cmd /bin/3gtester
Oct 22 18:31:01 Gargoyle cron.err crond[3148]: USER root pid 3527 cmd /usr/bin/set_kernel_timezone >/dev/null 2>&1
Oct 22 18:31:22 Gargoyle user.crit kernel: EXT2-fs error (device sda1): read_inode_bitmap: Cannot read inode bitmap - block_group = 2, inode_bitmap = 65537
Oct 22 18:31:22 Gargoyle user.crit kernel: mini_fo: create_sto_file: ERROR creating sto file.

dmesg

usb 1-1: USB disconnect, address 2
option: option_instat_callback: error -143
option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
option 1-1:1.0: device disconnected
option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
option 1-1:1.1: device disconnected
option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
option 1-1:1.2: device disconnected
------------[ cut here ]------------
WARNING: at fs/buffer.c:1159 0x800fdaa8()
Modules linked in: sierra option usbserial cdc_acm ledtrig_usbdev xt_IMQ imq ipt_weburl ipt_webmon ipt_timerange nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf
_conntrack_irc nf_nat_ftp nf_conntrack_ftp xt_iprange xt_HL xt_hl xt_MARK ipt_ECN xt_CLASSIFY xt_time xt_tcpmss xt_statistic xt_mark xt_length ipt_ecn xt_DS
CP xt_dscp xt_string xt_layer7 ipt_bandwidth ipt_REDIRECT ipt_NETMAP ipt_MASQUERADE iptable_nat nf_nat xt_CONNMARK xt_recent xt_helper xt_conntrack xt_connm
ark xt_connbytes xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack pppoe pppox ipt_REJECT xt_TCPMSS ipt_LOG xt_comment xt_multip
ort xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables tun ppp_async ppp_generic slhc vfat fat ath9k ath9k_common ath9k_hw ath nls_i
so8859_1 nls_cp437 mac80211 ts_fsm ts_bm ts_kmp crc_ccitt cfg80211 compat arc4 aes_generic deflate ecb cbc cryptomgr crypto_hash crypto_blkcipher pcompress
aead crypto_algapi usb_storage ehci_hcd sd_mod ext2 usbcore scsi_mod nls_base mbcache crc16 zlib_deflate leds_gpio button_hotplug gpio_buttons input_polldev
input_core
Call Trace:[<8006919c>] 0x8006919c
[<8006919c>] 0x8006919c
[<8007dc80>] 0x8007dc80
[<800fdaa8>] 0x800fdaa8
[<81b00000>] 0x81b00000
[<800fdaa8>] 0x800fdaa8
[<800f7fb8>] 0x800f7fb8
[<81af7178>] 0x81af7178
[<800fb900>] 0x800fb900
[<800fb900>] 0x800fb900
[<800fbaf4>] 0x800fbaf4
[<801055d0>] 0x801055d0
[<80191e68>] 0x80191e68
[<80159a54>] 0x80159a54
[<801553dc>] 0x801553dc
[<8011f938>] 0x8011f938
[<80192e2c>] 0x80192e2c
[<81b017d0>] 0x81b017d0
[<80097a24>] 0x80097a24
[<80195568>] 0x80195568
[<80121a10>] 0x80121a10
[<80195698>] 0x80195698
[<8019499c>] 0x8019499c
[<80192dc0>] 0x80192dc0
[<80192e5c>] 0x80192e5c
[<81b2b7a4>] 0x81b2b7a4
[<81b28260>] 0x81b28260
[<81b21c98>] 0x81b21c98
[<800974b0>] 0x800974b0
[<81b12254>] 0x81b12254
[<800979e8>] 0x800979e8
[<81b12388>] 0x81b12388
[<81b4a9f8>] 0x81b4a9f8
[<80097a24>] 0x80097a24
[<80195568>] 0x80195568
[<80121a10>] 0x80121a10
[<80195698>] 0x80195698
[<8019499c>] 0x8019499c
[<80192dc0>] 0x80192dc0
[<81b48268>] 0x81b48268
[<80069330>] 0x80069330
[<81b436a8>] 0x81b436a8
[<81b44634>] 0x81b44634
[<80092ac8>] 0x80092ac8
[<81b440d0>] 0x81b440d0
[<8009261c>] 0x8009261c
[<8009261c>] 0x8009261c
[<8006d5f8>] 0x8006d5f8
[<80250000>] 0x80250000
[<800925a0>] 0x800925a0
[<8006d5e8>] 0x8006d5e8

---[ end trace 12e196ae8531fcc3 ]---
usb 1-1: new full speed USB device using ar71xx-ehci and address 3
usb 1-1: configuration #1 chosen from 1 choice
option 1-1:1.0: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1:1.1: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
option 1-1:1.2: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
scsi7 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
scsi 7:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
usb-storage: device scan complete
sd 7:0:0:0: [sdb] 3862528 512-byte logical blocks: (1.97 GB/1.84 GiB)
sd 7:0:0:0: [sdb] Write Protect is off
sd 7:0:0:0: [sdb] Mode Sense: 00 00 00 00
sd 7:0:0:0: [sdb] Assuming drive cache: write through
sd 7:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 7:0:0:0: [sdb] Assuming drive cache: write through
sd 7:0:0:0: [sdb] Attached SCSI removable disk
EXT2-fs error (device sda1): read_inode_bitmap: Cannot read inode bitmap - block_group = 1, inode_bitmap = 32888
mini_fo: create_sto_dir: ERROR creating sto dir.
EXT2-fs error (device sda1): ext2_get_inode: unable to read inode block - inode=32198, block=131074
EXT2-fs error (device sda1): read_inode_bitmap: Cannot read inode bitmap - block_group = 4, inode_bitmap = 131073
EXT2-fs error (device sda1): read_inode_bitmap: Cannot read inode bitmap - block_group = 4, inode_bitmap = 131073
EXT2-fs error (device sda1): read_inode_bitmap: Cannot read inode bitmap - block_group = 2, inode_bitmap = 65537
mini_fo: create_sto_file: ERROR creating sto file.
usb 1-1: USB disconnect, address 3
option: option_instat_callback: error -143
option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
option 1-1:1.0: device disconnected
option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
option 1-1:1.1: device disconnected
option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
option 1-1:1.2: device disconnected
usb 1-1: new full speed USB device using ar71xx-ehci and address 4
usb 1-1: configuration #1 chosen from 1 choice
option 1-1:1.0: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1:1.1: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
option 1-1:1.2: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
scsi11 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
scsi 11:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
usb-storage: device scan complete
sd 11:0:0:0: [sdb] Attached SCSI removable disk
EXT2-fs error (device sda1): read_inode_bitmap: Cannot read inode bitmap - block_group = 4, inode_bitmap = 131073

Wiec halt, wyjecie modemu z karta, ponowne uruchomienie, wlozenie modemu, instalacja e2fsprogs w ramie

root@Gargoyle:~$ /tmp/usr/sbin/e2fsck -y /dev/sda1
e2fsck 1.41.11 (14-Mar-2010)
/dev/sda1 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sda1: 207/120720 files (0.0% non-contiguous), 8907/482311 blocks

Niby czysto.

Pytanie
Czy da sie to wytlumaczyc np resetem modemu spowodowanym chwilowymi problemami z lacznoscia, ktore spowodowane sa slabym zasiegiem 3g (9%-16%)?
Czy reset mogl spowodowac komunikat o odłączeniu modemu USB?
Czy to co widać w logach jest naturalnym następstwem rozłączenia modemu USB ?
Czy odmountowanie sd mogło niespowodować błędów na dysku (e2fsck nie pokazał niczego złego)
Czy jest jakieś inne wytłumaczenie tego co widać w logach?
I co do licha znaczy : "user.err kernel: option: option_instat_callback: error -143"?

TP-LINK MR3420 + Huawei e169 (iPlus) + MiniSD 2GB
OpenWRT - Gargoyle PL inside

52

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

fsbuffer.c. System zarządzania pamięcią się wywalił.

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

53

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Czy ja mogłem się przyczynić do tego błędu?
Czy to raczej błąd firmware'u ?

TP-LINK MR3420 + Huawei e169 (iPlus) + MiniSD 2GB
OpenWRT - Gargoyle PL inside

54

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

To komunikat kernela. Zwykle pojawia sie jak masz za dużo procesów uruchomionych i brakuje mu pamięci (lub np. jakiś proces ma wyciek pamięci, co na jedno wychodzi) lub uszkodzona jest pamięć.

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

55

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Witam

Dzieki za odpowiedz.


Cezary napisał/a:

Ty w ogóle extroota nie zrobiłeś. Nie masz tak jak w poradniku, /overlay nadal masz we flashu a nie na karcie pamieci.

Wiem że nie zrobiłem, bo zatrzymałem się na punkcie "2c" czyli "przygotowanie narzędzi". Zaktualizowałem liste pakietów opkg oraz pobrałem te wskazane, wysypał mi się na poleceniu:

ln -s /tmp/usr/lib/lib* /usr/lib/

root@tp_l:~$ ln -s /tmp/usr/lib/lib* /usr/lib/
ln: /usr/lib/libblkid.so.1: No space left on device
ln: /usr/lib/libblkid.so.1.0: No space left on device
ln: /usr/lib/libcom_err.so.2: No space left on device
ln: /usr/lib/libcom_err.so.2.1: No space left on device
ln: /usr/lib/libe2p.so.2: No space left on device
ln: /usr/lib/libe2p.so.2.3: No space left on device
ln: /usr/lib/libext2fs.so.2: No space left on device
ln: /usr/lib/libext2fs.so.2.4: No space left on device
ln: /usr/lib/libuuid.so.1: No space left on device
ln: /usr/lib/libuuid.so.1.2: No space left on device

i nie wiem co dalej.

Cezary napisał/a:

PS. Nie zrobisz extroota na karcie pamięci jeżeli nie przełączyłes na stałe Huawei w tryb modemu.

Czy taka operacja zmienia w jakiś sposób korzystanie z modemu w systemie windows? (czasami zabieram ten modem z laptopem na miasto)

Pozdrawiam

56

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Nie zrobił linków bo nie masz miejsca już we flash. Coś zrobiłeś wcześniej co zapełniło pozostały obszar flash.

Zmienia to tylko tyle, że jak podłączysz modem do całkiem nowego windowsa to nie pokaże się ten wirtualny cdrom ze sterownikami tylko od razu będzie modem widoczny.

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

57

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

witam. to mój pierwszy wpis na tym forum.
mój problem jest taki, że po zainstalowaniu extrota - router + aktywny hub USB +modem 3g E173 (Play) + pendrie 2GB na którym jest wrzucony-zgodnie z powyższą instrukcją -system - na komputerach podłączonych (wifi, lub lan) jest internet pod warunkiem dopisania ręcznie dns-ów. Najdziwniejsze jednak jest to, że na openwrt tego netu nie widać, tzn nie chodzą pingi, wszystkie komendy zależne od połączenia z netem pokazują błędy - np opkg update  odpowiedż 
Downloading http://ecco.selfip.net/backfire/ar71xx/ … ckages.gz.
wget: bad address 'ecco.selfip.net'
Downloading http://downloads.openwrt.org/backfire/1 … ckages.gz.
wget: bad address 'downloads.openwrt.org'
Collected errors:
* opkg_download: Failed to download http://ecco.selfip.net/backfire/ar71xx/ … ckages.gz, wget returned 1.
* opkg_download: Failed to download http://downloads.openwrt.org/backfire/1 … ckages.gz, wget returned 1.
Ktoś może wie jak to naprawić,

58

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

(teraz będzie dziwnie) Zgłaszali już na forum że dnsy nie działają jak system plików ext2 był założony pod ubuntu a nie pod openwrt.

PS. Dopisz sobie dny po prostu.

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

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Hej,
Przede wszystkim wielkie dzięki za tego posta, bo już miałem zrezygnować z instalacji openWrt na swoim MR3420. smile Dzięki temu postowi wszystko działa jak nalezy, choć nie obeszło się bez przygód. Po drodze wgrałem sobie nie ten obraz co trzeba i musiałem sobie zlutować i przerobić kabel szeregowy do noki, żeby móc wgrać dobry obraz na nowo przez port szeregowy. Potem już wszystko zadziałało elegancko jak w opisach. Teraz wszystko mi świetnie hula, external root jest, torenciki się ściągaja przez transmission, samba i swap też śmiga. W tym momencie borykam się z pewnymi 2 problememi, otóż:
1. mam modem GSM i pingi do np. oneta są 100ms do 400ms. Pomyślałem, żeby zainstalować sobie squid lub polip (chodzi cache), ale kombinowałem i nichujaszka nic mi nie wychodzi, przydał by się taki szczegółowy gajdzik jak ten smile Zresztą nie wiem czy na takim ruterku to ma sens. W sensie nie wiem czy jest na tyle wydajny żeby dać sobie z cachem rade i czy koniec końców nie spowolniło by to ruchu sieciowego.
2. skonfigurowałem serwer samby i mogę odczytywać, ale z windows-a nie mogę nic zapisywać ani kasować z szerowanego dysku i znów przydał by się taki szczegółowy gajdzik jak ten do samby smile Na pewno coś trzeba z prawami zakombinować, ale nie wiem co ...
Dajcie znać jak ktoś się borykał z wymienionymi problemami i sobie poradził. Z góry sorki za wpis być może niekoniecznie z pozoru nawiązujący do tematu, ale jak już to przeszedłem instalacje openwrt to apetyt rośnie wink
Pozdro

60

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

1. Nie ma. Za mało zasobów i ramu. Chcesz mieć mniejsze pingu - zainwestuj w lepszy modem i szybszą technologie smile
2. chmod -R 755 /mnt/sda1 czy gdzie tam masz zainstalowane. Generalnie chodzi o to, ze user na który logujesz się do samby miał prawa zapisu do zasobu.

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

61

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Witam!

Mam problem, z modemem k3765, mam zainstalowane Gargoyle, wlozona karte SD 8g,
ktora moge sformatowac, jednak system nie widzi jej jako "/dev/sda1" tylko jako "sda"
zatem komenda "/tmp/usr/sbin/mke2fs -m 0 /dev/sda" go formatuje.

komenda blkid zwraca:

/dev/sda: UUID="f7c7070d-8a7a-49fc-9988-f5193941eff0"

a po restarcie komendy:

mount  | grep /dev/sd
df -h  | grep /dev/sd

nie wyswietlaja NIC...


wybrane z loga:

Jan  1 01:06:18 Gargoyle user.notice kernel: sd 2:0:0:0: [sda] 7925760 512-byte logical blocks: (4.05 GB/3.77 GiB)
Jan  1 01:06:18 Gargoyle user.err kernel: sd 2:0:0:0: [sda] Assuming drive cache: write through
Jan  1 01:06:18 Gargoyle user.err kernel: sd 2:0:0:0: [sda] Assuming drive cache: write through


Jan  1 01:01:12 Gargoyle user.notice kernel: scsi 1:0:0:0: CD-ROM            Vodafone CD ROM (Huawei)  2.31 PQ: 0 ANSI: 2
Jan  1 01:01:12 Gargoyle user.debug kernel: usb-storage: device scan complete
Jan  1 01:01:12 Gargoyle user.notice kernel: scsi 2:0:0:0: Direct-Access     Vodafone Storage (Huawei) 2.31 PQ: 0 ANSI: 2

no i podejzane:
Gargoyle user.info kernel: sda: unknown partition table

co tu moze pomoc ? przelaczenie w tryb modemu ??

62

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Weź fdiskiem zrób po prostu partycję.

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

63

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Weź fdiskiem zrób po prostu partycję.

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

64 (edytowany przez sosw 2011-10-31 18:40:59)

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

zainstalowalem fdisk
"root@Gargoyle:/dev$ opkg install -d ram fdisk
Package fdisk (2.13.0.1-4) installed in ram is up to date."

ale nie moge uruchomic "fdisk /dev/sda" odpowiedz "-ash: fdisk: not found"

ps. wylaczylem tez cdrom w modemie ( putty pod windowsem komenda   AT^U2DIAG=256)

przeczytalem :"UWAGA1: formatuje się partycję (/dev/sda1), nie dysk (/dev/sda)!"

tylko po formacie mi nie widzi SDA1

-----------------
komenda "/tmp/usr/sbin/mke2fs -m 0 /dev/sda1" zwraca

mke2fs 1.41.11 (14-Mar-2010)
Could not stat /dev/sda1 --- No such file or directory

The device apparently does not exist; did you specify it correctly?


-----------------

wynik formatowania: SDA, SDA1 nie widac w systemie

root@Gargoyle:/dev$ /tmp/usr/sbin/mke2fs -m 0 /dev/sda
mke2fs 1.41.11 (14-Mar-2010)
/dev/sda is entire device, not just one partition!
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
248000 inodes, 990720 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1015021568
31 block groups
32768 blocks per group, 32768 fragments per group
8000 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736

Writing inode tables: done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 28 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

65

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

No pewnie że nie widzi partycji bo jej nie zrobiłeś.  Po to własnie miałeś zainstalowąc fdisk i zrobić ją.

Skoro zainstalowałeś fdisk przez -d ram to nie jest on na ścieżce tylko w /tmp/sbin/fdisk

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

66 (edytowany przez sosw 2011-10-31 23:42:12)

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

poszło dalej, widze w systemie SDA i SDA1, teraz blkid nie zwraca wyniku
a przed fdiskiem zwracalo wink

po komendzie "reboot" wpisuje blkid i jest odpowiedz, w miedzyczasie zapuscilem sprawdzenie
dyski i mam wynik:"

/tmp/usr/sbin/e2fsck -y /dev/sda1
e2fsck 1.41.11 (14-Mar-2010)
/tmp/usr/sbin/e2fsck: Superblock invalid, trying backup blocks...
/dev/sda1 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Block bitmap differences:  +(524288--524789) +(557056--557557) +(589824--590325) +(622592--623093) +(655360--655861) +(688128--688629) +(720896--721397) +(753664--754165) +(786432--786933) +(819200--819944) +(851968--852469) +(884736--885480) +(917504--918005) +(950272--950773) +(983040--983541)
Fix? yes


/dev/sda1: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sda1: 11/248000 files (0.0% non-contiguous), 17512/990054 blocks
"

co dalej nie wiem... pomocy....

nastepne testy:

df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 2.4M      2.4M         0 100% /rom
tmpfs                    14.5M    104.0K     14.4M   1% /tmp
tmpfs                   512.0K      4.0K    508.0K   1% /dev
/dev/mtdblock3          328.0K    324.0K      4.0K  99% /overlay
mini_fo:/overlay          2.4M      2.4M         0 100% /


a potem z palca:


mkdir -p /tmp/a
root@Gargoyle:~$ mount -t ext2 /dev/sda1 /tmp/a
root@Gargoyle:~$ mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /dev type tmpfs (rw,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mtdblock3 on /overlay type jffs2 (rw,relatime)
mini_fo:/overlay on / type mini_fo (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)
root@Gargoyle:~$

67

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Masz błędy na tym nośniku. Co z nim robileś, bo mam rozumieć to świeżo założony system plików?

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

68

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Nic nie robilem swiezo kupiony SD HC 4gb

69

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Zrób jeszcze raz ten system plików.

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

70

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Cezary napisał/a:

Zrób jeszcze raz ten system plików.

A czy moze to byc wina karty SD? A mianowicie to ze to jest SDHC ??

pozdrawiam

71

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Raczej czytnika. System nie ma pojęcia o tym czy jest to sd czy sdhc. Obojętne mu to jest.

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

72 (edytowany przez TioFrancotirador 2011-11-06 01:04:22)

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Cezary napisał/a:

1. Nie ma. Za mało zasobów i ramu. Chcesz mieć mniejsze pingu - zainwestuj w lepszy modem i szybszą technologie smile
2. chmod -R 755 /mnt/sda1 czy gdzie tam masz zainstalowane. Generalnie chodzi o to, ze user na który logujesz się do samby miał prawa zapisu do zasobu.

hmm Dalej mi nie hula (write) po tym chmod -R 755 /mnt/sda99
Wpis do fstab:

config 'mount'
        option 'target' '/mnt/sda99'
        # option 'device' '/dev/sda3'
        option 'options' 'rw,noatime'
        option 'enabled_fsck' '0'
        option 'enabled' '1'
        option 'uuid' '9ac65c97-a3c5-4a46-bcad-8500fefe8dce'
        option 'is_rootfs' '0'
        option 'fstype' 'ext4'

wpis do samba:
config samba
        option 'name'                   'openwrt'
        option 'workgroup'              'workgroup'
        option 'description'            'openwrt'
        option 'homes'                  '0'

config sambashare
        option 'name'                   'torrents'
        option 'path'                   '/mnt/sda99'
        option 'read_only'              'no'
        option 'writeable'              'yes'
        option 'guest_ok'               'yes'
        option 'create_mask'            '0755'
        option 'dir_mask'               '0755'
        # option 'users'                ''

Any idea?

73

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

chmod -R 777?  No zobacz czy masz prawa zapisu dla innych do tego zasobu.

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

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Cezary napisał/a:

chmod -R 777?  No zobacz czy masz prawa zapisu dla innych do tego zasobu.

Dziękuwa. Teraz zadziałało smile

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

A mam jeszcze takie pytanko. Jeden z moich dyskow podpietych do routera jest vfat. W lini polecen zapisuje i odczytuje, natomiast przez sambe moge tylko czytac. Jak zrobić żebym mógł również zapisywać?