How to set IMAGE_ROOTFS_SIZE ?


sazzalin@...
 

Hello,

I am trying to set a default size for the rootfs.jffs2 generated by Yocto.
For this purpose, if I am not wrong, this can be done using the IMAGE_ROOTFS_SIZE option.

But where  I have to configure this option ? So, in which configuration file ?
It seems that this detail has not been specified in the reference manual.

Thanks,
Simon


Michael Opdenacker
 

Hello Simone,

On 10/29/21 10:21 AM, Simone Azzalin wrote:
Hello,

I am trying to set a default size for the rootfs.jffs2 generated by
Yocto.
For this purpose, if I am not wrong, this can be done using the
IMAGE_ROOTFS_SIZE option.

But where  I have to configure this option ? So, in which
configuration file ?

You can define it either in your image recipe (if you have a custom
one), or in conf/local.conf.

It seems that this detail has not been specified in the reference manual.

True, but this is a more generic mechanism that we chose not to repeat
for each variable. Essentially, the documentation at
https://docs.yoctoproject.org/dev-manual/common-tasks.html#customizing-images-using-local-conf
explains that your image can be customized through conf/local.conf or by
writing your own image recipe.

I agree the manual is so big that this may not be clear.

Cheers
Michael.


Thanks,
Simon



--
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


Michael Opdenacker
 

Hello,

Copying the docs@ mailing list.

On 10/29/21 5:49 PM, Michael Opdenacker wrote:
Hello Simone,

On 10/29/21 10:21 AM, Simone Azzalin wrote:
Hello,

I am trying to set a default size for the rootfs.jffs2 generated by
Yocto.
For this purpose, if I am not wrong, this can be done using the
IMAGE_ROOTFS_SIZE option.

But where  I have to configure this option ? So, in which
configuration file ?
You can define it either in your image recipe (if you have a custom
one), or in conf/local.conf.

It seems that this detail has not been specified in the reference manual.
True, but this is a more generic mechanism that we chose not to repeat
for each variable. Essentially, the documentation at
https://docs.yoctoproject.org/dev-manual/common-tasks.html#customizing-images-using-local-conf
explains that your image can be customized through conf/local.conf or by
writing your own image recipe.

I agree the manual is so big that this may not be clear.

All things considered, the documentation for some other parameters
explains where they can typically be set. This should definitely help
people just quickly reading the specific reference documentation for a
given variable. I'll submit a documentation patch to address this need.

Many thanks for asking!
Michael.

--
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com