This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/PROCESSOR-SDK-AM57X: Reducing rootfs size

Part Number: PROCESSOR-SDK-AM57X
Other Parts Discussed in Thread: AM5728, FFTLIB

Tool/software: Linux

Hi,

I am trying to clean up the root file system and need advice on the best approach to remove some of the TI packages from the build.  Currently the /usr/share/ti path is taking up 2.4GB:

I would like to know which components are required and which ones can be removed from the usr/share/ti path while still being able to make full use of the DSPs/m4. I am primarily interested in reducing the size of the larger TI packages; ti-sysbios-tree, ti-omp-tree, ti-pdk-tree, ti-framework-components-tree, ti-ipc-tree by removing target SDK files.  I have tried removing packagegroup-arago-toolchain-tisdk-target from IMAGE_INSTALL but it doesn't seem to do the trick.

I am using Yocto, configured with processor-sdk-04.03.00.05-config.txt to build tisdk-rootfs-image. I am working with an am5728 processor so build with MACHINE=am57xx-evm. From a yocto/bitbake approach, what is the correct way to clean-up and remove non-essential files? 

Thanks,

Dallas

  • Hello Dallas,

    The correct way to clean-up and remove non-essential files is to PACKAGE_INSTALL_remove and BBMASK their recipes in conf/local.conf file, but sometimes it is unavoidable to edit the build target images and packagegroups since some packages or features cannot be controlled by conf/local.conf file. Sometimes it is a way faster to edit the build target images and packagegroups instead of describing all the packages you do not need in your conf/local.conf file.

    The best approach to reduce the rootfs, will depend on your goal. If your goal is removing some packages from tisdk rootfs image and reduce its size a bit, building the tisdk-rootfs-image target and describing the packages you do not want on it in conf/local.conf will be the best, but if you are planing to reduce the 2.4GB image to fit it in 16Mb QSPI flash, building a base-tisdk-image and appending a features you need on it in conf/local.conf file will be the best.

    Nobody can tell you which exact packages you will not need on your board. You should figure out these packages by yourself.

    Best regards,
    Kemal

  • Hi,kemal.

    Can you tell me what ti-fftlib-tree\ti-ipc-tree.....use for? 

    Does TI have a link/file to describe those file?

    Thanks.

  • Please, check this page for fftlib, you can find the FFT User's Manual within its installer package and check this page for ipc.