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.

EVMK2EX: arago base image missing python modules like socket, datetime, python3, pySerial

Part Number: EVMK2EX


Hi,
I am currently building & using arago-base-tisdk-image-k2e-evm.tar.xz(45MB) over NFS,
and notice that I am able to launch python on target, but not able to import
some libraries like socket & datetime (which are imported on standard python)

>>> import socket
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named socket

>>> import datetime
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named datetime

But, when I used tisdk-server-rootfs-image-k2e-evm-20200604015534.rootfs.tar.xz(351MB) over NFS,
to my surprise above errors disappeared. But this file seems like a server runtime apps
that runs lot many applications than we need. 45MB vs 351MB.

1. What is the difference between these File system images, how do we know what packages/linux apps
being included in base vs server-rootfs images ?
2. How to get complete support of all standard python modules included in arago-base-tisdk-image-k2e-evm image ?
we expect it to work the way we have it working on PC.

3. arago-base-tisdk-k2e does not include python3, how to get it include in target file system ?
4. We also like to include pySerial package on our target, so we can use it

           >>> import serial

    what is the procedure to get pySerial package included on target python interpreter ?

Thanks & Appreciate all your help.

  • Hi, Harish,

    Your observation is correct. The arago-base filesystem is a subset of tisdk-server-rootfs. It contains minimal needed to boot up the kernel. To find out whats included in the filesystem, you can take a look at how yocto build the filesystem and see what are included in its recipe.

    meta-arago/meta-arago-distro/recipes-core/images/arago-core-tisdk-image.inc:TARGET_IMAGES_keystone = "arago-base-tisdk-image tisdk-server-rootfs-image arago-tiny-image"

    The rest of your questions are for Yocto which you should be able to find answers either in its forum or info on internet including their dependencies. 

    Rex

  • Hi Rex,

      I see the file arago-core-tisdk-bundle.inc, but dont see the file you are referring (arago-core-tisdk-image.inc - as you mentioned)

      Inside *-bundle.inc  I see:

          TARGET_IMAGES_keystone = "arago-base-tisdk-image tisdk-server-rootfs-image arago-tiny-image"

      Could you elaborate more on this part of your message ? This line alone is not conveying any information.

      I see some pointers from google/yocto, but they are not valid in meta-arago/SDK environment, which is why we are seeking some help on our questions.

      Appreciate your help on additional pointers/tickets that your team may have helped in the past.

      I am able to include python3 into my custom-recipe, but not able to get socket/datetime/ few others to be included in python2 ?

      Thanks,

  • Hi, Harish,

    Sorry for the slow response.

    Do you configure the yocto using processor-sdk-x.x.x-config.txt? If not, try to switch to processor-sdk configuration. 

    The target image is to give you a pointer to track down what packages to build into the image. The Yocto page doesn't have SDK info, but the concept of the recipe, build list are the same. You should understand how Yocto works and the exact same applies to SDK. Some of your Yocto questions I also need to google for answer. To include socket, datetime. etc, you will need to google or see how it is included in tisdk-server-rootfs if it has them.

    Rex

  • Thanks Rex.

    I added our own layer and added python-io to IMAGE_INSTALL, and this help to pull in socket library in python.