Не загружается после прошивки WB 5

Появились периодические зависания контроллера и отвал датчиков температуры.
Решили перешить все старые контроллеры последним образом 202202041906_stable_emmc_wb58
После операции прошивки WB 5 (ревизия 5.8) один из контроллеров не стартует до конца.
Всё виснет на строке

random: crng init done

Ждал час и более - ничего не происходит.
При этом в консоли логинится.
Другие контроллеры прошились нормально.
Пытались прошить несколько раз. Всё проходит без ошибок, но загрузка не завершается.
В чем может быть проблема?

[   48.753683] SMSC LAN8710/LAN8720 800f0000.etherne:00: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=800f0000.etherne:00, irq=-1)
[   48.767029] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   57.393317] random: crng init done

Добрый день.
После вывода указаных строчек, должен, если верно помню, запуститься брокер.
Так как вход на контроллер возможен - просмотрте логи, возможно дело в этом.
Тем не менее - советую после прошивки проверить ее корректность, просто с помощью diff например.

А доступ к контроллеру удаленный - можете дать?
Или уже решилась проблема?

Здравствуйте! Проблема не решилась. В данный момент нахожусь на удаленном объекте с контроллером.
Подскажите, чем посмотреть лог во время загрузки через командную строку ?
В journalctl подсвечивается из последнего

Dec 07 11:25:01 wirenboard systemd[1]: mnt-data.mount: Mount process exited, cod
Dec 07 11:25:01 wirenboard systemd[1]: Failed to mount /mnt/data.

dmesg

[    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] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat c0690c34, node_mem_map c7efb000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyAMA0,115200 ro rootwait fixrtc root=/dev/mmcblk0p2 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: 122748K/131072K available (4569K kernel code, 204K rwdata, 1616K rodata, 160K init, 286K bss, 8324K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
                   lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
                   modules : 0xbf000000 - 0xc0000000   (  16 MB)
                     .text : 0xc0008000 - 0xc047e9e8   (4571 kB)
                     .init : 0xc0636000 - 0xc065e000   ( 160 kB)
                     .data : 0xc065e000 - 0xc06912c0   ( 205 kB)
                      .bss : 0xc06912c0 - 0xc06d8e70   ( 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.000022] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000687] Console: colour dummy device 80x30
