S32G3 Generating .wic File in Yocto Build

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

S32G3 Generating .wic File in Yocto Build

Jump to solution
1,849 Views
s153022
Contributor III

I have successfully built the NXP Auto Linux BSP 35.0 by cloning the repository from https://github.com/nxp-auto-linux/auto_yocto_bsp, using the branch release/bsp35.0.

The build process has resulted in the creation of the following images:

1. fsl-image-base-s32g399aevb-20230629125528.rootfs.cpio.gz.u-boot
2. fsl-image-base-s32g399aevb-20230629125528.rootfs.ext4
3. fsl-image-base-s32g399aevb-20230629125528.rootfs.manifest
4. fsl-image-base-s32g399aevb-20230629125528.rootfs.sdcard
5. fsl-image-base-s32g399aevb-20230629125528.rootfs.tar.gz

However, we also require the generation of the `.wic` file.

To generate the `.wic` file in the Yocto build, I attempted to add the directive `IMAGE_FSTYPES = "wic"` in the image recipe, but it did not yield the expected results.

Could you kindly assist me with the correct configuration or any additional steps needed to achieve the generation of the `.wic` file?

Thank you for your help and consideration.

Best regards,
Sami

0 Kudos
Reply
1 Solution
1,760 Views
nxf92355
NXP Employee
NXP Employee

HI @Sami uddin

 

Okay,Yes, you can increase rootfs size. you can use IMAGE_ROOTFS_EXTRA_SPACE in your local.conf

to set extra size. you can refer below link

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Guide-to-the-sdcard-format/ta-p/1107441

 

Regards ,

Tushar

View solution in original post

0 Kudos
Reply
4 Replies
1,797 Views
nxf92355
NXP Employee
NXP Employee

HI @Sami uddin

 

Yocto build will not generate .wic images for standard builds by default. It will generate a .wic image when 'dm-verity' distro feature is added, i.e. DISTRO_FEATURES:append = " dm-verity"

 

There is be no to add IMAGE_FSTYPES = " wic" . try to build a fsl-image-base.

bitbake fsl-image-base.

not sure fsl-image-auto is supported with dm-verity, at least, when this feature was first introduced it wasn't.

 

 

Regards ,

Tushar

0 Kudos
Reply
1,761 Views
nxf92355
NXP Employee
NXP Employee

HI @Sami uddin

 

Okay,Yes, you can increase rootfs size. you can use IMAGE_ROOTFS_EXTRA_SPACE in your local.conf

to set extra size. you can refer below link

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Guide-to-the-sdcard-format/ta-p/1107441

 

Regards ,

Tushar

0 Kudos
Reply
1,789 Views
s153022
Contributor III
Thank you for your response. I appreciate your input. By including the following lines in the 'conf/machine/include/s32-gen1.inc' file, the wic images were successfully generated:

```
WKS_FILE="sdimage-bootpart.wks"
IMAGE_FSTYPES += "sdcard wic.xz wic.bmap"
```

I have one more query, the generated images (both wic and sdcard) currently have an approximate size of 180MB.

Is there a way to generate the sdcard/wic image of larger size with the same contents. Is there a way to set the generated image size to 500MB or 1GB in the yocto build?

0 Kudos
Reply
1,816 Views
nxf92355
NXP Employee
NXP Employee

HI @Sami uddin

 

Hope you are doing well.

I think it not enough just set IMAGE_FSTYPES = "wic". there are also some other things to be. let me ask  to our internal team about .wic support for bsp35. i will update here

 

Regards ,

Tushar

0 Kudos
Reply