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-AM437X: How to build RAM filesystem and RAM disk only with NAND

Part Number: PROCESSOR-SDK-AM437X

Tool/software: Linux

Hi,

We have an customed Am437x-gp-evm board, It is work well now with Mr. Kemal support.  As the ubi filesystem in NAND is too large, it occupies almost all the NAND space, our qt-Application cann't be put into the NAND.We plan to put filesystem into RAM  and config kernel menuconfig:General setup->Initial RAM filesystem and RAM disk (initramfs/initrd) support(Am437x/rootfs)Initramfs source file(s) . We get the zImage and transfer it to NAND. it cann't work,  I attach the reset log in attachment.

All the  images transfer to NAND are:

NAND erase.chip

1)tftpboot 0x82000000 MLO

nand write 0x82000000 NAND.SPL

nand write 0x82000000 NAND.SPL.backup1

nand write 0x82000000 NAND.SPL.backup2

nand write 0x82000000 NAND.SPL.backup3

2)tftpboot 0x82000000 u-boot.img

nand write 0x82000000 NAND.u-boot

3)tftpboot 0x82000000 zImage

(bytes transferred = 97051136)

nand write 0x82000000 NAND.kernel

(NAND write:device 0 offset 0x300000,size 0x700000 7340032 bytes written: OK)

4)tftpboot 0x82000000 am437x-gp-evm.dtb

nand write 0x82000000 NAND.u-boot-spl-os

We find the new zImage size is 97051136 bytes, but only writted   7340032 bytes to NAND.

We want to know How to modify the u-boot (written size ) and our plan is practicable. Is there any recommended way to implement RAM filesystem with remain more NAND space for application?

Best Regards!

 
U-Boot SPL 2018.01-00444-ge782a78ca9-dirty (Feb 16 2019 - 10:11:27)
Trying to boot from NAND
SPL: Please implement spl_start_uboot() for your board
SPL: Direct Linux boot not active!


U-Boot 2018.01-00444-ge782a78ca9-dirty (Feb 16 2019 - 10:11:27 +0800)

CPU  : AM437X-GP rev 1.2
Model: TI AM437x GP EVM
DRAM:  1 GiB
PMIC:  TPS65218
NAND:  512 MiB
MMC:   OMAP SD/MMC: 0
Net:   cpsw, usb_ether
Hit any key to stop autoboot:  0 
MMC: no card present
MMC: no card present
MMC: no card present
MMC: no card present
starting USB...
USB0:   Register 2000440 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Device 0: device type unknown
... is now current device
MMC: no card present
** Bad device mmc 0 **
** Bad device usb 0 **
Booting from nand ...

NAND read: device 0 offset 0x100000, size 0x80000
 524288 bytes read: OK

NAND read: device 0 offset 0x300000, size 0x700000
 7340032 bytes read: OK
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8fff0000, end 8ffffe54 ... OK