[    0.000751] Calibrating delay loop... 226.09 BogoMIPS (lpj=1130496)
[    0.080307] pid_max: default: 32768 minimum: 301
[    0.080571] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.080617] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.082200] CPU: Testing write buffer coherency: ok
[    0.083010] Setting up static identity map for 0x40008400 - 0x40008458
[    0.086673] devtmpfs: initialized
[    0.117509] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.117574] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.117925] pinctrl core: initialized pinctrl subsystem
[    0.120661] NET: Registered protocol family 16
[    0.121998] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.192983] Serial: AMBA PL011 UART driver
[    0.193810] 80074000.serial: ttyAMA0 at MMIO 0x80074000 (irq = 234, base_baud = 0) is a PL011 rev2
[    0.456756] console [ttyAMA0] enabled
[    0.484226] mxs-dma 80004000.dma-apbh: initialized
[    0.494308] mxs-dma 80024000.dma-apbx: initialized
[    0.504045] usbcore: registered new interface driver usbfs
[    0.509885] usbcore: registered new interface driver hub
[    0.515466] usbcore: registered new device driver usb
[    0.522163] i2c-gpio i2c_rtc_wb59@0: using pins 85 (SDA) and 90 (SCL)
[    0.530401] Linux video capture interface: v2.00
[    0.535366] pps_core: LinuxPPS API ver. 1 registered
[    0.540357] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.549655] PTP clock support registered
[    0.554518] Advanced Linux Sound Architecture Driver Initialized.
[    0.562991] clocksource: Switched to clocksource mxs_timer
[    0.605236] NET: Registered protocol family 2
[    0.611194] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.618351] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.624832] TCP: Hash tables configured (established 1024 bind 1024)
[    0.631386] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.637358] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.644067] NET: Registered protocol family 1
[    0.649359] RPC: Registered named UNIX socket transport module.
[    0.655428] RPC: Registered udp transport module.
[    0.660158] RPC: Registered tcp transport module.
[    0.664946] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.671906] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.681475] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.734563] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.742000] io scheduler noop registered (default)
[    0.751009] 8006a000.serial: ttyAPP0 at MMIO 0x8006a000 (irq = 229, base_baud = 1500000) is a 8006a000.serial
[    0.761985] mxs-auart 8006a000.serial: Found APPUART 3.1.0
[    0.768319] 8006c000.serial: ttyAPP1 at MMIO 0x8006c000 (irq = 230, base_baud = 1500000) is a 8006c000.serial
[    0.779340] mxs-auart 8006c000.serial: Found APPUART 3.1.0
[    0.785745] 8006e000.serial: ttyAPP2 at MMIO 0x8006e000 (irq = 231, base_baud = 1500000) is a 8006e000.serial
[    0.796814] mxs-auart 8006e000.serial: Found APPUART 3.1.0
[    0.803156] 80070000.serial: ttyAPP3 at MMIO 0x80070000 (irq = 232, base_baud = 1500000) is a 80070000.serial
[    0.814166] mxs-auart 80070000.serial: Found APPUART 3.1.0
[    0.820387] 80072000.serial: ttyAPP4 at MMIO 0x80072000 (irq = 233, base_baud = 1500000) is a 80072000.serial
[    0.831400] mxs-auart 80072000.serial: Found APPUART 3.1.0
[    0.857671] loop: module loaded
[    0.863637] libphy: Fixed MDIO Bus: probed
[    0.983167] 800f0000.ethernet supply phy not found, using dummy regulator
[    1.104392] libphy: fec_enet_mii_bus: probed
[    1.114247] 800f4000.ethernet supply phy not found, using dummy regulator
[    1.124370] PPP generic driver version 2.4.2
[    1.129293] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.136372] usbcore: registered new interface driver usbserial
[    1.142374] usbcore: registered new interface driver usbserial_generic
[    1.149167] usbserial: USB Serial support registered for generic
[    1.155947] mousedev: PS/2 mouse device common for all mice
[    1.174491] rtc-pcf8563 1-0051: rtc core: registered rtc-pcf8563 as rtc0
[    1.187218] stmp3xxx-rtc 80056000.rtc: rtc core: registered 80056000.rtc as rtc1
[    1.195394] i2c /dev entries driver
[    1.201270] stmp3xxx_rtc_wdt stmp3xxx_rtc_wdt: initialized watchdog with heartbeat 19s
[    1.211673] 80010000.ssp supply vmmc not found, using dummy regulator
[    1.273107] mxs-mmc 80010000.ssp: initialized
[    1.279521] ledtrig-cpu: registered to indicate activity on CPUs
[    1.291596] usbcore: registered new interface driver usbhid
[    1.297324] usbhid: USB HID core driver
[    1.318478] NET: Registered protocol family 10
[    1.326096] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.335081] NET: Registered protocol family 17
[    1.339765] Key type dns_resolver registered
[    1.346679] registered taskstats version 1
[    1.362197] rtc-pcf8563 1-0051: setting system clock to 2023-12-07 11:14:41 UTC (1701947681)
[    1.370756] of_cfs_init
[    1.373472] of_cfs_init: OK
[    1.378252] usb0_vbus: disabling
[    1.381515] usb1_vbus: disabling
[    1.384880] ALSA device list:
[    1.387869]   No soundcards found.
[    1.391646] uart-pl011 80074000.serial: no DMA platform data
[    1.397612] Waiting for root device /dev/mmcblk0p2...
[    1.477011] mmc0: new high speed MMC card at address 0001
[    1.484105] mmcblk0: mmc0:0001 4FPD3R 3.64 GiB
[    1.489340] mmcblk0boot0: mmc0:0001 4FPD3R partition 1 4.00 MiB
[    1.496122] mmcblk0boot1: mmc0:0001 4FPD3R partition 2 4.00 MiB
[    1.502761] mmcblk0rpmb: mmc0:0001 4FPD3R partition 3 512 KiB
[    1.512759]  mmcblk0: p1 p2 p3 p4 < p5 p6 >
[    1.635828] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    1.643282] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    1.686840] random: fast init done
[    1.693957] EXT4-fs (mmcblk0p2): recovery complete
[    1.700190] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.708504] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.716381] devtmpfs: mounted
[    1.720172] Freeing unused kernel memory: 160K (c0636000 - c065e000)
[    1.726645] This architecture does not have kernel memory protection.
[    2.229516] systemd[1]: Failed to insert module 'autofs4': No such file or directory
[    2.252663] ip_tables: (C) 2000-2006 Netfilter Core Team
[    2.298557] 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)
[    2.318541] systemd[1]: Detected architecture arm.
[    2.364827] systemd[1]: Set hostname to <wirenboard>.
[    3.095476] systemd-sysv-generator[75]: [/etc/init.d/wb-mqtt-knx:6] Could not build name for facility $remote_fs,: Invalid argument
[    3.945685] systemd[1]: Listening on Syslog Socket.
[    3.985164] systemd[1]: Created slice System Slice.
[    4.014490] systemd[1]: Listening on udev Kernel Socket.
[    4.054365] systemd[1]: Listening on fsck to fsckd communication Socket.
[    4.101434] systemd[1]: Mounting POSIX Message Queue File System...
[    4.144669] systemd[1]: Listening on Journal Socket (/dev/log).
[    4.165415] systemd[1]: Created slice system-getty.slice.
[    5.866076] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro
[   11.071608] CAN device driver interface
[   11.094021] mxs-dcp 80028000.dcp: Failed to register sha1 hash!
[   11.127639] mxs-dcp: probe of 80028000.dcp failed with error -22
[   11.183602] 80034000.can supply xceiver not found, using dummy regulator
[   11.282597] flexcan 80034000.can: device registered (reg_base=c89f4000, irq=209)
[   11.747749] mxs-spdif-dai 80054000.spdif: MXS SPDIF Audio Transmitter
[   12.563398] ci_hdrc ci_hdrc.0: EHCI Host Controller
[   12.568381] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[   12.616864] Driver for 1-wire Dallas network protocol.
[   12.701967] lirc_dev: IR Remote Control driver registered, major 245
[   12.753206] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[   12.837231] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   12.844247] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   12.851504] usb usb1: Product: EHCI Host Controller
[   12.856507] usb usb1: Manufacturer: Linux 4.9.22-wb1 ehci_hcd
[   12.862286] usb usb1: SerialNumber: ci_hdrc.0
[   12.873430] lirc_pwm: module is from the staging directory, the quality is unknown, you have been warned.
[   12.976176] mxs-spdif sound-spdif: snd-soc-dummy-dai <-> 80054000.spdif mapping ok
[   13.093716] lirc_pwm lirc-rfm69: GPIO receiver on pin 37
[   13.133404] lirc_pwm lirc-rfm69: lirc_dev: driver lirc-rfm69 registered at minor = 0
[   13.141196] lirc_pwm lirc-rfm69: probed
[   13.215355] hub 1-0:1.0: USB hub found
[   13.243767] hub 1-0:1.0: 1 port detected
[   13.365867] ci_hdrc ci_hdrc.1: EHCI Host Controller
[   13.370891] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[   13.493216] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[   13.518921] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[   13.525906] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   13.533287] usb usb2: Product: EHCI Host Controller
[   13.538203] usb usb2: Manufacturer: Linux 4.9.22-wb1 ehci_hcd
[   13.544062] usb usb2: SerialNumber: ci_hdrc.1
[   13.823821] hub 2-0:1.0: USB hub found
[   13.862860] hub 2-0:1.0: 1 port detected
[   14.253190] usb 2-1: new high-speed USB device number 2 using ci_hdrc
[   14.465514] usb 2-1: New USB device found, idVendor=0bda, idProduct=b720
[   14.472331] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   14.479671] usb 2-1: Product: 802.11n WLAN Adapter
[   14.484606] usb 2-1: Manufacturer: Realtek
[   14.488734] usb 2-1: SerialNumber: 00e04c000001
[   16.293562] Adding 262140k swap on /dev/mmcblk0p5.  Priority:-1 extents:1 across:262140k SS
[   16.703452] Bluetooth: Core ver 2.22
[   16.707295] NET: Registered protocol family 31
[   16.711770] Bluetooth: HCI device and connection manager initialized
[   16.823352] Bluetooth: HCI socket layer initialized
[   16.853340] Bluetooth: L2CAP socket layer initialized
[   16.873253] Bluetooth: SCO socket layer initialized
[   17.037250] usbcore: registered new interface driver btusb
[   17.045229] Bluetooth: hci0: rtl: examining hci_ver=06 hci_rev=000b lmp_ver=06 lmp_subver=8723
[   17.054092] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_config.bin
[   17.109074] bluetooth hci0: Direct firmware load for rtl_bt/rtl8723b_config.bin failed with error -2
[   17.118377] Bluetooth: hci0: Failed to load rtl_bt/rtl8723b_config.bin
[   17.125088] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_fw.bin
[   17.138751] Bluetooth: hci0: rom_version status=0 version=1
[   17.144818] Bluetooth: cfg_sz 0, total size 22496
[   18.537855] 8723bu: module is from the staging directory, the quality is unknown, you have been warned.
[   18.702405] RTL871X: module init start
[   18.706356] RTL871X: rtl8723bu v4.3.6.11_12942.20141204_BTCOEX20140507-4E40
[   18.713449] RTL871X: rtl8723bu BT-Coex version = BTCOEX20140507-4E40
[   19.615495] RTL871X: rtw_ndev_init(wlan0)
[   19.665501] RTL871X: rtw_ndev_init(wlan1)
[   19.696120] usbcore: registered new interface driver rtl8723bu
[   19.702075] RTL871X: module init ret=0
[   25.453163] RTL871X: RTW_ADAPTIVITY_EN_
[   25.456980] AUTO, chplan:0x20, Regulation:3,3
[   25.461366] RTL871X: RTW_ADAPTIVITY_MODE_
[   25.465336] NORMAL
[   27.394162] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   29.410223] RTL871X: nolinked power save enter
[   48.233465] SMSC LAN8710/LAN8720 800f0000.etherne:00: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=800f0000.etherne:00, irq=-1)
[   48.246818] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   55.943126] random: crng init done

