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-AM335X: How to trim the filesystem

Part Number: PROCESSOR-SDK-AM335X


Tool/software: Linux

Dear

I am now working a project which use am335x sdk.

I need to trim the filesystem.

I try IMAGE_INSTALL, but failed. It said that the command is not exist .

Can you help me to know how to trim the filesystem?

Thanks

Kelvin

  • The software team have been notified. They will respond here.
  • Hi Kevin,

    You can find at the link below a tutorial about how to make a custom based file system:
    processors.wiki.ti.com/.../Sitara_Linux_Training:_Getting_Started_with_Openembedded

    BR
    Tsvetolin Shulev
  • Dear Tsvetolin

    Thanks lot for your help.

    I follow your instruct with the process while unfortunately I blocked by the first step.

    When I did the setup , I only see sth like below

    Not the while folder tree as the tutorial .

    Can you help me solve the problem?

    Have a good day.

    Thanks

    Kelvin

  • To trim the filesystem blackmask the recipe of package you do not want on include in your filesystem and remove it from IMAGE_INSTALL by adding the lines below to build/conf/local.conf. Use the MACHINE=am335x-evm bitbake tisdk-rootfs-image or MACHINE=am335x-evm bitbake arago-base-tisdk-image just mark the packages you don't want to include in the final rootfs.

    BBMASK="<layer>/<path to recipe>/revipe_name_<version>.bb"
    IMAGE_INSTALL_remove = "<recipe_name>"

  • Dear Kemal

    Thank you very much for your guidance.


    I follow the prompts of  Sitara Linux Training: Getting Started with Openembedded, try to do Lab1, but in addition to a little mistake, bash suggested below.

    kelvinchan@kelvinchan:~/oe-dir/tisdk/build$ MACHINE=am335x-evm bitbake hello-world
    Loading cache: 100% |############################################| Time: 0:00:00
    Loaded 3258 entries from dependency cache.
    WARNING: No recipes available for:
      /home/kelvinchan/oe-dir/tisdk/sources/meta-openamp/recipes-bsp/device-tree/device-tree-generation_%.bbappend
    NOTE: Resolving any missing task queue dependencies
    
    Build Configuration:
    BB_VERSION        = "1.32.0"
    BUILD_SYS         = "x86_64-linux"
    NATIVELSBSTRING   = "Ubuntu-16.04"
    TARGET_SYS        = "arm-linux-gnueabi"
    MACHINE           = "am335x-evm"
    DISTRO            = "arago"
    DISTRO_VERSION    = "2017.06"
    TUNE_FEATURES     = "arm armv7a vfp thumb neon       callconvention-hard"
    TARGET_FPU        = "hard"
    meta-custom       = "MyLab1Branch:368248838393df171efc3cbea71bef248a40bd8b"
    meta-processor-sdk = "HEAD:2b7f7b00654eb3faaea7c66271ebe508b9ffc019"
    meta-arago-distro 
    meta-arago-extras = "HEAD:8f49ed67d0627a04ac72fd388fda7756273ba2d7"
    meta-browser      = "HEAD:08576b03af624b65ad949c410d84c11c7d1f2e39"
    meta-openamp      = "HEAD:8a214032bfb7e8124bc1485c70c69f7d60abb819"
    meta-qt5          = "HEAD:2c9f0e4eb0e9097f6f872ec1e1d81768a8ab5f1b"
    meta-networking   
    meta-ruby         
    meta-python       
    meta-oe           
    meta-gnome        = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
    meta-ti           = "HEAD:a18d57af8384ced25996739bb66d197c69efb77b"
    meta-linaro-toolchain 
    meta-optee        = "HEAD:49b0f32d7e955f250b0022d1b2f403f45a2c2d9c"
    meta              = "HEAD:e3911133ee9aad7cc3ae89faea80a097f6614fab"
    
    Initialising tasks: 100% |#######################################| Time: 0:00:00
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    WARNING: hello-world-1.0-r0 do_fetch: Failed to fetch URL git://gitorious.org/sitara-bootcamp/hello-world.git;protocol=git, attempting MIRRORS if available
    ERROR: hello-world-1.0-r0 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-MFOhysOd3m"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export no_proxy="localhost,127.0.0.0/8,::1"; export NO_PROXY="localhost,127.0.0.0/8,::1"; export https_proxy="http://127.0.0.1:41155/"; export HTTPS_PROXY="http://127.0.0.1:41155/"; export http_proxy="http://127.0.0.1:41155/"; export HTTP_PROXY="http://127.0.0.1:41155/"; export PATH="/home/kelvinchan/oe-dir/tisdk/sources/oe-core/scripts:/home/kelvinchan/oe-dir/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/arm-linux-gnueabi:/home/kelvinchan/oe-dir/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm/usr/bin/crossscripts:/home/kelvinchan/oe-dir/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/sbin:/home/kelvinchan/oe-dir/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin:/home/kelvinchan/oe-dir/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/sbin:/home/kelvinchan/oe-dir/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/bin:/home/kelvinchan/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:/home/kelvinchan/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:/home/kelvinchan/oe-dir/tisdk/sources/oe-core/scripts:/home/kelvinchan/oe-dir/tisdk/sources/meta-browser/scripts:/home/kelvinchan/oe-dir/tisdk/sources/bitbake/bin:/home/kelvinchan/bin:/home/kelvinchan/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"; export HOME="/home/kelvinchan"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://gitorious.org/sitara-bootcamp/hello-world.git /home/kelvinchan/oe-dir/tisdk/downloads/git2/gitorious.org.sitara-bootcamp.hello-world.git --progress failed with exit code 128, output:
    Cloning into bare repository '/home/kelvinchan/oe-dir/tisdk/downloads/git2/gitorious.org.sitara-bootcamp.hello-world.git'...
    fatal: unable to connect to gitorious.org:
    gitorious.org[0: 64.13.172.37]: errno=Connection refused
    
    
    ERROR: hello-world-1.0-r0 do_fetch: Fetcher failure for URL: 'git://gitorious.org/sitara-bootcamp/hello-world.git;protocol=git'. Unable to fetch URL from any source.
    ERROR: hello-world-1.0-r0 do_fetch: Function failed: base_do_fetch
    ERROR: Logfile of failure stored in: /home/kelvinchan/oe-dir/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/hello-world/1.0-r0/temp/log.do_fetch.12111
    ERROR: Task (/home/kelvinchan/oe-dir/tisdk/sources/meta-custom/recipes-core/hello-world/hello-world_1.0.bb:do_fetch) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 361 tasks of which 360 didn't need to be rerun and 1 failed.
    
    Summary: 1 task failed:
      /home/kelvinchan/oe-dir/tisdk/sources/meta-custom/recipes-core/hello-world/hello-world_1.0.bb:do_fetch
    Summary: There were 2 WARNING messages shown.
    Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
    kelvinchan@kelvinchan:~/oe-dir/tisdk/build$ 
    

    I know that there is no proxy set up, but I do not know how to effectively set up a useful server address and port. Mainly do not know how to replace the 'myproxy.example.com:1080/' value, ask whether the proposal in this regard.

    I am grateful for any and all recommendations

    Best regards,

    Kelvin

  • Please, apply this patch.
    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/0001_2D00_Fix_2D00_git_2D00_source_2D00_url.patch

    $ cd sources/meta-custom/
    $ git apply 0001-Fix-git-source-url.patch