Wb_gsm restart_if_broken висит без ответа


#1

Добрый день,

Обнаружил, что СМС перестали отправляться с контроллера WB5.
команда wb-gsm restart_if_broken ничего не выводят, просто висит в ожидании (я минут 10 ждал, потом нажал ^C). Так пробовал несколько раз, один из разов вывел:

/usr/lib/wb-utils/wb-gsm-common.sh: line 205: echo: write error: Resource temporarily unavailable
/usr/lib/wb-utils/wb-gsm-common.sh: line 206: echo: write error: Resource temporarily unavailable
/usr/lib/wb-utils/wb-gsm-common.sh: line 272: echo: write error: Resource temporarily unavailable

Остальные разы - просто висит. Как я понимаю, какая- то проблема с портами
На вкладке Network в web-интерфейсе показывается GPRS IP, то есть симка регистрируется в сети.
Перезагрузка контроллера не помогла.

Содержимое /etc/network/interfaces:

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# Wireless interfaces
allow-hotplug wlan0

#iface wlan0 inet dhcp
#    wpa-ssid wifiessid
#    wpa-psk wifipassword
 
 iface wlan0 inet static
   address 192.168.42.1
   netmask 255.255.255.0
 
 
 auto eth0
 iface eth0 inet dhcp
    pre-up ifconfig eth0 hw ether `cat /var/lib/wirenboard/eth0_mac.conf` || /bin/true
    pre-up wb-set-mac
    hostname WirenBoard
    metric 10
 
 allow-hotplug eth1
 iface eth1 inet dhcp
    pre-up ifconfig eth1 hw ether `cat /var/lib/wirenboard/eth1_mac.conf` || /bin/true
    hostname WirenBoard
 
 
 ## The gsm pptp interface
 ## vvv uncomment block to enable
 
 auto ppp0
 iface ppp0 inet ppp
 ## select provider: megafon, mts or beeline below
 provider mts
 metric 100
 pre-up wb-gsm restart_if_broken
 pre-up sleep 10

Содержимое /etc/ppp/peers/mts:

/dev/ttyGSM

115200

#disable hardware flow control
nocrtscts

 # Assumes that your IP address is allocated dynamically by the ISP.
 noipdefault
 # Try to get the name server addresses from the ISP.
 usepeerdns
 # Use this connection as the default route.
defaultroute
 
 # Makes pppd "dial again" when the connection is lost.
 persist
 
 # Do not ask the remote to authenticate.
 noauth
 

 
 persist
 # no limit on failed connections
 maxfail 0
 lcp-echo-interval 10
 lcp-echo-failure 3
 holdoff 10
 
 init "/usr/bin/wb-gsm restart_if_broken"
 
 user mts
 connect "/usr/sbin/chat -v -f /etc/chatscripts/mts"

Подскажите, в чем может быть проблема ?


#2

Здравствуйте, Sider. А после чего такая проблема произошла? Какой у вас модем 2G или 3G? Возможно, что да, конфликт при доступе к порту /dev/ttyGSM.


#3

Модем 3G, причина, вероятно, в том, что я пытался наладить работу GSM как резервного. Но действовал по инструкциям в вики, и после этого он пару месяцев работал нормально. Поэтому понять сейчас в чем проблема не могу.

Update: попробовал перезагрузить контроллер не командой reboot, как обычно, с отключением питания, с кнопки на корпусе. Теперь контроллер вообще не загружается, Ethernet не стартует, правила не работают. Возможно, при загрузке ждет того же, что и при wb_gsm.
Доступ к контроллеру через debug_USB есть, но что там делать - не знаю. WB 5.8
Прошу помочь с реанимацией контроллера.


#4

Добрый день. Для начала - просто выложить сюда лог с момента включения питания. Может мы сразу заметим что-нибудь ненормальное.

Как себя ведёт лампочка на передней панели устройства?


#5

Лампочка: 0.5 сек. зеленая, 4 сек. желтая, потом мигает красным до бесконечности.
Лог с момента включения:

 0
