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: BeagleBone AI-64 | Error: Delegate loading is used on unsupported platform for TIDL_TOOLS file tidl_model_import_tflite.so

Part Number: TDA4VM

I am using BeagleBone AI-64 board which has TDA4VM processor. I am trying to confirm the DL acceleration on BeagleBone AI-64 with the following code provided in the Edge AI Webinar: "Hello World" Application.

tidl_delegate = [tflite.load_delegate(os.path.join(os.environ['TIDL_TOOLS_PATH'], 'tidl_model_import_tflite.so'), compile_options)]

While running the `3_EdgeAI_Model_Compile_Run.ipynb` having above code line giving error "RuntimeError: If delegate loading is used on unsupported platform". I am running BeagleBone AI-64 board with boot image Debian 11.x (Bullseye) TI EDGEAI Desktop.The full error log is as follows:

---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
Input In [3], in <cell line: 43>()
     40     [os.remove(os.path.join(root, f)) for f in files]
     41     [os.rmdir(os.path.join(root, d)) for d in dirs]
---> 43 tidl_delegate = [tflite.load_delegate(os.path.join(os.environ['TIDL_TOOLS_PATH'], 'tidl_model_import_tflite.so'), compile_options)]
     45 # tidl_delegate = [tflite.load_delegate\
     46 #                         ('/usr/lib/libtidl_tfl_delegate.so', delegate_options)]
     48 interpreter = tflite.Interpreter(model_path=tflite_model_path, experimental_delegates=tidl_delegate)

File /usr/lib/python3/dist-packages/tflite_runtime/interpreter.py:152, in load_delegate(library, options)
    134 """Returns loaded Delegate object.
    135 
    136 Args:
   (...)
    149   RuntimeError: If delegate loading is used on unsupported platform.
    150 """
    151 try:
--> 152   delegate = Delegate(library, options)
    153 except ValueError as e:
    154   raise ValueError('Failed to load delegate from {}\n{}'.format(
    155       library, str(e)))

File /usr/lib/python3/dist-packages/tflite_runtime/interpreter.py:81, in Delegate.__init__(self, library, options)
     77 if platform.python_implementation() != 'CPython':
     78   raise RuntimeError('Delegates are currently only supported into CPython'
     79                      'due to missing immediate reference counting.')
---> 81 self._library = ctypes.pydll.LoadLibrary(library)
     82 self._library.tflite_plugin_create_delegate.argtypes = [
     83     ctypes.POINTER(ctypes.c_char_p),
     84     ctypes.POINTER(ctypes.c_char_p), ctypes.c_int,
     85     ctypes.CFUNCTYPE(None, ctypes.c_char_p)
     86 ]
     87 self._library.tflite_plugin_create_delegate.restype = ctypes.c_void_p

File /usr/lib/python3.9/ctypes/__init__.py:452, in LibraryLoader.LoadLibrary(self, name)
    451 def LoadLibrary(self, name):
--> 452     return self._dlltype(name)

File /usr/lib/python3.9/ctypes/__init__.py:374, in CDLL.__init__(self, name, mode, handle, use_errno, use_last_error, winmode)
    371 self._FuncPtr = _FuncPtr
    373 if handle is None:
--> 374     self._handle = _dlopen(self._name, mode)
    375 else:
    376     self._handle = handle

OSError: /root/tidl_tools/tidl_model_import_tflite.so: cannot open shared object file: No such file or directory

I crosschecked the file (tidl_model_import_tflite.so) is present under /root/tidl_tools directory on BeagleBone AI-64.

