KL720 SDK-v1.1.0 application example are not getting executed

Hello,


I have KL720 Evaluation Module. I am running the SDK examples on the same. I have taken the Leipzig SDK examples user guide as a referance. I am able to compile the examples given in SDK/SDK/02_APP/02_Software_Tool_Kit/SDK/sdk/apps/examples/ directory and its respective output binaries in SDK/SDK/02_APP/02_Software_Tool_Kit/SDK/sdk/apps/bin/ path. I have used tftp to transfer file from host PC to EVM in /tmp folder. When I try to execute command to run any binary it is giving the error of file permission/unknown file.

E.G for streamer examples the command is : streamer -c stream.ini [-D] [-h] [-v] [-t]

Response :

./streamer: error while loading shared libraries: libmsgbroker.so.0: cannot open shared object file: No such file or directory

By debugging further I got to know that .so file mentioned above is available in host PC in sdk structure but not available on EVM. Can anyone has an idea how to resolve this? Ideally while installing firmware all proejct dependencies should be resolved and this file should be available on EVM. Can anyone please help me to understand how we can run the example binary on EVM? Am I missing out something?

Your quick help would be very much appreciated. Thank you.

Vidhi V.

Tagged:

Comments

  • Hello Folks,


    I was able to resolve the mentioned error log of - "error while loading shared libraries: libmsgbroker.so.0: cannot open shared object file: No such file or directory" by seperately compiling the msgBroker porject and lnking the lib files in /lib of EVM.


    The next error I am comming across is something like this :

    PATH=/mnt/flash/plus/usb_init_data:/sbin:/usr/sbin:/bin:/usr/bin

    [init_usb_companion_gadget.sh] insert usb gadget related drivers

    [  4.979506] libcomposite: exports duplicate symbol usb_os_desc_prepare_interf_dir (owned by kernel)

    [  5.030408] libcomposite: exports duplicate symbol usb_os_desc_prepare_interf_dir (owned by kernel)

    insmod: can't insert 'driver/libcomposite.ko': invalid module format

    [  5.112715] usb_f_fs: exports duplicate symbol ffs_lock (owned by kernel)

    [  5.149924] usb_f_fs: exports duplicate symbol ffs_lock (owned by kernel)

    insmod: can't insert 'driver/usb_f_fs.ko': invalid module format

    **********************************************************

    Kneron Daemon (Active)

    Ver. 1.0.0.913

    Build Time: Sep 13 2024 09:14:39

    **********************************************************

    [main] boot_kp_loader_partition_idx: 0

    [main] boot_kp_loader_failure_count: 0

    [run] child_pid: 197

    [MemMgr][Info]: Start to use memory manager library version 4.3.0.0 !!

    [MemMgr][Error]: Open EDMC device fail !!

    E/[MEM_BROKER] MemBroker_Init(): Initial memory manager failed

    [run] waitpid loader_status: 256 ret: 121

    [run] exited, status: 1

    [if_exit_call_back_loader] kp_loader exit status 1

    [if_exit_call_back_loader] boot_kp_loader_partition_idx: 0

    [if_exit_call_back_loader] boot_kp_loader_failure_count: 0

    change dir error: No such file or directory

    [run] child_pid: 197

    [run] posix_spawn error ret: 2

    [main] run kp_firmware fail: 121


    I have made sure that the kp_firmware is build on the aarch64 architecture given in EVM while performing cross compilation. So modules seem to be build correctly. Can anyone has any idea what can cause this issue? and how to resolve the same?


    Your quick response would be much appreciated.

    Thank You,

    Vidhi

  • edited December 2024

    @Vidhi

    Hi Vidhi,

    From your description, I’d like to clarify that you might be using the KL730 platform rather than KL720, because there is no “Leipzig SDK” for KL720. If you are indeed using the KL730 Leipzig SDK and encountered the error message “[MemMgr][Error]: Open EDMC device fail !!,” I recommend consulting the Leipzig SDK manual, which may explain how to load the EDMC driver.


    You can try the following steps:

    1. Navigate to the directory:

      cd SDK/02_APP/02_Software_Tool_Kit/SDK/drivers/vpl_edmc.ko

    2. Manually load the EDMC driver:

      insmod vpl_edmc.ko

  • edited December 2024

    Hi Andy,

    Thank you for responding. Yes I had a typo in subject, its actually KL730 board.

    Apart from it, the above mentioned logs are from EVM module. When I tried to load the module in my host system, I got the same error.

    Please see above snapshot attached.

    Also there's one thing I observed, the Host system kernel version is - 6.8.0-50-generic and EVM has the kernel version as - 6.1.0-1. Can this cause any such issues? Though I verified that the module is compatible with the kernel version of EVM.


    Regarding referring the SDK manual, I have searched through all possible documents regarding the same, I did not find anything regarding this issue.

    Let me know if you need any further information.

  • Hi Vidhi,

    We would recommend you to contact the original sales representative you were in touch with. They should be able to provide technical assistance with KL730. Thank you!

  • Okay Maria. Thank you.

The discussion has been closed due to inactivity. To continue with the topic, please feel free to post a new discussion.