MMC0: Command 8 timeout (status 0xf03c4020)
MMC0: Command 55 timeout (status 0xf02c4020)
switch to partitions #0, OK
mmc0(part 0) is current device
MMC0: Command 8 timeout (status 0xf03c4020)
MMC0: Command 55 timeout (status 0xf02c4020)
SD/MMC found on device 0
322 bytes read in 125 ms (2 KiB/s)
Importing environment from mmc (uEnv.txt)...
Checking if uenvcmd is set ...
Running default loadzimage ...
3833432 bytes read in 1341 ms (2.7 MiB/s)
40668 bytes read in 910 ms (43 KiB/s)
Booting from mmc ...
Kernel image @ 0x42000000 [ 0x000000 - 0x3a7e58 ]
## Flattened Device Tree blob at 41000000
   Booting using the fdt blob at 0x41000000
   Loading Device Tree to 47b51000, end 47b5dedb ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.22-wb2 (root@wbdevenv) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #2 Sat Jan 26 11:30:10 UTC 2019
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt:Machine model: Wiren Board rev. 5.8 (i.MX28)
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyAMA0,115200 ro rootwait fixrtc root=/dev/mmcblk0p3 rootfstype=ext4 video=
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 122700K/131072K available (4569K kernel code, 204K rwdata, 1664K rodata, 160K init, 286K bss, 8372K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc047e9b0   (4571 kB)
[    0.000000]       .init : 0xc0642000 - 0xc066a000   ( 160 kB)
[    0.000000]       .data : 0xc066a000 - 0xc069d2c0   ( 205 kB)
[    0.000000]        .bss : 0xc069d2c0 - 0xc06e4e70   ( 287 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: mxs_timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000020] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000688] Console: colour dummy device 80x30
[    0.000754] Calibrating delay loop... 226.09 BogoMIPS (lpj=1130496)
[    0.080301] pid_max: default: 32768 minimum: 301
[    0.080573] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.080618] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.082198] CPU: Testing write buffer coherency: ok
[    0.083008] Setting up static identity map for 0x40008400 - 0x40008458
[    0.086695] devtmpfs: initialized
[    0.117574] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.117640] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.117995] pinctrl core: initialized pinctrl subsystem
[    0.120767] NET: Registered protocol family 16
[    0.122106] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.192997] Serial: AMBA PL011 UART driver
[    0.193824] 80074000.serial: ttyAMA0 at MMIO 0x80074000 (irq = 234, base_baud = 0) is a PL011 rev2
[    0.456783] console [ttyAMA0] enabled
[    0.484265] mxs-dma 80004000.dma-apbh: initialized
[    0.494361] mxs-dma 80024000.dma-apbx: initialized
[    0.504081] usbcore: registered new interface driver usbfs
[    0.509915] usbcore: registered new interface driver hub
[    0.515499] usbcore: registered new device driver usb
[    0.522204] i2c-gpio i2c_rtc_wb59@0: using pins 85 (SDA) and 90 (SCL)
[    0.530439] Linux video capture interface: v2.00
[    0.535403] pps_core: LinuxPPS API ver. 1 registered
[    0.540394] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.549689] PTP clock support registered
[    0.554549] Advanced Linux Sound Architecture Driver Initialized.
[    0.563025] clocksource: Switched to clocksource mxs_timer
[    0.605246] NET: Registered protocol family 2
[    0.611187] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.618337] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.624814] TCP: Hash tables configured (established 1024 bind 1024)
[    0.631369] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.637345] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.644053] NET: Registered protocol family 1
[    0.649351] RPC: Registered named UNIX socket transport module.
[    0.655416] RPC: Registered udp transport module.
[    0.660145] RPC: Registered tcp transport module.
[    0.664936] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.671901] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.681465] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.734534] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.741969] io scheduler noop registered (default)
[    0.750957] 8006a000.serial: ttyAPP0 at MMIO 0x8006a000 (irq = 229, base_baud = 1500000) is a 8006a000.serial
[    0.761937] mxs-auart 8006a000.serial: Found APPUART 3.1.0
[    0.768275] 8006c000.serial: ttyAPP1 at MMIO 0x8006c000 (irq = 230, base_baud = 1500000) is a 8006c000.serial
[    0.779299] mxs-auart 8006c000.serial: Found APPUART 3.1.0
[    0.785705] 8006e000.serial: ttyAPP2 at MMIO 0x8006e000 (irq = 231, base_baud = 1500000) is a 8006e000.serial
[    0.796766] mxs-auart 8006e000.serial: Found APPUART 3.1.0
[    0.802979] 80070000.serial: ttyAPP3 at MMIO 0x80070000 (irq = 232, base_baud = 1500000) is a 80070000.serial
[    0.814052] mxs-auart 80070000.serial: Found APPUART 3.1.0
[    0.820271] 80072000.serial: ttyAPP4 at MMIO 0x80072000 (irq = 233, base_baud = 1500000) is a 80072000.serial
[    0.831282] mxs-auart 80072000.serial: Found APPUART 3.1.0
[    0.857508] loop: module loaded
[    0.863452] libphy: Fixed MDIO Bus: probed
[    0.983202] 800f0000.ethernet supply phy not found, using dummy regulator
[    1.104434] libphy: fec_enet_mii_bus: probed
[    1.114285] 800f4000.ethernet supply phy not found, using dummy regulator
[    1.124387] PPP generic driver version 2.4.2
[    1.129335] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.136409] usbcore: registered new interface driver usbserial
[    1.142411] usbcore: registered new interface driver usbserial_generic
[    1.149209] usbserial: USB Serial support registered for generic
[    1.155994] mousedev: PS/2 mouse device common for all mice
[    2.033080] rtc-pcf8563 1-0051: pcf8563_write_block_data: err=-6 addr=0e, data=03
[    2.040601] rtc-pcf8563 1-0051: pcf8563_probe: write error
[    2.046263] rtc-pcf8563: probe of 1-0051 failed with error -5
[    2.056221] stmp3xxx-rtc 80056000.rtc: rtc core: registered 80056000.rtc as rtc0
[    2.064379] i2c /dev entries driver
[    2.070276] stmp3xxx_rtc_wdt stmp3xxx_rtc_wdt: initialized watchdog with heartbeat 19s
[    2.080672] 80010000.ssp supply vmmc not found, using dummy regulator
[    2.143144] mxs-mmc 80010000.ssp: initialized
[    2.149495] ledtrig-cpu: registered to indicate activity on CPUs
[    2.161558] usbcore: registered new interface driver usbhid
[    2.167285] usbhid: USB HID core driver
[    2.188390] NET: Registered protocol family 10
[    2.196028] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.204851] NET: Registered protocol family 17
[    2.209533] Key type dns_resolver registered
[    2.216603] registered taskstats version 1
[    2.228332] stmp3xxx-rtc 80056000.rtc: setting system clock to 1970-01-01 00:00:06 UTC (6)
[    2.236713] of_cfs_init
[    2.239357] of_cfs_init: OK
[    2.243322] usb0_vbus: disabling
[    2.246589] usb1_vbus: disabling
[    2.249830] ALSA device list:
[    2.252806]   No soundcards found.
[    2.256683] uart-pl011 80074000.serial: no DMA platform data
[    2.262537] Waiting for root device /dev/mmcblk0p3...
[    2.746020] mmc0: new high speed MMC card at address 0001
[    2.753004] mmcblk0: mmc0:0001 SEM04G 3.69 GiB
[    2.758366] mmcblk0boot0: mmc0:0001 SEM04G partition 1 1.00 MiB
[    2.765143] mmcblk0boot1: mmc0:0001 SEM04G partition 2 1.00 MiB
[    2.771765] mmcblk0rpmb: mmc0:0001 SEM04G partition 3 128 KiB
[    2.783372]  mmcblk0: p1 p2 p3 p4 < p5 p6 >
[    2.863054] random: fast init done
[    2.869571] EXT4-fs (mmcblk0p3): INFO: recovery required on readonly filesystem
[    2.877020] EXT4-fs (mmcblk0p3): write access will be enabled during recovery
[    2.941289] EXT4-fs (mmcblk0p3): recovery complete
[    2.950131] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[    2.958444] VFS: Mounted root (ext4 filesystem) readonly on device 179:3.
[    2.966459] devtmpfs: mounted
[    2.970254] Freeing unused kernel memory: 160K (c0642000 - c066a000)
[    2.976743] This architecture does not have kernel memory protection.
[    3.497108] systemd[1]: System time before build time, advancing clock.
[    3.543339] systemd[1]: Failed to insert module 'autofs4': No such file or directory
[    3.568117] ip_tables: (C) 2000-2006 Netfilter Core Team
[    3.626529] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    3.646532] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 9 (stretch)!

