Hi @joying.kuo,
As per customer, Currently work Space is 5GB in G700, Request to increase the workspace memory. Not able to copy , every time deleting and copying.
Whether compiling as bsp image the work space will increase? or any other steps are there to reduce the memory?
Best Regards,
Jothilingam N
Hi @jothilingam.n ,
We can dynamically resize the rootfs size by the following steps:
- Find the correct partition to resize with
lsblk
Here we found the root is mounted on mmcblk0p10 of **mmcblk0 **
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mmcblk0 179:0 0 59.2G 0 disk
|-mmcblk0p1 179:1 0 4M 0 part
|-mmcblk0p2 179:2 0 4M 0 part
|-mmcblk0p3 179:3 0 32M 0 part
|-mmcblk0p4 179:4 0 32M 0 part
|-mmcblk0p5 179:5 0 512K 0 part
|-mmcblk0p6 179:6 0 1M 0 part
|-mmcblk0p7 179:7 0 32M 0 part
|-mmcblk0p8 179:8 0 100M 0 part
|-mmcblk0p9 179:9 0 32M 0 part
`-mmcblk0p10 179:10 0 5.1G 0 part /
mmcblk0boot0 179:32 0 4M 1 disk
mmcblk0boot1 179:64 0 4M 1 disk
- Run the following command to resize the rootfs to the max capacity
parted ---pretend-input-tty /dev/mmcblk0 print <<__END__
Fix
__END__
parted /dev/mmcblk0 resizepart 10 100%
resize2fs /dev/mmcblk0p10
Remenber to change the patition numbers to the correct ones!!
Would it be possible to define the partition size statically instead of dynamic resizing? I guess there might be some related configurations in the meta layer.
Hi @andrew.hess ,
You can modify the system partition configuration file in meta-rity/meta/wic/rity.wks.in .
The configuration file is written in Yocto kickstart format.
Here is an online guideline for Yocto kickstart(.wks): 8 OpenEmbedded Kickstart (.wks) Reference — The Yocto Project ® 5.1.999 documentation
Note that the partition size of mmc0boot0 and mmc0boot1 are not able to be modified.
For the size adjustment of the rootfs partition:
--source: This option is a Wic-specific option that names the source of the data that populates the partition. The most common value for this option is “rootfs”, but you can use any value that maps to a valid source plugin. For information on the source plugins, see the “Using the Wic Plugin Interface” section in the Yocto Project Development Tasks Manual.
If you use --source rootfs, Wic creates a partition as large as needed and fills it with the contents of the root filesystem pointed to by the -r command-line option or the equivalent root filesystem derived from the -e command-line option. The filesystem type used to create the partition is driven by the value of the --fstype option specified for the partition. See the entry on --fstype that follows for more information.
If you use --source plugin-name, Wic creates a partition as large as needed and fills it with the contents of the partition that is generated by the specified plugin name using the data pointed to by the -r command-line option or the equivalent root filesystem derived from the -e command-line option. Exactly what those contents are and filesystem type used are dependent on the given plugin implementation.
If you do not use the --source option, the wic command creates an empty partition. Consequently, you must use the --size option to specify the size of the empty partition.