cancel
Showing results for 
Search instead for 
Did you mean: 

Problem while flashing- Distirbution Package

SigmaPrime
Senior

I wanted to flash my image using the command

STM32_Programmer_CLI.exe -c port=usb1 -w flashlayout_st-image-weston/trusted/FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv

But I end up getting the following error:

Error: Unable to open the file st-image-bootfs-openstlinux-weston-stm32mp1-disco.ext4
 
Error: Download partition 0x21 failed
 
Error: TSV flashing service failed

I am working in the following directory which has the following files in it:

~/DP1/openstlinux-5.4-dunfell-mp1-20-11-12/build-openstlinuxweston-stm32mp1-disco/tmp-glibc/deploy/images/stm32mp1-disco$ ls -s
total 1685864
      4 arm-trusted-firmware
      4 bootloader
      4 build-st-image-weston-openstlinux-weston-stm32mp1-disco
      4 flashlayout_st-image-weston
      4 kernel
      4 scripts
  15532 st-image-bootfs-openstlinux-weston-stm32mp1-disco-20201214112610.bootfs.ext4
      4 st-image-bootfs-openstlinux-weston-stm32mp1-disco-20201214112610.bootfs.manifest
  10392 st-image-bootfs-openstlinux-weston-stm32mp1-disco-20201214112610.bootfs.tar.xz
    440 st-image-bootfs-openstlinux-weston-stm32mp1-disco-20201214112610.testdata.json
      4 st-image-bootfs-openstlinux-weston-stm32mp1-disco.ext4
      4 st-image-bootfs-openstlinux-weston-stm32mp1-disco.manifest
      4 st-image-bootfs-openstlinux-weston-stm32mp1-disco.tar.xz
      4 st-image-bootfs-openstlinux-weston-stm32mp1-disco.testdata.json
   3560 st-image-resize-initrd-openstlinux-weston-stm32mp1-disco-20201214112610.rootfs.cpio.gz
      4 st-image-resize-initrd-openstlinux-weston-stm32mp1-disco-20201214112610.rootfs.manifest
    444 st-image-resize-initrd-openstlinux-weston-stm32mp1-disco-20201214112610.testdata.json
      4 st-image-resize-initrd-openstlinux-weston-stm32mp1-disco.cpio.gz
      4 st-image-resize-initrd-openstlinux-weston-stm32mp1-disco.manifest
      4 st-image-resize-initrd-openstlinux-weston-stm32mp1-disco.testdata.json
    440 st-image-userfs-openstlinux-weston-stm32mp1-disco-20201214112610.testdata.json
  40912 st-image-userfs-openstlinux-weston-stm32mp1-disco-20201214112610.userfs.ext4
     12 st-image-userfs-openstlinux-weston-stm32mp1-disco-20201214112610.userfs.manifest
  35108 st-image-userfs-openstlinux-weston-stm32mp1-disco-20201214112610.userfs.tar.xz
      4 st-image-userfs-openstlinux-weston-stm32mp1-disco.ext4
      4 st-image-userfs-openstlinux-weston-stm32mp1-disco.manifest
      4 st-image-userfs-openstlinux-weston-stm32mp1-disco.tar.xz
      4 st-image-userfs-openstlinux-weston-stm32mp1-disco.testdata.json
    440 st-image-vendorfs-openstlinux-weston-stm32mp1-disco-20201214112610.testdata.json
   1272 st-image-vendorfs-openstlinux-weston-stm32mp1-disco-20201214112610.vendorfs.ext4
      0 st-image-vendorfs-openstlinux-weston-stm32mp1-disco-20201214112610.vendorfs.manifest
      4 st-image-vendorfs-openstlinux-weston-stm32mp1-disco-20201214112610.vendorfs.tar.xz
      4 st-image-vendorfs-openstlinux-weston-stm32mp1-disco.ext4
      4 st-image-vendorfs-openstlinux-weston-stm32mp1-disco.manifest
      4 st-image-vendorfs-openstlinux-weston-stm32mp1-disco.tar.xz
      4 st-image-vendorfs-openstlinux-weston-stm32mp1-disco.testdata.json
     24 st-image-weston-openstlinux-weston-stm32mp1-disco-20201214112610.license
    376 st-image-weston-openstlinux-weston-stm32mp1-disco-20201214112610-license_content.html
1273608 st-image-weston-openstlinux-weston-stm32mp1-disco-20201214112610.rootfs.ext4
    116 st-image-weston-openstlinux-weston-stm32mp1-disco-20201214112610.rootfs.manifest
 302616 st-image-weston-openstlinux-weston-stm32mp1-disco-20201214112610.rootfs.tar.xz
    448 st-image-weston-openstlinux-weston-stm32mp1-disco-20201214112610.testdata.json
      4 st-image-weston-openstlinux-weston-stm32mp1-disco.ext4
      4 st-image-weston-openstlinux-weston-stm32mp1-disco.license
      4 st-image-weston-openstlinux-weston-stm32mp1-disco-license_content.html
      4 st-image-weston-openstlinux-weston-stm32mp1-disco.manifest
      4 st-image-weston-openstlinux-weston-stm32mp1-disco.tar.xz
      4 st-image-weston-openstlinux-weston-stm32mp1-disco.testdata.json
      4 st-initrd-openstlinux-weston-stm32mp1-disco

I don't understand why I am getting this error although the file is there

Best regards

2 REPLIES 2
Olivier GALLIEN
ST Employee

Hi @SigmaPrime​ ,

If you confirm "st-image-bootfs-openstlinux-weston-stm32mp1-disco.ext4" is only 4 bytes size .. I guess it's corrupted.

Double check image generation.

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Why is it corrupted? The build process didn't give any warning or error.

Still, I did this

mv st-image-bootfs-openstlinux-weston-stm32mp1-disco.ext4 st-image-bootfs-openstlinux-weston-stm32mp1-disco1.ext4
mv st-image-bootfs-openstlinux-weston-stm32mp1-disco-20201214112610.bootfs.ext4  st-image-bootfs-openstlinux-weston-stm32mp1-disco.ext4

It appears that it's working but I hope that I get the right image flashed in the end