S32G3 Generating .wic File in Yocto Build

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32G3 Generating .wic File in Yocto Build

跳至解决方案
1,855 次查看
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 项奖励
回复
1 解答
1,766 次查看
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 项奖励
回复
4 回复数
1,803 次查看
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 项奖励
回复
1,767 次查看
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 项奖励
回复
1,795 次查看
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 项奖励
回复
1,822 次查看
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 项奖励
回复