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/TMDSICE3359: Boot time optimization

Part Number: TMDSICE3359
Other Parts Discussed in Thread: AM3359

Tool/software: Linux

sdk 5.01

Linux RT arago.

AM3359 Industrial Communications Engine (ICE)

Hi!
I have to minimize the time of boot of ICE.

So, I have remove the sevices, by "systemctl disable [service]" and by remove the links from rcX.d.
Result: the boot time has no changed.

Am I have to setup the uboot? By changing the dts-files?

  • Hi VLeshka,

    Please refer to the below user guides regarding boot time optimization:

    Regards,
    Pavel

  • Hi!

    From your content I came to link http://arago-project.org/wiki/index.php/Setting_Up_Build_Environment

    I have made all operations to:

    $ cd tisdk
    $ ./oe-layertool-setup.sh -f configs/arago-rocko-config.txt
    $ cd build
    $ . conf/setenv
    $ TOOLCHAIN_PATH=$HOME/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf MACHINE=am335x-evm bitbake $HOME/tisdk/sources/oe-core/meta/recipes-core/images/core-image-minimal

    The result is 1 error:

    ~/tisdk/build$ TOOLCHAIN_PATH=$HOME/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf MACHINE=am335x-evm bitbake $HOME/tisdk/sources/oe-core/meta/recipes-core/images/core-image-minimal
    NOTE: Your conf/bblayers.conf has been automatically updated.
    NOTE: Your conf/bblayers.conf has been automatically updated.
    NOTE: Started PRServer with DBfile: /home/vl/tisdk/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 40815, PID: 8645
    WARNING: /home/vl/tisdk/sources/oe-core/meta/recipes-core/ovmf/ovmf-shell-image.bb: Exception during build_dependencies for create_shar
    WARNING: /home/vl/tisdk/sources/oe-core/meta/recipes-core/ovmf/ovmf-shell-image.bb: Error during finalise of /home/vl/tisdk/sources/oe-core/meta/recipes-core/ovmf/ovmf-shell-image.bb
    ERROR: ExpansionError during parsing /home/vl/tisdk/sources/oe-core/meta/recipes-core/ovmf/ovmf-shell-image.bb
    Traceback (most recent call last):
    bb.data_smart.ExpansionError: Failure expanding variable create_shar, expression was # copy in the template shar extractor script
    cp /home/vl/tisdk/sources/oe-core/meta/files/toolchain-shar-extract.sh /home/vl/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/ovmf-shell-image/1.0-r0/x86_64-deploy-ovmf-shell-image-populate-sdk/arago-2018.10-toolchain-2018.10.sh
    
    rm -f /home/vl/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/ovmf-shell-image/1.0-r0/temp/pre_install_command /home/vl/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/ovmf-shell-image/1.0-r0/temp/post_install_command
    
    if [ 1 -eq 1 ] ; then
    cp /home/vl/tisdk/sources/oe-core/meta/files/toolchain-shar-relocate.sh /home/vl/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/ovmf-shell-image/1.0-r0/temp/post_install_command
    fi
    cat << "EOF" >> /home/vl/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/ovmf-shell-image/1.0-r0/temp/pre_install_command
    
    EOF
    
    cat << "EOF" >> /home/vl/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/ovmf-shell-image/1.0-r0/temp/post_install_command
    
    EOF
    sed -i -e '/@SDK_PRE_INSTALL_COMMAND@/r /home/vl/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/ovmf-shell-image/1.0-r0/temp/pre_install_command' \
    -e '/@SDK_POST_INSTALL_COMMAND@/r /home/vl/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/ovmf-shell-image/1.0-r0/temp/post_install_command' \
    /home/vl/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/ovmf-shell-image/1.0-r0/x86_64-deploy-ovmf-shell-image-populate-sdk/arago-2018.10-toolchain-2018.10.sh
    
    # substitute variables
    sed -i -e 's#@SDK_ARCH@#x86_64#g' \
    -e 's#@SDKPATH@#/tmp/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy#g' \
    -e 's#@SDKEXTPATH@#~/arago_sdk#g' \
    -e 's#@OLDEST_KERNEL@#3.2.0#g' \
    -e 's#@REAL_MULTIMACH_TARGET_SYS@#armv7ahf-neon-linux-gnueabi#g' \
    -e 's#@SDK_TITLE@#${@d.getVar("SDK_TITLE").replace('&', '\&')}#g' \
    -e 's#@SDK_VERSION@#2018.10#g' \
    -e '/@SDK_PRE_INSTALL_COMMAND@/d' \
    -e '/@SDK_POST_INSTALL_COMMAND@/d' \
    -e 's#@SDK_GCC_VER@#${@oe.utils.host_gcc_version(d)}#g' \
    /home/vl/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/ovmf-shell-image/1.0-r0/x86_64-deploy-ovmf-shell-image-populate-sdk/arago-2018.10-toolchain-2018.10.sh
    
    # add execution permission
    chmod +x /home/vl/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/ovmf-shell-image/1.0-r0/x86_64-deploy-ovmf-shell-image-populate-sdk/arago-2018.10-toolchain-2018.10.sh
    
    # append the SDK tarball
    cat /home/vl/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/ovmf-shell-image/1.0-r0/x86_64-deploy-ovmf-shell-image-populate-sdk/arago-2018.10-toolchain-2018.10.tar.xz >> /home/vl/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/ovmf-shell-image/1.0-r0/x86_64-deploy-ovmf-shell-image-populate-sdk/arago-2018.10-toolchain-2018.10.sh
    
    # delete the old tarball, we don't need it anymore
    rm /home/vl/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/ovmf-shell-image/1.0-r0/x86_64-deploy-ovmf-shell-image-populate-sdk/arago-2018.10-toolchain-2018.10.tar.xz
    which triggered exception OSError: [Errno 12] Cannot allocate memory
    
    
    Summary: There were 2 WARNING messages shown.
    Summary: There was 1 ERROR message shown, returning a non-zero exit code.
    vl@VLVIRTUAL:~/tisdk/build$

    I hope you tell me about this error (or it is unimportant).

  • VLeshka VV said:

    This link provide old info that might be not up to date. Please refer to the below links for customizing the default TI PSDK:

    Note also that we have minimal rootfs that you might use to boot faster, check below pointers:

    ti-processor-sdk-linux-am335x-evm-05.03.00.07/filesystem/arago-tiny-image-am335x-evm.tar.xz

    Regards,
    Pavel

  • In 1.2.2.2. Build Steps:
    the command:
    ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-05.01.00.11-config.txt

    create the directory:
    tisdk/sources/meta-processor-sdk

    the shows an errors:

    error: inflate: data stream error (incorrect header check)
    error: File ad1d9c52ff7210ca2df9b57f2183ea9c7934685e (arago-project.org/.../1d9c52ff7210ca2df9b57f2183ea9c7934685e) corrupt
    error: Unable to find ad1d9c52ff7210ca2df9b57f2183ea9c7934685e under arago-project.org/.../meta-processor-sdk.git
    Cannot obtain needed tree ad1d9c52ff7210ca2df9b57f2183ea9c7934685e
    while processing commit e9c4216f6407e86bd04ad7b544dbebde346e6135.
    error: fetch failed.
    ERROR: Could not clone repository at arago-project.org/.../meta-processor-sdk.git

    and delete the directory tisdk/sources/meta-processor-sdk.

    I. e., error on the lost of file in http://arago-project.org/git.

  • VLeshka,

    VLeshka VV said:

    In 1.2.2.2. Build Steps:
    the command:
    ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-05.01.00.11-config.txt

    create the directory:
    tisdk/sources/meta-processor-sdk

    the shows an errors:

    error: inflate: data stream error (incorrect header check)

    I would suggest you to open new e2e thread regarding errors during Yocto Layer configuration.

    Let me know if you have any further questions regarding boot time optimization in u-boot or linux kernel.

    Regards,
    Pavel

  • Pavel Botev,

    ok, I'll open the new e2e thread.