swupdate-scripts : imx8mp support

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

swupdate-scripts : imx8mp support

Jump to solution
873 Views
khang_letruong
Senior Contributor III

Dear Community,

I am using the swupdate-scripts in AN13872 Enabling SWUpdate on i.MX 6ULL and the tutorial in https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/SWUpdate-OTA-i-MX8MM-EVK-i-MX8QXP-MEK/ta... to add support for imx8mp evk board. 

However, when launching the script assemble_base_image.sh, I faced the following error : 

$ cd base_image_assembling/
$ rm -rf slota 
$ ln -s /backup/Toto/imx-yocto-bsp-5_15_32-2_0_x-swupdate/build-xwayland-swupdate-imx8mpevk/tmp/deploy/images/imx8mpevk/ ./slota
$ rm -rf slotb 
$ ln -s /backup/Toto/imx-yocto-bsp-5_15_32-2_0_x-swupdate/build-xwayland-swupdate-imx8mpevk/tmp/deploy/images/imx8mpevk/ ./slotb

backup/Toto/swupdate-scripts/base_image_assembling [dev|✚ 3] 
11:40 $ ./assemble_base_image.sh -b imx8mp
No output image name specified! Use default name!
Output image name is: swu_singlecopy_rescue_imx8mp_sd_20230802.sdcard
>>>> Check partition table file...DONE
>>>> Check slota boot partition mirror...
No slota boot partition mirror, generate...pt_size_num: 125829120
Calculated partition size: 125829120
/backup/Toto/swupdate-scripts/base_image_assembling
DONE
>>>> Check slotb boot partition mirror...
\nNo slotb boot partition mirror, generate...pt_size_num: 125829120
Calculated partition size: 125829120
DONE
>>>> Check slota link...DONE
>>>> Check slotb link...DONE
>>>> Making header...
pad_base: 0
pad_filename: /backup/Toto/swupdate-scripts/base_image_assembling/common/swu_dualslot_7.5G.pt
pad_size: 33K
output_pad_file: ./tmp.bin
33280 need to add to pad to 33792
pad_base: 33K
pad_filename: /backup/Toto/swupdate-scripts/base_image_assembling/slota/imx-boot-imx8mpevk-sd.bin-flash_evk
pad_size: 8M
output_pad_file: ./tmp.bin
6306976 need to add to pad to 8388608
DONE
>>>> Making swupdate...
pad_base: 8M
pad_filename: /backup/Toto/swupdate-scripts/base_image_assembling/slota/Image
pad_size: 38M
output_pad_file: ./tmp.bin
525824 need to add to pad to 39845888
pad_base: 38M
pad_filename: /backup/Toto/swupdate-scripts/base_image_assembling/slota/imx8mp-evk.dtb
pad_size: 42M
output_pad_file: ./tmp.bin
4129785 need to add to pad to 44040192
pad_base: 42M
pad_filename: /backup/Toto/swupdate-scripts/base_image_assembling/slota/swupdate-image-imx8mpevk.cpio.gz.u-boot
pad_size: 100M
output_pad_file: ./tmp.bin
22257257 need to add to pad to 104857600
DONE
>>>> Making slota...
boot_pt: /backup/Toto/swupdate-scripts/base_image_assembling/common/slota_boot_pt_120M.mirror
slot: slota
mkfs.fat 4.1 (2017-01-24)
 Volume in drive : has no label
 Volume Serial Number is E6CB-84C0
Directory for ::/

No files
                        125 564 928 bytes free

 Volume in drive : has no label
 Volume Serial Number is E6CB-84C0
Directory for ::/

IMX8MP~1 DTB     64519 2023-08-02  11:41  imx8mp-evk.dtb
IMAGE         30931456 2023-08-02  11:41  Image
        2 files          30 995 975 bytes
                         94 566 400 bytes free

pt_size_num: 3145728000
Calculated partition size: 3145728000
e2fsck 1.45.5 (07-Jan-2020)
The filesystem size (according to the superblock) is 887599 blocks
The physical size of the device is 768000 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? 


Does the above error mean that there's not enough space in swu_dualslot_7.5G.pt ?

Thanks in advance and best regards,

Khang

0 Kudos
1 Solution
827 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Update this case in SFDC

View solution in original post

0 Kudos
2 Replies
412 Views
terry_lv
NXP Employee
NXP Employee

Hi,

  About the error message:

The filesystem size (according to the superblock) is 887599 blocks
The physical size of the device is 768000 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? 

  Yes, it means the partition size for rootfs is not enough to hold target rootfs.

  The default rootfs size is defined in cfg_<soc>_base.cfg. The size is by default defined to 3145728000 (3000M), which is 768000 blocks (each block is 4096 bytes).

  From the error log, the taget rootfs has 887599 blocks, which is 3635605504 bytes > 3145728000 bytes.

  Thanks!

Regards

Terry

0 Kudos
828 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Update this case in SFDC

0 Kudos