[    3.693443] systemd[1]: Set hostname to <wirenboard-ACP6FPZO>.
[    5.337784] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[    5.374803] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[    5.441040] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[    5.484696] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[    5.525404] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[    5.564883] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    5.594567] systemd[1]: Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[  OK  ] Created slice System Slice.
         Starting File System Check on Root Device...
         Mounting /sys/kernel/config...
         Mounting POSIX Message Queue File System...
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-getty.slice.
         Mounting Debug File System...
         Starting Load Kernel Modules...
[  OK  ] Reached target Remote File Systems.
[  OK  ] Reached target Paths.
[  OK  ] Listening on Journal Socket (/dev/log).
         Starting Journal Service...
[  OK  ] Listening on udev Control Socket.
[  OK  ] Reached target Slices.
[  OK  ] Created slice system-systemd\x2dfsck.slice.
[  OK  ] Reached target Encrypted Volumes.
         Starting Create list of required st…ce nodes for the current kernel...
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Mounted Debug File System.
[  OK  ] Mounted /sys/kernel/config.
[  OK  ] Started Create list of required sta…vice nodes for the current kernel.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started File System Check Daemon to report status.
         Starting Apply Kernel Variables...
         Starting Create Static Device Nodes in /dev...
[  OK  ] Started Apply Kernel Variables.plete)
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Started Journal Service.
[  OK  ] Started udev Kernel Device Manager.lete)
[FAILED] Failed to start File System Check on Root Device.
See 'systemctl status systemd-fsck-root.service' for details.
         Starting Remount Root and Kernel File Systems...
