Добрый вечер. Контроллер WB8.4. После различных экспериментов по установке разных SCADA-систем, решил сбросить его до заводского состояния. По инструкции " Удаление данных и возврат заводских настроек". Дошел до пункта инструкции 8. 1. “По окончании процедуры контроллер перезагрузится в рабочем режиме, а его индикатор замигает зелёным.”
Только контроллер перезагрузился и лампа горит Зеленым постоянно, и не мигает как обычно. Несколько раз пробовал перезагружать, полностью отключая питание на несколько минут, потом включать. Горит Зеленая лампа.
Попробовал повторить процедуру “возврата к Заводким настройкам” с контролем через консоль подключившись через [Debug Console. В процессе мигает Красная Лампа и минуты 2-3 идет циклически процесс
Checking SHA1 hash of install
PROGRESS: 0%
SHA1 hash of install ok
Requested factory reset will be performed by firmware itself
32+0 records in
32+0 records out
16384 bytes (16 kB, 16 KiB) copied, 0.00154058 s, 10.6 MB/s
Firmware seems to be compatible with this controller
Extracting install script
Running install script
Console logging enabled; tempfile /tmp/tmp.mhyoAL, final file /tmp/tmp.d9BPcF/.wb-restore/wb-console.log will be written on exit
Extend tmpfs size to whole RAM
Remount tmpfs in /tmp with size=3934M
Maybe update factoryreset.fit to fix tmpfs size issue at 512M RAM (with emmc update)
32+0 records in
32+0 records out
16384 bytes (16 kB, 16 KiB) copied, 0.00135221 s, 12.1 MB/s
Firmware seems to be compatible with this controller
Wiping data partition (factory reset)
[ 168.532845] /dev/mmcblk0p6: Can’t open blockdev
[ 168.538382] /dev/mmcblk0p6: Can’t open blockdev
[ 168.543656] /dev/mmcblk0p6: Can’t open blockdev
[ 168.626127] /dev/mmcblk0p6: Can’t open blockdev
Original factory FIT exists, ensuring A/B rootfs scheme and use it to restore firmware
Partition table seems to be A/B, continue
Decoding current flags from '–from-initramfs --no-mqtt --no-remove --from-emmc-factoryreset --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset ’
Restoring original firmware from /tmp/tmp.7ja67E/.wb-restore/factoryreset.original.fit, flags --from-initramfs --no-mqtt --no-remove --from-emmc-factoryreset --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset --no-remove --no-confirm --original-factory-fit --factoryreset
Factory reset is confirmed!
Потом все заканчивается.
Checking SHA1 hash of install
PROGRESS: 0%
SHA1 hash of install ok
Requested factory reset will be performed by firmware itself
32+0 records in
32+0 records out
16384 bytes (16 kB, 16 KiB) copied, 0.00130942 s, 12.5 MB/s
Firmware seems to be compatible with this controller
Extracting install script
Running install script
Console logging enabled; tempfile /tmp/tmp.oYERlE, final file /tmp/tmp.fQ2yeA/.wb-restore/wb-console.log will be written on exit
Extend tmpfs size to whole RAM
Remount tmpfs in /tmp with size=3934M
Maybe update factoryreset.fit to fix tmpfs size issue at 512M RAM (with emmc update)
32+0 records in
32+0 records out
16384 bytes (16 kB, 16 KiB) copied, 0.00178388 s, 9.2 MB/s
[ 196.677547] head invoked oom-killer: gfp_mask=0x500cc2(GFP_HIGHUSER|__GFP_ACCOUNT), order=0, oom_score_adj=0
[ 196.687418] CPU: 0 PID: 5750 Comm: head Not tainted 6.8.0-wb115 #2
[ 196.693591] Hardware name: Wiren Board rev. 8 (T507) bootlet (DT)
[ 196.699674] Call trace:
[ 196.702116] dump_backtrace+0x94/0xec
[ 196.705785] show_stack+0x18/0x24
[ 196.709097] dump_stack_lvl+0x48/0x60
[ 196.712760] dump_stack+0x18/0x24
[ 196.716071] dump_header+0x40/0x1dc
[ 196.719560] oom_kill_process+0x1cc/0x360
[ 196.723566] out_of_memory+0xe0/0x550
[ 196.727224] __alloc_pages+0xb34/0xcfc
[ 196.730972] alloc_pages_mpol+0x80/0x1f4
[ 196.734894] alloc_pages+0x48/0xb4
[ 196.738294] pipe_write+0x2fc/0x5b8
[ 196.741780] vfs_write+0x308/0x37c
[ 196.745180] ksys_write+0xdc/0xf4
[ 196.748491] __arm64_sys_write+0x1c/0x28
[ 196.752409] invoke_syscall+0x48/0x114
[ 196.756155] el0_svc_common.constprop.0+0x40/0xe0
[ 196.760855] do_el0_svc+0x1c/0x28
[ 196.764167] el0_svc+0x34/0xb8
[ 196.767219] el0t_64_sync_handler+0xc0/0xc4
[ 196.771396] el0t_64_sync+0x190/0x194
[ 196.775106] Mem-Info:
[ 196.777381] active_anon:8627 inactive_anon:965100 isolated_anon:0
[ 196.777381] active_file:51 inactive_file:1 isolated_file:0
[ 196.777381] unevictable:0 dirty:0 writeback:0
[ 196.777381] slab_reclaimable:3359 slab_unreclaimable:4143
[ 196.777381] mapped:793 shmem:965187 pagetables:829
[ 196.777381] sec_pagetables:0 bounce:0
[ 196.777381] kernel_misc_reclaimable:0
[ 196.777381] free:22400 free_pcp:254 free_cma:7190
[ 196.815991] Node 0 active_anon:34508kB inactive_anon:3860484kB active_file:208kB inactive_file:4kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:3172kB dirty:0kB writeback:0kB shmem:3860748kB shmem_thp:0kB shmem_pmdmapped:0kB anon_thp:0kB writeback_tmp:0kB kernel_stack:2720kB pagetables:3316kB sec_pagetables:0kB all_unreclaimable? yes
[ 196.846883] Node 0 DMA free:75284kB boost:0kB min:34196kB low:42744kB high:51292kB reserved_highatomic:0KB active_anon:2164kB inactive_anon:2969104kB active_file:204kB inactive_file:188kB unevictable:0kB writepending:0kB present:3145728kB managed:3061352kB mlocked:0kB bounce:0kB free_pcp:764kB local_pcp:0kB free_cma:28924kB
[ 196.875522] lowmem_reserve: 0 0 944 944
[ 196.879539] Node 0 Normal free:14768kB boost:0kB min:10856kB low:13568kB high:16280kB reserved_highatomic:0KB active_anon:32344kB inactive_anon:891380kB active_file:4kB inactive_file:0kB unevictable:0kB writepending:0kB present:1048576kB managed:967248kB mlocked:0kB bounce:0kB free_pcp:252kB local_pcp:0kB free_cma:0kB
[ 196.907658] lowmem_reserve: 0 0 0 0
[ 196.911327] Node 0 DMA: 4854kB (UMEC) 3728kB (UMEC) 27016kB (UMEC) 17432kB (UMEC) 7564kB (UMEC) 63128kB (UMEC) 26256kB (UME) 14512kB (UMEC) 11024kB (E) 42048kB (UEC) 64096kB (UC) = 75284kB
[ 196.929081] Node 0 Normal: 1524kB (UME) 1548kB (UME) 7416kB (UME) 2132kB (UME) 1764kB (UME) 6128kB (UME) 6256kB (UME) 1512kB (E) 11024kB (M) 12048kB (E) 14096kB (U) = 14768kB
[ 196.945626] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB
[ 196.954316] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=32768kB
[ 196.962832] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
[ 196.971262] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=64kB
[ 196.979517] 965257 total pagecache pages
[ 196.983439] 0 pages in swap cache
[ 196.986753] Free swap = 0kB
[ 196.989627] Total swap = 0kB
[ 196.992507] 1048576 pages RAM
[ 196.995473] 0 pages HighMem/MovableOnly
[ 196.999306] 41426 pages reserved
[ 197.002533] 8192 pages cma reserved
[ 197.006013] 0 pages hwpoisoned
[ 197.009067] Tasks state (memory values in pages):
[ 197.013767] [ pid ] uid tgid total_vm rss rss_anon rss_file rss_shmem pgtables_bytes swapents oom_score_adj name
[ 197.024827] [ 101] 0 101 674 224 0 0 224 32768 0 0 busybox
[ 197.035610] [ 160] 0 160 1120 800 224 0 576 49152 0 0 wb-run-update
[ 197.046906] [ 437] 0 437 1120 508 220 0 288 45056 0 0 wb-run-update
[ 197.058201] [ 438] 0 438 707 288 0 0 288 40960 0 0 tee
[ 197.068638] [ 503] 0 503 1087 800 224 0 576 49152 0 0 wb-run-update
[ 197.079939] [ 688] 0 688 1087 519 231 0 288 49152 0 0 wb-run-update
[ 197.091239] [ 689] 0 689 707 352 0 0 352 40960 0 0 tee
[ 197.101670] [ 754] 0 754 1120 800 224 0 576 45056 0 0 wb-run-update
[ 197.112965] [ 939] 0 939 1087 502 214 0 288 45056 0 0 wb-run-update
[ 197.124260] [ 940] 0 940 707 320 0 0 320 45056 0 0 tee
[ 197.134687] [ 1005] 0 1005 1120 800 224 0 576 49152 0 0 wb-run-update
[ 197.145982] [ 1190] 0 1190 1087 502 214 0 288 45056 0 0 wb-run-update
[ 197.157277] [ 1191] 0 1191 707 320 0 0 320 45056 0 0 tee
[ 197.167706] [ 1256] 0 1256 1120 832 224 0 608 49152 0 0 wb-run-update
[ 197.179001] [ 1441] 0 1441 1087 534 214 0 320 49152 0 0 wb-run-update
[ 197.190296] [ 1442] 0 1442 707 288 0 0 288 45056 0 0 tee
[ 197.200729] [ 1507] 0 1507 1120 832 224 0 608 53248 0 0 wb-run-update
[ 197.212025] [ 1692] 0 1692 1087 534 214 0 320 53248 0 0 wb-run-update
[ 197.223320] [ 1693] 0 1693 707 320 0 0 320 40960 0 0 tee
[ 197.233748] [ 1758] 0 1758 1120 800 224 0 576 49152 0 0 wb-run-update
[ 197.245042] [ 1944] 0 1944 1087 502 214 0 288 49152 0 0 wb-run-update
[ 197.256336] [ 1945] 0 1945 707 288 0 0 288 45056 0 0 tee
[ 197.266765] [ 2010] 0 2010 1119 800 224 0 576 45056 0 0 wb-run-update
[ 197.278060] [ 2196] 0 2196 1087 503 215 0 288 40960 0 0 wb-run-update
[ 197.289355] [ 2197] 0 2197 707 320 0 0 320 40960 0 0 tee
[ 197.299784] [ 2262] 0 2262 1119 800 224 0 576 45056 0 0 wb-run-update
[ 197.311080] [ 2447] 0 2447 1087 535 215 0 320 45056 0 0 wb-run-update
[ 197.322374] [ 2448] 0 2448 707 352 0 0 352 45056 0 0 tee
[ 197.332807] [ 2513] 0 2513 1119 800 224 0 576 49152 0 0 wb-run-update
[ 197.344103] [ 2698] 0 2698 1087 504 216 0 288 49152 0 0 wb-run-update
[ 197.355406] [ 2699] 0 2699 707 288 0 0 288 45056 0 0 tee
[ 197.365837] [ 2764] 0 2764 1120 800 224 0 576 45056 0 0 wb-run-update
[ 197.377134] [ 2949] 0 2949 1087 504 216 0 288 45056 0 0 wb-run-update
[ 197.388429] [ 2950] 0 2950 707 320 0 0 320 45056 0 0 tee
[ 197.398858] [ 3015] 0 3015 1120 800 224 0 576 45056 0 0 wb-run-update
[ 197.410151] [ 3200] 0 3200 1087 536 216 0 320 45056 0 0 wb-run-update
[ 197.421448] [ 3201] 0 3201 707 352 0 0 352 49152 0 0 tee
[ 197.431876] [ 3266] 0 3266 1120 832 224 0 608 49152 0 0 wb-run-update
[ 197.443171] [ 3451] 0 3451 1087 537 217 0 320 49152 0 0 wb-run-update
[ 197.454470] [ 3452] 0 3452 707 352 0 0 352 45056 0 0 tee
[ 197.464899] [ 3517] 0 3517 1121 800 224 0 576 45056 0 0 wb-run-update
[ 197.476194] [ 3702] 0 3702 1088 537 217 0 320 45056 0 0 wb-run-update
[ 197.487488] [ 3703] 0 3703 707 320 0 0 320 40960 0 0 tee
[ 197.497916] [ 3768] 0 3768 1122 800 224 0 576 40960 0 0 wb-run-update
[ 197.509211] [ 3953] 0 3953 1089 538 218 0 320 40960 0 0 wb-run-update
[ 197.520505] [ 3954] 0 3954 707 352 0 0 352 40960 0 0 tee
[ 197.530936] [ 4019] 0 4019 1121 832 224 0 608 45056 0 0 wb-run-update
[ 197.542234] [ 4204] 0 4204 1088 538 218 0 320 45056 0 0 wb-run-update
[ 197.553530] [ 4205] 0 4205 707 288 0 0 288 45056 0 0 tee
[ 197.563958] [ 4270] 0 4270 1122 800 224 0 576 53248 0 0 wb-run-update
[ 197.575253] [ 4455] 0 4455 1089 506 218 0 288 53248 0 0 wb-run-update
[ 197.586552] [ 4456] 0 4456 707 352 0 0 352 45056 0 0 tee
[ 197.596981] [ 4521] 0 4521 1122 800 224 0 576 49152 0 0 wb-run-update
[ 197.608282] [ 4706] 0 4706 1089 506 218 0 288 49152 0 0 wb-run-update
[ 197.619579] [ 4707] 0 4707 707 288 0 0 288 49152 0 0 tee
[ 197.630009] [ 4772] 0 4772 1122 800 224 0 576 45056 0 0 wb-run-update
[ 197.641308] [ 4957] 0 4957 1089 538 218 0 320 45056 0 0 wb-run-update
[ 197.652602] [ 4958] 0 4958 707 352 0 0 352 49152 0 0 tee
[ 197.663031] [ 5023] 0 5023 1122 800 224 0 576 45056 0 0 wb-run-update
[ 197.674325] [ 5208] 0 5208 1089 538 218 0 320 45056 0 0 wb-run-update
[ 197.685619] [ 5209] 0 5209 707 288 0 0 288 45056 0 0 tee
[ 197.696047] [ 5274] 0 5274 1122 800 224 0 576 49152 0 0 wb-run-update
[ 197.707342] [ 5459] 0 5459 1089 538 218 0 320 49152 0 0 wb-run-update
[ 197.718641] [ 5460] 0 5460 707 320 0 0 320 36864 0 0 tee
[ 197.729070] [ 5525] 0 5525 1089 800 224 0 576 53248 0 0 wb-run-update
[ 197.740364] [ 5710] 0 5710 1089 538 218 0 320 49152 0 0 wb-run-update
[ 197.751660] [ 5711] 0 5711 707 288 0 0 288 40960 0 0 tee
[ 197.762088] [ 5740] 0 5740 1089 540 220 0 320 49152 0 0 wb-run-update
[ 197.773382] [ 5741] 0 5741 723 352 0 0 352 40960 0 0 tar
[ 197.783810] [ 5742] 0 5742 707 352 0 0 352 49152 0 0 grep
[ 197.794324] [ 5744] 0 5744 707 160 0 0 160 40960 0 0 tar
[ 197.804752] [ 5749] 0 5749 707 320 0 0 320 45056 0 0 tail
[ 197.815267] [ 5750] 0 5750 707 320 0 0 320 40960 0 0 head
[ 197.825780] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/,task=wb-run-update,pid=1507,uid=0
[ 197.838840] Out of memory: Killed process 1507 (wb-run-update) total-vm:4480kB, anon-rss:896kB, file-rss:0kB, shmem-rss:2432kB, UID:0 pgtables:52kB oom_score_adj:0
/dev/shm/tmp.29mJbJ: line 816: 1507 Killed wb-run-update “${FLAGS_ARRAY[@]}” --no-remove --no-confirm --original-factory-fit “$ORIGINAL_FACTORY_FIT”
!!! Failed to restore firmware from original FIT
[ 198.984086] reboot: Restarting system
[EC] Reboot request, reset power.
U-Boot SPL 2024.01-g21d9bec95e (Oct 04 2024 - 14:53:01 +0000)
DRAM: 4096 MiB
Trying to boot from MMC2
NOTICE: BL31: v2.10.0 (debug):v2.10.0+dfsg-1+wb1-1-g9db2f29f3
NOTICE: BL31: Built : 13:16:33, Feb 29 2024
NOTICE: BL31: Detected Allwinner H616 SoC (1823)
NOTICE: BL31: Found U-Boot DTB at 0x4a07d108, model: Wiren Board 8.x
INFO: ARM GICv2 driver initialized
INFO: Configuring SPC Controller
INFO: BL31: Platform setup done
INFO: BL31: Initializing runtime services
INFO: BL31: cortex_a53: CPU workaround for erratum 855873 was applied
INFO: BL31: cortex_a53: CPU workaround for erratum 1530924 was applied
INFO: PSCI: Suspend is unavailable
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x4a000000
INFO: SPSR = 0x3c9
INFO: Changed devicetree.
ns16550_serial serial@5000000: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19
U-Boot 2024.01-g21d9bec95e (Oct 04 2024 - 14:53:01 +0000) Allwinner Technology
CPU: Allwinner H616 (SUN50I)
Model: Wiren Board 8.x
DRAM: 4 GiB
Core: 68 devices, 19 uclasses, devicetree: separate
WDT: Not starting watchdog@30090a0
MMC: mmc@4020000: 0, mmc@4022000: 1
Loading Environment from MMC… OK
In: serial@5000000
Out: serial@5000000
Err: serial@5000000
Will only keep env vars: mmcpart bootcount upgrade_available uenvcmd wb_webupd otp_program otp_aes_program
Info: input data size = 43 = 0x2B
bootcount=0
mmcpart=2
upgrade_available=0
Environment size: 43/49148 bytes
Resetting to default environment
Info: input data size = 43 = 0x2B
Net: No ethernet found.
Hit to stop autoboot… (2 s)
Info: input data size = 4329 = 0x10E9
switch to partitions #0, OK
mmc1(part 0) is current device
eMMC found on device 1
Press FW button to enter firmware update mode
…
На контроллере постоянно Зеленая Лампа.
Как можно вернуть контроллер к нормальной работе?
Failed to load ‘/boot/uEnv.txt’
Running default loadzimage …
Failed to load '/boot/Image.gz