Проблемы при обновлении старой прошивки

Как осуществить данную операцию?
[/quote]

Точно таким же методом как загрузка прошивки на контроллер только поменяв агрументы наоборот:

dd if=/dev/sdX of=firmwareTEST.img bs=1M conv=fdatasync && sync

И сравнить два файла

cmp firmwareTEST.img firmware.img

Стоимость диагностики контроллера — 500 рублей, остальных модулей — 300 рублей,
Но про WB5 уточню, возможно ли сейчас его диагностировать.

Что при этом выводится в Debug порт?
По симптомам похоже на Обновление прошивки WB 5.8 - #25 от пользователя dead_Ivanich

И тут почитайте с самого начала. Воспроизводил давно.

Судя по упоминанию “диспетчера устройств” ОС - MS win?

Вернулся в начало инструкции. Подключил ПЛК. Дошёл до пункта выбора диска подскажите пожалуйста какую (букву, цифру) диска мне выбрать

Размером 4Gb должен быть. Предполагаю что sdb.

Еще раз добрый вечер, я разобрался с дисками, “перезалил” ПЛК - подключился через Dedug port
Вот ответ от него
0
Checking if there is a USB storage with update file
starting USB…
USB0: USB EHCI 1.00
scanning bus 0 for devices… 1 USB Device(s) found
scanning usb for storage devices… 0 Storage Device(s) found
No storage devices, perhaps not 'usb start’ed…?
No USB update detected, continuing boot
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 116 ms (2 KiB/s)
Importing environment from mmc (uEnv.txt)…
Checking if uenvcmd is set …
Running default loadzimage …
3831456 bytes read in 1321 ms (2.8 MiB/s)
40668 bytes read in 571 ms (69.3 KiB/s)

MMC read: dev # 0, block # 2016, count 32 … 32 blocks read: OK
Warning: value of pin is still 0
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Booting from mmc …
Kernel image @ 0x42000000 [ 0x000000 - 0x3a76a0 ]

Flattened Device Tree blob at 41000000

Booting using the fdt blob at 0x41000000
Loading Device Tree to 47b29000, end 47b4bfff … OK