[  OK  ] Reached target Timers.
[  OK  ] Reached target Login Prompts.
[    8.182127] EXT4-fs (mmcblk0p3): warning: mounting fs with errors, running e2fsck is recommended
[  OK  ] Reached target[    8.203826] EXT4-fs (mmcblk0p3): re-mounted. Opts: errors=remount-ro
 Host and Network Name Lookups.
[  OK  ] Reached target Sockets.
[  OK  ] Started Emergency Shell.
[  OK  ] Reached target Emergency Mode.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Reached target Local File Systems (Pre).
         Starting Flush Journal to Persistent Storage...
         Starting udev Coldplug all Devices...
         Starting Load/Save Random Seed...
[  OK  ] Reached target Local File Systems.
         Starting Raise network interfaces...
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Raise network interfaces.
[    9.198775] systemd-journald[91]: Received request to flush runtime journal from PID 1
[  OK  ] Reached target Network.
[  OK  ] Reached target Network is Online.
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started udev Coldplug all Devices.
You are in emergency mode. After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, "systemctl default" or ^D to
try again to boot into default mode.
Give root password for maintenance
(or press Control-D to continue): [   14.633900] mxs-dcp 80028000.dcp: Failed to register sha1 hash!
[   14.649985] CAN device driver interface
[   14.697030] mxs-dcp: probe of 80028000.dcp failed with error -22
[   14.776288] 80034000.can supply xceiver not found, using dummy regulator
[   14.908027] flexcan 80034000.can: device registered (reg_base=c8a40000, irq=209)
[   15.226954] mxs-spdif-dai 80054000.spdif: MXS SPDIF Audio Transmitter
[   16.170030] ci_hdrc ci_hdrc.0: EHCI Host Controller
[   16.179866] lirc_dev: IR Remote Control driver registered, major 245
[   16.230543] Driver for 1-wire Dallas network protocol.
[   16.242268] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[   16.310175] lirc_pwm: module is from the staging directory, the quality is unknown, you have been warned.
[   16.333247] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[   16.385911] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   16.392751] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   16.400146] usb usb1: Product: EHCI Host Controller
[   16.405136] usb usb1: Manufacturer: Linux 4.9.22-wb2 ehci_hcd
[   16.410912] usb usb1: SerialNumber: ci_hdrc.0
[   16.443162] mxs-spdif sound-spdif: snd-soc-dummy-dai <-> 80054000.spdif mapping ok
[   16.566635] lirc_pwm lirc-rfm69: GPIO receiver on pin 37
[   16.593541] lirc_pwm lirc-rfm69: lirc_dev: driver lirc-rfm69 registered at minor = 0
[   16.601333] lirc_pwm lirc-rfm69: probed
[   16.785358] hub 1-0:1.0: USB hub found
[   16.797684] hub 1-0:1.0: 1 port detected
[   16.893240] ci_hdrc ci_hdrc.1: EHCI Host Controller
[   16.898287] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[   17.023250] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[   17.083722] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[   17.090561] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   17.097955] usb usb2: Product: EHCI Host Controller
[   17.102870] usb usb2: Manufacturer: Linux 4.9.22-wb2 ehci_hcd
[   17.108730] usb usb2: SerialNumber: ci_hdrc.1
[   17.213318] usb 1-1: new full-speed USB device number 2 using ci_hdrc
[   17.403826] hub 2-0:1.0: USB hub found
[   17.423218] hub 2-0:1.0: 1 port detected
[   17.483233] usb 1-1: device descriptor read/64, error -71
[   17.833209] usb 1-1: device descriptor read/64, error -71
[   18.093227] usb 1-1: new full-speed USB device number 3 using ci_hdrc
[   18.333216] usb 1-1: device descriptor read/64, error -71
[   18.926786] Adding 262140k swap on /dev/mmcblk0p5.  Priority:-1 extents:1 across:262140k SS
[   18.953229] usb 1-1: new full-speed USB device number 4 using ci_hdrc
[   19.202226] usb 1-1: New USB device found, idVendor=0658, idProduct=0200
[   19.209137] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=1
[   19.216392] usb 1-1: SerialNumber: 12345678-9012-3456-7890-123456789012
[   20.425326] cdc_acm 1-1:1.0: ttyACM0: USB ACM device
[   20.473194] usbcore: registered new interface driver cdc_acm
[   20.478892] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   20.861453] EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: (null)
[  147.173157] random: crng init done

