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.

Compiler/TDA2SA: How much space is needed to build yocto for TDA2X platform

Part Number: TDA2SA

Tool/software: TI C/C++ Compiler

Hi all, 

      I wanted to build a smaller linux file system for TDA2X platform, so I follow the "VisionSDK_Linux_UserGuide-3.7Build Linux Vision SDK file-system" to do it(as shown below). It seems so hard that I meets many problems during building the yocto:

1. I use a mobile computer which has 8-core cpu(8000MHz per cpu) to build the yocto system, and the Home folder space only has 100G.

2.I quickly found that 100G is not enough for installing the ti-processor-sdk-linux-automotive-dra7xx-evm-03.02.00.03-installer.bin and download the yocto project to build. So I had to mount an external hard disk(1T) to rebuild the yocto file-system, and now it excutes to 70% (6837/9549), it's used 324G space for the ti-sdk and the yocto project. 

3. The cpu is running so quickly when it excutes to about 60%, that the computer constantly restarts for buliding the yocto again, so I had to reduce BB_NUMBER_THREADS from 6 to 3 in the file local.conf, and also the PARALLEL_MAKE = "-j 6" changes to PARALLEL_MAKE = "-j 3", but it still restarts sometimes.

I continue to do this inefficiently. I don’t know whether my mobile hard disk space is enough or what kind of computer I should use to do this, could anybody help me please?Thanks all.

  • Hi Jason,

    Yocto tries to use as many resources as it is available to get the job done as quickly as possible.

    You have done the right things to reduce the resources that you are letting the bitbake to use. So you are in the right direction.

    Typically, if you have followed the instructions for the reduced filesystem that is outlined in the Section 3.7, then you will need about 40GB of space at the max to complete the operation - including the installation of the SDK itself. 

    I don't understand the meaning of the mobile computer - is it a laptop? 

    The other thing that makes a difference is whether you are on Native Ubuntu or VM. Native Ubuntu often does better.

    Regards

    Karthik

  • Hi Karthik,

            I am so glad to see your reply again.

            It a laptop I mean.So strange that I found the ti-sdk+yocto project would be used more the 300G space.It's that something wrong about the steps I follow as the "3.7Build Linux Vision SDK file-system" ?Everytime when I encountered an error, I would use the Ctrl+c to stop the running task without doing "bitbake xxx -c cleanall" next start time, is it the reason why the project takes up more and more space? Or that's something wrong with the env I set before?But I am sure I follow the steps strictly from Chapter2~4, hope your reply.

           Regards

           Jason

  • Hi Karthik,

           I compile the task of building the yocto file system near to the end, and found an error as follows:

    WARNING: linux-ti-staging-4.19.73+gitAUTOINC+31275c05a1-r7a.arago5.psdkla do_package_qa: QA Issue: linux-ti-staging: /kernel-module-omap-hdq-4.19.73-g31275c05a1/lib/modules/4.19.73-g31275c05a1/kernel/drivers/w1/masters/omap_hdq.ko is owned by uid 0, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]
    WARNING: linux-ti-staging-4.19.73+gitAUTOINC+31275c05a1-r7a.arago5.psdkla do_package_qa: QA Issue: linux-ti-staging: /kernel-module-gcm-4.19.73-g31275c05a1/lib/modules/4.19.73-g31275c05a1/kernel/crypto/gcm.ko is owned by uid 0, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]
    WARNING: linux-ti-staging-4.19.73+gitAUTOINC+31275c05a1-r7a.arago5.psdkla do_package_qa: QA Issue: linux-ti-staging: /kernel-module-mtd-nandecctest-4.19.73-g31275c05a1/lib/modules/4.19.73-g31275c05a1/kernel/drivers/mtd/tests/mtd_nandecctest.ko is owned by uid 0, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]
    WARNING: linux-ti-staging-4.19.73+gitAUTOINC+31275c05a1-r7a.arago5.psdkla do_package_qa: QA Issue: linux-ti-staging: /kernel-module-gadgetfs-4.19.73-g31275c05a1/lib/modules/4.19.73-g31275c05a1/kernel/drivers/usb/gadget/legacy/gadgetfs.ko is owned by uid 0, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]
    WARNING: linux-ti-staging-4.19.73+gitAUTOINC+31275c05a1-r7a.arago5.psdkla do_package_qa: QA Issue: linux-ti-staging: /kernel-module-ftdi-sio-4.19.73-g31275c05a1/lib/modules/4.19.73-g31275c05a1/kernel/drivers/usb/serial/ftdi_sio.ko is owned by uid 0, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]
    WARNING: linux-ti-staging-4.19.73+gitAUTOINC+31275c05a1-r7a.arago5.psdkla do_package_qa: QA Issue: linux-ti-staging: /kernel-module-sha512-arm-4.19.73-g31275c05a1/lib/modules/4.19.73-g31275c05a1/kernel/arch/arm/crypto/sha512-arm.ko is owned by uid 0, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]
    ERROR: tisdk-rootfs-image-1.0-r0 do_rootfs: Error executing a python function in exec_python_func() autogenerated:

    The stack trace of python calls that resulted in this exception/failure was:
    File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
    0001:
    *** 0002:license_create_manifest(d)
    0003:
    File: '/home/gale/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/sources/oe-core/meta/classes/license_image.bbclass', lineno: 31, function: license_create_manifest
    0027:
    0028: pkg_dic[pkg_name] = oe.packagedata.read_pkgdatafile(pkg_info)
    0029: if not "LICENSE" in pkg_dic[pkg_name].keys():
    0030: pkg_lic_name = "LICENSE_" + pkg_name
    *** 0031: pkg_dic[pkg_name]["LICENSE"] = pkg_dic[pkg_name][pkg_lic_name]
    0032:
    0033: rootfs_license_manifest = os.path.join(d.getVar('LICENSE_DIRECTORY'),
    0034: d.getVar('IMAGE_NAME'), 'license.manifest')
    0035: write_license_files(d, rootfs_license_manifest, pkg_dic)
    Exception: KeyError: 'LICENSE_gnu-config'

    ERROR: tisdk-rootfs-image-1.0-r0 do_rootfs: Function failed: license_create_manifest
    ERROR: Logfile of failure stored in: /home/gale/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/build/arago-tmp-external-arm-toolchain/work/dra7xx_evm-linux-gnueabi/tisdk-rootfs-image/1.0-r0/temp/log.do_rootfs.29203
    ERROR: Task (/home/gale/ti-processor-sdk-linux-automotive-dra7xx-evm-6.00.00.03/yocto-layers/sources/meta-arago/meta-arago-distro/recipes-core/images/tisdk-rootfs-image.bb:do_rootfs) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 8586 tasks of which 7694 didn't need to be rerun and 1 failed.
    NOTE: Writing buildhistory

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Could you have good idea about this problem?

    Regards

    Jason

  • Hi Jason,

    Glad to see that you have been able to move to the last step.

    Since you already created another ticket: https://e2e.ti.com/support/processors/f/791/t/881932 to track the new problem, I will go ahead and close this thread.

    Regards

    Karthik