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.

TDA4VM: Building Yocto Linux for J721E arago-tiny-image. files missing from boot folder in created filesystem.

Part Number: TDA4VM

Hi TI Support.

I installed SDK ti-processor-sdk-linux-automotive-j7-evm-06_02_00. 

I am building arago-tiny-image in ti-processor-sdk-linux-automotive-j7-evm-06_02_00/yocto-build with command "bitbake arago-tiny-image" 

The build is successful and I can see the rootfs tar created in yocto-build/build/arago-tmp-external-arm-toolchain/deploy/images/j7-evm/arago-tiny-image-j7-evm-20200612080214.rootfs.tar.xz 

however when I extract arago-tiny-image-j7-evm-20200612080214.rootfs.tar.xz and check the boot folder , it is empty. 

It should contain kernel Image, dtb/dtbo files, vmlinux.gz* , arago-tiny-image-j7-evm.cpio and arago-tiny-image-j7-evm-*.rootfs.cpio.  these files are missing from the boot folder in arago-tiny-image-j7-evm-20200612080214.rootfs.tar.xz

could you please guide me how to get these files. 

Note1 : I copied these files manually to the rootfs after build and it works. But I want these files to be copied as part of the build process.

Note2: This issue is not observed with full image "bitbake tisdk-rootfs-image-j7-evm.tar.xz" . this issue is only with "bitbake  arago-tiny-image "

Best Regards

Sami

  • Hi Sami,

    The arago-tiny-image is a pure filesystem only image configuration and by default does not generate the Image, dtb and vmlinux. 

    You have the option of using a different image like tisdk-rootfs-image or create something on your own that builds on top of the arago-tiny-image to realize what you want. 

    Regards

    Karthik

  • Hi Karthik,

    Thanks for your reply.

    I can see that the images are created after "bitbake arago-tiny-image" . 

    The Images are available in folder "ti-processor-sdk-linux-automotive-j7-evm-06_02_00/yocto-build/build/arago-tmp-external-arm-toolchain/deploy/images/j7-evm"

    I would like to copy the below files automatically after "bitbake arago-tiny-image " into the boot folder of arago-tiny-image-j7-evm.tar.xz. 

    Image,

    dtb/dtbo files,

    vmlinux.gz* ,

    arago-tiny-image-j7-evm.cpio and

    arago-tiny-image-j7-evm-*.rootfs.cpio.

    Can you please suggest me which file to modify to copy these images during the build. 

    Best Regards

    Sami

  • I added a workaround to manually copy the missing files in SD card creation script "bin/mksdboot.sh "

    -root_fs="$sdkdir/filesystem/tisdk-rootfs-image-j7-evm.tar.xz"
    +
    +build_path="$sdkdir/yocto-build/build/arago-tmp-external-arm-toolchain/deploy/images/j7-evm"
    +root_fs="$build_path/arago-tiny-image-j7-evm.tar.xz"
    execute "tar -xf $root_fs -C /tmp/sdk/$$/rootfs"
    +execute "cp -rfP $build_path/Image* /tmp/sdk/$$/rootfs/boot/"
    +execute "cp -rfP $build_path/k3-j721e-* /tmp/sdk/$$/rootfs/boot/"
    +execute "cp -rfP $build_path/vmlinux.gz* /tmp/sdk/$$/rootfs/boot/"
    +execute "cp -rfP $build_path/arago-tiny-image-j7-evm.cpio /tmp/sdk/$$/rootfs/boot/"
    +execute "cp -rfP $build_path/arago-tiny-image-j7-evm-*.rootfs.cpio /tmp/sdk/$$/rootfs/boot/"

    This workaround solved the issue, Closing the ticket.

    Best Regards

    Sami