#6

нажмите control-D


#7

Нажал:

[72080.745650] cgroup: new mount options do not match the existing superblock, will be ignored
[72086.843866] SMSC LAN8710/LAN8720 800f0000.etherne:00: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=800f0000.etherne:00, irq=-1)
[72086.943977] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[72087.353959] SMSC LAN8710/LAN8720 800f0000.etherne:01: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=800f0000.etherne:01, irq=-1)
[72087.447573] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[72089.003866] fec 800f0000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[72089.011872] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

Debian GNU/Linux 9 wirenboard-ACP6FPZO ttyAMA0

Через пару минут контроллер загрузился, лампочка стала мигать зеленая. Работоспособность восстановлена, даже sms отправляются, wb-gsm restart_if_broken отрабатывает нормально за 3-4 секунды, правда GPRS IP перестал показываться в веб-интерфейсе.
НО! Если контроллер опять вкл-выкл с кнопки, то при загрузке ситуация повторяется: пока не нажмешь CTRL-D в консоли - загрузка не завершается.


#8

Полагаю вот этот вывод важен:

root@wirenboard-ACP6FPZO:~# fsck /dev/mmcblk0p3 -n
fsck from util-linux 2.29.2
e2fsck 1.43.4 (31-Jan-2017)
Warning!  /dev/mmcblk0p3 is mounted.
Warning: skipping journal recovery because doing a read-only filesystem check.
rootfs1 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Inodes that were part of a corrupted orphan linked list found.  Fix? no

Inode 6664 was part of the orphaned inode list.  IGNORED.
Inode 19603 was part of the orphaned inode list.  IGNORED.
Inode 20371 was part of the orphaned inode list.  IGNORED.
Inode 21129 was part of the orphaned inode list.  IGNORED.
Inode 21143 was part of the orphaned inode list.  IGNORED.
Pass 2: Checking directory structure
Entry 'wb-homa-gpio.sys.conf' in /tmp (3076) has deleted/unused inode 960.  Clear? no

Entry 'wb-homa-gpio.do-not-edit.conf' in /tmp (3076) has deleted/unused inode 1930.  Clear? no

Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Block bitmap differences:  +(36715--36719) -(36730--36734) +101395
Fix? no

Free blocks count wrong for group #3 (8202, counted=8203).
Fix? no

Free blocks count wrong (105690, counted=105693).
Fix? no

Inode bitmap differences:  -960 -1930
Fix? no

Free inodes count wrong for group #0 (60, counted=58).
Fix? no


rootfs1: ********** WARNING: Filesystem still has errors **********

rootfs1: 30198/65536 files (0.1% non-contiguous), 156454/262144 blocks

Могу запустить без ключа -n?
Все можно исправлять? Или лучше сначала выполнить umount /dev/mmcblk0p3?


#9

лучше как раз с другим ключом, чтобы всё исправить


#10

С каким?
Umount нужно делать?


назначил(а) ответственного EvgenyBoger #11

#12

Вежливое напоминание.
На форуме подобных случаев не нашел, поэтому прошу подсказать как сделать правильно и не превратить мой WB в кирпич.


#13

Sider, добрый день!
Евгений сейчас вне доступа, хотел уточнить, есть ли какие-то важные данные у вас на этом контроллере? В кирпич вы его не превратите исправлением ошибок файловой системы – в крайнем случае, если какие-то важные файлы окажутся повреждены без возможности восстановления, вы сможете прошить контроллер заново, но что-то важное лучше иметь в резервной копии.

Я думаю, Евгений имел в виду ключ -y, который отвечает “yes” на все вопросы Fix?. Можете просто без ключей запускать, чтобы внимательно смотреть на сообщения fsck и вручную, более осмысленно, отвечать “yes”.


