Hello
I am now building YOcto image froum source for WP76xx
I would like to reduce image size
- any tips \ pointers
- I have no use pf Python and would like to totally remove it \ remove as many python packages as possible, how can I do that ?
Hello
I am now building YOcto image froum source for WP76xx
I would like to reduce image size
does this help?
this was my first attempt , no not working
Have you modified ./meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc?
yes, I added the following to
meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc
IMAGE_INSTALL_remove = “python”
IMAGE_INSTALL_remove = “python3-native”
IMAGE_INSTALL_remove = “python-m2crypto-native”
IMAGE_INSTALL_remove = “pathon-native”
IMAGE_INSTALL_remove = “python-setuptools-native”
but image size remains the same
any ideas?
how about this?
is it the same?
yes it is the same. still python packages are not removed from image
But still the yocto image size is the same…
I think python is needed for the image.
Any reason why you need to reduce the image size?
yes, I am placing a lot of code on the device, and need to support OTA, so I am reaching a hard limit on code size.
so Python seems like the most effective size reduction
if you have any other suggestions I would they are all welcomed
how big is your yocto cwe image size now?
Have you increased the image size limit here?
./meta-swi/meta-swi-mdm9x28/conf/machine/swi-mdm9x28.conf
--> change UBI_ROOTFS_SIZE ?= "48MiB"
Another idea is to put the required libraries to SD card or “userapp” partition, and then create
symbolic link during power on.
Here is an example to put ffmpeg library in SD card and create symbolic link to /usr/lib folder