root@BeagleBone:~# ls -lht tidl_tools/
total 256M
-rwxr-xr-x 1 root root  12M Sep 12 11:27 tidl_model_import_tflite.so
-rwxr-xr-x 1 root root  79M Aug 30 12:47 PC_dsp_test_dl_algo.out
-rw-r--r-- 1 root root  15K Aug 30 12:47 itidl_rt.h
-rwxr-xr-x 1 root root  12M Aug 30 12:47 tidl_model_import_relay.so
-rwxr-xr-x 1 root root  71M Aug 30 12:47 libvx_tidl_rt.so
-rwxr-xr-x 1 root root  71M Aug 30 12:47 libvx_tidl_rt.so.1.0
-rwxr-xr-x 1 root root  38K Aug 30 12:47 libtidl_tfl_delegate.so
-rwxr-xr-x 1 root root 162K Aug 30 12:47 tidl_graphVisualiser.out
-rwxr-xr-x 1 root root  53K Aug 30 12:47 tidl_graphVisualiser_runtimes.out
-rwxr-xr-x 1 root root  65K Aug 30 12:47 libtidl_onnxrt_EP.so
-rwxr-xr-x 1 root root  12M Aug 30 12:47 tidl_model_import_onnx.so
-rwxr-xr-x 1 root root 223K Aug 30 12:47 ti_cnnperfsim.out
-rw-r--r-- 1 root root  591 Aug 30 12:47 device_config.cfg
root@BeagleBone:~# 

Does this file `tidl_model_import_tflite.so` from tidl_tools not supported on BeagleBone AI-64? How to get BeagleBone AI-64 supported file of same?


I am successful with model compilation using edgeai-tidl-tools repo. on my Ubuntu 18.04 PC for DEVICE = j7.

Thanks,