#14

Спасибо за ответ.
Контроллер в боевом режиме, полностью перепрошивать не хочется, т.к. там установлены связи с устройствами в ZWAYSERVER. Чтобы их заново установить, надо будет разбирать много труднодоступного оборудования, чтобы добраться до кнопок include всех устройств. Вобщем хотелось бы решить проблему малой кровью :slight_smile:
Вот тут написано что без размонтирования e2fsck на лучше не запускать, но на WB, возможно, есть свои нюансы, поэтому и спрашиваю.


#15

Да, без размонтирования, возможно, и не даст исправить.


#16

Ок, ладно, по инструкции со своей же ссылки все сделал, вроде все вылечилось, после перезагрузки контроллер запустился нормально, без CTRL-D.
Только одна ошибка вывалилась:
Failed to start Create Volatile Files and Directories
И предлагает запустить вот такую команду:

root@wirenboard-ACP6FPZO:~# systemctl status systemd-tmpfiles-setup.service
● systemd-tmpfiles-setup.service - Create Volatile Files and Directories
   Loaded: loaded (/lib/systemd/system/systemd-tmpfiles-setup.service; static; v
   Active: failed (Result: exit-code) since Thu 2016-11-03 17:17:07 UTC; 2 years
     Docs: man:tmpfiles.d(5)
           man:systemd-tmpfiles(8)
  Process: 248 ExecStart=/bin/systemd-tmpfiles --create --remove --boot --exclud
 Main PID: 248 (code=exited, status=1/FAILURE)

Nov 03 17:17:07 wirenboard-ACP6FPZO systemd-tmpfiles[248]: [/usr/lib/tmpfiles.d/
Nov 03 17:17:07 wirenboard-ACP6FPZO systemd-tmpfiles[248]: [/usr/lib/tmpfiles.d/
Nov 03 17:17:07 wirenboard-ACP6FPZO systemd-tmpfiles[248]: [/usr/lib/tmpfiles.d/
Nov 03 17:17:07 wirenboard-ACP6FPZO systemd-tmpfiles[248]: [/usr/lib/tmpfiles.d/
Nov 03 17:17:07 wirenboard-ACP6FPZO systemd-tmpfiles[248]: [/usr/lib/tmpfiles.d/
Nov 03 17:17:07 wirenboard-ACP6FPZO systemd-tmpfiles[248]: [/usr/lib/tmpfiles.d/
Nov 03 17:17:07 wirenboard-ACP6FPZO systemd[1]: systemd-tmpfiles-setup.service:
Nov 03 17:17:07 wirenboard-ACP6FPZO systemd[1]: Failed to start Create Volatile
Nov 03 17:17:07 wirenboard-ACP6FPZO systemd[1]: systemd-tmpfiles-setup.service:
Nov 03 17:17:07 wirenboard-ACP6FPZO systemd[1]: systemd-tmpfiles-setup.service:

Работе вроде не мешает.
Инструкция отсюда не помогла.
Стоит лечить или забить?


Ошибка skipping rule due to incomplete cell _system_dc_off: IncompleteCellCaught: incomplete cell encountered: Vin
#17

Лечить, так быть не должно. Можно посмотреть, что выводит команда mount на вашем контроллере?


#18

Вывод mount:

/dev/mmcblk0p3 on / type ext4 (rw,noatime,errors=remount-ro,stripe=1024,data=ordered)                                                                           
devtmpfs on /dev type devtmpfs (rw,relatime,size=61348k,nr_inodes=15337,mode=755)                                                                               
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)                      
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)                       
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)                                                                            
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)                                  
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)                                                                          
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)                             
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)      
tmpfs on /sys/fs/cgroup type tmpfs (rw,mode=755)                                
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)              
configfs on /sys/kernel/config type configfs (rw,relatime)                      
debugfs on /sys/kernel/debug type debugfs (rw,relatime)                         
mqueue on /dev/mqueue type mqueue (rw,relatime)                                 
/dev/mmcblk0p6 on /mnt/data type ext4 (rw,relatime,stripe=1024,data=ordered)    
/dev/mmcblk0p6 on /var/log type ext4 (rw,relatime,stripe=1024,data=ordered)     
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=12284k,mode=700)

#19

Ничего подозрительного.
Попробуйте выполнить в командной строке вот это:
/bin/systemd-tmpfiles --create --remove --boot --exclude /dev
Ошибки есть?


#20

При выполнении этой команды в терминал вообще ничего не выводится. Видимо, ошибок нет.