How to increase the Memory size of Dom0 and Domu in S32G goldvip image

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

How to increase the Memory size of Dom0 and Domu in S32G goldvip image

跳至解决方案
1,398 次查看
sonalip94
Contributor III

Hello @MayanksPatel , @gmocanu 

We are trying to increase the memory size for Dom0 and Domu which is by default around 4-5 GB with a prebuilt goldvip image

Can we get some information here on what are the steps to get this done?

Like what are the files to be changed during the custom yocto build?

Thanks.

标记 (1)
0 项奖励
回复
1 解答
1,354 次查看
gmocanu
NXP Employee
NXP Employee

Hello, @sonalip94,


To configure the size of the Dom0 rootfs, please take a look at https://github.com/nxp-auto-goldvip/meta-gvip/blob/goldvip-1.8.0/recipes-fsl/images/fsl-image-goldvi.... The IMAGE_ROOTFS_MAXSIZE, IMAGE_ROOTFS_EXTRA_SPACE, and IMAGE_ROOTFS_SIZE can be configured based on your needs.

 

As for the size of the DomU rootfs, that is currently expanded during the first boot, before the VM will be booted. To change how much extra space is provided to that partition, one can change the GOLDVIP_DOMU_PARTITION_END variable (https://github.com/nxp-auto-goldvip/meta-gvip/blob/develop/recipes-goldvip/goldvip-sdcard-partitioni...) to fit their needs, by defining it in the conf/local.conf file, for example.

Please let us know whether this helps.

Best regards,
George

 

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,336 次查看
MayanksPatel
NXP Employee
NXP Employee

Hi @sonalip94,

Hope you get the answer.

 

Thanks,

Mayank s Patel

1,316 次查看
sonalip94
Contributor III

Yes 

0 项奖励
回复
1,346 次查看
Dewbe
Contributor I

Hello,

To increase memory size for Dom0 and DomU in a Yocto build, modify the Xen configuration (xen.cfg) to adjust dom0_mem and DomU memory settings. Also, update the Linux kernel configuration (defconfig or config) with CONFIG_HIGHMEM or CONFIG_MEMORY_SIZE. Recompile Xen and the kernel, and rebuild the Yocto image. Deploy the new image and test the increased memory settings for stability and correctness. Refer to Yocto and Xen documentation for specific file locations and options. Validate the changes thoroughly to ensure system functionality.

Best regard.

1,355 次查看
gmocanu
NXP Employee
NXP Employee

Hello, @sonalip94,


To configure the size of the Dom0 rootfs, please take a look at https://github.com/nxp-auto-goldvip/meta-gvip/blob/goldvip-1.8.0/recipes-fsl/images/fsl-image-goldvi.... The IMAGE_ROOTFS_MAXSIZE, IMAGE_ROOTFS_EXTRA_SPACE, and IMAGE_ROOTFS_SIZE can be configured based on your needs.

 

As for the size of the DomU rootfs, that is currently expanded during the first boot, before the VM will be booted. To change how much extra space is provided to that partition, one can change the GOLDVIP_DOMU_PARTITION_END variable (https://github.com/nxp-auto-goldvip/meta-gvip/blob/develop/recipes-goldvip/goldvip-sdcard-partitioni...) to fit their needs, by defining it in the conf/local.conf file, for example.

Please let us know whether this helps.

Best regards,
George

 

0 项奖励
回复
1,317 次查看
sonalip94
Contributor III
Yes this worked. Thank you
0 项奖励
回复