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.

PROCESSOR-SDK-J722S: zlib is not built::SDK 10

Part Number: PROCESSOR-SDK-J722S

Tool/software:

Hello sir,

I want to use zlib in my application to be ported on J722S2(LINUX). SDK is 10.0.0.5. When I'm building the app, its not happening.

I followed the response from the expert on SDK 10 as well, still same issue.

Kindly help me with the issue,

Thanks and Regards,

Seetharama Raju.

  • Hi Seetharama,

    Can you build a new image with Yocto, but add the following line to your local.conf?

    IMAGE_INSTALL:append = " zlib"

    This should create an image with the zlib package included.

    Best,
    Jared

  • Dear Sir,

    Thanks for the response!

    I have followed the below link to build the SDK(software-dl.ti.com/.../Download_and_Install_the_SDK.html, I am unaware about the Yocto build. Could you please let me know if it is needed for SDK build for my scenario. If yes, how I can proceed with your suggestions.

    Thanks and Regards,

    Seetharama

  • Hi Seetharama,

    Yocto is a tool to build Linux distributions. We have recipes to build our images, and you can add packages to those images relatively easily if there is a Yocto recipe for it as well.

    To build an image with the zlib package, follow the SDK instructions, but add what I mentioned earlier to the local.conf, and then run:

    MACHINE=j722s-evm bitbake -k <image-name>

    You could build and install zlib from source and cross compile it for the correct platform (I assume), but I'm not familiar with zlib specifically. 

    Best,
    Jared

  • Dear sir,

    Thanks for the response!

    I'm not aware of yocto build image process. Do I need to follow the steps in the link https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-j722s/10_00_00_08/exports/docs/linux/Overview_Building_the_SDK.html ?

    Thanks,

    Seetharama Raju.

  • Hi Seetharama,

    Yes, you should follow the steps there. The only thing that might be different is which image you build depending on what your usecase is.

    Best,
    Jared

  • Dear sir,

    I'm following the steps mentioned in the page, you have provided.

    I have some questions, request you to clarify.

    1)MACHINE=j722s-evm bitbake -k <image-name>, I have taken target image as "tisdk-adas-image". Does this image help my issue of zlib linking error.

    2)It is mentioned that "Download & Install the SDK Installer". I have already installed "ti-processor-sdk-linux-adas-j722s-evm-10_00_00_08-Linux-x86-Install.bin" and extracted the package "ti-processor-sdk-linux-adas-j722s-evm-10_00_00_08", while installing the sdk 10. So do i need to replace the existing installer with the new one?

    3)We use "./make_sdk.sh" in the terminal at $RTOS/sdk_builder for building the sdk. Then the zlib functions like compress used in my custom app are not getting built. Error appears like shown below.

    /home/raju/ti/arm-gnu-toolchain-13.2.Rel1-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/13.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/raju/TI_SDK/10.00.00.05/ti-processor-sdk-rtos-j722s-evm-10_00_00_05/vision_apps/out/J722S/A53/LINUX/release/liblogger.a(logger_zip.o): in function `LoggerZip_Compress':
    logger_zip.c:(.text+0x20): undefined reference to `compress' 

    4)Will this error be removed with the questions/steps in 1 and 2.

    Please note that first step is terminated due to disc space issue.  OSError: [Errno 28] No space left on device. I think more 500 GB is required for this procees. I cannot allocate that much memory for this purpose. Please suggest an alternative approach!!

    Thanks,

    Raju.

  • Hi Raju,

    1)MACHINE=j722s-evm bitbake -k <image-name>, I have taken target image as "tisdk-adas-image". Does this image help my issue of zlib linking error.

    Adding zlib to your local.conf just includes the package into whatever image you're building. If you're building for adas/visionapps functionality, you'll need to build the adas image.

    I assume that you are using an adas image currently, but please correct me if I'm wrong.

    2)It is mentioned that "Download & Install the SDK Installer". I have already installed "ti-processor-sdk-linux-adas-j722s-evm-10_00_00_08-Linux-x86-Install.bin" and extracted the package "ti-processor-sdk-linux-adas-j722s-evm-10_00_00_08", while installing the sdk 10. So do i need to replace the existing installer with the new one?

    They should be the same.

    3)We use "./make_sdk.sh" in the terminal at $RTOS/sdk_builder for building the sdk. Then the zlib functions like compress used in my custom app are not getting built. Error appears like shown below.

    Is the application you're trying to build going to run on the A53 cores, or are you trying to build an application to run on the R5 cores? If it's just going to run on the A53 cores, then the RTOS SDK isn't required for anything.

    Please note that first step is terminated due to disc space issue.  OSError: [Errno 28] No space left on device. I think more 500 GB is required for this procees. I cannot allocate that much memory for this purpose. Please suggest an alternative approach!!

    Yocto does require a lot of space. I've provided the built ipk that you can just install directly onto the device itself:

    /cfs-file/__key/communityserver-discussions-components-files/791/libz1_5F00_1.3.1_2D00_r0.0_5F00_aarch64.ipk

    You can install it by running:

    $ opkg -V2 install /path/to/libz1_1.3.1-r0.0_aarch64.ipk

    To be honest, I'm not entirely sure what you are trying to do. The steps that I have given are how you can add the zlib package to your image; it's like running `sudo apt install zlib1g` on a debian image. Is this what you're trying to accomplish?

    Best,
    Jared