Starting kernel ...

  • Hello user3529609,

    At first glance this doesn't seem practicable. As a different solution you can refer to this thread and build an arago-base-tisdk-image-am437x-evm.ubi image with Qt support. The final size of UBI image was reported by the customer as 240 MB with Qt support and 186 MB for Qt without qtwebengine.

    Best regards,
    Kemal

  • Dear Kemal,

    We'll try with your instruction and want to know the rootfs size. But I feel very sorry I don't know how to build an arago-base-tisdk-image-am437x-evm.ubi image with Qt support. I don't know where to add IMAGE_INSTALL += "packagegroup-arago-qte" and how to build the image.  The thread you shown I can't learn. Can you show me a build steps? Our SDK version is ti-processor-sdk-linux-am437x-evm-05.01.00.11. We build file system with cmd "./create-ubifs.sh ./rootfs", rootfs is a directory extracted from the SDK arago-base-tisdk-image-am437x-evm.ubi.

    thank you!

  • You can build the arago-base-tisdk-image-am437x-evm.ubi with Qt support in this way.

    Open a terminal window and type.
    $ sudo dpkg-reconfigure dash
    (Select "No" when prompted)

    Close the current terminal where you have executed dpkg-reconfigure dash command and open a new one.

    $ sudo apt-get install git build-essential python diffstat texinfo gawk chrpath dos2unix wget unzip socat doxygen libc6:i386 libncurses5:i386 libstdc++6:i386 libz1:i386 gcc-multilib g++-multilib

    $ wget https://releases.linaro.org/components/toolchain/binaries/7.2-2017.11/arm-linux-gnueabihf/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz

    $ tar -Jxvf gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz -C $HOME

    $ git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk
    $ cd tisdk
    $ ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-05.01.00.11-config.txt
    $ cd build
    $ . conf/setenv
    $ echo 'IMAGE_INSTALL += "packagegroup-arago-qte ti-sgx-ddk-km ti-sgx-ddk-um ti-sgx-ddk-um-plugins"' >> conf/local.conf

    Change the MKUBIFS_ARGS and UBINIZE_ARGS values in <tisdk>/sources/meta-ti/conf/machine/am437x-evm.conf and MKUBIFS_ARGS_am437x-evm in <tisdk>/sources/meta-processor-sdk/conf/distro/include/branding-processor-sdk.inc to match your board's NAND.

    <tisdk>/sources/meta-ti/conf/machine/am437x-evm.conf
    ----------------------------------------------------------------------------------------
    MKUBIFS_ARGS = "-F -m 2048 -e 126976 -c 4095"
    UBINIZE_ARGS = "-m 2048 -p 128KiB -s 2048 -O 2048"
    ----------------------------------------------------------------------------------------

    <tisdk>/sources/meta-processor-sdk/conf/distro/include/branding-processor-sdk.inc
    ----------------------------------------------------------------------------------------
    MKUBIFS_ARGS_am437x-evm     = "-F -m 2048 -e 126976 -c 4095"
    ----------------------------------------------------------------------------------------

    $ export TOOLCHAIN_PATH_ARMV7=$HOME/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf
    $ MACHINE=am437x-evm bitbake arago-base-tisdk-image

    When the build is successfully completed you will find the arago-base-tisdk-image-am437x-evm.ubi in <tisdk>/build/arago-tmp-external-linaro-toolchain/deploy/images/am437x-evm/ directory.

    You can also refer to this similar thread.

    Note: The building will take a long time depending on your host machine configuration and can take up to 202GB space on your HDD and may require 40GB RAM/SWAP size depending for which target, included software configurations and platform you are building.

  • Dear Kemal,
    How to deal with the error:"gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz: Permission denied", when I run " wget releases.linaro.org/.../gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz",

    --2019-02-20 15:39:09-- releases.linaro.org/.../gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz
    Resolving releases.linaro.org (releases.linaro.org)... 13.228.101.204
    Connecting to releases.linaro.org (releases.linaro.org)|13.228.101.204|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: publishing-ap-linaro-org.s3.amazonaws.com/.../gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz [following]
    --2019-02-20 15:39:12-- publishing-ap-linaro-org.s3.amazonaws.com/.../gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz
    Resolving publishing-ap-linaro-org.s3.amazonaws.com (publishing-ap-linaro-org.s3.amazonaws.com)... 52.219.32.20
    Connecting to publishing-ap-linaro-org.s3.amazonaws.com (publishing-ap-linaro-org.s3.amazonaws.com)|52.219.32.20|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 108376348 (103M) [application/octet-stream]
    gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz: Permission denied

    Cannot write to ‘gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz’ (Success).

    Best Regards!
  • Type change directory cd command once, press enter and start everything from the beginning there.

  • Dear Kemal,
    I download and build the ubi following the steps you shown, I meet error when run "MACHINE=am437x-evm bitbake arago-base-tisdk-image", it prompt:
    NOTE: Your conf/bblayers.conf has been automatically updated.
    NOTE: Your conf/bblayers.conf has been automatically updated.
    ERROR: OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Do not use Bitbake as root.

    Summary: There was 1 ERROR message shown, returning a non-zero exit code.
    root@cr:~/tisdk/build#

    Could you tell me how to fix it?

    Best Regards!
  • Please, do not use Bitbake as root and start everything from the beginning.

  • Dear Kemal,

    It take a long time to build and still works by now,  I have only 10G HDD free space  and I don't know if it  is enough for the ubi building. 

    We have no machine has more than 202GB HDD free space  for building. We may get a new machine if needed.

    Best Regards!



  • With the above configuration the arago-base-tisdk-image-am437x-evm.ubi is 264.2 MB and the build system occupies 73GB from the HDD.

  • Hi kemal,

    I get a 300GB HDD and 40GB SWAP machine, spend a long time to build the ubi, Only finished 42% the total tasks up to now. there are errors information when building:

    cr@ubuntu:~/tisdk/build$  MACHINE=am437x-evm bitbake arago-base-tisdk-image
    NOTE: Your conf/bblayers.conf has been automatically updated.
    NOTE: Your conf/bblayers.conf has been automatically updated.
    Parsing recipes: 100% |##########################################| Time: 0:03:22
    Parsing of 3159 .bb files complete (0 cached, 3159 parsed). 4064 targets, 491 skipped, 0 masked, 0 errors.
    WARNING: No recipes available for:
      /home/cr/tisdk/sources/meta-processor-sdk/recipes-bsp/common-csl-ip/common-csp-ip_git.bbappend
      /home/cr/tisdk/sources/meta-processor-sdk/recipes-devtools/python/python3-native_3.5.2.bbappend
    NOTE: Resolving any missing task queue dependencies

    Build Configuration:
    BB_VERSION           = "1.36.0"
    BUILD_SYS            = "x86_64-linux"
    NATIVELSBSTRING      = "ubuntu-16.04"
    TARGET_SYS           = "arm-linux-gnueabi"
    MACHINE              = "am437x-evm"
    DISTRO               = "arago"
    DISTRO_VERSION       = "2018.08"
    TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard"
    TARGET_FPU           = "hard"
    meta-processor-sdk   = "HEAD:012bf1c42b1826380ca7557e5185fe88f939a93c"
    meta-ros             = "HEAD:e2566402ab108a19634354a934788109422cf409"
    meta-arago-distro    
    meta-arago-extras    = "HEAD:85f191c83f7cd7b3b4fb6df08b22fabe24e25773"
    meta-browser         = "HEAD:26d50665e2f7223c5f4ad7481a8d2431e7cb55fb"
    meta-qt5             = "HEAD:682ad61c071a9710e9f9d8a32ab1b5f3c14953d1"
    meta-networking      
    meta-python          
    meta-oe              
    meta-gnome           
    meta-multimedia      = "HEAD:eae996301d9c097bcbeb8046f08041dc82bb62f8"
    meta-ti              = "HEAD:3f26d1f94fbc87740fdfe33292c904e865257e81"
    meta-linaro-toolchain
    meta-optee           = "HEAD:75dfb67bbb14a70cd47afda9726e2e1c76731885"
    meta                 = "HEAD:7d518d342eb67d25aa071fb08d03f06d6da576c6"

    Initialising tasks: 100% |#######################################| Time: 0:00:18
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    WARNING: openssl-native-1.0.2o-r0.arago0 do_fetch: Failed to fetch URL www.openssl.org/.../openssl-1.0.2o.tar.gz, attempting MIRRORS if available
    WARNING: python3-native-3.5.3-r1.0 do_fetch: Failed to fetch URL www.python.org/.../Python-3.5.3.tar.xz, attempting MIRRORS if available
    WARNING: util-linux-native-2.30-r0 do_fetch: Failed to fetch URL cdn.kernel.org/.../util-linux-2.30.tar.xz, attempting MIRRORS if available
    WARNING: db-native-1_5.3.28-r1 do_fetch: Failed to fetch URL download.oracle.com/.../db-5.3.28.tar.gz, attempting MIRRORS if available
    WARNING: libpng-native-1.6.31-r0 do_fetch: Failed to fetch URL downloads.sourceforge.netCurrentlCurrently Currently  3 running tasks (678 of 5005)  13% |####                            |
    WARNING: linux-ti-staging-4.14.67+gitAUTOINC+d315a9bb00-r3a.arago5.tisdk1.3 do_fetch: Failed to fetch URL git://git.ti.com/processor-sdk/processor-sdk-linux.git;protocol=git;branch=processor-sdk-linux-4.14.y, attempting MIRRORS if available
    WARNING: external-linaro-toolchain-2017.11-r0.arago36 do_fetch: Failed to fetch URL git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=ti-lsk-linux-4.14.y, attempting MIRRORS if available
    WARNING: libical-2.0.0-r0 do_fetch: Failed to fetch URL github.com/.../libical-2.0.0.tar.gz, attempting MIRRORS if available
    WARNING: external-linaro-toolchain-2017.11-r0.arago36 do_package: QA Issue: external-linaro-toolchain: Files/directories were installed but not shipped in any package:
      /lib/libcilkrts.so.5.0.0
      /lib/libcilkrts.so.5
      /lib/libcilkrts.so
      /lib/libcilkrts.spec
    Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
    external-linaro-toolchain: 4 installed and not shipped files. [installed-vs-shipped]
    WARNING: cmake-native-3.8.2-r0 do_fetch: Failed to fetch URL cmake.org/.../cmake-3.8.2.tar.gz, attempting MIRRORS if available
    WARNING: libsndfile1-1.0.28-r0 do_fetch: Failed to fetch URL www.mega-nerd.com/.../libsndfile-1.0.28.tar.gz, attempting MIRRORS if available
    WARNING: iso-codes-3.75-r0 do_fetch: Failed to fetch URL pkg-isocodes.alioth.debian.org/.../iso-codes-3.75.tar.xz, attempting MIRRORS if available
    WARNING: speexdsp-1.2rc3-r0 do_fetch: Failed to fetch URL downloads.xiph.org/.../speexdsp-1.2rc3.tar.gz, attempting MIRRORS if available
    WARNING: mobile-broadband-provider-info-1_20170310-r0 do_fetch: Failed to fetch URL git://git.gnome.org/mobile-broadband-provider-info, attempting MIRRORS if available
    WARNING: avahi-0.6.32-r0 do_fetch: Failed to fetch URL github.com/.../avaCurreWARNING: libsamplerate0-0.1.9-r1 do_fetch: Failed to fetch URL www.mega-nerd.com/.../libsamplerate-0.1.9.tar.gz, attempting MIRRORS if available
    WARNING: coreutils-8.27-r0 do_fetch: Failed to fetch URL distfiles.gentoo.org/.../coreutils-8.27-man.tar.xz;name=manpages, attempting MIRRORS if available
    WARNING: less-487-r0 do_fetch: Failed to fetch URL www.greenwoodsoftware.com/.../less-487.tar.gz, attempting MIRRORS if available
    ERROR: linux-ti-staging-4.14.67+gitAUTOINC+d315a9bb00-r3a.arago5.tisdk1.3 do_create_srcipk: Function failed: do_create_srcipk (log file is located at /home/cr/tisdk/build/arago-tmp-external-linaro-toolchain/work/am437x_evm-linux-gnueabi/linux-ti-staging/4.14.67+gitAUTOINC+d315a9bb00-r3a.arago5.tisdk1.3/temp/log.do_create_srcipk.101181)
    ERROR: Logfile of failure stored in: /home/cr/tisdk/build/arago-tmp-external-linaro-toolchain/work/am437x_evm-linux-gnueabi/linux-ti-staging/4.14.67+gitAUTOINC+d315a9bb00-r3a.arago5.tisdk1.3/temp/log.do_create_srcipk.101181
    Log data follows:
    | DEBUG: Executing python function sstate_task_prefunc
    | DEBUG: Python function sstate_task_prefunc finished
    | DEBUG: Executing shell function do_create_srcipk
    | Cloning into '/home/cr/tisdk/build/arago-tmp-external-linaro-toolchain/work/am437x_evm-linux-gnueabi/linux-ti-staging/4.14.67+gitAUTOINC+d315a9bb00-r3a.arago5.tisdk1.3/temp-git-shallow-clone'...
    | remote: error: inflate: data stream error (incorrect data check)
    | remote: error: failed to unpack compressed delta at offset 435900272 from /home/cr/tisdk/downloads/git2/git.ti.com.processor-sdk.processor-sdk-linux.git/objects/pack/pack-823a4a591ace78c157b5297f3edb7b20b7b54680.pack
    | remote: error: failed to read object a72065ed64d14aeb3d8504221af3ed6925576c6a at offset 435900268 from /home/cr/tisdk/downloads/git2/git.ti.com.processor-sdk.processor-sdk-linux.git/objects/pack/pack-823a4a591ace78c157b5297f3edb7b20b7b54680.pack
    | remote: fatal: packed object a72065ed64d14aeb3d8504221af3ed6925576c6a (stored in /home/cr/tisdk/downloads/git2/git.ti.com.processor-sdk.processor-sdk-linux.git/objects/pack/pack-823a4a591ace78c157b5297f3edb7b20b7b54680.pack) is corrupt
    | error: git upload-pack: git-pack-objects died with error.
    | fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
    | remote: aborting due to possible repository corruption on the remote side.
    | fatal: early EOF
    | fatal: index-pack failed
    | WARNING: /home/cr/tisdk/build/arago-tmp-external-linaro-toolchain/work/am437x_evm-linux-gnueabi/linux-ti-staging/4.14.67+gitAUTOINC+d315a9bb00-r3a.arago5.tisdk1.3/temp/run.do_create_srcipk.101181:1 exit 128 from 'git clone --depth 400 --branch processor-sdk-linux-4.14.y file://$PWD/.git $gitshallowclone'
    | ERROR: Function failed: do_create_srcipk (log file is located at /home/cr/tisdk/build/arago-tmp-external-linaro-toolchain/work/am437x_evm-linux-gnueabi/linux-ti-staging/4.14.67+gitAUTOINC+d315a9bb00-r3a.arago5.tisdk1.3/temp/log.do_create_srcipk.101181)
    ERROR: Task (/home/cr/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_4.14.bb:do_create_srcipk) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 1917 tasks of which 0 didn't need to be rerun and 1 failed.

    Summary: 1 task failed:
      /home/cr/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_4.14.bb:do_create_srcipk
    Summary: There were 19 WARNING messages shown.
    Summary: There was 1 ERROR message shown, returning a non-zero exit code.
    cr@ubuntu:~/tisdk/build$

    the task 0:< linux-ti-staging-4.14.67+gitAUTOINC+d31519bb00-r3a.arago5.tisdk1.3 do_create_srcipk -xxxs (pid105255) > failed.

    I do the cmd "MACHINE=am437x-evm bitbake arago-base-tisdk-image" when errors occur and  task exit, Is this right?

    It is too often for the same error occur(/home/cr/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_4.14.bb:do_create_srcipk failed  about 200 seconds when runs). How can fix it? 

    Best Regards!

  • This time, you should not start from the beginning. To download all the necessary files before starting to build, you can download am437x-evm-linux-sdk-arago-src-05.01.00.11.tar.xz from this page, extract it, move it to <tisdk>/downloads/ and run it ($ ./get_build_sources.sh source_pkg_list.txt). But this script will also download a lot of software which you do not need while building a base tisdk image with Qt support. Alternatively you can download this archive, move it to <tisdk>/downloads/ and create git2_git.ti.com.processor-sdk.processor-sdk-linux.git.tar.gz.done file next to it ($ touch <tisdk>/downloads/git2_git.ti.com.processor-sdk.processor-sdk-linux.git.tar.gz.done) and continue with the building.

    Note: The arago-base-tisdk-image-am437x-evm.ubi is 264.2 MB and the build system occupies 73GB from the HDD while building it.

  • Hi Kemal,

    I download "git2_git.ti.com.processor-sdk.processor-sdk-linux.git.tar.gz" and build it, it is still the same error. My process is:

    1)copy "git2_git.ti.com.processor-sdk.processor-sdk-linux.git.tar.gz" to <tisdk>/downloads/

    2)touch <tisdk>/downloads/git2_git.ti.com.processor-sdk.processor-sdk-linux.git.tar.gz.done (I'm sorry I don't know how to create "git2_git.ti.com.processor-sdk.processor-sdk-linux.git.tar.gz.done" from the file "git2_git.ti.com.processor-sdk.processor-sdk-linux.git.tar.gz").

    3)cr@ubuntu:~/tisdk/build$ MACHINE=am437x-evm bitbake arago-base-tisdk-image



    Is this right?

    I use the first way(download a lot of software) now, I download am437x-evm-linux-sdk-arago-src-05.01.00.11.tar.xz, extract it, move it to <tisdk>/downloads/ and run "cr@ubuntu:~/tisdk/downloads$  ./get_build_sources.sh source_pkg_list.txt',  It is downloading files now. Should I run "cr@ubuntu:~/tisdk/build$ MACHINE=am437x-evm bitbake arago-base-tisdk-image" to build ubi when finished?

    Best Regards!

  • Hello user3529609 ,

    Please, download and extract this git.ti.com.processor-sdk.processor-sdk-linux.git_and_git.ti.com.ti-linux-kernel.ti-linux-kernel.git.tar.xz archive in <tisdk>/downloads/git2/ directory.

    $ du -b git.ti.com.processor-sdk.processor-sdk-linux.git_and_git.ti.com.ti-linux-kernel.ti-linux-kernel.git.tar.xz
    3451756056    git.ti.com.processor-sdk.processor-sdk-linux.git_and_git.ti.com.ti-linux-kernel.ti-linux-kernel.git.tar.xz
    $ md5sum git.ti.com.processor-sdk.processor-sdk-linux.git_and_git.ti.com.ti-linux-kernel.ti-linux-kernel.git.tar.xz
    e5f71adcb23c208e22b5c0fe3673a870  git.ti.com.processor-sdk.processor-sdk-linux.git_and_git.ti.com.ti-linux-kernel.ti-linux-kernel.git.tar.xz
    $ sha256sum git.ti.com.processor-sdk.processor-sdk-linux.git_and_git.ti.com.ti-linux-kernel.ti-linux-kernel.git.tar.xz
    6cb5081c8a2fd2a5588dcc9a347ce2fcad584461c3930881633a3cf761390848  git.ti.com.processor-sdk.processor-sdk-linux.git_and_git.ti.com.ti-linux-kernel.ti-linux-kernel.git.tar.xz
    $ tar xvf git.ti.com.processor-sdk.processor-sdk-linux.git_and_git.ti.com.ti-linux-kernel.ti-linux-kernel.git.tar.xz -C <tisdk>/downloads/git2/

    Then you can continue to build with "cr@ubuntu:~/tisdk/build$ MACHINE=am437x-evm bitbake arago-base-tisdk-image" command.

    Best regards,
    Kemal

  • Hi Kemal,

    I cann't download git.ti.com.processor-sdk.processor-sdk-linux.git_and_git.ti.com.ti-linux-kernel.ti-linux-kernel.git.tar.xz,

    It tell me the page is error or not exist!

    I download all files as the way you show me yesterday (download am437x-evm-linux-sdk-arago-src-05.01.00.11.tar.xz, extract it, move it to <tisdk>/downloads/ and run it ./get_build_sources.sh source_pkg_list.txt) at night, when I build it(cr@ubuntu:~/tisdk/build$  MACHINE=am437x-evm bitbake arago-base-tisdk-image), It is still the error as before:

    ERROR: linux-ti-staging-4.14.67+gitAUTOINC+d315a9bb00-r3a.arago5.tisdk1.3 do_create_srcipk: Function failed: do_create_srcipk (log file is located at /home/cr/tisdk/build/arago-tmp-external-linaro-toolchain/work/am437x_evm-linux-gnueabi/linux-ti-staging/4.14.67+gitAUTOINC+d315a9bb00-r3a.arago5.tisdk1.3/temp/log.do_create_srcipk.3437)
    ERROR: Logfile of failure stored in: /home/cr/tisdk/build/arago-tmp-external-linaro-toolchain/work/am437x_evm-linux-gnueabi/linux-ti-staging/4.14.67+gitAUTOINC+d315a9bb00-r3a.arago5.tisdk1.3/temp/log.do_create_srcipk.3437
    Log data follows:
    | DEBUG: Executing python function sstate_task_prefunc
    | DEBUG: Python function sstate_task_prefunc finished
    | DEBUG: Executing shell function do_create_srcipk
    | Cloning into '/home/cr/tisdk/build/arago-tmp-external-linaro-toolchain/work/am437x_evm-linux-gnueabi/linux-ti-staging/4.14.67+gitAUTOINC+d315a9bb00-r3a.arago5.tisdk1.3/temp-git-shallow-clone'...
    | remote: error: inflate: data stream error (incorrect data check)
    | remote: error: failed to unpack compressed delta at offset 435900272 from /home/cr/tisdk/downloads/git2/git.ti.com.processor-sdk.processor-sdk-linux.git/objects/pack/pack-823a4a591ace78c157b5297f3edb7b20b7b54680.pack
    | remote: error: failed to read object a72065ed64d14aeb3d8504221af3ed6925576c6a at offset 435900268 from /home/cr/tisdk/downloads/git2/git.ti.com.processor-sdk.processor-sdk-linux.git/objects/pack/pack-823a4a591ace78c157b5297f3edb7b20b7b54680.pack
    | remote: fatal: packed object a72065ed64d14aeb3d8504221af3ed6925576c6a (stored in /home/cr/tisdk/downloads/git2/git.ti.com.processor-sdk.processor-sdk-linux.git/objects/pack/pack-823a4a591ace78c157b5297f3edb7b20b7b54680.pack) is corrupt
    | error: git upload-pack: git-pack-objects died with error.
    | fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
    | remote: aborting due to possible repository corruption on the remote side.
    | fatal: early EOF
    | fatal: index-pack failed
    | WARNING: /home/cr/tisdk/build/arago-tmp-external-linaro-toolchain/work/am437x_evm-linux-gnueabi/linux-ti-staging/4.14.67+gitAUTOINC+d315a9bb00-r3a.arago5.tisdk1.3/temp/run.do_create_srcipk.3437:1 exit 128 from 'git clone --depth 400 --branch processor-sdk-linux-4.14.y file://$PWD/.git $gitshallowclone'
    | ERROR: Function failed: do_create_srcipk (log file is located at /home/cr/tisdk/build/arago-tmp-external-linaro-toolchain/work/am437x_evm-linux-gnueabi/linux-ti-staging/4.14.67+gitAUTOINC+d315a9bb00-r3a.arago5.tisdk1.3/temp/log.do_create_srcipk.3437)
    ERROR: Task (/home/cr/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_4.14.bb:do_create_srcipk) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 3049 tasks of which 2982 didn't need to be rerun and 1 failed.

    Summary: 1 task failed:
      /home/cr/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_4.14.bb:do_create_srcipk
    Summary: There was 1 WARNING message shown.
    Summary: There was 1 ERROR message shown, returning a non-zero exit code.
    cr@ubuntu:~/tisdk/build$


    Should I delete all files downloaded before from the directory:<tisdk>/downloads, <tisdk>/build and <tisdk>/sources when I download files with the new way?

    Could you show me a verified way to the build? It is time-consuming to download a lot of files. 

    Best Regard!

  • Hello Kemal,

    It is very slow to download the file "from here". I do the two ways:

    1) I try to download "git.ti.com.processor-sdk.processor-sdk-linux.git_and_git.ti.com.ti-linux-kernel.ti-linux-kernel.git.tar.xz archive".

    2)I start everything from the beginning as the instructions you show me the first time. The build is successful this time:
    cr@ubuntu:~/tisdk/build$ MACHINE=am437x-evm bitbake arago-base-tisdk-image
    Loading cache: 100% |############################################| Time: 0:00:02
    Loaded 4061 entries from dependency cache.
    Parsing recipes: 100% |##########################################| Time: 0:00:13
    Parsing of 3159 .bb files complete (3156 cached, 3 parsed). 4064 targets, 491 skipped, 0 masked, 0 errors.
    WARNING: No recipes available for:
    /home/cr/tisdk/sources/meta-processor-sdk/recipes-bsp/common-csl-ip/common-csp-ip_git.bbappend
    /home/cr/tisdk/sources/meta-processor-sdk/recipes-devtools/python/python3-native_3.5.2.bbappend
    NOTE: Resolving any missing task queue dependencies

    Build Configuration:
    BB_VERSION = "1.36.0"
    BUILD_SYS = "x86_64-linux"
    NATIVELSBSTRING = "ubuntu-16.04"
    TARGET_SYS = "arm-linux-gnueabi"
    MACHINE = "am437x-evm"
    DISTRO = "arago"
    DISTRO_VERSION = "2018.08"
    TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
    TARGET_FPU = "hard"
    meta-processor-sdk = "HEAD:012bf1c42b1826380ca7557e5185fe88f939a93c"
    meta-ros = "HEAD:e2566402ab108a19634354a934788109422cf409"
    meta-arago-distro
    meta-arago-extras = "HEAD:85f191c83f7cd7b3b4fb6df08b22fabe24e25773"
    meta-browser = "HEAD:26d50665e2f7223c5f4ad7481a8d2431e7cb55fb"
    meta-qt5 = "HEAD:682ad61c071a9710e9f9d8a32ab1b5f3c14953d1"
    meta-networking
    meta-python
    meta-oe
    meta-gnome
    meta-multimedia = "HEAD:eae996301d9c097bcbeb8046f08041dc82bb62f8"
    meta-ti = "HEAD:3f26d1f94fbc87740fdfe33292c904e865257e81"
    meta-linaro-toolchain
    meta-optee = "HEAD:75dfb67bbb14a70cd47afda9726e2e1c76731885"
    meta = "HEAD:7d518d342eb67d25aa071fb08d03f06d6da576c6"

    Initialising tasks: 100% |#######################################| Time: 0:00:13
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    NOTE: Tasks Summary: Attempted 4314 tasks of which 4314 didn't need to be rerun and all succeeded.

    Summary: There was 1 WARNING message shown.
    cr@ubuntu:~/tisdk/build$

    I cann't find the expect "arago-base-tisdk-image-am437x-evm.ubi " in <tisdk>/build/arago-tmp-external-linaro-toolchain/deploy/images/am437x-evm/ directory. The files in the directory are:

    cr@ubuntu:~/tisdk/build/arago-tmp-external-linaro-toolchain/deploy/images/am437x-evm$ ls *.ubi
    arago-base-tisdk-image-am437x-evm-20190301084141.rootfs.ubi arago-base-tisdk-image-am437x-evm.ubi

    Is the "arago-base-tisdk-image-am437x-evm-20190301084141.rootfs.ubi" rootfs file ? Its size is 141950976 bytes.

    Best Regards!

  • Yes, this is the file, but seems you have forgotten to add Qt support on it by adding IMAGE_INSTALL += "packagegroup-arago-qte ti-sgx-ddk-km ti-sgx-ddk-um" to your <tisdk>/build/conf/local.conf file.

    This step.
    $ cd tisdk
    $ cd build
    $ echo 'IMAGE_INSTALL += "packagegroup-arago-qte ti-sgx-ddk-km ti-sgx-ddk-um ti-sgx-ddk-um-plugins"' >> conf/local.conf

  • Hi Kemal,

    I rebuild  the ubi with QT suport by adding /MAGE_INSTALL+="packagegroup-arago-qte-ti-sgx-ddk-km ti-sgx-ddk-um" to .conf file.

    The finial ubi file size is  264241152 bytes. When transfered to NAND and powered up, checking the disk space shows:

    Filesystem                Size      Used Available Use% Mounted on
    ubi0:rootfs             438.5M    233.6M    204.9M  53% /
    devtmpfs                476.7M      4.0K    476.7M   0% /dev
    tmpfs                   501.2M         0    501.2M   0% /dev/shm
    tmpfs                   501.2M      9.5M    491.7M   2% /run
    tmpfs                   501.2M         0    501.2M   0% /sys/fs/cgroup
    tmpfs                   501.2M         0    501.2M   0% /tmp
    tmpfs                    50.0M     92.0K     49.9M   0% /var/volatile
    tmpfs                    16.0M         0     16.0M   0% /media/ram
    tmpfs                   100.2M         0    100.2M   0% /run/user/0
    The space is enough for our application.
    Many thanks for your support!