Starting kernel …

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.22-wb1 (root@wbdevenv) (gcc version 6.3.0 20170 516 (Debian 6.3.0-18) ) #2 Thu May 20 15:58:00 UTC 2021
[ 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 pag es: 32512
[ 0.000000] Kernel command line: console=ttyAMA0,115200 ro rootwait fixrtc ro ot=/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:
[ 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 - 0xc047e9e8 (4571 kB)
[ 0.000000] .init : 0xc0636000 - 0xc065e000 ( 160 kB)
[ 0.000000] .data : 0xc065e000 - 0xc06912c0 ( 205 kB)
[ 0.000000] .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.000023] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478 484971ns
[ 0.000695] Console: colour dummy device 80x30
[ 0.000758] Calibrating delay loop… 226.09 BogoMIPS (lpj=1130496)
[ 0.080313] pid_max: default: 32768 minimum: 301
[ 0.080579] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.080624] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.082202] CPU: Testing write buffer coherency: ok
[ 0.083015] Setting up static identity map for 0x40008400 - 0x40008458
[ 0.086694] devtmpfs: initialized
[ 0.117565] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma x_idle_ns: 19112604462750000 ns
[ 0.117630] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.117977] pinctrl core: initialized pinctrl subsystem
[ 0.120758] NET: Registered protocol family 16
[ 0.122099] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.193055] Serial: AMBA PL011 UART driver
[ 0.193895] 80074000.serial: ttyAMA0 at MMIO 0x80074000 (irq = 234, base_baud = 0) is a PL011 rev2
[ 0.456865] console [ttyAMA0] enabled
[ 0.484308] mxs-dma 80004000.dma-apbh: initialized
[ 0.494418] mxs-dma 80024000.dma-apbx: initialized
[ 0.504141] usbcore: registered new interface driver usbfs
[ 0.509976] usbcore: registered new interface driver hub
[ 0.515562] usbcore: registered new device driver usb
[ 0.522251] i2c-gpio i2c_rtc_wb59@0: using pins 85 (SDA) and 90 (SCL)
[ 0.530483] Linux video capture interface: v2.00
[ 0.535444] pps_core: LinuxPPS API ver. 1 registered
[ 0.540435] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giome tti giometti@linux.it
[ 0.549734] PTP clock support registered
[ 0.554596] Advanced Linux Sound Architecture Driver Initialized.
[ 0.563067] clocksource: Switched to clocksource mxs_timer
[ 0.605274] NET: Registered protocol family 2
[ 0.611226] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.618379] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.624861] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.631413] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.637387] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.644096] NET: Registered protocol family 1
[ 0.649396] RPC: Registered named UNIX socket transport module.
[ 0.655464] RPC: Registered udp transport module.
[ 0.660192] RPC: Registered tcp transport module.
[ 0.664980] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.671941] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.681518] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 0.734592] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2 47)
[ 0.742025] io scheduler noop registered (default)
[ 0.751040] 8006a000.serial: ttyAPP0 at MMIO 0x8006a000 (irq = 229, base_baud = 1500000) is a 8006a000.serial
[ 0.762018] mxs-auart 8006a000.serial: Found APPUART 3.1.0
[ 0.768358] 8006c000.serial: ttyAPP1 at MMIO 0x8006c000 (irq = 230, base_baud = 1500000) is a 8006c000.serial
[ 0.779379] mxs-auart 8006c000.serial: Found APPUART 3.1.0
[ 0.785775] 8006e000.serial: ttyAPP2 at MMIO 0x8006e000 (irq = 231, base_baud = 1500000) is a 8006e000.serial
[ 0.796830] mxs-auart 8006e000.serial: Found APPUART 3.1.0
[ 0.803040] 80070000.serial: ttyAPP3 at MMIO 0x80070000 (irq = 232, base_baud = 1500000) is a 80070000.serial
[ 0.814149] mxs-auart 80070000.serial: Found APPUART 3.1.0
[ 0.820370] 80072000.serial: ttyAPP4 at MMIO 0x80072000 (irq = 233, base_baud = 1500000) is a 80072000.serial
[ 0.831381] mxs-auart 80072000.serial: Found APPUART 3.1.0
[ 0.857632] loop: module loaded
[ 0.863556] libphy: Fixed MDIO Bus: probed
[ 0.983244] 800f0000.ethernet supply phy not found, using dummy regulator
[ 1.104467] libphy: fec_enet_mii_bus: probed
[ 1.114309] 800f4000.ethernet supply phy not found, using dummy regulator
[ 1.124424] PPP generic driver version 2.4.2
[ 1.129342] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 1.136413] usbcore: registered new interface driver usbserial
[ 1.142412] usbcore: registered new interface driver usbserial_generic
[ 1.149208] usbserial: USB Serial support registered for generic
[ 1.155996] mousedev: PS/2 mouse device common for all mice
[ 1.166372] rtc-pcf8563 1-0051: low voltage detected, date/time is not reliab le.
[ 1.174498] rtc-pcf8563 1-0051: rtc core: registered rtc-pcf8563 as rtc0
[ 1.187200] stmp3xxx-rtc 80056000.rtc: rtc core: registered 80056000.rtc as r tc1
[ 1.195366] i2c /dev entries driver
[ 1.201260] stmp3xxx_rtc_wdt stmp3xxx_rtc_wdt: initialized watchdog with hear tbeat 19s
[ 1.211678] 80010000.ssp supply vmmc not found, using dummy regulator
[ 1.273178] mxs-mmc 80010000.ssp: initialized
[ 1.279578] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.291637] usbcore: registered new interface driver usbhid
[ 1.297362] usbhid: USB HID core driver
[ 1.318481] NET: Registered protocol family 10
[ 1.326085] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 1.334948] NET: Registered protocol family 17
[ 1.339629] Key type dns_resolver registered
[ 1.346670] registered taskstats version 1
[ 1.360834] rtc-pcf8563 1-0051: low voltage detected, date/time is not reliab le.
[ 1.368389] rtc-pcf8563 1-0051: hctosys: unable to read the hardware clock
[ 1.375363] of_cfs_init
[ 1.378002] of_cfs_init: OK
[ 1.382777] usb0_vbus: disabling
[ 1.386165] usb1_vbus: disabling
[ 1.389420] ALSA device list:
[ 1.392398] No soundcards found.
[ 1.396242] uart-pl011 80074000.serial: no DMA platform data
[ 1.402100] Waiting for root device /dev/mmcblk0p2…
[ 1.875999] mmc0: new high speed MMC card at address 0001
[ 1.882976] mmcblk0: mmc0:0001 SEM04G 3.69 GiB
[ 1.888358] mmcblk0boot0: mmc0:0001 SEM04G partition 1 1.00 MiB
[ 1.895141] mmcblk0boot1: mmc0:0001 SEM04G partition 2 1.00 MiB
[ 1.901780] mmcblk0rpmb: mmc0:0001 SEM04G partition 3 128 KiB
[ 1.912872] mmcblk0: p1 p2 p3 p4 < p5 p6 >
[ 2.006181] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesyst em
[ 2.013634] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[ 2.503106] random: fast init done
[ 2.519663] EXT4-fs (mmcblk0p2): recovery complete
[ 2.527995] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. O pts: (null)
[ 2.536309] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 2.543446] devtmpfs: mounted
[ 2.547231] Freeing unused kernel memory: 160K (c0636000 - c065e000)
[ 2.553697] This architecture does not have kernel memory protection.
[ 3.042340] systemd[1]: System time before build time, advancing clock.
[ 3.098046] systemd[1]: Failed to insert module ‘autofs4’: No such file or di rectory
[ 3.122668] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 3.170993] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SEL INUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL + XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[ 3.190969] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 9 (stretch)!

