[Issue] Run .swu binary with different file system other than vfat
Hi All,
We build the SWUPDATE image for simatic target, then write the wic image to the USB drive and booted the system. now the system is ready to update the software. formatted another USB with ext4 file system and copied the .swu binary over there. After mount the .swu binary file, run the swupdate command. But we are facing issue.
Note: when USB formatted with vfat and then copied .swu binary, now SWUPDATE happening successfully.
When .swu bianry with different file system other than vfat it's getting failed.
Logs: ` root@demo:/mnt# swupdate -i cip-core-image-cip-core-buster-simatic-ipc227e.swu Swupdate v2021.04.0
Licensed under GPLv2. See source distribution for detailed copyright notices.
[INFO ] : SWUPDATE running : [lua_handlers_init] : Compiled-in Lua handler(s) found and loaded.
[INFO ] : SWUPDATE running : [print_registered_handlers] : Registered handlers: [INFO ] : SWUPDATE running : [print_registered_handlers] : dummy [INFO ] : SWUPDATE running : [print_registered_handlers] : archive [INFO ] : SWUPDATE running : [print_registered_handlers] : tar [INFO ] : SWUPDATE running : [print_registered_handlers] : uboot [INFO ] : SWUPDATE running : [print_registered_handlers] : bootloader [INFO ] : SWUPDATE running : [print_registered_handlers] : lua [INFO ] : SWUPDATE running : [print_registered_handlers] : raw [INFO ] : SWUPDATE running : [print_registered_handlers] : rawfile [INFO ] : SWUPDATE running : [print_registered_handlers] : rawcopy [INFO ] : SWUPDATE running : [print_registered_handlers] : roundrobin [TRACE] : SWUPDATE running : [network_initializer] : Main loop daemon [TRACE] : SWUPDATE running : [listener_create] : got no socket at /tmp/sockinstctrl from systemd [TRACE] : SWUPDATE running : [listener_create] : creating socket at /tmp/sockinstctrl [TRACE] : SWUPDATE running : [listener_create] : got no socket at /tmp/swupdateprog from systemd [TRACE] : SWUPDATE running : [listener_create] : creating socket at /tmp/swupdateprog [TRACE] : SWUPDATE running : [network_thread] : Incoming network request: processing... [INFO ] : SWUPDATE started : Software Update started ! [TRACE] : SWUPDATE running : [network_initializer] : Software update started [TRACE] : SWUPDATE running : [extract_file_to_tmp] : Found file [TRACE] : SWUPDATE running : [extract_file_to_tmp] : filename sw-description [TRACE] : SWUPDATE running : [extract_file_to_tmp] : size 1403 [TRACE] : SWUPDATE running : [get_common_fields] : Version 0.2 [TRACE] : SWUPDATE running : [add_properties] : Found properties for cip-core-image-cip-core-buster-simatic-ipc227e-initrd.img: [TRACE] : SWUPDATE running : [add_properties_cb] : Property subtype: initrd [TRACE] : SWUPDATE running : [_parse_files] : Found File: cip-core-image-cip-core-buster-simatic-ipc227e-initrd.img --> cip-core-image-cip-core-buster-simatic-ipc227e-initrd.img (fedcba98-7654-3210-cafe-5e0710000001->sda2,fedcba98-7654-3210-cafe-5e0710000002->sda3) [TRACE] : SWUPDATE running : [add_properties] : Found properties for cip-core-image-cip-core-buster-simatic-ipc227e-vmlinuz: [TRACE] : SWUPDATE running : [add_properties_cb] : Property subtype: kernel [TRACE] : SWUPDATE running : [_parse_files] : Found File: cip-core-image-cip-core-buster-simatic-ipc227e-vmlinuz --> vmlinuz (fedcba98-7654-3210-cafe-5e0710000001->sda2,fedcba98-7654-3210-cafe-5e0710000002->sda3) [TRACE] : SWUPDATE running : [add_properties] : Found properties for img4.gz: [TRACE] : SWUPDATE running : [add_properties_cb] : Property subtype: image [TRACE] : SWUPDATE running : [_parse_images] : Found compressed Image: img4.gz in device : fedcba98-7654-3210-cafe-5e0710000001,fedcba98-7654-3210-cafe-5e0710000002 for handler roundrobin [TRACE] : SWUPDATE running : [extract_files] : Found file [TRACE] : SWUPDATE running : [extract_files] : filename cip-core-image-cip-core-buster-simatic-ipc227e-initrd.img [TRACE] : SWUPDATE running : [extract_files] : size 6467085 required [TRACE] : SWUPDATE running : [extract_files] : Found file [TRACE] : SWUPDATE running : [extract_files] : filename cip-core-image-cip-core-buster-simatic-ipc227e-vmlinuz [TRACE] : SWUPDATE running : [extract_files] : size 5862272 required [TRACE] : SWUPDATE running : [extract_files] : Found file [TRACE] : SWUPDATE running : [extract_files] : filename img4.gz [TRACE] : SWUPDATE running : [extract_files] : size 105887959 required [TRACE] : SWUPDATE running : [extract_padding] : Expecting 172 padding bytes at end-of-file [TRACE] : SWUPDATE running : [network_initializer] : Valid image found: copying to FLASH Trying device with: Major = 8, Minor = 16, (/sys/block/sdb/dev)
Checking /dev/sdb Partition 0: Type EE GPT header at 1 EFI Header: 45 46 49 20 50 41 52 54 Number of partition entries: 128 Partition Table @ LBA 2 0: C12A7328-F81F-11D2-BA4B-00A0C93EC93B GPT Partition #0 is FAT/NTFS. GPT Partition #0 is fat16. 1: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 GPT Partition #1 (closed) is FAT/NTFS. GPT Partition #1 (closed) is fat16. 2: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 GPT Partition #2 (closed) is FAT/NTFS. GPT Partition #2 (closed) is fat16. 3: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 GPT entry has unsupported GUID: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 4: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 GPT entry has unsupported GUID: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 Trying device with: Major = 8, Minor = 0, (/sys/block/sda/dev) Checking /dev/sda
Partition 0: Type 83 Partition 1: Type 83 Partition /dev/sdb1 is not mounted. Partition /dev/sdb1 is mounted to /tmp/mnt-3cVgXH. Probing config file at /tmp/mnt-3cVgXH/BGENV.DAT. Partition /dev/sdb2 is not mounted. Partition /dev/sdb2 is mounted to /tmp/mnt-tPzJxL. Probing config file at /tmp/mnt-tPzJxL/BGENV.DAT. Partition /dev/sdb3 is not mounted. Partition /dev/sdb3 is mounted to /tmp/mnt-HqV6LP. Probing config file at /tmp/mnt-HqV6LP/BGENV.DAT. Probing config file at /tmp/mnt-1sGt6T/BGENV.DAT. Probing config file at /tmp/mnt-pmv47Z/BGENV.DAT. Probing config file at /tmp/mnt-r7c188/BGENV.DAT. [INFO ] : SWUPDATE running : Installation in progress [TRACE] : SWUPDATE running : [install_single_image] : Found installer for stream img4.gz roundrobin [TRACE] : SWUPDATE running : [notify_helper] : Round Robin Handler: No compiled-in config found, trying /etc/swupdate.handler.ini [INFO ] : SWUPDATE running : [notify_helper] : Round Robin Handler: Using '/dev/disk/by-partuuid/fedcba98-7654-3210-cafe-5e0710000002' as target via 'raw' handler. [TRACE] : SWUPDATE running : [lua_dump_table] : properties subtype = image [TRACE] : SWUPDATE running : [lua_dump_table] : Inserting property subtype = image [INFO ] : SWUPDATE running : [notify_helper] : Round Robin Handler: Setting bootloader environment: kernelparams=root=PARTUUID=fedcba98-7654-3210-cafe-5e0710000002 console=tty0 console=ttyS0,115200 rootwait earlyprintk rwinitrd=cip-core-image-cip-core-buster-simatic-ipc227e-initrd.img [TRACE] : SWUPDATE running : [l_handler_wrapper] : [Lua handler] returned: 0 [TRACE] : SWUPDATE running : [install_single_image] : Found installer for stream cip-core-image-cip-core-buster-simatic-ipc227e-vmlinuz roundrobin [ERROR] : SWUPDATE failed [0] ERROR : Round Robin Handler: Cannot find target device node 'sda3' in /dev/ [TRACE] : SWUPDATE running : [l_handler_wrapper] : [Lua handler] returned: 1 [TRACE] : SWUPDATE running : [install_single_image] : Installer for roundrobin not successful !
Trying device with: Major = 8, Minor = 16, (/sys/block/sdb/dev) Checking /dev/sdb Partition 0: Type EE GPT header at 1 EFI Header: 45 46 49 20 50 41 52 54 Number of partition entries: 128 Partition Table @ LBA 2 0: C12A7328-F81F-11D2-BA4B-00A0C93EC93B GPT Partition #0 is FAT/NTFS. GPT Partition #0 is fat16. 1: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 GPT Partition #1 (closed) is FAT/NTFS. GPT Partition #1 (closed) is fat16. 2: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 GPT Partition #2 (closed) is FAT/NTFS. GPT Partition #2 (closed) is fat16. 3: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 GPT entry has unsupported GUID: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 4: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 GPT entry has unsupported GUID: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 Trying device with: Major = 8, Minor = 0, (/sys/block/sda/dev) Checking /dev/sda Partition 0: Type 83 Partition 1: Type 83 Partition /dev/sdb1 is not mounted. Partition /dev/sdb1 is mounted to /tmp/mnt-F8gTjC. Probing config file at /tmp/mnt-F8gTjC/BGENV.DAT. Partition /dev/sdb2 is not mounted. Partition /dev/sdb2 is mounted to /tmp/mnt-L4go96. Probing config file at /tmp/mnt-L4go96/BGENV.DAT. Partition /dev/sdb3 is not mounted. Partition /dev/sdb3 is mounted to /tmp/mnt-9jLX4B. Probing config file at /tmp/mnt-9jLX4B/BGENV.DAT. Probing config file at /tmp/mnt-Zg5Y76/BGENV.DAT. Probing config file at /tmp/mnt-PxYDkC/BGENV.DAT. uservar_alloc: free: 131072 requested: 35 Probing config file at /tmp/mnt-p8qLG7/BGENV.DAT. [ERROR] : SWUPDATE failed [1] Installation failed ! Trying device with: Major = 8, Minor = 16, (/sys/block/sdb/dev) Checking /dev/sdb Partition 0: Type EE GPT header at 1 EFI Header: 45 46 49 20 50 41 52 54 Number of partition entries: 128 Partition Table @ LBA 2 0: C12A7328-F81F-11D2-BA4B-00A0C93EC93B GPT Partition #0 is FAT/NTFS. GPT Partition #0 is fat16. 1: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 GPT Partition #1 (closed) is FAT/NTFS. GPT Partition #1 (closed) is fat16. 2: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 GPT Partition #2 (closed) is FAT/NTFS. GPT Partition #2 (closed) is fat16. 3: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 GPT entry has unsupported GUID: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 4: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 GPT entry has unsupported GUID: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 Trying device with: Major = 8, Minor = 0, (/sys/block/sda/dev) Checking /dev/sda
Partition 0: Type 83 Partition 1: Type 83 Partition /dev/sdb1 is not mounted. Partition /dev/sdb1 is mounted to /tmp/mnt-lxbTdD. Probing config file at /tmp/mnt-lxbTdD/BGENV.DAT. Partition /dev/sdb2 is not mounted. Partition /dev/sdb2 is mounted to /tmp/mnt-dF2HQ8. Probing config file at /tmp/mnt-dF2HQ8/BGENV.DAT. Partition /dev/sdb3 is not mounted. Partition /dev/sdb3 is mounted to /tmp/mnt-nw1UzE. Probing config file at /tmp/mnt-nw1UzE/BGENV.DAT. Probing config file at /tmp/mnt-DtMrna/BGENV.DAT. Probing config file at /tmp/mnt-xGBEgG/BGENV.DAT. Probing config file at /tmp/mnt-Faf1ic/BGENV.DAT. [TRACE] : SWUPDATE running : [network_initializer] : Main thread sleep again ! [INFO ] : No SWUPDATE running : Waiting for requests... [INFO ] : SWUPDATE running : [endupdate] : Swupdate failed !
`
Conceptually .swu binary should run on all file system. @Quirin.Gy Please provide your opinion on this.
Many thanks, Srinuvasn.A****