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

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

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

Jump to solution
1,398 Views
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.

Tags (1)
0 Kudos
Reply
1 Solution
1,354 Views
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

 

View solution in original post

0 Kudos
Reply
5 Replies
1,336 Views
MayanksPatel
NXP Employee
NXP Employee

Hi @sonalip94,

Hope you get the answer.

 

Thanks,

Mayank s Patel

1,316 Views
sonalip94
Contributor III

Yes 

0 Kudos
Reply
1,346 Views
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 Views
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 Kudos
Reply
1,317 Views
sonalip94
Contributor III
Yes this worked. Thank you
0 Kudos
Reply