[ 3.235076] systemd[1]: Set hostname to .
[ 4.002764] systemd-sysv-generator[75]: [/etc/init.d/wb-mqtt-knx:6] Could not build name for facility $remote_fs,: Invalid argument
[ 4.863353] systemd[1]: Created slice System Slice.
[ OK ] Created slice System Slice.
[ 4.895112] systemd[1]: Listening on Syslog Socket.
[ OK ] Listening on Syslog Socket.
[ 4.924437] systemd[1]: Listening on udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
[ 4.965207] systemd[1]: Created slice system-getty.slice.
[ OK ] Created slice system-getty.slice.
[ 5.005180] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[ OK ] Created slice system-systemd\x2dfsck.slice.
[ 5.044397] systemd[1]: Listening on fsck to fsckd communication Socket.
[ OK ] Listening on fsck to fsckd communication Socket.
[ 5.085021] systemd[1]: Started Forward Password Requests to Wall Directory W atch.
[ OK ] Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Reached target Paths.
Mounting /sys/kernel/config…
[ OK ] Created slice User and Session Slice.
[ OK ] Reached target Slices.
[ OK ] Listening on udev Control Socket.
Mounting Debug File System…
[ OK ] Reached target Encrypted Volumes.
Mounting POSIX Message Queue File System…
[ OK ] Listening on Journal Socket (/dev/log).
[ OK ] Reached target Remote File Systems.
[ OK ] Listening on Journal Socket.
Starting File System Check on Root Device…
Starting Journal Service…
Starting Load Kernel Modules…
Starting Create list of required st…ce nodes for the current kernel…
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Mounted Debug File System.
[ OK ] Mounted POSIX Message Queue File System.
[ OK ] Mounted /sys/kernel/config.
[ OK ] Started Create list of required sta…vice nodes for the current kernel.
[ OK ] Started File System Check Daemon to report status.
Starting Create Static Device Nodes in /dev…
[ OK ] Started Load Kernel Modules.
Starting Apply Kernel Variables…
[ OK ] Started File System Check on Root Device.
Starting Remount Root and Kernel File Systems…
[ OK ] Started Apply Kernel Variables.
[ OK ] Started Create Static Device Nodes in /dev.
Starting udev Kernel Device Manager…
[ 6.953367] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro
[ OK ] Started Journal Service.
[ OK ] Started Remount Root and Kernel File Systems.
Starting Load/Save Random Seed…
Starting udev Coldplug all Devices…
Starting prepare partitions at first boot…
[ OK ] Started Load/Save Random Seed.
[ OK ] Started udev Kernel Device Manager.
[ OK ] Started prepare partitions at first boot.
[ OK ] Reached target Local File Systems (Pre).
[ OK ] Started udev Coldplug all Devices.
[ 12.694435] mxs-dcp 80028000.dcp: Failed to register sha1 hash!
[ 12.710469] CAN device driver interface
[ 12.743612] mxs-dcp: probe of 80028000.dcp failed with error -22
[ 12.836849] 80034000.can supply xceiver not found, using dummy regulator
[ 12.909707] flexcan 80034000.can: device registered (reg_base=c89f8000, irq=209)
[ 12.927750] mxs-spdif-dai 80054000.spdif: MXS SPDIF Audio Transmitter
[ 13.805514] lirc_dev: IR Remote Control driver registered, major 245
[ 13.836007] ci_hdrc ci_hdrc.1: EHCI Host Controller
[ 13.841029] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
[ 13.956893] lirc_pwm: module is from the staging directory, the quality is unknown, you have been warned.
[ 13.989226] Driver for 1-wire Dallas network protocol.
[ 14.004658] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[ 14.063822] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 14.070663] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 14.078058] usb usb1: Product: EHCI Host Controller
[ 14.082970] usb usb1: Manufacturer: Linux 4.9.22-wb1 ehci_hcd
[ 14.088831] usb usb1: SerialNumber: ci_hdrc.1
[ 14.105402] lirc_pwm lirc-rfm69: GPIO receiver on pin 37
[ 14.193431] lirc_pwm lirc-rfm69: lirc_dev: driver lirc-rfm69 registered at minor = 0
[ 14.201223] lirc_pwm lirc-rfm69: probed
[ 14.386246] mxs-spdif sound-spdif: snd-soc-dummy-dai <-> 80054000.spdif mapping ok
[ 14.396179] hub 1-0:1.0: USB hub found
[ 14.462157] hub 1-0:1.0: 1 port detected
[ OK ] Found device /dev/mmcblk0p5.
[ OK ] Found device /dev/mmcblk0p6.
[ OK ] Found device /dev/ttyAMA0.
Starting File System Check on /dev/mmcblk0p6…
Activating swap /dev/mmcblk0p5…
[ 16.573641] Adding 262140k swap on /dev/mmcblk0p5. Priority:-1 extents:1 across:262140k SS
[ OK ] Activated swap /dev/mmcblk0p5.
[ OK ] Reached target Swap.
[ OK ] Reached target Sound Card.
[ OK ] Started File System Check on /dev/mmcblk0p6.
Mounting /mnt/data…
[ 18.120828] EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: (null)
[ OK ] Mounted /mnt/data.
Mounting /var/log…
[ OK ] Mounted /var/log.
Starting Flush Journal to Persistent Storage…
[ OK ] Reached target Local File Systems.
Starting prepare mounts and symlinks to config files…
Starting Raise network interfaces…
[ OK ] Started Raise network interfaces.
[ 18.855746] systemd-journald[89]: Received request to flush runtime journal from PID 1
[ 18.901504] systemd-journald[89]: File /var/log/journal/b93447139b7f37d63030f4f1609bca58/system.journal corrupted or uncleanly shut down, renaming and replacing.
[ OK ] Started Flush Journal to Persistent Storage.
[ OK ] Started prepare mounts and symlinks to config files.
Starting Create Volatile Files and Directories…
[FAILED] Failed to start Create Volatile Files and Directories.
See ‘systemctl status systemd-tmpfiles-setup.service’ for details.
[ OK ] Reached target System Time Synchronized.
Starting Update UTMP about System Boot/Shutdown…
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Reached target System Initialization.
[ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Started Daily apt download activities.
[ OK ] Started Daily apt upgrade and clean activities.
[ OK ] Reached target Timers.
[ OK ] Listening on KNX Daemon (socket).
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting System Logging Service…
Starting LSB: Kernel 1-wire MQTT driver for WB-HomA…
Starting Restore local date from Wiren Board GSM RTC…
Starting Mosquitto MQTT v3.1/v3.1.1 Broker…
[ OK ] Started Regular background program processing daemon.
[ OK ] Started Cgroup management daemon.
Starting initialize filesystems at first boot…
Starting Login Service…
Starting Restore /etc/resolv.conf i…fore the ppp link was shut down…
[ OK ] Started D-Bus System Message Bus.
[ 23.765439] cgroup: new mount options do not match the existing superblock, will be ignored
[ OK ] Started watch config files.
Starting LSB: Hardware configuration with Device Tree overlays…
[ OK ] Started System Logging Service.
[ OK ] Started LSB: Kernel 1-wire MQTT driver for WB-HomA.
[ OK ] Started Restore local date from Wiren Board GSM RTC.
[FAILED] Failed to start Mosquitto MQTT v3.1/v3.1.1 Broker.
See ‘systemctl status mosquitto.service’ for details.
[ OK ] Started Restore /etc/resolv.conf if…before the ppp link was shut down.
[FAILED] Failed to start Login Service.
See ‘systemctl status systemd-logind.service’ for details.
[ 51.623753] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[ *** ] (2 of 2) A start job is running for…ems at first boot (51s / no limit)[ 56.106826] random: crng init done
[ OK ] Started LSB: Hardware configuration with Device Tree overlays.
[FAILED] Failed to start initialize filesystems at first boot.
See ‘systemctl status wb-prepare.service’ for details.
---------------- наверно так удобнее




Вижу, понятно.

Извините, не совсем понимаю как это сделать подключился по Putty. А что дальше?

Проверить наличие разделов. В случае если все есть - проверить на них ФС. Если и ФС есть (что вряд ли) тогда интересно. Если ФС нету - создать.

Спасибо, помогло. Всё работает.

Эта тема была автоматически закрыта через 7 дней после последнего ответа. В ней больше нельзя отвечать.