Ревизия 6.5.1A 3G 357
Есть три боковых реле WBIO-DO-R10A-8, WBIO-DI-WD-14 и WBIO-DO-R10A-8, подключены именно в такой последовательности
В списках устройст видны, но на нажатия не реагируют. Нажимаешь EXT1_R3AХ, прегружаешь страницу - все так же выключено.
Запустил команду i2cdetect -y 1 - висит
‘’’
root@wirenboard-AVBPEISH:# i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00:
‘’’
Куда копать?
При попытке отключить через веб боковые модули из конфигурации страница выдает “Error saving /etc/wb-hardware.conf: MQTT RPC request timed out”
Логи
Oct 30 14:00:56 wirenboard-AVBPEISH user.info wb-hwconf-manager: Deleting wb6-extio3:wbio-do-r10r-4
Oct 30 14:01:01 wirenboard-AVBPEISH authpriv.info CRON[22703]: pam_unix(cron:session): session opened for user root by (uid=0)
Oct 30 14:01:01 wirenboard-AVBPEISH cron.info CRON[22707]: (root) CMD (/usr/share/wb-daemon-watchdogs/check_confed.sh 2>&1 | logger -t wb-daemon-watchdogs)
Oct 30 14:01:01 wirenboard-AVBPEISH user.notice wb-daemon-watchdogs: wb-mqtt-confed check failed, reload wb-mqtt-confed
Oct 30 14:01:12 wirenboard-AVBPEISH authpriv.info CRON[22703]: pam_unix(cron:session): session closed for user root
Oct 30 14:01:13 wirenboard-AVBPEISH daemon.info wb-mqtt-confed[22741]: INFO: MQTT connection established
Выход-вход-выход? Ну, лучше поменять местами 1-2 или 2-3
Файл конфигурации /etc/wb-hardware.conf покажите?
Ну и сервис - запущен ли?
systemctl status wb-configs
да, рабочий статус.
ОК, я поменяю. Но их в конфиге же наврно лучше отключить сначала или все равно?
Могу дать ssh
в логах что-то непонятно
Oct 31 08:47:35 wirenboard-AVBPEISH user.err kernel: [ 858.073733] INFO: task cat:1104 blocked for more than 120 seconds.
Oct 31 08:47:35 wirenboard-AVBPEISH user.err kernel: [ 858.080003] Tainted: G WC 4.9.22-wb6 #2
Oct 31 08:47:35 wirenboard-AVBPEISH user.err kernel: [ 858.085479] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Oct 31 08:47:35 wirenboard-AVBPEISH user.info kernel: [ 858.093319] cat D 0 1104 796 0x00000000
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.098889] [<c06ecd00>] (__schedule) from [<c06ed1d4>] (schedule+0x48/0xa0)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.105986] [<c06ed1d4>] (schedule) from [<c06ed548>] (schedule_preempt_disabled+0xc/0x10)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.114293] [<c06ed548>] (schedule_preempt_disabled) from [<c06ee918>] (__mutex_lock_slowpath+0xa0/0x154)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.123919] [<c06ee918>] (__mutex_lock_slowpath) from [<c06eea20>] (mutex_lock+0x54/0x58)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.132153] [<c06eea20>] (mutex_lock) from [<c016b9f8>] (irq_find_matching_fwspec+0x20/0x110)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.140729] [<c016b9f8>] (irq_find_matching_fwspec) from [<c0597980>] (of_irq_get+0x48/0x68)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.149211] [<c0597980>] (of_irq_get) from [<c050476c>] (i2c_device_probe+0x1e8/0x204)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.157179] [<c050476c>] (i2c_device_probe) from [<c04426e8>] (driver_probe_device+0x1fc/0x2b0)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.165922] [<c04426e8>] (driver_probe_device) from [<c0440b94>] (bus_for_each_drv+0x64/0x98)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.174483] [<c0440b94>] (bus_for_each_drv) from [<c0442408>] (__device_attach+0xac/0x114)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.182760] [<c0442408>] (__device_attach) from [<c0441964>] (bus_probe_device+0x84/0x8c)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.190973] [<c0441964>] (bus_probe_device) from [<c043fd00>] (device_add+0x3c8/0x578)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.198923] [<c043fd00>] (device_add) from [<c05064e4>] (i2c_new_device+0x134/0x190)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.206701] [<c05064e4>] (i2c_new_device) from [<c0506968>] (of_i2c_register_device+0xec/0x18c)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.215435] [<c0506968>] (of_i2c_register_device) from [<c0506aa8>] (of_i2c_notify+0xa0/0x104)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.224082] [<c0506aa8>] (of_i2c_notify) from [<c013cc94>] (notifier_call_chain+0x44/0x80)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.232382] [<c013cc94>] (notifier_call_chain) from [<c013cf8c>] (__blocking_notifier_call_chain+0x48/0x60)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.242167] [<c013cf8c>] (__blocking_notifier_call_chain) from [<c013cfbc>] (blocking_notifier_call_chain+0x18/0x20)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.252725] [<c013cfbc>] (blocking_notifier_call_chain) from [<c0594fd4>] (__of_changeset_entry_notify+0x80/0xd0)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.263018] [<c0594fd4>] (__of_changeset_entry_notify) from [<c05959ac>] (__of_changeset_apply+0x58/0xc0)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.272638] [<c05959ac>] (__of_changeset_apply) from [<c0599aac>] (__of_overlay_create+0x628/0x8d4)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.281721] [<c0599aac>] (__of_overlay_create) from [<c05943a8>] (create_overlay+0x48/0xa4)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.290107] [<c05943a8>] (create_overlay) from [<c0594458>] (cfs_overlay_item_dtbo_write+0x54/0x98)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.299213] [<c0594458>] (cfs_overlay_item_dtbo_write) from [<c02748d4>] (configfs_release_bin_file+0x5c/0x94)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.309260] [<c02748d4>] (configfs_release_bin_file) from [<c020d99c>] (__fput+0x88/0x1cc)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.317562] [<c020d99c>] (__fput) from [<c0139e58>] (task_work_run+0xc0/0xe4)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.324738] [<c0139e58>] (task_work_run) from [<c010ac94>] (do_work_pending+0xb8/0xbc)
Oct 31 08:47:35 wirenboard-AVBPEISH user.warn kernel: [ 858.332672] [<c010ac94>] (do_work_pending) from [<c0107594>] (slow_work_pending+0xc/0x20)
Oct 31 08:47:35 wirenboard-AVBPEISH user.err kernel: [ 858.340910] INFO: task cat:4443 blocked for more than 120 seconds.
Oct 31 08:47:35 wirenboard-AVBPEISH user.err kernel: [ 858.347117] Tainted: G WC 4.9.22-wb6 #2
Oct 31 08:47:35 wirenboard-AVBPEISH user.err kernel: [ 858.352520] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
cat /etc/wb-hardware.conf
{
"slots": [
{
"id": "wb6-mod1",
"name": "Internal slot 1",
"compatible": [
"wbe2",
"wbe3-reduced"
],
"module": "wbe2r-r-zigbee",
"options": {}
},
{
"id": "wb6-mod2",
"name": "Internal slot 2",
"compatible": [
"wbe2",
"wbe3-reduced"
],
"module": "",
"options": {}
},
{
"id": "wb6-mod3",
"name": "Internal slot 3",
"compatible": [
"wbe3",
"wbe3-reduced"
],
"module": "",
"options": {}
},
{
"id": "wb6-extio1",
"name": "External I/O module 1",
"compatible": [
"wb5-extio"
],
"module": "wbio-do-r3a-8",
"options": {}
},
{
"id": "wb6-extio2",
"name": "External I/O module 2",
"compatible": [
"wb5-extio"
],
"module": "wbio-di-wd-14",
"options": {}
},
{
"id": "wb6-extio3",
"name": "External I/O module 3",
"compatible": [
"wb5-extio"
],
"module": "",
"options": {}
},
{
"id": "wb6-extio4",
"name": "External I/O module 4",
"compatible": [
"wb5-extio"
],
"module": "",
"options": {}
},
{
"id": "wb6-extio5",
"name": "External I/O module 5",
"compatible": [
"wb5-extio"
],
"module": "",
"options": {}
},
{
"id": "wb6-extio6",
"name": "External I/O module 6",
"compatible": [
"wb5-extio"
],
"module": "",
"options": {}
},
{
"id": "wb6-extio7",
"name": "External I/O module 7",
"compatible": [
"wb5-extio"
],
"module": "",
"options": {}
},
{
"id": "wb6-extio8",
"name": "External I/O module 8",
"compatible": [
"wb5-extio"
],
"module": "",
"options": {}
},
{
"id": "wb6-rs485-1",
"name": "RS485-1 interface config",
"compatible": [
"wb6-rs485"
],
"module": "wb6-can-rs485",
"options": {
"mode": "enabled"
}
},
{
"id": "wb6-rs485-2",
"name": "RS485-2/CAN interface config",
"compatible": [
"wb6-rs485",
"wb6-can"
],
"module": "wb6-can-rs485",
"options": {
"mode": "enabled"
}
},
{
"id": "wb6-w1",
"name": "W1 terminal mode",
"compatible": [
"wb6-wx"
],
"module": "wb6-wx-1wire",
"options": {}
},
{
"id": "wb6-w2",
"name": "W2 terminal mode",
"compatible": [
"wb6-wx"
],
"module": "wb6-wx-1wire",
"options": {}
},
{
"id": "wb6-wbmz2",
"name": "Mezzanine board",
"compatible": [
"wb6-wbmz2-power"
],
"module": "",
"options": {}
}
]
}
вот еще интересное
root@wirenboard-AVBPEISH:~# systemctl status wb-hwconf-manager
● wb-hwconf-manager.service - LSB: Hardware configuration with Device Tree overlays
Loaded: loaded (/etc/init.d/wb-hwconf-manager; generated; vendor preset: enabled)
Active: failed (Result: timeout) since Sun 2021-10-31 08:46:58 UTC; 20min ago
Docs: man:systemd-sysv-generator(8)
Process: 4291 ExecStart=/etc/init.d/wb-hwconf-manager start (code=killed, signal=TERM)
CGroup: /system.slice/wb-hwconf-manager.service
├─ 796 /bin/bash /etc/init.d/wb-hwconf-manager start
├─1104 cat /tmp/tmp.R90dldiY6a
├─4363 /bin/bash /etc/init.d/wb-hwconf-manager start
└─4443 cat /tmp/tmp.ofXR6qLEYs
Oct 31 08:42:03 wirenboard-AVBPEISH wb-hwconf-manager[4291]: Initializing wb6-extio2:wbio-di-wd-14.
Oct 31 08:42:04 wirenboard-AVBPEISH wb-hwconf-manager[4291]: Warning (reg_format): "reg" property in /fragment/__overlay__/extio2_wbio_di_wd_14@26 has invalid length (4 bytes) (#address-cells == 2, #size
Oct 31 08:42:04 wirenboard-AVBPEISH wb-hwconf-manager[4291]: Warning (avoid_default_addr_size): Relying on default #address-cells value for /fragment/__overlay__/extio2_wbio_di_wd_14@26
Oct 31 08:42:04 wirenboard-AVBPEISH wb-hwconf-manager[4291]: Warning (avoid_default_addr_size): Relying on default #size-cells value for /fragment/__overlay__/extio2_wbio_di_wd_14@26
Oct 31 08:42:08 wirenboard-AVBPEISH wb-hwconf-manager[4291]: ...Initializing wb6-mod1:wbe2r-r-zigbee.
Oct 31 08:42:09 wirenboard-AVBPEISH wb-hwconf-manager[4291]: Warning (unit_address_vs_reg): Node /fragment@0 has a unit name, but no reg property
Oct 31 08:46:58 wirenboard-AVBPEISH systemd[1]: wb-hwconf-manager.service: Start operation timed out. Terminating.
Oct 31 08:46:58 wirenboard-AVBPEISH systemd[1]: Failed to start LSB: Hardware configuration with Device Tree overlays.
Oct 31 08:46:58 wirenboard-AVBPEISH systemd[1]: wb-hwconf-manager.service: Unit entered failed state.
Oct 31 08:46:58 wirenboard-AVBPEISH systemd[1]: wb-hwconf-manager.service: Failed with result 'timeout'.
По симптомам похоже на ERRWB600012: Перестают работать боковые модули. Нужно выключить контроллер по питанию (не с кнопки, а именно вынуть клемму), потом обновить ПО стандартным способм: через apt, веб-интерфейс или через флешку.
Да, похоже. Контроллер действительно долго загружается. Спасибо, завтра с утра попробую и отпишусь.
Т.е. делаю шатдаун, потом кнопкой, потом клемму (а автоматом клацнуть можно, не тоже самое?)
Скажем, минуту жду, включаю контроллер и следую процедуре обновления, все так?
да
Спасибо, помогло
Единственное, непонятно c firmware версией. В вебморде написано
202002171718, хотя я загружал файл 202110230543_stable_webupd_wb6x.fit
Уже работает система релизов сейчас важна не дата а релиз.