Vaibhav

  • Hi Vaibhav,

    Thank you for the question. I will need some time to consult with some colleagues that were involved in porting over code from TI's SK-TDA4VM board to the BBAI64.

    Can I come back to you next week?

    Regards,

    Takuma

  • Hi Takuma,

    I will appreciate any helpful resolution sooner as possible.

    We are evaluating our developed ML application on BeagleBone AI-64 for major oil industry client from USA. Currently we are stuck with missing hardware acceleration while running this ML application on BB AI-64, as we are observing 100% CPU usage while execution. So, I started with example from TI's webinar first to confirm hardware acceleration and observing the issue of unsupported platform.

    We are at juncture in deciding TI's TDA4VM vs NXP's i.MX8M Plus for our ML application, but our first choice would be TDA4VM based BeagleBone AI-64 since it meets most requirements of industrial standards.

    Thanks,

    Vaibhav

  • Hi Vaibhav,

    The webinar code is outdated. Could you try looking at the Edge AI SDK, as this would have the most examples and demos?

    Processor SDK Linux for Edge AI — Processor SDK Linux for Edge AI Documentation

    The step to install Edge AI apps can be found here:

    SDK Development flow — Processor SDK Linux for Edge AI Documentation

    Thanks,

    Fabiana

  • Hi Fabiana,

    I tried booting up BeagleBone AI-64 with ti-processor-sdk-linux-sk-tda4vm-etcher-image (TI's pre-built image), but it getting failed with below console boot up log.

    U-Boot SPL 2021.01-ga169f42610 (Aug 30 2022 - 09:35:44 +0000)
    Model: Texas Instruments K3 J721E SoC
    i2c_write: error waiting for data ACK (status=0x116)
    EEPROM not available at 0x50, trying to read at 0x51
    Board: BBONEAI-64-B0- rev B0
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.4.1--v08.04.01 (Jolly Jellyfi')
    Trying to boot from MMC2
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.6(release):v2.7-rc0-dirty
    NOTICE:  BL31: Built : 09:18:58, Aug 30 2022
    I/TC: 
    I/TC: OP-TEE version: 3.17.0-125-g15a746d28 (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #1 Tue Aug 30 09:19:19 UTC 2022 aarch64
    I/TC: WARNING: This OP-TEE configuration might be insecure!                                                                                                                                                        
    I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html                                                                                                            
    I/TC: Primary CPU initializing                                                                                                                                                                                     
    I/TC: SYSFW ABI: 3.1 (firmware rev 0x0008 '8.4.1--v08.04.01 (Jolly Jellyfi')                                                                                                                                       
    I/TC: HUK Initialized                                                                                                                                                                                              
    I/TC: Activated SA2UL device                                                                                                                                                                                       
    I/TC: Enabled firewalls for SA2UL TRNG device                                                                                                                                                                      
    I/TC: SA2UL TRNG initialized                                                                                                                                                                                       
    I/TC: SA2UL Drivers initialized                                                                                                                                                                                    
    I/TC: Primary CPU switching to normal world boot                                                                                                                                                                   
                                                                                                                                                                                                                       
    U-Boot SPL 2021.01-ga169f42610 (Aug 30 2022 - 09:20:07 +0000)                                                                                                                                                      
    Model: Texas Instruments K3 J721E SoC                                                                                                                                                                              
    Board: BBONEAI-64-B0- rev B0                                                                                                                                                                                       
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.4.1--v08.04.01 (Jolly Jellyfi')                                                                                                                                             
    ti_i2c_eeprom_am6_parse_record: Ignoring record id 17                                                                                                                                                              
    i2c_write: error waiting for data ACK (status=0x116)                                                                                                                                                               
    i2c_write: error waiting for data ACK (status=0x116)                                                                                                                                                               
    Trying to boot from MMC2                                                                                                                                                                                           
                                                                                                                                                                                                                       
                                                                                                                                                                                                                       
    U-Boot 2021.01-ga169f42610 (Aug 30 2022 - 09:20:07 +0000)                                                                                                                                                          
                                                                                                                                                                                                                       
    SoC:   J721E SR1.1 GP                                                                                                                                                                                              
    Model: Texas Instruments K3 J721E SoC                                                                                                                                                                              
    Board: BBONEAI-64-B0- rev B0                                                                                                                                                                                       
    DRAM:  4 GiB                                                                                                                                                                                                       
    Flash: 0 Bytes                                                                                                                                                                                                     
    MMC:   sdhci@4f80000: 0, sdhci@4fb0000: 1                                                                                                                                                                          
    Loading Environment from FAT... i2c_write: error waiting for data ACK (status=0x116)                                                                                                                               
    pca953x gpio@22: Error reading output register                                                                                                                                                                     
    *** Warning - bad CRC, using default environment                                                                                                                                                                   
                                                                                                                                                                                                                       
    In:    serial@2800000                                                                                                                                                                                              
    Out:   serial@2800000                                                                                                                                                                                              
    Err:   serial@2800000                                                                                                                                                                                              
    am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA00101 cpsw_ver: 0x6BA80100 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000                                                                                 
    i2c_write: error waiting for data ACK (status=0x116)                                                                                                                                                               
    pca953x gpio@22: Error reading output register                                                                                                                                                                     
    Failed to probe device MCASP/TRACE_MUX_S0 err: -121                                                                                                                                                                
    i2c_write: error waiting for data ACK (status=0x116)                                                                                                                                                               
    pca953x gpio@22: Error reading output register                                                                                                                                                                     
    Failed to probe device MCASP/TRACE_MUX_S1 err: -121                                                                                                                                                                
    initcall sequence 00000000fffc8990 failed at call 0000000080861e4c (err=-121)                                                                                                                                      
    ### ERROR ### Please RESET the board ###


    Does the TI's pre-built image supports BeagleBone AI-64?

    Regards,

    Vaibhav

  • Hi Vaibhav,

    The pre-built image does not support BeagleBone AI-64. Try installing the applications on top of BeagleBone image as seen in this step:

    SDK Development flow — Processor SDK Linux for Edge AI Documentation

    Thanks,

    Fabiana

  • Hi Fabiana,

    I tried the steps on BeagleBone AI-64 image, but getting failure with following console log when executed ./init_setup.sh

    root@BeagleBone:~# cd /opt/edge_ai_apps
    root@BeagleBone:/opt/edge_ai_apps# 
    root@BeagleBone:/opt/edge_ai_apps# ./init_script.sh 
    ./init_script.sh: line 131: ntpd: command not found
    ./init_script.sh: line 137: /usr/local/lib/python3.8/dist-packages/dlr/counter/ccm_config.json: No such file or directory
    root@BeagleBone:/opt/edge_ai_apps# 
    root@BeagleBone:/opt/edge_ai_apps# 
    root@BeagleBone:/opt/edge_ai_apps# ./setup_script.sh 
    dlpack
    fatal: A branch named 'tidl_branch' already exists.
    edgeai-tidl-tools
    installing dependedcies at /
    ./targetfs_load.sh: line 13: cd: //home/root: No such file or directory
    ./targetfs_load.sh: line 21: cd: //home/root/arago_j7_pywhl: No such file or directory
    --2022-09-23 11:39:44--  https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/pywhl/dlr-1.10.0-py3-none-any.whl
    Resolving software-dl.ti.com (software-dl.ti.com)... 23.47.229.76, 2600:140f:5:4a4::b48, 2600:140f:5:4b8::b48
    Connecting to software-dl.ti.com (software-dl.ti.com)|23.47.229.76|:443... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: https://www.ti.com/general/docs/licreg/anonymousproddownload.tsp?downloadPage=true&location=https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/pywhl/dlr-1.10.0-py3-none-any.whl [following]
    --2022-09-23 11:39:46--  https://www.ti.com/general/docs/licreg/anonymousproddownload.tsp?downloadPage=true&location=https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/pywhl/dlr-1.10.0-py3-none-any.whl
    Resolving www.ti.com (www.ti.com)... 104.108.229.68, 2600:140f:2e00:296::b48, 2600:140f:2e00:288::b48
    Connecting to www.ti.com (www.ti.com)|104.108.229.68|:443... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/pywhl/dlr-1.10.0-py3-none-any.whl?tracked=1 [following]
    --2022-09-23 11:39:47--  https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/pywhl/dlr-1.10.0-py3-none-any.whl?tracked=1
    Connecting to software-dl.ti.com (software-dl.ti.com)|23.47.229.76|:443... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: https://downloads.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/pywhl/dlr-1.10.0-py3-none-any.whl?tracked=1 [following]
    --2022-09-23 11:39:47--  https://downloads.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/pywhl/dlr-1.10.0-py3-none-any.whl?tracked=1
    Resolving downloads.ti.com (downloads.ti.com)... 122.252.140.203
    Connecting to downloads.ti.com (downloads.ti.com)|122.252.140.203|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1224056 (1.2M) [text/plain]
    Saving to: ‘dlr-1.10.0-py3-none-any.whl’
    
    dlr-1.10.0-py3-none 100%[===================>]   1.17M  3.56MB/s    in 0.3s    
    
    2022-09-23 11:39:50 (3.56 MB/s) - ‘dlr-1.10.0-py3-none-any.whl’ saved [1224056/1224056]
    
    --2022-09-23 11:39:50--  https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/pywhl/onnxruntime_tidl-1.7.0-cp38-cp38-linux_aarch64.whl
    Resolving software-dl.ti.com (software-dl.ti.com)... 23.47.229.76, 2600:140f:5:4b8::b48, 2600:140f:5:4a4::b48
    Connecting to software-dl.ti.com (software-dl.ti.com)|23.47.229.76|:443... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: https://www.ti.com/general/docs/licreg/anonymousproddownload.tsp?downloadPage=true&location=https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/pywhl/onnxruntime_tidl-1.7.0-cp38-cp38-linux_aarch64.whl [following]
    --2022-09-23 11:39:51--  https://www.ti.com/general/docs/licreg/anonymousproddownload.tsp?downloadPage=true&location=https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/pywhl/onnxruntime_tidl-1.7.0-cp38-cp38-linux_aarch64.whl
    Resolving www.ti.com (www.ti.com)... 104.108.229.68, 2600:140f:2e00:288::b48, 2600:140f:2e00:296::b48
    Connecting to www.ti.com (www.ti.com)|104.108.229.68|:443... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/pywhl/onnxruntime_tidl-1.7.0-cp38-cp38-linux_aarch64.whl?tracked=1 [following]
    --2022-09-23 11:39:51--  https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/pywhl/onnxruntime_tidl-1.7.0-cp38-cp38-linux_aarch64.whl?tracked=1
    Connecting to software-dl.ti.com (software-dl.ti.com)|23.47.229.76|:443... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: https://downloads.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/pywhl/onnxruntime_tidl-1.7.0-cp38-cp38-linux_aarch64.whl?tracked=1 [following]
    --2022-09-23 11:39:51--  https://downloads.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/pywhl/onnxruntime_tidl-1.7.0-cp38-cp38-linux_aarch64.whl?tracked=1
    Resolving downloads.ti.com (downloads.ti.com)... 122.252.140.203
    Connecting to downloads.ti.com (downloads.ti.com)|122.252.140.203|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 4569437 (4.4M) [text/plain]
    Saving to: ‘onnxruntime_tidl-1.7.0-cp38-cp38-linux_aarch64.whl’
    
    onnxruntime_tidl-1. 100%[===================>]   4.36M  3.48MB/s    in 1.3s    
    
    2022-09-23 11:39:54 (3.48 MB/s) - ‘onnxruntime_tidl-1.7.0-cp38-cp38-linux_aarch64.whl’ saved [4569437/4569437]
    
    --2022-09-23 11:39:54--  https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/pywhl/tflite_runtime-2.8.2-cp38-cp38-linux_aarch64.whl
    Resolving software-dl.ti.com (software-dl.ti.com)... 23.47.229.76, 2600:140f:5:4a4::b48, 2600:140f:5:4b8::b48
    Connecting to software-dl.ti.com (software-dl.ti.com)|23.47.229.76|:443... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: https://www.ti.com/general/docs/licreg/anonymousproddownload.tsp?downloadPage=true&location=https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/pywhl/tflite_runtime-2.8.2-cp38-cp38-linux_aarch64.whl [following]
    --2022-09-23 11:39:55--  https://www.ti.com/general/docs/licreg/anonymousproddownload.tsp?downloadPage=true&location=https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/pywhl/tflite_runtime-2.8.2-cp38-cp38-linux_aarch64.whl
    Resolving www.ti.com (www.ti.com)... 104.108.229.68, 2600:140f:2e00:296::b48, 2600:140f:2e00:288::b48
    Connecting to www.ti.com (www.ti.com)|104.108.229.68|:443... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/pywhl/tflite_runtime-2.8.2-cp38-cp38-linux_aarch64.whl?tracked=1 [following]
    --2022-09-23 11:39:55--  https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/pywhl/tflite_runtime-2.8.2-cp38-cp38-linux_aarch64.whl?tracked=1
    Connecting to software-dl.ti.com (software-dl.ti.com)|23.47.229.76|:443... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: https://downloads.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/pywhl/tflite_runtime-2.8.2-cp38-cp38-linux_aarch64.whl?tracked=1 [following]
    --2022-09-23 11:39:56--  https://downloads.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/pywhl/tflite_runtime-2.8.2-cp38-cp38-linux_aarch64.whl?tracked=1
    Resolving downloads.ti.com (downloads.ti.com)... 122.252.140.203
    Connecting to downloads.ti.com (downloads.ti.com)|122.252.140.203|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 2139188 (2.0M) [text/plain]
    Saving to: ‘tflite_runtime-2.8.2-cp38-cp38-linux_aarch64.whl’
    
    tflite_runtime-2.8. 100%[===================>]   2.04M  2.47MB/s    in 0.8s    
    
    2022-09-23 11:39:58 (2.47 MB/s) - ‘tflite_runtime-2.8.2-cp38-cp38-linux_aarch64.whl’ saved [2139188/2139188]
    
    Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
    Processing ./dlr-1.10.0-py3-none-any.whl
    Collecting numpy
      Downloading numpy-1.23.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.0 MB)
         |████████████████████████████████| 14.0 MB 13 kB/s 
    Collecting distro
      Downloading https://www.piwheels.org/simple/distro/distro-1.7.0-py3-none-any.whl (20 kB)
    Collecting requests
      Downloading https://www.piwheels.org/simple/requests/requests-2.28.1-py3-none-any.whl (62 kB)
         |████████████████████████████████| 62 kB 8.8 kB/s 
    Collecting certifi>=2017.4.17
      Downloading https://www.piwheels.org/simple/certifi/certifi-2022.9.14-py3-none-any.whl (162 kB)
         |████████████████████████████████| 162 kB 74 kB/s 
    Collecting urllib3<1.27,>=1.21.1
      Downloading https://www.piwheels.org/simple/urllib3/urllib3-1.26.12-py2.py3-none-any.whl (140 kB)
         |████████████████████████████████| 140 kB 61 kB/s 
    Collecting idna<4,>=2.5
      Downloading https://www.piwheels.org/simple/idna/idna-3.4-py3-none-any.whl (61 kB)
         |████████████████████████████████| 61 kB 603 bytes/s 
    Collecting charset-normalizer<3,>=2
      Downloading https://www.piwheels.org/simple/charset-normalizer/charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
    Installing collected packages: urllib3, idna, charset-normalizer, certifi, requests, numpy, distro, dlr
      Attempting uninstall: urllib3
        Found existing installation: urllib3 1.26.5
        Not uninstalling urllib3 at /usr/lib/python3/dist-packages, outside environment /usr
        Can't uninstall 'urllib3'. No files were found to uninstall.
      Attempting uninstall: idna
        Found existing installation: idna 2.10
        Not uninstalling idna at /usr/lib/python3/dist-packages, outside environment /usr
        Can't uninstall 'idna'. No files were found to uninstall.
      Attempting uninstall: charset-normalizer
        Found existing installation: charset-normalizer 2.0.6
        Not uninstalling charset-normalizer at /usr/lib/python3/dist-packages, outside environment /usr
        Can't uninstall 'charset-normalizer'. No files were found to uninstall.
      Attempting uninstall: certifi
        Found existing installation: certifi 2020.6.20
        Not uninstalling certifi at /usr/lib/python3/dist-packages, outside environment /usr
        Can't uninstall 'certifi'. No files were found to uninstall.
      Attempting uninstall: requests
        Found existing installation: requests 2.25.1
        Not uninstalling requests at /usr/lib/python3/dist-packages, outside environment /usr
        Can't uninstall 'requests'. No files were found to uninstall.
      Attempting uninstall: numpy
        Found existing installation: numpy 1.19.5
        Not uninstalling numpy at /usr/lib/python3/dist-packages, outside environment /usr
        Can't uninstall 'numpy'. No files were found to uninstall.
      Attempting uninstall: distro
        Found existing installation: distro 1.5.0
        Not uninstalling distro at /usr/lib/python3/dist-packages, outside environment /usr
        Can't uninstall 'distro'. No files were found to uninstall.
    Successfully installed certifi-2022.9.14 charset-normalizer-2.1.1 distro-1.7.0 dlr-1.10.0 idna-3.4 numpy-1.23.3 requests-2.28.1 urllib3-1.26.12
    Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
    ERROR: onnxruntime_tidl-1.7.0-cp38-cp38-linux_aarch64.whl is not a supported wheel on this platform.
    Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
    ERROR: tflite_runtime-2.8.2-cp38-cp38-linux_aarch64.whl is not a supported wheel on this platform.
    Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
    Collecting numpy
      Downloading numpy-1.23.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.0 MB)
         |████████████████████████████████| 14.0 MB 12.4 MB/s 
    Installing collected packages: numpy
      Attempting uninstall: numpy
        Found existing installation: numpy 1.23.3
        Uninstalling numpy-1.23.3:
          Successfully uninstalled numpy-1.23.3
    Successfully installed numpy-1.23.3
    ./targetfs_load.sh: line 32: cd: //home/root: No such file or directory
    rm: cannot remove '//home/root/arago_j7_pywhl': No such file or directory
    skipping tensorflow setup: found /usr/include/tensorflow
    To redo the setup delete: /usr/include/tensorflow and run this script again
    --2022-09-23 11:41:12--  https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/opencv_4.2.0_aragoj7.tar.gz
    Resolving software-dl.ti.com (software-dl.ti.com)... 23.35.7.71, 2600:140f:5:4b8::b48, 2600:140f:5:4a4::b48
    Connecting to software-dl.ti.com (software-dl.ti.com)|23.35.7.71|:443... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: https://www.ti.com/general/docs/licreg/anonymousproddownload.tsp?downloadPage=true&location=https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/opencv_4.2.0_aragoj7.tar.gz [following]
    --2022-09-23 11:41:13--  https://www.ti.com/general/docs/licreg/anonymousproddownload.tsp?downloadPage=true&location=https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/opencv_4.2.0_aragoj7.tar.gz
    Resolving www.ti.com (www.ti.com)... 104.108.229.68, 2600:140f:2e00:2a2::b48, 2600:140f:2e00:288::b48
    Connecting to www.ti.com (www.ti.com)|104.108.229.68|:443... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/opencv_4.2.0_aragoj7.tar.gz?tracked=1 [following]
    --2022-09-23 11:41:14--  https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/opencv_4.2.0_aragoj7.tar.gz?tracked=1
    Connecting to software-dl.ti.com (software-dl.ti.com)|23.35.7.71|:443... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: https://downloads.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/opencv_4.2.0_aragoj7.tar.gz?tracked=1 [following]
    --2022-09-23 11:41:14--  https://downloads.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/opencv_4.2.0_aragoj7.tar.gz?tracked=1
    Resolving downloads.ti.com (downloads.ti.com)... 104.110.72.101
    Connecting to downloads.ti.com (downloads.ti.com)|104.110.72.101|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 36210197 (35M) [application/x-gzip]
    Saving to: ‘opencv_4.2.0_aragoj7.tar.gz’
    
    opencv_4.2.0_aragoj 100%[===================>]  34.53M  5.54MB/s    in 6.7s    
    
    2022-09-23 11:41:23 (5.16 MB/s) - ‘opencv_4.2.0_aragoj7.tar.gz’ saved [36210197/36210197]
    
    ./targetfs_load.sh: line 55: cd: //home/root: No such file or directory
    skipping onnxruntime setup: found /usr/include/onnxruntime
    To redo the setup delete: /usr/include/onnxruntime and run this script again
    --2022-09-23 11:41:25--  https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/dlr_1.10.0_aragoj7.tar.gz
    Resolving software-dl.ti.com (software-dl.ti.com)... 23.35.7.71, 2600:140f:5:4a4::b48, 2600:140f:5:4b8::b48
    Connecting to software-dl.ti.com (software-dl.ti.com)|23.35.7.71|:443... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: https://www.ti.com/general/docs/licreg/anonymousproddownload.tsp?downloadPage=true&location=https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/dlr_1.10.0_aragoj7.tar.gz [following]
    --2022-09-23 11:41:26--  https://www.ti.com/general/docs/licreg/anonymousproddownload.tsp?downloadPage=true&location=https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/dlr_1.10.0_aragoj7.tar.gz
    Resolving www.ti.com (www.ti.com)... 104.108.229.68, 2600:140f:2e00:288::b48, 2600:140f:2e00:2a2::b48
    Connecting to www.ti.com (www.ti.com)|104.108.229.68|:443... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/dlr_1.10.0_aragoj7.tar.gz?tracked=1 [following]
    --2022-09-23 11:41:27--  https://software-dl.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/dlr_1.10.0_aragoj7.tar.gz?tracked=1
    Connecting to software-dl.ti.com (software-dl.ti.com)|23.35.7.71|:443... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: https://downloads.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/dlr_1.10.0_aragoj7.tar.gz?tracked=1 [following]
    --2022-09-23 11:41:28--  https://downloads.ti.com/jacinto7/esd/tidl-tools/08_04_00_00/psdkr/dlr_1.10.0_aragoj7.tar.gz?tracked=1
    Resolving downloads.ti.com (downloads.ti.com)... 104.110.72.101
    Connecting to downloads.ti.com (downloads.ti.com)|104.110.72.101|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 7824209 (7.5M) [application/x-gzip]
    Saving to: ‘dlr_1.10.0_aragoj7.tar.gz’
    
    dlr_1.10.0_aragoj7. 100%[===================>]   7.46M  3.24MB/s    in 2.3s    
    
    2022-09-23 11:41:31 (3.24 MB/s) - ‘dlr_1.10.0_aragoj7.tar.gz’ saved [7824209/7824209]
    
    ./targetfs_load.sh: line 85: cd: //home/root/: No such file or directory
    skipping itidl_rt.h setup: found /usr/include/itidl_rt.h
    To redo the setup delete: /usr/include/itidl_rt.h and run this script again
    export the following vars with correc value in target machine
    export TIDL_TOOLS_PATH=
    export DEVICE=j7
    edgeai-tiovx-modules
    -- The C compiler identification is GNU 10.2.1
    -- The CXX compiler identification is GNU 10.2.1
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /usr/bin/cc - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = edgeai-tiovx-modules
    SOC=j721e
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = edgeai-tiovx-modules
    SOC=j721e
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /opt/edgeai-tiovx-modules/build
    [  6%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_img_mosaic_module.c.o
    [  6%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_multi_scaler_module.c.o
    [  9%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_sensor_module.c.o
    [ 12%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_viss_module.c.o
    [ 16%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_ldc_module.c.o
    [ 19%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_pyramid_module.c.o
    [ 22%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_color_convert_module.c.o
    [ 25%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_dl_color_convert_module.c.o
    [ 29%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_dl_pre_proc_module.c.o
    [ 32%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_dl_color_blend_module.c.o
    [ 35%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_dof_module.c.o
    [ 38%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_dof_viz_module.c.o
    [ 41%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_sde_module.c.o
    [ 45%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_sde_viz_module.c.o
    [ 48%] Linking C shared library ../../lib/Release/libedgeai-tiovx-modules.so
    [ 48%] Built target edgeai-tiovx-modules
    [ 54%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_img_mosaic_module_test.c.o
    [ 54%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_multi_scaler_module_test.c.o
    [ 61%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_ldc_module_test.c.o
    [ 61%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_viss_module_test.c.o
    [ 64%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_pyramid_module_test.c.o
    [ 70%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/main.c.o
    [ 70%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_common.c.o
    [ 74%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_color_convert_module_test.c.o
    [ 77%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_dl_color_convert_module_test.c.o
    [ 80%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_dl_pre_proc_module_test.c.o
    [ 83%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_dl_color_blend_module_test.c.o
    [ 87%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_dof_module_test.c.o
    [ 90%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_dof_viz_module_test.c.o
    [ 96%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_sde_module_test.c.o
    [ 96%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_sde_viz_module_test.c.o
    [100%] Linking C executable ../../bin/Release/edgeai-tiovx-modules-test
    /usr/bin/ld: CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_sde_viz_module_test.c.o:(.bss+0x0): multiple definition of `gAppObj'; CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_sde_module_test.c.o:(.bss+0x0): first defined here
    collect2: error: ld returned 1 exit status
    make[2]: *** [test/CMakeFiles/edgeai-tiovx-modules-test.dir/build.make:322: ../bin/Release/edgeai-tiovx-modules-test] Error 1
    make[1]: *** [CMakeFiles/Makefile2:142: test/CMakeFiles/edgeai-tiovx-modules-test.dir/all] Error 2
    make: *** [Makefile:136: all] Error 2
    Setup FAILED! : Make sure you have active network connection
    root@BeagleBone:/opt/edge_ai_apps# 
    root@BeagleBone:/opt/edge_ai_apps# ping 8.8.8.8
    PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
    64 bytes from 8.8.8.8: icmp_seq=1 ttl=118 time=6.92 ms
    64 bytes from 8.8.8.8: icmp_seq=2 ttl=118 time=6.77 ms
    ^C
    --- 8.8.8.8 ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 1001ms
    rtt min/avg/max/mdev = 6.768/6.846/6.924/0.078 ms
    root@BeagleBone:/opt/edge_ai_apps# 
    root@BeagleBone:/opt/edge_ai_apps# ping google.com
    PING google.com (142.250.194.142) 56(84) bytes of data.
    64 bytes from del12s05-in-f14.1e100.net (142.250.194.142): icmp_seq=1 ttl=119 time=5.90 ms
    ^C
    --- google.com ping statistics ---
    1 packets transmitted, 1 received, 0% packet loss, time 0ms
    rtt min/avg/max/mdev = 5.900/5.900/5.900/0.000 ms
    root@BeagleBone:/opt/edge_ai_apps# 

    Regards,

    Vaibhav

  • Hi Vaibhav,

    Apologies for the late reply. It probably is due to some missing libraries that the setup script expects. I will check internally on this one and get back to you around Tuesday next week.

    Regards,

    Takuma

  • Hi Vaibhav,

    Apologies for the late reply. Could you try using the image provided by BeagleBone for running the edge AI demos and try following their userguide: https://docs.beagleboard.io/latest/boards/beaglebone/ai-64/edge_ai_apps/getting_started.html

    Regards,

    Takuma