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.
Solved! Go to Solution.
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
Yes
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.
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