IMX8MP Base Image Flashing

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMX8MP Base Image Flashing

800件の閲覧回数
Wobaffet
Senior Contributor I

Hello,

We've cloned the swupdate-scripts from nxp repo.  I.MX8MP was not supported so according to here we've edited cfg_imx8mp_base.cfg cfg_imx8mp_update_image.cfg and sw-description-imx8mp-emmc-dualcopy-image.template. Then generated base image with command 

 

$ ./assemble_base_image.sh -e -d  -b imx8mp
No output image name specified! Use default name!
Output image name is: swu_doublecopy_rescue_imx8mp_emmc_20241105.sdcard
Delete existing swu_doublecopy_rescue_imx8mp_emmc_20241105.sdcard...DONE
>>>> Check partition table file...DONE
>>>> Check slota boot partition mirror...DONE
>>>> Check slotb boot partition mirror...DONE
>>>> Check slota link...DONE
>>>> Check slotb link...DONE
>>>> Making header...
pad_base: 0
pad_filename: /home/wobaffet/imx-yocto-bsp/swupdate-scripts/base_image_assembling/common/swu_dualslot_7.5G.pt
pad_size: 32K
output_pad_file: ./tmp.bin
32256 need to add to pad to 32768
pad_base: 32K
pad_filename: /home/wobaffet/imx-yocto-bsp/swupdate-scripts/base_image_assembling/slota/imx-boot-imx8mp-lpddr4-evk-sd.bin-flash_evk
pad_size: 8M
output_pad_file: ./tmp.bin
6300704 need to add to pad to 8388608
DONE
>>>> Making swupdate...
pad_base: 8M
pad_filename: /home/wobaffet/imx-yocto-bsp/swupdate-scripts/base_image_assembling/slota/Image
pad_size: 50M
output_pad_file: ./tmp.bin
9512448 need to add to pad to 52428800
pad_base: 40M
pad_filename: /home/wobaffet/imx-yocto-bsp/swupdate-scripts/base_image_assembling/slota/imx8mp-evk.dtb
pad_size: 54M
output_pad_file: ./tmp.bin
14621821 need to add to pad to 56623104
pad_base: 54M
pad_filename: /home/wobaffet/imx-yocto-bsp/swupdate-scripts/base_image_assembling/slota/swupdate-image-imx8mp-lpddr4-evk.cpio.gz.u-boot
pad_size: 120M
output_pad_file: ./tmp.bin
30739393 need to add to pad to 125829120
DONE
>>>> Making slota...
boot_pt: /home/wobaffet/imx-yocto-bsp/swupdate-scripts/base_image_assembling/common/slota_boot_pt_120M.mirror
slot: slota
mkfs.fat 4.2 (2021-01-31)
 Volume in drive : has no label
 Volume Serial Number is 0BC9-055B
Directory for ::/

No files
                        125 564 928 bytes free

 Volume in drive : has no label
 Volume Serial Number is 0BC9-055B
Directory for ::/

IMX8MP~1 DTB     58243 2024-11-05  23:31  imx8mp-evk.dtb
IMAGE         34527744 2024-11-05  23:31  Image
        2 files          34 585 987 bytes
                         90 976 256 bytes free

pt_size_num: 3145728000
Calculated partition size: 3145728000
e2fsck 1.46.5 (30-Dec-2021)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/home/wobaffet/imx-yocto-bsp/swupdate-scripts/base_image_assembling/slota/imx-image-core-imx8mp-lpddr4-evk.ext4: 47625/749952 files (0.1% non-contiguous), 385868/768000 blocks
resize2fs 1.46.5 (30-Dec-2021)
The filesystem is already 768000 (4k) blocks long.  Nothing to do!

DONE
>>>> Making slotb...
boot_pt: /home/wobaffet/imx-yocto-bsp/swupdate-scripts/base_image_assembling/common/slotb_boot_pt_120M.mirror
slot: slotb
mkfs.fat 4.2 (2021-01-31)
 Volume in drive : has no label
 Volume Serial Number is 0BDA-B04C
Directory for ::/

No files
                        125 564 928 bytes free

 Volume in drive : has no label
 Volume Serial Number is 0BDA-B04C
Directory for ::/

IMX8MP~1 DTB     58243 2024-11-05  23:31  imx8mp-evk.dtb
IMAGE         34527744 2024-11-05  23:31  Image
        2 files          34 585 987 bytes
                         90 976 256 bytes free

pt_size_num: 3145728000
Calculated partition size: 3145728000
e2fsck 1.46.5 (30-Dec-2021)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/home/wobaffet/imx-yocto-bsp/swupdate-scripts/base_image_assembling/slotb/imx-image-core-imx8mp-lpddr4-evk.ext4: 47625/749952 files (0.1% non-contiguous), 385868/768000 blocks
resize2fs 1.46.5 (30-Dec-2021)
The filesystem is already 768000 (4k) blocks long.  Nothing to do!

DONE
Checking partition image ...
No extra image map found, ignored!
DONE
Checking image tail for GPT...
Not using GPT, ignored!
DONE
===========================================================================
Create base image swu_doublecopy_rescue_imx8mp_emmc_20241105.sdcard successfully
===========================================================================

 

But when we try to flash this via mfg tools we get error like below:

 

wobaffet@wobaffet:~/imx-yocto-bsp/swupdate-scripts/base_image_assembling$ sudo ../../mfgtools/uuu/uuu -V -b emmc_all swu_doublecopy_rescue_imx8mp_emmc_20241105.sdcard

Wait for Known USB Device Appear...
New USB Device Attached at 1:6-0F31300007298A0D
1:6-0F31300007298A0D>Start Cmd:SDPS: boot -scanterm -f swu_doublecopy_rescue_imx8mp_emmc_20241105.sdcard -scanlimited 0x800000
1:6-0F31300007298A0D>Fail This wic have NOT terminate tag after bootloader, please use new yocto(0.075s)

 

What are we missing here?

Thanks!

0 件の賞賛
返信
1 返信

775件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Per the error it looks like you have build wrong the image, please build correctly then burn the board to have it run.

Regards

0 件の賞賛
返信