Через что можно предоставить доступ ?

Ну вот она и причина, нет раздела. Выполните lsblk - это раздел есть?
Если mmcblk0p6 есть - то на нем надо создать ФС.

1 Like

раздел есть
Выполнил

mkfs.ext4 /dev/mmcblk0p6

Верно?
Вроде пытается загрузиться…
Непонятно, почему из нескольких одинаковых контроллеров именно на этом произошел затык при прошивке…

UPD - включился…

Да. После создания ФС - надо mount -a, если нет ошибок и раздел смонтировался на /mnt/data - то в этот раздел скопировать содержимое с другого контроллера, если его нету.

Непоняно, возможно надо износ флешки посмотреть, может при создании раздела какая-то ошибка была.

Спасибо! Вероятно со временем изнашивается память. Так как необходимость перепрошивки возникла также из-за сбоев с датчиками и зависаниями контроллеров. При этом установка WB 6 версии проблему решила - т.е. дело было не в датчиках…

А что за сбои (создавалась ли тема?)? Обновление ПО решило проблему?

Сбои были разные. Сначала на одном началось это :
https://support.wirenboard.com/t/ne-sohranyayutsya-izmeneniya-widgets-rooms-dashboards/13654
На других начали сбоить датчики ds18b20 (через 3 года эксплуатации) Температура либо переставала отображаться, либо показывала непонятные значения, либо просто не менялась. Отключение / включение питания 5V, не решало проблему. При перезагрузке кнопкой Reboot контроллер не загружался. Приходилось придумывать схему физического дистанционного отключения питания.

Установка последней версии прошивки, как ни странно, помогла решить проблему на всех контроллерах (временно или нет пока неизвестно), но по субъективным ощущениям похоже, что на накоплении каких-то ошибок или повреждение со временем памяти