CC2652P: create host application on iMX8

Part Number: CC2652P

Hi,

We are developing a ZigBee3.0 gateway with Host processor i.MX8Mini running on Linux kernel version 5.4.47 and CC2652P as ZNP.

I would like to know what are libraries/drivers  which we need to integrate with my host application ? Do you have drivers/libraries available for i.MX8Mini ? 

Thanks,

Vikas

    1. TI provides https://www.ti.com/tool/download/ZIGBEE-LINUX-SENSOR-TO-CLOUD which you can use as your reference design.
  • Hi YiKai Chen,

    By using ZIGBEE-LINUX-SENSOR-TO-CLOUD we tried building for x86 and IMX8 platform. The steps followed are :

     

    Compiling the zstack Linux Gateway source for X86 ARCH on UBUNTU 20.04 LTS:

     

    step-1: Downloaded Zigbee_3_0_Linux_Gateway_1_0_1.run file from the below link

        https://www.ti.com/tool/download/ZIGBEE-LINUX-SENSOR-TO-CLOUD

     

    step-2: Installed zstack into a folder by  running the Zigbee_3_0_Linux_Gateway_1_0_1.run file

     

    step-3: Followed the steps mentioned in the Linux OS setup and Linux Gateway Setup sections of the below link

    http://software-dl.ti.com/simplelink/esd/zigbee_3_0_Linux/1.0.1/exports/Documents/Z-Stack%20Linux%20Gateway%20-%20Quick%20Start%20Guide.html

     

    step-4: After running setup.sh script, we are unable to get out folder, getting ERROR__out folder. And attached the build_x86.log file in the attachments

     

    step-5: Connect the ZNP node and detected as /dev/ttyACM0, /dev/ttyACM1

     

    step-6: Added ZNP device node name(/dev/ttyACM0) in source/ERROR__out/Precompiled/servers/NPI_Gateway.cfg. Attaching the same file in the attachment

     

    step-7: Run sudo ./zigbeeHAgw file and attached the zigbeeHAgw_x86.log in the attachments

     

    step-8: Run sudo ./start_application file and attached the start_application_x86.png in the attachments.

     

     

    Compiling the zstack Linux Gateway source for i.MX8 ARCH:

     

    step-1: Generated(from Yocto) and installed the cross compiler for i.MX8

     

    step-2: Downloaded Zigbee_3_0_Linux_Gateway_1_0_1.run file from the below link

        https://www.ti.com/tool/download/ZIGBEE-LINUX-SENSOR-TO-CLOUD

     

    step-3: Installed zstack into a folder bu running the Zigbee_3_0_Linux_Gateway_1_0_1.run file

     

    step-4: Exported the toolchain by using the command: . /opt/fsl-imx-xwayland/5.4-zeus/environment-setup-aarch64-poky-linux

     

    step-5: Modified(Added TARGET_PLATFORM=IMX8) the scripts/package_builder file and attached the file in the attachments

     

    step-6: After running setup.sh script, we are unable to get out folder, getting ERROR__out folder and got some build errors as well. And attached the build_imx8.log, content.txt and expected_content.txt files in the attachments

     

    Please let me know the steps we followed is correct or not. Also I would like to know how we can build the Zigbee_3_0_Linux_Gateway  for IMX8 .

     

    Thanks,

    build_imx8.log
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ aa-
    aa-enabled         aa-exec            aa-remove-unknown  aa-status          aa-teardown        
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ aa-^C
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ 
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ 
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ . /opt/fsl-imx-xwayland/5.4-zeus/environment-setup-aarch64-poky-linux 
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ aa
    aa-enabled                             aarch64-poky-linux-lld                 aarch64-poky-linux-musl-ld.bfd
    aa-exec                                aarch64-poky-linux-llvm-ar             aarch64-poky-linux-musl-ld.gold
    aarch64-poky-linux-addr2line           aarch64-poky-linux-llvm-nm             aarch64-poky-linux-musl-ld.lld
    aarch64-poky-linux-ar                  aarch64-poky-linux-llvm-profdata       aarch64-poky-linux-musl-lld
    aarch64-poky-linux-as                  aarch64-poky-linux-llvm-ranlib         aarch64-poky-linux-musl-llvm-ar
    aarch64-poky-linux-c++filt             aarch64-poky-linux-musl-addr2line      aarch64-poky-linux-musl-llvm-nm
    aarch64-poky-linux-clang               aarch64-poky-linux-musl-ar             aarch64-poky-linux-musl-llvm-profdata
    aarch64-poky-linux-clang++             aarch64-poky-linux-musl-as             aarch64-poky-linux-musl-llvm-ranlib
    aarch64-poky-linux-clang-tidy          aarch64-poky-linux-musl-c++filt        aarch64-poky-linux-musl-nm
    aarch64-poky-linux-cpp                 aarch64-poky-linux-musl-clang          aarch64-poky-linux-musl-objcopy
    aarch64-poky-linux-dwp                 aarch64-poky-linux-musl-clang++        aarch64-poky-linux-musl-objdump
    aarch64-poky-linux-elfedit             aarch64-poky-linux-musl-clang-tidy     aarch64-poky-linux-musl-ranlib
    aarch64-poky-linux-g++                 aarch64-poky-linux-musl-cpp            aarch64-poky-linux-musl-readelf
    aarch64-poky-linux-gcc                 aarch64-poky-linux-musl-dwp            aarch64-poky-linux-musl-size
    aarch64-poky-linux-gcc-ar              aarch64-poky-linux-musl-elfedit        aarch64-poky-linux-musl-strings
    aarch64-poky-linux-gcc-nm              aarch64-poky-linux-musl-g++            aarch64-poky-linux-musl-strip
    aarch64-poky-linux-gcc-ranlib          aarch64-poky-linux-musl-gcc            aarch64-poky-linux-nm
    aarch64-poky-linux-gcov                aarch64-poky-linux-musl-gcc-ar         aarch64-poky-linux-objcopy
    aarch64-poky-linux-gcov-dump           aarch64-poky-linux-musl-gcc-nm         aarch64-poky-linux-objdump
    aarch64-poky-linux-gcov-tool           aarch64-poky-linux-musl-gcc-ranlib     aarch64-poky-linux-ranlib
    aarch64-poky-linux-gdb                 aarch64-poky-linux-musl-gcov           aarch64-poky-linux-readelf
    aarch64-poky-linux-gdb-add-index       aarch64-poky-linux-musl-gcov-dump      aarch64-poky-linux-size
    aarch64-poky-linux-gprof               aarch64-poky-linux-musl-gcov-tool      aarch64-poky-linux-strings
    aarch64-poky-linux-ld                  aarch64-poky-linux-musl-gdb            aarch64-poky-linux-strip
    aarch64-poky-linux-ld.bfd              aarch64-poky-linux-musl-gdb-add-index  aa-remove-unknown
    aarch64-poky-linux-ld.gold             aarch64-poky-linux-musl-gprof          aa-status
    aarch64-poky-linux-ld.lld              aarch64-poky-linux-musl-ld             aa-teardown
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ aa^C
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ 
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ echo $CC
    aarch64-poky-linux-gcc -mcpu=cortex-a53+crc+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$  
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ 
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ sudo ./setup.sh 
    ******************* BEGIN SETUP! ********************
    This setup script will:
      - make all necessary scripts executable
      - ensure necessary files have UNIX line endings
      - remove prebuilt directories
      - install Node Modules for Node.js Zigbee Gateway
      - build Linux Zigbee Gateway
      - extract Linux Zigbee Gateway binaries
    *****************************************************
    Entered /Projets/node Directory
    
    Make the gateway scripts executable
    
    SUCCESS - gateway scripts executable
    /home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source
    
    Remove ERROR__out or out Directory if present
    
    Removed Previous built package.
    
    Convert all files from dos2unix 
    
    dos2unix: converting file ./Projects/zstack/OTA/Source/ota_common.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/source/OnBoard.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/source/pb_utils.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/source/pb_utils.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/source/OnBoard.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/source/zmain.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgrservices.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/Makefile to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgr.pb-c.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgrsrv.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgrsrv.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgrservices.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgr_pb_ctrl.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgrdatabase.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgrp2p.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgr.pb-c.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgrp2p.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgr_config.ini to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgrdatabase.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/zcl_ha.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgr_pb_ctrl.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/aps_groups.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/gatewayservices.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/aps_groups.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/Makefile to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/gatewaysrvr.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/zcl_port.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/gatewayservices.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/gatewaysrvr.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/gateway_config.tlg to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/gateway_pb_ctrl.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/gateway.pb-c.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/gateway_pb_ctrl.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/gateway.pb-c.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/gateway_config.ini to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/zcl_ha.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/zcl_port.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/gateway.proto to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/aps_groups.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zmac/zmac_internal.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hal/hal_mcu.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hal/hal_timer.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hal/hal_types.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hal/hal_board_cfg.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hal/hal_defs.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/include/OSAL.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/include/OSAL_Memory.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/include/sdata.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/include/comdef.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/include/OSAL_Timers.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/include/OSAL_PwrMgr.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/include/ZComDef.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/include/OSAL_Tasks.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/include/saddr.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/include/OSAL_Nv.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/common/OSAL_PwrMgr.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/common/OSAL.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/common/OSAL_Timers.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/common/OSAL_Memory.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/sdb/SimpleDBTxt.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/sdb/SimpleDBTxt.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/sdb/SimpleDB.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/sdb/SimpleDB.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/zcl_ota.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/zcl_otaserver_lnx.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/otasrvr_pb_ctrl.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/Makefile to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/utils.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/otasrvr.pb-c.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/otasrvr.pb-c.h to Unix format...
    dos2unix: Binary symbol 0x1E found at line 1
    dos2unix: Skipping binary file ./Projects/zstack/linux/otaserver/ota_sample_images/5678-1234-0000AAAA.zigbee
    dos2unix: Binary symbol 0x1E found at line 1
    dos2unix: Skipping binary file ./Projects/zstack/linux/otaserver/ota_sample_images/5678-1234-0000BBBB.zigbee
    dos2unix: converting file ./Projects/zstack/linux/otaserver/ota_sample_images/Readme.txt to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/ota_common.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/otasrvr.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/zcl_ota.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/otaserver.ini to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/OtaServer_db.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/OtaServer.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/OtaServer.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/OtaServer_db.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/otasrvr_pb_ctrl.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/otasrvr.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/zcl_port.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/aps_groups.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackpb/zstackpb.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackpb/zstackpb.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackpb/zstack.pb-c.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackpb/zstack.pb-c.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvepconfig/serverep.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvepconfig/serverep.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/serverpb/gatewayp2p.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/serverpb/server.pb-c.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/serverpb/server.pb-c.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/serverpb/gatewayp2p.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/serverpb/server_pb_ctrl.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/serverpb/server_pb_ctrl.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/bbb_usbreset/source/bbb_usbreset.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/bbb_usbreset/project/makefile to Unix format...
    dos2unix: Binary symbol 0x01 found at line 1
    dos2unix: Skipping binary file ./Projects/zstack/linux/bbb_usbreset/project/out/bbb_usbreset.o
    dos2unix: Binary symbol 0x01 found at line 1
    dos2unix: Skipping binary file ./Projects/zstack/linux/bbb_usbreset/project/bbb_usbreset.bin
    dos2unix: Binary symbol 0x00 found at line 3
    dos2unix: Skipping binary file ./Projects/zstack/linux/protobuf-c/lib/x86/libprotobuf-c.a
    dos2unix: Binary symbol 0x01 found at line 1
    dos2unix: Skipping binary file ./Projects/zstack/linux/protobuf-c/lib/x86/libprotobuf-c.so
    dos2unix: Binary symbol 0x01 found at line 1
    dos2unix: Skipping binary file ./Projects/zstack/linux/protobuf-c/lib/x86/libprotobuf-c.so.1.0.0
    dos2unix: Binary symbol 0x00 found at line 3
    dos2unix: Skipping binary file ./Projects/zstack/linux/protobuf-c/lib/arm/libprotobuf-c.a
    dos2unix: converting file ./Projects/zstack/linux/protobuf-c/lib/arm/libprotobuf-c.la to Unix format...
    dos2unix: Binary symbol 0x01 found at line 1
    dos2unix: Skipping binary file ./Projects/zstack/linux/protobuf-c/lib/arm/libprotobuf-c.so.1.0.0
    dos2unix: converting file ./Projects/zstack/linux/protobuf-c/lib/arm/pkgconfig/libprotobuf-c.pc to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/protobuf-c/include/google/protobuf-c/protobuf-c.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/sbl_tool/project/Makefile to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/sbl_tool/Source/zbSocTransportUart.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/sbl_tool/Source/zbSocCmd.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/sbl_tool/Source/main.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/sbl_tool/Source/zbSocCmd.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/sbl_tool/Source/zbSocTransportUart.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/version_query_minitool/project/Makefile to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/version_query_minitool/Source/zbSocTransportUart.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/version_query_minitool/Source/zbSocCmd.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/version_query_minitool/Source/main.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/version_query_minitool/Source/zbSocCmd.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/version_query_minitool/Source/zbSocTransportUart.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/scripts/hagateway/track_servers to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/scripts/hagateway/reset/soc_reset_hold to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/scripts/hagateway/reset/soc_reset_release to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/scripts/hagateway/reset/bbb/soc_reset_hold to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/scripts/hagateway/reset/bbb/soc_reset_release to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/scripts/hagateway/zigbeeHAgw to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/scripts/package_builder_expected_content_RUNTIME_arm.txt to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/scripts/sample_app/start_application to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/scripts/package_builder_expected_content_RUNTIME_x86.txt to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/NPI_Gateway.cfg to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/makefile to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/hal_spi.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/hal_gpio.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/npi_lnx_i2c.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/npi_lnx_i2c.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/hal_i2c.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/npi_lnx_spi.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/npi_lnx_ipc.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/hal_spi.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/hal_gpio.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/npi_lnx_uart.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/npi_lnx_uart.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/aic.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/npi_lnx_spi.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/hal_i2c.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/common/npi_lnx.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/common/hal_types.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/common/hal_rpc.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/common/npi_lnx_error.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/common/npi_lnx_ipc_rpc.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackserverznp/Makefile to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackserverznp/zstack_pb_ctrl.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackserverznp/znp_af.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackserverznp/znp_zdo.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackserverznp/osal_zstack_server_znp.c to Unix format...
    dos2unix: Binary symbol 0x01 found at line 1
    dos2unix: Skipping binary file ./Projects/zstack/linux/zstackserverznp/ZLSZNP_arm
    dos2unix: converting file ./Projects/zstack/linux/zstackserverznp/config.ini to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackserverznp/f8wConfig.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackserverznp/zstack_pb_ctrl.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackserverznp/znp_misc.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/soc_images/CC2531_USB_Dongle/CC2531-GW-ZNP_39203_sbl39186.hex to Unix format...
    dos2unix: Binary symbol 0x02 found at line 1
    dos2unix: Skipping binary file ./Projects/zstack/linux/soc_images/CC2531_USB_Dongle/CC2531-GW-ZNP_39203.bin
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/ota_engine.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/actions_engine.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/commissioning_engine.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/device_list_engine.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/network_info_engine.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/ota_engine.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/system_engine.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/device_list_engine.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/sensor_engine.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/network_info_engine.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/attribute_engine.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/group_scene_engine.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/state_reflector.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/commissioning_engine.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/attribute_engine.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/state_reflector.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/system_engine.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/actions_engine.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/sensor_engine.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/group_scene_engine.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/project/makefile to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/project/main.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/project/sample_app_ota.cfg to Unix format...
    dos2unix: Binary symbol 0x1E found at line 1
    dos2unix: Skipping binary file ./Projects/zstack/linux/demo/project/images/5678-1234-BBBB0000.zigbee
    dos2unix: Binary symbol 0x1E found at line 1
    dos2unix: Skipping binary file ./Projects/zstack/linux/demo/project/images/5678-1234-AAAA0000.zigbee
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/user_interface.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/socket_interface.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/polling.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/tcp_client.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/user_interface.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/timer_utils.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/data_structures.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/macros.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/types.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/tcp_client.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/data_structures.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/macros.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/timer_utils.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/socket_interface.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/polling.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/cc-rom-sbl/Makefile to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/cc-rom-sbl/ccxxxxdnld.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/cc-rom-sbl/ccxxxxdnld.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/cc-rom-sbl/sblUart.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/cc-rom-sbl/main.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/cc-rom-sbl/sblUart.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/cc-rom-sbl/deviceTypes.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/usbreset/source/usbreset.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/usbreset/project/makefile to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvwrapper/api_server.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvwrapper/trace.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvwrapper/api_server.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvwrapper/api_client.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvwrapper/trace.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvwrapper/main.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvwrapper/hal_rpc.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvwrapper/api_lnx_ipc_rpc.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvwrapper/api_client.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvwrapper/configparser.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvwrapper/configparser.c to Unix format...
    dos2unix: converting file ./Projects/node/start_gateway.sh to Unix format...
    dos2unix: converting file ./Projects/node/start_local.sh to Unix format...
    dos2unix: converting file ./Projects/node/README.html to Unix format...
    dos2unix: converting file ./Projects/node/README.md to Unix format...
    dos2unix: converting file ./Projects/node/start_ibm.sh to Unix format...
    dos2unix: converting file ./Projects/node/end.sh to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/app.js to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/webapp.html to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/webapp.js to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/js/bootstrap.bundle.min.js.map to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/js/bootstrap.bundle.min.js to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/js/Chart.min.js to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/js/bootstrap.bundle.js to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/js/bootstrap.js.map to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/js/bootstrap.bundle.js.map to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/js/popper.min.js to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/js/bootstrap.min.js.map to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/js/bootstrap.min.js to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/js/bootstrap.js to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap.min.css to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap-reboot.css to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap.css.map to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/slider.css to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap-reboot.min.css to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap-grid.min.css.map to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap-reboot.css.map to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap.css to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap-grid.css.map to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap-grid.min.css to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap-grid.css to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap-reboot.min.css.map to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap.min.css.map to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/jquery/jquery-1.12.0.min.js to Unix format...
    dos2unix: Binary symbol 0x1A found at line 2
    dos2unix: Skipping binary file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/img/light_on.png
    dos2unix: Binary symbol 0x1A found at line 2
    dos2unix: Skipping binary file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/img/light_off.png
    dos2unix: Binary symbol 0x1A found at line 2
    dos2unix: Skipping binary file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/img/unlock.png
    dos2unix: Binary symbol 0x1A found at line 2
    dos2unix: Skipping binary file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/img/lock.png
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/zb_lib.js to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/cloudWebServer.js to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/package.json to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/manifest.yml to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/ibmConfig.json to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/README.html to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/.project to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/README.md to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/.cfignore to Unix format...
    dos2unix: converting file ./Components/zmac/ZMAC.h to Unix format...
    dos2unix: converting file ./Components/hal/include/hal_board.h to Unix format...
    dos2unix: converting file ./Components/hal/include/hal_drivers.h to Unix format...
    dos2unix: converting file ./Components/hal/include/hal_timer.h to Unix format...
    dos2unix: converting file ./Components/hal/include/hal_key.h to Unix format...
    dos2unix: converting file ./Components/hal/include/hal_led.h to Unix format...
    dos2unix: converting file ./Components/hal/include/hal_uart.h to Unix format...
    dos2unix: converting file ./Components/mt/MT_RPC.h to Unix format...
    dos2unix: converting file ./Components/mt/MT.h to Unix format...
    dos2unix: converting file ./Components/mac/include/mac_api.h to Unix format...
    dos2unix: converting file ./Components/stack/sys/ZGlobals.h to Unix format...
    dos2unix: converting file ./Components/stack/sec/ssp.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/nwk_bufs.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/AssocList.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/nwk.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/stub_aps.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/rtg.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/APSMEDE.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/NLMEDE.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/BindingTable.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/reflecttrack.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/nwk_util.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/APS.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/nwk_globals.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/aps_groups.h to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_hvac.c to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_ss.c to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_hvac.h to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_poll_control.h to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_lighting.c to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_ss.h to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl.h to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_general.h to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_green_power.h to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_lighting.h to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl.c to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_green_power.c to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_ezmode.h to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_closures.c to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_general.c to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_poll_control.c to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_closures.h to Unix format...
    dos2unix: converting file ./Components/stack/gp/gp_common.c to Unix format...
    dos2unix: converting file ./Components/stack/gp/gp_proxyTbl.c to Unix format...
    dos2unix: converting file ./Components/stack/gp/dGP_stub.h to Unix format...
    dos2unix: converting file ./Components/stack/gp/gp_common.h to Unix format...
    dos2unix: converting file ./Components/stack/gp/gp_interface.h to Unix format...
    dos2unix: converting file ./Components/stack/gp/cGP_stub.h to Unix format...
    dos2unix: converting file ./Components/stack/af/AF.h to Unix format...
    dos2unix: converting file ./Components/stack/zdo/ZDApp.h to Unix format...
    dos2unix: converting file ./Components/stack/zdo/ZDProfile.h to Unix format...
    dos2unix: converting file ./Components/stack/zdo/ZDObject.h to Unix format...
    dos2unix: converting file ./Components/stack/zdo/ZDConfig.h to Unix format...
    dos2unix: converting file ./Components/stack/zdo/ZDSecMgr.h to Unix format...
    dos2unix: converting file ./Components/services/saddr/saddr.h to Unix format...
    dos2unix: converting file ./Components/services/saddr/saddr.c to Unix format...
    dos2unix: converting file ./build_all to Unix format...
    dos2unix: converting file ./scripts/package_builder to Unix format...
    dos2unix: converting file ./setup.sh to Unix format...
    SUCCESS: Converted Scripts to Unix Line endings
    Entered /Projets/node/nodejs_zb_gateway Directory
    
    Installing Node Modules 
    
    npm WARN deprecated json3@3.2.6: Please use the native JSON object instead of JSON 3
    npm WARN deprecated axios@0.5.4: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
    
    added 232 packages, and audited 233 packages in 12s
    
    2 packages are looking for funding
      run `npm fund` for details
    
    14 vulnerabilities (2 low, 4 moderate, 8 high)
    
    To address issues that do not require attention, run:
      npm audit fix
    
    To address all issues (including breaking changes), run:
      npm audit fix --force
    
    Run `npm audit` for details.
    SUCCESS: Installed all Node Modules Successfully
    /home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source
    
    Make build_all executable 
    
    SUCCESS: build_all script is now executable
    
    Make scripts/ executable 
    
    SUCCESS: scripts/ folder is now executable
    
    Run ./build_all 
    
    SVN Version =  Unversioned directory
    
    Main project\'s base directory: GATEWAY=/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source (leave blank to use the detault)
    Project output subdirectory: PKGS_OUTPUT_DIR=/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/out (leave blank to use the detault)
    
    Building RUNTIME package for IMX8 platform
    
    ********************************************************
    Cleaning all
    if test -d out; then rm -rf out; fi
    rm -f project_file_list.txt
    ********************************************************
    Check existance of output folder
    if test ! -d out; then mkdir out; fi
    ********************************************************
    COMPILING SERVER FOR ARM BEAGLE BONE
    make[1]: Entering directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost'
    Compiling ipclib/server/npi_lnx_ipc.c ...
    make[1]: arm-linux-gnueabihf-gcc: Command not found
    make[1]: *** [makefile:211: out/npi_lnx_ipc.o] Error 127
    make[1]: Leaving directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost'
    make: *** [makefile:98: arch-all-arm] Error 2
    Cleaning up out/*
    ********************************************************
    Check existance of output folder
    if test ! -d out; then mkdir out; fi
    ********************************************************
    COMPILING APP FOR ARM
    make[1]: Entering directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/zstackserverznp'
    Compiling osal_zstack_server_znp.c ...
    make[1]: aarch64-poky-linux-gcc: Command not found
    make[1]: *** [Makefile:136: out/osal_zstack_server_znp.o] Error 127
    make[1]: Leaving directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/zstackserverznp'
    make: *** [Makefile:89: arch-all-arm] Error 2
    ********************************************************
    Cleaning all
    if test -d out; then rm -rf out; fi
    /bin/rm -f project_file_list.txt
    /bin/rm -f actual_standard_project_file_list.txt
    /bin/rm -f actual_specific_project_file_list.txt
    ********************************************************
    Check existance of output folder
    if test ! -d out; then mkdir out; fi
    ********************************************************
    COMPILING APP FOR ARM
    make[1]: Entering directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/nwkmgr'
    Compiling ../srvepconfig/serverep.c ...
    make[1]: aarch64-poky-linux-gcc: Command not found
    make[1]: *** [Makefile:200: out/serverep.o] Error 127
    make[1]: Leaving directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/nwkmgr'
    make: *** [Makefile:106: arch-all-arm] Error 2
    ********************************************************
    Cleaning all
    if test -d out; then rm -rf out; fi
    /bin/rm -f project_file_list.txt
    /bin/rm -f actual_specific_project_file_list.txt
    /bin/rm -f actual_standard_project_file_list.txt
    ********************************************************
    Check existance of output folder
    if test ! -d out; then mkdir out; fi
    ********************************************************
    COMPILING APP FOR ARM
    make[1]: Entering directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/hagateway'
    Compiling ../srvepconfig/serverep.c ...
    make[1]: aarch64-poky-linux-gcc: Command not found
    make[1]: *** [Makefile:218: out/serverep.o] Error 127
    make[1]: Leaving directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/hagateway'
    make: *** [Makefile:130: arch-all-arm] Error 2
    ********************************************************
    Cleaning all
    if test -d out; then rm -rf out; fi
    /bin/rm -f project_file_list.txt
    /bin/rm -f actual_specific_project_file_list.txt
    /bin/rm -f actual_standard_project_file_list.txt
    ********************************************************
    Check existance of output folder
    if test ! -d out; then mkdir out; fi
    ********************************************************
    COMPILING APP FOR ARM
    make[1]: Entering directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/otaserver'
    Compiling ../zstackpb/zstack.pb-c.c ...
    make[1]: aarch64-poky-linux-gcc: Command not found
    make[1]: *** [Makefile:172: out/zstack.pb-c.o] Error 127
    make[1]: Leaving directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/otaserver'
    make: *** [Makefile:113: arch-all-arm] Error 2
    ********************************************************
    Cleaning up ./out/*
    if test -d ./out; then rm -rf ./out; fi
    rm -f main.bin
    rm -f project_file_list.txt
    ********************************************************
    Check existance of output folder
    if test ! -d ./out; then mkdir ./out; fi
    ********************************************************
    COMPILING APP FOR ARM
    make[1]: Entering directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/demo/project'
    Compiling main.c ...
    make[1]: aarch64-poky-linux-gcc: Command not found
    make[1]: *** [makefile:123: out/main.o] Error 127
    make[1]: Leaving directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/demo/project'
    make: *** [makefile:75: arch-all-arm] Error 2
    rm -rf *.o sbl_tool.bin
    aarch64-poky-linux-gcc -Wall -DVERSION_NUMBER="0.1"  -D_GNU_SOURCE -DxHAL_UART_SPI -c -o main.o ../Source/main.c
    /bin/sh: 1: aarch64-poky-linux-gcc: not found
    make: *** [Makefile:31: main.o] Error 127
    rm -rf *.o gw_soc_fw_version_query.bin
    aarch64-poky-linux-gcc -Wall -DVERSION_NUMBER="0.1"  -D_GNU_SOURCE -DxHAL_UART_SPI -c -o main.o ../Source/main.c
    /bin/sh: 1: aarch64-poky-linux-gcc: not found
    make: *** [Makefile:30: main.o] Error 127
    ********************************************************
    Cleaning up out/*
    if test -d out; then rm -rf out; fi
    /bin/rm -f usbreset.bin out/*
    /bin/rm -f *project_file_list.txt
    VPATH is .
    ********************************************************
    Check existance of output folder
    if test ! -d out; then mkdir out; fi
    ********************************************************
    COMPILING APP FOR ARM
    make[1]: Entering directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/usbreset/project'
    /home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/usbreset/project
    Compiling ../source/usbreset.c ...
    make[1]: aarch64-poky-linux-gcc: Command not found
    make[1]: *** [makefile:80: out/usbreset.o] Error 127
    make[1]: Leaving directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/usbreset/project'
    make: *** [makefile:39: arch-all-arm] Error 2
    cp: cannot stat '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/RemoTI-Linux-master//Projects/tools/LinuxHost/out/NPI_lnx_arm_server': No such file or directory
    cp: cannot stat '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/zstackserverznp/out/ZLSZNP_arm': No such file or directory
    cp: cannot stat '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/nwkmgr/out/NWKMGR_SRVR_arm': No such file or directory
    cp: cannot stat '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/hagateway/out/GATEWAY_SRVR_arm': No such file or directory
    cp: cannot stat '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/otaserver/out/OTA_SRVR_arm': No such file or directory
    cp: cannot stat '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/demo/project/main.bin': No such file or directory
    cp: cannot stat '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/sbl_tool/project/sbl_tool.bin': No such file or directory
    cp: cannot stat '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/version_query_minitool/project/gw_soc_fw_version_query.bin': No such file or directory
    cp: cannot stat '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/usbreset/project/usbreset.bin': No such file or directory
    
    Package verification results:
    ERROR: 16 error(s) occured during make
    diff /home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/out/content.txt /home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/out/expected_content.txt
    4a5
    > ./Precompiled/app/main.bin
    15a17
    > ./Precompiled/servers/GATEWAY_SRVR_arm
    16a19
    > ./Precompiled/servers/NPI_lnx_arm_server
    17a21,22
    > ./Precompiled/servers/NWKMGR_SRVR_arm
    > ./Precompiled/servers/OTA_SRVR_arm
    21a27
    > ./Precompiled/servers/ZLSZNP_arm
    22a29,30
    > ./Precompiled/tools/gw_soc_fw_version_query.bin
    > ./Precompiled/tools/sbl_tool.bin
    24a33
    > ./Precompiled/tools/usbreset.bin
    ERROR: Content verification failed
    mv: target 'directory.tar' is not a directory
    
    ERROR: RUNTIME package for arm creation failed. See details above. Output folder/tar name prefixed with "ERROR_."
    
    SUCCESS: build_all finished.
    ./setup.sh: line 156: cd: out/Precompiled/: No such file or directory
    Entered Precompiled directory.
    app/
    misc/
    misc/ota_sample_images/
    misc/ota_sample_images/5678-1234-0000AAAA.zigbee
    misc/ota_sample_images/5678-1234-0000BBBB.zigbee
    misc/CC2531-GW-ZNP_39203.bin
    protobuf/
    protobuf/libprotobuf-c.so.1.0.0
    servers/
    servers/NPI_Gateway.cfg
    servers/track_servers
    servers/gateway_config.tlg
    servers/config.ini
    servers/nwkmgr_config.ini
    servers/gateway_config.ini
    servers/sample_app_ota.cfg
    servers/zigbeeHAgw
    servers/start_application
    tools/
    tools/soc_reset_hold
    tools/soc_reset_release
    SUCCESS: Extracted binaries
    Entered servers/ directory
    
    Make apps exe, copy protobuf files 
    
    SUCCESS: Made servers and applications executable
    SUCCESS: Made /tools/ folder executable
    
    Copy Protobuf Files to /usr/lib directory
    
    SUCCESS: Copied Protobuf Files
    
    ********** SETUP SUCCESSFUL! **********
    
    
     --------- Getting Started Tips ----------- 
    
    Navigate to Node Scripts ==> cd Projects/node 
    
    Start Linux Zigbee Gateway and Node.js Zigbee Local Gateway ==> sudo ./start_local.sh 
    
    Start Linux Zigbee Gateway and Node.js IBM Gateway ==> sudo ./start_ibm.sh 
    
    Start Linux Zigbee Gateway Only ==> sudo ./start_gateway.sh 
    
    Kill All Gateways ==> sudo ./end.sh 
    
    --------------------------------------------- 
    
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ ls
    build_all  Components  ERROR__out  Projects  scripts  setup.sh
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ ls ERROR__out/
    content.txt  expected_content.txt  Precompiled  Precompiled.tar
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ ls ERROR__out/Precompiled
    Precompiled/     Precompiled.tar  
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ ls ERROR__out/Precompiled/
    app/      misc/     protobuf/ servers/  tools/    
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ ls ERROR__out/Precompiled/servers/
    config.ini          gateway_config.tlg  nwkmgr_config.ini   start_application  zigbeeHAgw
    gateway_config.ini  NPI_Gateway.cfg     sample_app_ota.cfg  track_servers
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$
    
    build_x86.log
    content.txt
    .
    ./content.txt
    ./Precompiled
    ./Precompiled/app
    ./Precompiled/misc
    ./Precompiled/misc/CC2531-GW-ZNP_39203.bin
    ./Precompiled/misc/ota_sample_images
    ./Precompiled/misc/ota_sample_images/5678-1234-0000AAAA.zigbee
    ./Precompiled/misc/ota_sample_images/5678-1234-0000BBBB.zigbee
    ./Precompiled/protobuf
    ./Precompiled/protobuf/libprotobuf-c.so.1.0.0
    ./Precompiled/servers
    ./Precompiled/servers/config.ini
    ./Precompiled/servers/gateway_config.ini
    ./Precompiled/servers/gateway_config.tlg
    ./Precompiled/servers/NPI_Gateway.cfg
    ./Precompiled/servers/nwkmgr_config.ini
    ./Precompiled/servers/sample_app_ota.cfg
    ./Precompiled/servers/start_application
    ./Precompiled/servers/track_servers
    ./Precompiled/servers/zigbeeHAgw
    ./Precompiled/tools
    ./Precompiled/tools/soc_reset_hold
    ./Precompiled/tools/soc_reset_release
    
    
    expected_content.txt
    .
    ./content.txt
    ./Precompiled
    ./Precompiled/app
    ./Precompiled/app/main.bin
    ./Precompiled/misc
    ./Precompiled/misc/CC2531-GW-ZNP_39203.bin
    ./Precompiled/misc/ota_sample_images
    ./Precompiled/misc/ota_sample_images/5678-1234-0000AAAA.zigbee
    ./Precompiled/misc/ota_sample_images/5678-1234-0000BBBB.zigbee
    ./Precompiled/protobuf
    ./Precompiled/protobuf/libprotobuf-c.so.1.0.0
    ./Precompiled/servers
    ./Precompiled/servers/config.ini
    ./Precompiled/servers/gateway_config.ini
    ./Precompiled/servers/gateway_config.tlg
    ./Precompiled/servers/GATEWAY_SRVR_arm
    ./Precompiled/servers/NPI_Gateway.cfg
    ./Precompiled/servers/NPI_lnx_arm_server
    ./Precompiled/servers/nwkmgr_config.ini
    ./Precompiled/servers/NWKMGR_SRVR_arm
    ./Precompiled/servers/OTA_SRVR_arm
    ./Precompiled/servers/sample_app_ota.cfg
    ./Precompiled/servers/start_application
    ./Precompiled/servers/track_servers
    ./Precompiled/servers/zigbeeHAgw
    ./Precompiled/servers/ZLSZNP_arm
    ./Precompiled/tools
    ./Precompiled/tools/gw_soc_fw_version_query.bin
    ./Precompiled/tools/sbl_tool.bin
    ./Precompiled/tools/soc_reset_hold
    ./Precompiled/tools/soc_reset_release
    ./Precompiled/tools/usbreset.bin
    
    
    6114.NPI_Gateway.cfgpackage_builder.dat
    zigbeeHAgw_x86.log
    user@user-pc5:~/zstack_x86_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/ERROR__out/Precompiled/servers$ 
    user@user-pc5:~/zstack_x86_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/ERROR__out/Precompiled/servers$ sudo ./zigbeeHAgw 
    Platform type selected automatically as x86.
    To override this selection, please stop this script, and then run it again,
    specifying the desired platform type at the command line:
      ./zigbeeHAgw [help | bbb | x86 ]
    
    running ./zigbeeHAgw on an x86
    done processing arguments, board type x86, target x86
    NPI                 is 'NPI_lnx_x86_server'
    Zstack linux server is 'ZLSZNP_x86'
    gateway server      is 'GATEWAY_SRVR_x86'
    network manager     is 'NWKMGR_SRVR_x86'
    OTA server     	  is 'OTA_SRVR_x86'
    Starting the ZigBee gateway subsystem
    making sure there are no lingering servers...
    there are 0 NPI servers
    there are 0 ZLS servers
    there are 0 GATEWAY servers
    there are 0 NWKMGR servers
    there are 0 OTA servers
    (total 0)
    done
    Executing reset from external scripts
    ===================================================
    starting NPI, cmd ' ./NPI_lnx_x86_server NPI_Gateway.cfg ' on Tuesday 30 March 2021 06:37:14 PM IST
    [18:37:14.515,149] [NPISRVR/MAIN] UNMSKBL: 
    [18:37:14.515,245] [NPISRVR/MAIN] UNMSKBL:  ************************************************
    [18:37:14.515,255] [NPISRVR/MAIN] UNMSKBL:  *  NPI Server v1.0.2d                          *
    [18:37:14.515,262] [NPISRVR/MAIN] UNMSKBL:  ************************************************
    [18:37:14.515,268] [NPISRVR/MAIN] UNMSKBL: 
    Startup phase 1 completed successfully, server started (NPI_PID=282362) on Tuesday 30 March 2021 06:37:14 PM IST
    ===================================================
    starting ZLSZNP, cmd ' ./ZLSZNP_x86 127.0.0.1:2533 config.ini ' on Tuesday 30 March 2021 06:37:14 PM IST
    [18:37:14.519,992] [Z_STACK/MAIN] UNMSKBL: 
    [18:37:14.520,033] [Z_STACK/MAIN] UNMSKBL:  ************************************************
    [18:37:14.520,040] [Z_STACK/MAIN] UNMSKBL:  *  ZStack Server for ZNP v1.0.2d               *
    [18:37:14.520,045] [Z_STACK/MAIN] UNMSKBL:  ************************************************
    [18:37:14.520,049] [Z_STACK/MAIN] UNMSKBL: 
    Startup phase 2 completed successfully, server started (ZLSZNP_PID=282368) on Tuesday 30 March 2021 06:37:14 PM IST
    ===================================================
    starting NETWORK_MGR, cmd ' ./NWKMGR_SRVR_x86 127.0.0.1:2536 ' on Tuesday 30 March 2021 06:37:14 PM IST
    [18:37:14.551,195] [NWK_MGR/MAIN] UNMSKBL: 
    [18:37:14.551,252] [NWK_MGR/MAIN] UNMSKBL:  ************************************************
    [18:37:14.551,259] [NWK_MGR/MAIN] UNMSKBL:  *  Network Manager Server v1.0.2d              *
    [18:37:14.551,264] [NWK_MGR/MAIN] UNMSKBL:  ************************************************
    [18:37:14.551,269] [NWK_MGR/MAIN] UNMSKBL: 
    Startup phase 3 completed successfully, server started (NETWORK_MGR_PID=282375) on Tuesday 30 March 2021 06:37:14 PM IST
    ===================================================
    starting GATEWAY_SERVER, cmd ' ./GATEWAY_SRVR_x86 127.0.0.1:2536 127.0.0.1:2540 ' on Tuesday 30 March 2021 06:37:14 PM IST
    [18:37:14.610,226] [GATEWAY/MAIN] UNMSKBL: 
    [18:37:14.610,328] [GATEWAY/MAIN] UNMSKBL:  ************************************************
    [18:37:14.610,336] [GATEWAY/MAIN] UNMSKBL:  *  Gateway Server v1.0.2d                      *
    [18:37:14.610,343] [GATEWAY/MAIN] UNMSKBL:  ************************************************
    [18:37:14.610,360] [GATEWAY/MAIN] UNMSKBL: 
    Startup phase 4 completed successfully, server started (GATEWAY_SERVER_PID=282382) on Tuesday 30 March 2021 06:37:14 PM IST
    ===================================================
    starting OTA_SERVER, cmd './OTA_SRVR_x86 127.0.0.1:2536 127.0.0.1:2540 ' on Tuesday 30 March 2021 06:37:14 PM IST
    [18:37:14.723,029] [OTASRVR/MAIN] UNMSKBL: 
    [18:37:14.723,095] [OTASRVR/MAIN] UNMSKBL:  ************************************************
    [18:37:14.723,105] [OTASRVR/MAIN] UNMSKBL:  *  OTA Upgrade Server v1.0.2d                  *
    [18:37:14.723,112] [OTASRVR/MAIN] UNMSKBL:  ************************************************
    [18:37:14.723,118] [OTASRVR/MAIN] UNMSKBL: 
    Startup phase 5 completed successfully, server started (OTA_SERVER_PID=282391) on Tuesday 30 March 2021 06:37:14 PM IST
    starting tracker with our pid ./zigbeeHAgw and pid list 282362 282368 282382 282391
    ===================================================
    tracking 4 pids, 282362 282368 282382 282391
    when we see something missing we will send a SIGUSR2 to pid 282319
    waiting for netmgr to exit ( pid 282375 ) on Tuesday 30 March 2021 06:37:14 PM IST
    

    Vikas

  • It seems that you build x86 linux gateway which is not correct for your platform. You can refer to "BeagleBone Black Setup:" section in "Z-Stack Linux Gateway - Quick Start Guide" to build binary correctly for your i.Mx platform and make sure you do the step: "Ensure that the source/scripts/package_builder script has TARGET_PLATFORM set to "BEAGLEBONE_BLACK" (ie. export TARGET_PLATFORM="BEAGLEBONE_BLACK")"

  • Part Number: CC2652P

    By using ZIGBEE-LINUX-SENSOR-TO-CLOUD we tried building for x86 and IMX8 platform. The steps followed are :

     

    Compiling the zstack Linux Gateway source for X86 ARCH on UBUNTU 20.04 LTS:

     

    step-1: Downloaded Zigbee_3_0_Linux_Gateway_1_0_1.run file from the below link

        https://www.ti.com/tool/download/ZIGBEE-LINUX-SENSOR-TO-CLOUD

     

    step-2: Installed zstack into a folder by  running the Zigbee_3_0_Linux_Gateway_1_0_1.run file

     

    step-3: Followed the steps mentioned in the Linux OS setup and Linux Gateway Setup sections of the below link

    http://software-dl.ti.com/simplelink/esd/zigbee_3_0_Linux/1.0.1/exports/Documents/Z-Stack%20Linux%20Gateway%20-%20Quick%20Start%20Guide.html

     

    step-4: After running setup.sh script, we are unable to get out folder, getting ERROR__out folder. And attached the build_x86.log file in the attachments

     

    step-5: Connect the ZNP node and detected as /dev/ttyACM0, /dev/ttyACM1

     

    step-6: Added ZNP device node name(/dev/ttyACM0) in source/ERROR__out/Precompiled/servers/NPI_Gateway.cfg. Attaching the same file in the attachment

     

    step-7: Run sudo ./zigbeeHAgw file and attached the zigbeeHAgw_x86.log in the attachments

     

    step-8: Run sudo ./start_application file and attached the start_application_x86.png in the attachments.

     

     

    Compiling the zstack Linux Gateway source for i.MX8 ARCH:

     

    step-1: Generated(from Yocto) and installed the cross compiler for i.MX8

     

    step-2: Downloaded Zigbee_3_0_Linux_Gateway_1_0_1.run file from the below link

        https://www.ti.com/tool/download/ZIGBEE-LINUX-SENSOR-TO-CLOUD

     

    step-3: Installed zstack into a folder bu running the Zigbee_3_0_Linux_Gateway_1_0_1.run file

     

    step-4: Exported the toolchain by using the command: . /opt/fsl-imx-xwayland/5.4-zeus/environment-setup-aarch64-poky-linux

     

    step-5: Modified(Added TARGET_PLATFORM=IMX8) the scripts/package_builder file and attached the file in the attachments

     

    step-6: After running setup.sh script, we are unable to get out folder, getting ERROR__out folder and got some build errors as well. And attached the build_imx8.log, content.txt and expected_content.txt files in the attachments

     

    Please let me know the steps we followed is correct or not. Also I would like to know how we can build the Zigbee_3_0_Linux_Gateway  for IMX8 .

    6562.build_imx8.log
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ aa-
    aa-enabled         aa-exec            aa-remove-unknown  aa-status          aa-teardown        
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ aa-^C
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ 
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ 
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ . /opt/fsl-imx-xwayland/5.4-zeus/environment-setup-aarch64-poky-linux 
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ aa
    aa-enabled                             aarch64-poky-linux-lld                 aarch64-poky-linux-musl-ld.bfd
    aa-exec                                aarch64-poky-linux-llvm-ar             aarch64-poky-linux-musl-ld.gold
    aarch64-poky-linux-addr2line           aarch64-poky-linux-llvm-nm             aarch64-poky-linux-musl-ld.lld
    aarch64-poky-linux-ar                  aarch64-poky-linux-llvm-profdata       aarch64-poky-linux-musl-lld
    aarch64-poky-linux-as                  aarch64-poky-linux-llvm-ranlib         aarch64-poky-linux-musl-llvm-ar
    aarch64-poky-linux-c++filt             aarch64-poky-linux-musl-addr2line      aarch64-poky-linux-musl-llvm-nm
    aarch64-poky-linux-clang               aarch64-poky-linux-musl-ar             aarch64-poky-linux-musl-llvm-profdata
    aarch64-poky-linux-clang++             aarch64-poky-linux-musl-as             aarch64-poky-linux-musl-llvm-ranlib
    aarch64-poky-linux-clang-tidy          aarch64-poky-linux-musl-c++filt        aarch64-poky-linux-musl-nm
    aarch64-poky-linux-cpp                 aarch64-poky-linux-musl-clang          aarch64-poky-linux-musl-objcopy
    aarch64-poky-linux-dwp                 aarch64-poky-linux-musl-clang++        aarch64-poky-linux-musl-objdump
    aarch64-poky-linux-elfedit             aarch64-poky-linux-musl-clang-tidy     aarch64-poky-linux-musl-ranlib
    aarch64-poky-linux-g++                 aarch64-poky-linux-musl-cpp            aarch64-poky-linux-musl-readelf
    aarch64-poky-linux-gcc                 aarch64-poky-linux-musl-dwp            aarch64-poky-linux-musl-size
    aarch64-poky-linux-gcc-ar              aarch64-poky-linux-musl-elfedit        aarch64-poky-linux-musl-strings
    aarch64-poky-linux-gcc-nm              aarch64-poky-linux-musl-g++            aarch64-poky-linux-musl-strip
    aarch64-poky-linux-gcc-ranlib          aarch64-poky-linux-musl-gcc            aarch64-poky-linux-nm
    aarch64-poky-linux-gcov                aarch64-poky-linux-musl-gcc-ar         aarch64-poky-linux-objcopy
    aarch64-poky-linux-gcov-dump           aarch64-poky-linux-musl-gcc-nm         aarch64-poky-linux-objdump
    aarch64-poky-linux-gcov-tool           aarch64-poky-linux-musl-gcc-ranlib     aarch64-poky-linux-ranlib
    aarch64-poky-linux-gdb                 aarch64-poky-linux-musl-gcov           aarch64-poky-linux-readelf
    aarch64-poky-linux-gdb-add-index       aarch64-poky-linux-musl-gcov-dump      aarch64-poky-linux-size
    aarch64-poky-linux-gprof               aarch64-poky-linux-musl-gcov-tool      aarch64-poky-linux-strings
    aarch64-poky-linux-ld                  aarch64-poky-linux-musl-gdb            aarch64-poky-linux-strip
    aarch64-poky-linux-ld.bfd              aarch64-poky-linux-musl-gdb-add-index  aa-remove-unknown
    aarch64-poky-linux-ld.gold             aarch64-poky-linux-musl-gprof          aa-status
    aarch64-poky-linux-ld.lld              aarch64-poky-linux-musl-ld             aa-teardown
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ aa^C
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ 
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ echo $CC
    aarch64-poky-linux-gcc -mcpu=cortex-a53+crc+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$  
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ 
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ sudo ./setup.sh 
    ******************* BEGIN SETUP! ********************
    This setup script will:
      - make all necessary scripts executable
      - ensure necessary files have UNIX line endings
      - remove prebuilt directories
      - install Node Modules for Node.js Zigbee Gateway
      - build Linux Zigbee Gateway
      - extract Linux Zigbee Gateway binaries
    *****************************************************
    Entered /Projets/node Directory
    
    Make the gateway scripts executable
    
    SUCCESS - gateway scripts executable
    /home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source
    
    Remove ERROR__out or out Directory if present
    
    Removed Previous built package.
    
    Convert all files from dos2unix 
    
    dos2unix: converting file ./Projects/zstack/OTA/Source/ota_common.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/source/OnBoard.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/source/pb_utils.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/source/pb_utils.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/source/OnBoard.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/source/zmain.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgrservices.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/Makefile to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgr.pb-c.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgrsrv.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgrsrv.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgrservices.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgr_pb_ctrl.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgrdatabase.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgrp2p.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgr.pb-c.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgrp2p.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgr_config.ini to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgrdatabase.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/zcl_ha.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/nwkmgr_pb_ctrl.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/nwkmgr/aps_groups.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/gatewayservices.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/aps_groups.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/Makefile to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/gatewaysrvr.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/zcl_port.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/gatewayservices.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/gatewaysrvr.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/gateway_config.tlg to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/gateway_pb_ctrl.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/gateway.pb-c.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/gateway_pb_ctrl.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/gateway.pb-c.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/gateway_config.ini to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/zcl_ha.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/zcl_port.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/gateway.proto to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hagateway/aps_groups.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zmac/zmac_internal.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hal/hal_mcu.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hal/hal_timer.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hal/hal_types.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hal/hal_board_cfg.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/hal/hal_defs.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/include/OSAL.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/include/OSAL_Memory.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/include/sdata.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/include/comdef.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/include/OSAL_Timers.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/include/OSAL_PwrMgr.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/include/ZComDef.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/include/OSAL_Tasks.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/include/saddr.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/include/OSAL_Nv.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/common/OSAL_PwrMgr.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/common/OSAL.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/common/OSAL_Timers.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/linux_osal/common/OSAL_Memory.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/sdb/SimpleDBTxt.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/sdb/SimpleDBTxt.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/sdb/SimpleDB.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/sdb/SimpleDB.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/zcl_ota.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/zcl_otaserver_lnx.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/otasrvr_pb_ctrl.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/Makefile to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/utils.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/otasrvr.pb-c.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/otasrvr.pb-c.h to Unix format...
    dos2unix: Binary symbol 0x1E found at line 1
    dos2unix: Skipping binary file ./Projects/zstack/linux/otaserver/ota_sample_images/5678-1234-0000AAAA.zigbee
    dos2unix: Binary symbol 0x1E found at line 1
    dos2unix: Skipping binary file ./Projects/zstack/linux/otaserver/ota_sample_images/5678-1234-0000BBBB.zigbee
    dos2unix: converting file ./Projects/zstack/linux/otaserver/ota_sample_images/Readme.txt to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/ota_common.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/otasrvr.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/zcl_ota.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/otaserver.ini to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/OtaServer_db.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/OtaServer.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/OtaServer.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/OtaServer_db.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/otasrvr_pb_ctrl.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/otasrvr.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/zcl_port.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/otaserver/aps_groups.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackpb/zstackpb.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackpb/zstackpb.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackpb/zstack.pb-c.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackpb/zstack.pb-c.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvepconfig/serverep.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvepconfig/serverep.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/serverpb/gatewayp2p.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/serverpb/server.pb-c.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/serverpb/server.pb-c.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/serverpb/gatewayp2p.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/serverpb/server_pb_ctrl.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/serverpb/server_pb_ctrl.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/bbb_usbreset/source/bbb_usbreset.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/bbb_usbreset/project/makefile to Unix format...
    dos2unix: Binary symbol 0x01 found at line 1
    dos2unix: Skipping binary file ./Projects/zstack/linux/bbb_usbreset/project/out/bbb_usbreset.o
    dos2unix: Binary symbol 0x01 found at line 1
    dos2unix: Skipping binary file ./Projects/zstack/linux/bbb_usbreset/project/bbb_usbreset.bin
    dos2unix: Binary symbol 0x00 found at line 3
    dos2unix: Skipping binary file ./Projects/zstack/linux/protobuf-c/lib/x86/libprotobuf-c.a
    dos2unix: Binary symbol 0x01 found at line 1
    dos2unix: Skipping binary file ./Projects/zstack/linux/protobuf-c/lib/x86/libprotobuf-c.so
    dos2unix: Binary symbol 0x01 found at line 1
    dos2unix: Skipping binary file ./Projects/zstack/linux/protobuf-c/lib/x86/libprotobuf-c.so.1.0.0
    dos2unix: Binary symbol 0x00 found at line 3
    dos2unix: Skipping binary file ./Projects/zstack/linux/protobuf-c/lib/arm/libprotobuf-c.a
    dos2unix: converting file ./Projects/zstack/linux/protobuf-c/lib/arm/libprotobuf-c.la to Unix format...
    dos2unix: Binary symbol 0x01 found at line 1
    dos2unix: Skipping binary file ./Projects/zstack/linux/protobuf-c/lib/arm/libprotobuf-c.so.1.0.0
    dos2unix: converting file ./Projects/zstack/linux/protobuf-c/lib/arm/pkgconfig/libprotobuf-c.pc to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/protobuf-c/include/google/protobuf-c/protobuf-c.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/sbl_tool/project/Makefile to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/sbl_tool/Source/zbSocTransportUart.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/sbl_tool/Source/zbSocCmd.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/sbl_tool/Source/main.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/sbl_tool/Source/zbSocCmd.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/sbl_tool/Source/zbSocTransportUart.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/version_query_minitool/project/Makefile to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/version_query_minitool/Source/zbSocTransportUart.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/version_query_minitool/Source/zbSocCmd.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/version_query_minitool/Source/main.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/version_query_minitool/Source/zbSocCmd.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/version_query_minitool/Source/zbSocTransportUart.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/scripts/hagateway/track_servers to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/scripts/hagateway/reset/soc_reset_hold to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/scripts/hagateway/reset/soc_reset_release to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/scripts/hagateway/reset/bbb/soc_reset_hold to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/scripts/hagateway/reset/bbb/soc_reset_release to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/scripts/hagateway/zigbeeHAgw to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/scripts/package_builder_expected_content_RUNTIME_arm.txt to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/scripts/sample_app/start_application to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/scripts/package_builder_expected_content_RUNTIME_x86.txt to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/NPI_Gateway.cfg to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/makefile to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/hal_spi.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/hal_gpio.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/npi_lnx_i2c.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/npi_lnx_i2c.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/hal_i2c.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/npi_lnx_spi.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/npi_lnx_ipc.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/hal_spi.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/hal_gpio.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/npi_lnx_uart.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/npi_lnx_uart.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/aic.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/npi_lnx_spi.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/server/hal_i2c.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/common/npi_lnx.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/common/hal_types.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/common/hal_rpc.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/common/npi_lnx_error.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost/ipclib/common/npi_lnx_ipc_rpc.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackserverznp/Makefile to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackserverznp/zstack_pb_ctrl.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackserverznp/znp_af.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackserverznp/znp_zdo.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackserverznp/osal_zstack_server_znp.c to Unix format...
    dos2unix: Binary symbol 0x01 found at line 1
    dos2unix: Skipping binary file ./Projects/zstack/linux/zstackserverznp/ZLSZNP_arm
    dos2unix: converting file ./Projects/zstack/linux/zstackserverznp/config.ini to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackserverznp/f8wConfig.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackserverznp/zstack_pb_ctrl.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/zstackserverznp/znp_misc.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/soc_images/CC2531_USB_Dongle/CC2531-GW-ZNP_39203_sbl39186.hex to Unix format...
    dos2unix: Binary symbol 0x02 found at line 1
    dos2unix: Skipping binary file ./Projects/zstack/linux/soc_images/CC2531_USB_Dongle/CC2531-GW-ZNP_39203.bin
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/ota_engine.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/actions_engine.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/commissioning_engine.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/device_list_engine.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/network_info_engine.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/ota_engine.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/system_engine.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/device_list_engine.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/sensor_engine.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/network_info_engine.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/attribute_engine.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/group_scene_engine.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/state_reflector.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/commissioning_engine.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/attribute_engine.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/state_reflector.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/system_engine.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/actions_engine.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/sensor_engine.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/engines/group_scene_engine.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/project/makefile to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/project/main.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/project/sample_app_ota.cfg to Unix format...
    dos2unix: Binary symbol 0x1E found at line 1
    dos2unix: Skipping binary file ./Projects/zstack/linux/demo/project/images/5678-1234-BBBB0000.zigbee
    dos2unix: Binary symbol 0x1E found at line 1
    dos2unix: Skipping binary file ./Projects/zstack/linux/demo/project/images/5678-1234-AAAA0000.zigbee
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/user_interface.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/socket_interface.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/polling.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/tcp_client.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/user_interface.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/timer_utils.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/data_structures.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/macros.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/types.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/tcp_client.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/data_structures.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/macros.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/timer_utils.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/socket_interface.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/demo/framework/polling.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/cc-rom-sbl/Makefile to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/cc-rom-sbl/ccxxxxdnld.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/cc-rom-sbl/ccxxxxdnld.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/cc-rom-sbl/sblUart.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/cc-rom-sbl/main.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/cc-rom-sbl/sblUart.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/cc-rom-sbl/deviceTypes.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/usbreset/source/usbreset.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/usbreset/project/makefile to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvwrapper/api_server.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvwrapper/trace.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvwrapper/api_server.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvwrapper/api_client.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvwrapper/trace.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvwrapper/main.c to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvwrapper/hal_rpc.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvwrapper/api_lnx_ipc_rpc.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvwrapper/api_client.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvwrapper/configparser.h to Unix format...
    dos2unix: converting file ./Projects/zstack/linux/srvwrapper/configparser.c to Unix format...
    dos2unix: converting file ./Projects/node/start_gateway.sh to Unix format...
    dos2unix: converting file ./Projects/node/start_local.sh to Unix format...
    dos2unix: converting file ./Projects/node/README.html to Unix format...
    dos2unix: converting file ./Projects/node/README.md to Unix format...
    dos2unix: converting file ./Projects/node/start_ibm.sh to Unix format...
    dos2unix: converting file ./Projects/node/end.sh to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/app.js to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/webapp.html to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/webapp.js to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/js/bootstrap.bundle.min.js.map to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/js/bootstrap.bundle.min.js to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/js/Chart.min.js to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/js/bootstrap.bundle.js to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/js/bootstrap.js.map to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/js/bootstrap.bundle.js.map to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/js/popper.min.js to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/js/bootstrap.min.js.map to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/js/bootstrap.min.js to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/js/bootstrap.js to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap.min.css to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap-reboot.css to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap.css.map to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/slider.css to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap-reboot.min.css to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap-grid.min.css.map to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap-reboot.css.map to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap.css to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap-grid.css.map to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap-grid.min.css to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap-grid.css to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap-reboot.min.css.map to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/css/bootstrap.min.css.map to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/jquery/jquery-1.12.0.min.js to Unix format...
    dos2unix: Binary symbol 0x1A found at line 2
    dos2unix: Skipping binary file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/img/light_on.png
    dos2unix: Binary symbol 0x1A found at line 2
    dos2unix: Skipping binary file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/img/light_off.png
    dos2unix: Binary symbol 0x1A found at line 2
    dos2unix: Skipping binary file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/img/unlock.png
    dos2unix: Binary symbol 0x1A found at line 2
    dos2unix: Skipping binary file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/dist/img/lock.png
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/public/zb_lib.js to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/cloudWebServer/cloudWebServer.js to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/package.json to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/manifest.yml to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/ibmConfig.json to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/README.html to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/.project to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/README.md to Unix format...
    dos2unix: converting file ./Projects/cloud_apps/ibm-webapp/.cfignore to Unix format...
    dos2unix: converting file ./Components/zmac/ZMAC.h to Unix format...
    dos2unix: converting file ./Components/hal/include/hal_board.h to Unix format...
    dos2unix: converting file ./Components/hal/include/hal_drivers.h to Unix format...
    dos2unix: converting file ./Components/hal/include/hal_timer.h to Unix format...
    dos2unix: converting file ./Components/hal/include/hal_key.h to Unix format...
    dos2unix: converting file ./Components/hal/include/hal_led.h to Unix format...
    dos2unix: converting file ./Components/hal/include/hal_uart.h to Unix format...
    dos2unix: converting file ./Components/mt/MT_RPC.h to Unix format...
    dos2unix: converting file ./Components/mt/MT.h to Unix format...
    dos2unix: converting file ./Components/mac/include/mac_api.h to Unix format...
    dos2unix: converting file ./Components/stack/sys/ZGlobals.h to Unix format...
    dos2unix: converting file ./Components/stack/sec/ssp.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/nwk_bufs.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/AssocList.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/nwk.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/stub_aps.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/rtg.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/APSMEDE.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/NLMEDE.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/BindingTable.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/reflecttrack.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/nwk_util.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/APS.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/nwk_globals.h to Unix format...
    dos2unix: converting file ./Components/stack/nwk/aps_groups.h to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_hvac.c to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_ss.c to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_hvac.h to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_poll_control.h to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_lighting.c to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_ss.h to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl.h to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_general.h to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_green_power.h to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_lighting.h to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl.c to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_green_power.c to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_ezmode.h to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_closures.c to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_general.c to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_poll_control.c to Unix format...
    dos2unix: converting file ./Components/stack/zcl/zcl_closures.h to Unix format...
    dos2unix: converting file ./Components/stack/gp/gp_common.c to Unix format...
    dos2unix: converting file ./Components/stack/gp/gp_proxyTbl.c to Unix format...
    dos2unix: converting file ./Components/stack/gp/dGP_stub.h to Unix format...
    dos2unix: converting file ./Components/stack/gp/gp_common.h to Unix format...
    dos2unix: converting file ./Components/stack/gp/gp_interface.h to Unix format...
    dos2unix: converting file ./Components/stack/gp/cGP_stub.h to Unix format...
    dos2unix: converting file ./Components/stack/af/AF.h to Unix format...
    dos2unix: converting file ./Components/stack/zdo/ZDApp.h to Unix format...
    dos2unix: converting file ./Components/stack/zdo/ZDProfile.h to Unix format...
    dos2unix: converting file ./Components/stack/zdo/ZDObject.h to Unix format...
    dos2unix: converting file ./Components/stack/zdo/ZDConfig.h to Unix format...
    dos2unix: converting file ./Components/stack/zdo/ZDSecMgr.h to Unix format...
    dos2unix: converting file ./Components/services/saddr/saddr.h to Unix format...
    dos2unix: converting file ./Components/services/saddr/saddr.c to Unix format...
    dos2unix: converting file ./build_all to Unix format...
    dos2unix: converting file ./scripts/package_builder to Unix format...
    dos2unix: converting file ./setup.sh to Unix format...
    SUCCESS: Converted Scripts to Unix Line endings
    Entered /Projets/node/nodejs_zb_gateway Directory
    
    Installing Node Modules 
    
    npm WARN deprecated json3@3.2.6: Please use the native JSON object instead of JSON 3
    npm WARN deprecated axios@0.5.4: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
    
    added 232 packages, and audited 233 packages in 12s
    
    2 packages are looking for funding
      run `npm fund` for details
    
    14 vulnerabilities (2 low, 4 moderate, 8 high)
    
    To address issues that do not require attention, run:
      npm audit fix
    
    To address all issues (including breaking changes), run:
      npm audit fix --force
    
    Run `npm audit` for details.
    SUCCESS: Installed all Node Modules Successfully
    /home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source
    
    Make build_all executable 
    
    SUCCESS: build_all script is now executable
    
    Make scripts/ executable 
    
    SUCCESS: scripts/ folder is now executable
    
    Run ./build_all 
    
    SVN Version =  Unversioned directory
    
    Main project\'s base directory: GATEWAY=/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source (leave blank to use the detault)
    Project output subdirectory: PKGS_OUTPUT_DIR=/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/out (leave blank to use the detault)
    
    Building RUNTIME package for IMX8 platform
    
    ********************************************************
    Cleaning all
    if test -d out; then rm -rf out; fi
    rm -f project_file_list.txt
    ********************************************************
    Check existance of output folder
    if test ! -d out; then mkdir out; fi
    ********************************************************
    COMPILING SERVER FOR ARM BEAGLE BONE
    make[1]: Entering directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost'
    Compiling ipclib/server/npi_lnx_ipc.c ...
    make[1]: arm-linux-gnueabihf-gcc: Command not found
    make[1]: *** [makefile:211: out/npi_lnx_ipc.o] Error 127
    make[1]: Leaving directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/RemoTI-Linux-master/Projects/tools/LinuxHost'
    make: *** [makefile:98: arch-all-arm] Error 2
    Cleaning up out/*
    ********************************************************
    Check existance of output folder
    if test ! -d out; then mkdir out; fi
    ********************************************************
    COMPILING APP FOR ARM
    make[1]: Entering directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/zstackserverznp'
    Compiling osal_zstack_server_znp.c ...
    make[1]: aarch64-poky-linux-gcc: Command not found
    make[1]: *** [Makefile:136: out/osal_zstack_server_znp.o] Error 127
    make[1]: Leaving directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/zstackserverznp'
    make: *** [Makefile:89: arch-all-arm] Error 2
    ********************************************************
    Cleaning all
    if test -d out; then rm -rf out; fi
    /bin/rm -f project_file_list.txt
    /bin/rm -f actual_standard_project_file_list.txt
    /bin/rm -f actual_specific_project_file_list.txt
    ********************************************************
    Check existance of output folder
    if test ! -d out; then mkdir out; fi
    ********************************************************
    COMPILING APP FOR ARM
    make[1]: Entering directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/nwkmgr'
    Compiling ../srvepconfig/serverep.c ...
    make[1]: aarch64-poky-linux-gcc: Command not found
    make[1]: *** [Makefile:200: out/serverep.o] Error 127
    make[1]: Leaving directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/nwkmgr'
    make: *** [Makefile:106: arch-all-arm] Error 2
    ********************************************************
    Cleaning all
    if test -d out; then rm -rf out; fi
    /bin/rm -f project_file_list.txt
    /bin/rm -f actual_specific_project_file_list.txt
    /bin/rm -f actual_standard_project_file_list.txt
    ********************************************************
    Check existance of output folder
    if test ! -d out; then mkdir out; fi
    ********************************************************
    COMPILING APP FOR ARM
    make[1]: Entering directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/hagateway'
    Compiling ../srvepconfig/serverep.c ...
    make[1]: aarch64-poky-linux-gcc: Command not found
    make[1]: *** [Makefile:218: out/serverep.o] Error 127
    make[1]: Leaving directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/hagateway'
    make: *** [Makefile:130: arch-all-arm] Error 2
    ********************************************************
    Cleaning all
    if test -d out; then rm -rf out; fi
    /bin/rm -f project_file_list.txt
    /bin/rm -f actual_specific_project_file_list.txt
    /bin/rm -f actual_standard_project_file_list.txt
    ********************************************************
    Check existance of output folder
    if test ! -d out; then mkdir out; fi
    ********************************************************
    COMPILING APP FOR ARM
    make[1]: Entering directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/otaserver'
    Compiling ../zstackpb/zstack.pb-c.c ...
    make[1]: aarch64-poky-linux-gcc: Command not found
    make[1]: *** [Makefile:172: out/zstack.pb-c.o] Error 127
    make[1]: Leaving directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/otaserver'
    make: *** [Makefile:113: arch-all-arm] Error 2
    ********************************************************
    Cleaning up ./out/*
    if test -d ./out; then rm -rf ./out; fi
    rm -f main.bin
    rm -f project_file_list.txt
    ********************************************************
    Check existance of output folder
    if test ! -d ./out; then mkdir ./out; fi
    ********************************************************
    COMPILING APP FOR ARM
    make[1]: Entering directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/demo/project'
    Compiling main.c ...
    make[1]: aarch64-poky-linux-gcc: Command not found
    make[1]: *** [makefile:123: out/main.o] Error 127
    make[1]: Leaving directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/demo/project'
    make: *** [makefile:75: arch-all-arm] Error 2
    rm -rf *.o sbl_tool.bin
    aarch64-poky-linux-gcc -Wall -DVERSION_NUMBER="0.1"  -D_GNU_SOURCE -DxHAL_UART_SPI -c -o main.o ../Source/main.c
    /bin/sh: 1: aarch64-poky-linux-gcc: not found
    make: *** [Makefile:31: main.o] Error 127
    rm -rf *.o gw_soc_fw_version_query.bin
    aarch64-poky-linux-gcc -Wall -DVERSION_NUMBER="0.1"  -D_GNU_SOURCE -DxHAL_UART_SPI -c -o main.o ../Source/main.c
    /bin/sh: 1: aarch64-poky-linux-gcc: not found
    make: *** [Makefile:30: main.o] Error 127
    ********************************************************
    Cleaning up out/*
    if test -d out; then rm -rf out; fi
    /bin/rm -f usbreset.bin out/*
    /bin/rm -f *project_file_list.txt
    VPATH is .
    ********************************************************
    Check existance of output folder
    if test ! -d out; then mkdir out; fi
    ********************************************************
    COMPILING APP FOR ARM
    make[1]: Entering directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/usbreset/project'
    /home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/usbreset/project
    Compiling ../source/usbreset.c ...
    make[1]: aarch64-poky-linux-gcc: Command not found
    make[1]: *** [makefile:80: out/usbreset.o] Error 127
    make[1]: Leaving directory '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/usbreset/project'
    make: *** [makefile:39: arch-all-arm] Error 2
    cp: cannot stat '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/RemoTI-Linux-master//Projects/tools/LinuxHost/out/NPI_lnx_arm_server': No such file or directory
    cp: cannot stat '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/zstackserverznp/out/ZLSZNP_arm': No such file or directory
    cp: cannot stat '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/nwkmgr/out/NWKMGR_SRVR_arm': No such file or directory
    cp: cannot stat '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/hagateway/out/GATEWAY_SRVR_arm': No such file or directory
    cp: cannot stat '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/otaserver/out/OTA_SRVR_arm': No such file or directory
    cp: cannot stat '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/demo/project/main.bin': No such file or directory
    cp: cannot stat '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/sbl_tool/project/sbl_tool.bin': No such file or directory
    cp: cannot stat '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/version_query_minitool/project/gw_soc_fw_version_query.bin': No such file or directory
    cp: cannot stat '/home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/Projects/zstack/linux/usbreset/project/usbreset.bin': No such file or directory
    
    Package verification results:
    ERROR: 16 error(s) occured during make
    diff /home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/out/content.txt /home/user/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/out/expected_content.txt
    4a5
    > ./Precompiled/app/main.bin
    15a17
    > ./Precompiled/servers/GATEWAY_SRVR_arm
    16a19
    > ./Precompiled/servers/NPI_lnx_arm_server
    17a21,22
    > ./Precompiled/servers/NWKMGR_SRVR_arm
    > ./Precompiled/servers/OTA_SRVR_arm
    21a27
    > ./Precompiled/servers/ZLSZNP_arm
    22a29,30
    > ./Precompiled/tools/gw_soc_fw_version_query.bin
    > ./Precompiled/tools/sbl_tool.bin
    24a33
    > ./Precompiled/tools/usbreset.bin
    ERROR: Content verification failed
    mv: target 'directory.tar' is not a directory
    
    ERROR: RUNTIME package for arm creation failed. See details above. Output folder/tar name prefixed with "ERROR_."
    
    SUCCESS: build_all finished.
    ./setup.sh: line 156: cd: out/Precompiled/: No such file or directory
    Entered Precompiled directory.
    app/
    misc/
    misc/ota_sample_images/
    misc/ota_sample_images/5678-1234-0000AAAA.zigbee
    misc/ota_sample_images/5678-1234-0000BBBB.zigbee
    misc/CC2531-GW-ZNP_39203.bin
    protobuf/
    protobuf/libprotobuf-c.so.1.0.0
    servers/
    servers/NPI_Gateway.cfg
    servers/track_servers
    servers/gateway_config.tlg
    servers/config.ini
    servers/nwkmgr_config.ini
    servers/gateway_config.ini
    servers/sample_app_ota.cfg
    servers/zigbeeHAgw
    servers/start_application
    tools/
    tools/soc_reset_hold
    tools/soc_reset_release
    SUCCESS: Extracted binaries
    Entered servers/ directory
    
    Make apps exe, copy protobuf files 
    
    SUCCESS: Made servers and applications executable
    SUCCESS: Made /tools/ folder executable
    
    Copy Protobuf Files to /usr/lib directory
    
    SUCCESS: Copied Protobuf Files
    
    ********** SETUP SUCCESSFUL! **********
    
    
     --------- Getting Started Tips ----------- 
    
    Navigate to Node Scripts ==> cd Projects/node 
    
    Start Linux Zigbee Gateway and Node.js Zigbee Local Gateway ==> sudo ./start_local.sh 
    
    Start Linux Zigbee Gateway and Node.js IBM Gateway ==> sudo ./start_ibm.sh 
    
    Start Linux Zigbee Gateway Only ==> sudo ./start_gateway.sh 
    
    Kill All Gateways ==> sudo ./end.sh 
    
    --------------------------------------------- 
    
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ ls
    build_all  Components  ERROR__out  Projects  scripts  setup.sh
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ ls ERROR__out/
    content.txt  expected_content.txt  Precompiled  Precompiled.tar
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ ls ERROR__out/Precompiled
    Precompiled/     Precompiled.tar  
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ ls ERROR__out/Precompiled/
    app/      misc/     protobuf/ servers/  tools/    
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$ ls ERROR__out/Precompiled/servers/
    config.ini          gateway_config.tlg  nwkmgr_config.ini   start_application  zigbeeHAgw
    gateway_config.ini  NPI_Gateway.cfg     sample_app_ota.cfg  track_servers
    user@user-pc5:~/zstack_i.MX8_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source$
    
    0652.build_x86.log
    2287.content.txt
    .
    ./content.txt
    ./Precompiled
    ./Precompiled/app
    ./Precompiled/misc
    ./Precompiled/misc/CC2531-GW-ZNP_39203.bin
    ./Precompiled/misc/ota_sample_images
    ./Precompiled/misc/ota_sample_images/5678-1234-0000AAAA.zigbee
    ./Precompiled/misc/ota_sample_images/5678-1234-0000BBBB.zigbee
    ./Precompiled/protobuf
    ./Precompiled/protobuf/libprotobuf-c.so.1.0.0
    ./Precompiled/servers
    ./Precompiled/servers/config.ini
    ./Precompiled/servers/gateway_config.ini
    ./Precompiled/servers/gateway_config.tlg
    ./Precompiled/servers/NPI_Gateway.cfg
    ./Precompiled/servers/nwkmgr_config.ini
    ./Precompiled/servers/sample_app_ota.cfg
    ./Precompiled/servers/start_application
    ./Precompiled/servers/track_servers
    ./Precompiled/servers/zigbeeHAgw
    ./Precompiled/tools
    ./Precompiled/tools/soc_reset_hold
    ./Precompiled/tools/soc_reset_release
    
    
    8726.expected_content.txt
    .
    ./content.txt
    ./Precompiled
    ./Precompiled/app
    ./Precompiled/app/main.bin
    ./Precompiled/misc
    ./Precompiled/misc/CC2531-GW-ZNP_39203.bin
    ./Precompiled/misc/ota_sample_images
    ./Precompiled/misc/ota_sample_images/5678-1234-0000AAAA.zigbee
    ./Precompiled/misc/ota_sample_images/5678-1234-0000BBBB.zigbee
    ./Precompiled/protobuf
    ./Precompiled/protobuf/libprotobuf-c.so.1.0.0
    ./Precompiled/servers
    ./Precompiled/servers/config.ini
    ./Precompiled/servers/gateway_config.ini
    ./Precompiled/servers/gateway_config.tlg
    ./Precompiled/servers/GATEWAY_SRVR_arm
    ./Precompiled/servers/NPI_Gateway.cfg
    ./Precompiled/servers/NPI_lnx_arm_server
    ./Precompiled/servers/nwkmgr_config.ini
    ./Precompiled/servers/NWKMGR_SRVR_arm
    ./Precompiled/servers/OTA_SRVR_arm
    ./Precompiled/servers/sample_app_ota.cfg
    ./Precompiled/servers/start_application
    ./Precompiled/servers/track_servers
    ./Precompiled/servers/zigbeeHAgw
    ./Precompiled/servers/ZLSZNP_arm
    ./Precompiled/tools
    ./Precompiled/tools/gw_soc_fw_version_query.bin
    ./Precompiled/tools/sbl_tool.bin
    ./Precompiled/tools/soc_reset_hold
    ./Precompiled/tools/soc_reset_release
    ./Precompiled/tools/usbreset.bin
    
    
    6445.NPI_Gateway.cfg8446.package_builder.dat
    1513.zigbeeHAgw_x86.log
    user@user-pc5:~/zstack_x86_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/ERROR__out/Precompiled/servers$ 
    user@user-pc5:~/zstack_x86_compilation/Zigbee_3_0_Linux_Gateway_1_0_1/source/ERROR__out/Precompiled/servers$ sudo ./zigbeeHAgw 
    Platform type selected automatically as x86.
    To override this selection, please stop this script, and then run it again,
    specifying the desired platform type at the command line:
      ./zigbeeHAgw [help | bbb | x86 ]
    
    running ./zigbeeHAgw on an x86
    done processing arguments, board type x86, target x86
    NPI                 is 'NPI_lnx_x86_server'
    Zstack linux server is 'ZLSZNP_x86'
    gateway server      is 'GATEWAY_SRVR_x86'
    network manager     is 'NWKMGR_SRVR_x86'
    OTA server     	  is 'OTA_SRVR_x86'
    Starting the ZigBee gateway subsystem
    making sure there are no lingering servers...
    there are 0 NPI servers
    there are 0 ZLS servers
    there are 0 GATEWAY servers
    there are 0 NWKMGR servers
    there are 0 OTA servers
    (total 0)
    done
    Executing reset from external scripts
    ===================================================
    starting NPI, cmd ' ./NPI_lnx_x86_server NPI_Gateway.cfg ' on Tuesday 30 March 2021 06:37:14 PM IST
    [18:37:14.515,149] [NPISRVR/MAIN] UNMSKBL: 
    [18:37:14.515,245] [NPISRVR/MAIN] UNMSKBL:  ************************************************
    [18:37:14.515,255] [NPISRVR/MAIN] UNMSKBL:  *  NPI Server v1.0.2d                          *
    [18:37:14.515,262] [NPISRVR/MAIN] UNMSKBL:  ************************************************
    [18:37:14.515,268] [NPISRVR/MAIN] UNMSKBL: 
    Startup phase 1 completed successfully, server started (NPI_PID=282362) on Tuesday 30 March 2021 06:37:14 PM IST
    ===================================================
    starting ZLSZNP, cmd ' ./ZLSZNP_x86 127.0.0.1:2533 config.ini ' on Tuesday 30 March 2021 06:37:14 PM IST
    [18:37:14.519,992] [Z_STACK/MAIN] UNMSKBL: 
    [18:37:14.520,033] [Z_STACK/MAIN] UNMSKBL:  ************************************************
    [18:37:14.520,040] [Z_STACK/MAIN] UNMSKBL:  *  ZStack Server for ZNP v1.0.2d               *
    [18:37:14.520,045] [Z_STACK/MAIN] UNMSKBL:  ************************************************
    [18:37:14.520,049] [Z_STACK/MAIN] UNMSKBL: 
    Startup phase 2 completed successfully, server started (ZLSZNP_PID=282368) on Tuesday 30 March 2021 06:37:14 PM IST
    ===================================================
    starting NETWORK_MGR, cmd ' ./NWKMGR_SRVR_x86 127.0.0.1:2536 ' on Tuesday 30 March 2021 06:37:14 PM IST
    [18:37:14.551,195] [NWK_MGR/MAIN] UNMSKBL: 
    [18:37:14.551,252] [NWK_MGR/MAIN] UNMSKBL:  ************************************************
    [18:37:14.551,259] [NWK_MGR/MAIN] UNMSKBL:  *  Network Manager Server v1.0.2d              *
    [18:37:14.551,264] [NWK_MGR/MAIN] UNMSKBL:  ************************************************
    [18:37:14.551,269] [NWK_MGR/MAIN] UNMSKBL: 
    Startup phase 3 completed successfully, server started (NETWORK_MGR_PID=282375) on Tuesday 30 March 2021 06:37:14 PM IST
    ===================================================
    starting GATEWAY_SERVER, cmd ' ./GATEWAY_SRVR_x86 127.0.0.1:2536 127.0.0.1:2540 ' on Tuesday 30 March 2021 06:37:14 PM IST
    [18:37:14.610,226] [GATEWAY/MAIN] UNMSKBL: 
    [18:37:14.610,328] [GATEWAY/MAIN] UNMSKBL:  ************************************************
    [18:37:14.610,336] [GATEWAY/MAIN] UNMSKBL:  *  Gateway Server v1.0.2d                      *
    [18:37:14.610,343] [GATEWAY/MAIN] UNMSKBL:  ************************************************
    [18:37:14.610,360] [GATEWAY/MAIN] UNMSKBL: 
    Startup phase 4 completed successfully, server started (GATEWAY_SERVER_PID=282382) on Tuesday 30 March 2021 06:37:14 PM IST
    ===================================================
    starting OTA_SERVER, cmd './OTA_SRVR_x86 127.0.0.1:2536 127.0.0.1:2540 ' on Tuesday 30 March 2021 06:37:14 PM IST
    [18:37:14.723,029] [OTASRVR/MAIN] UNMSKBL: 
    [18:37:14.723,095] [OTASRVR/MAIN] UNMSKBL:  ************************************************
    [18:37:14.723,105] [OTASRVR/MAIN] UNMSKBL:  *  OTA Upgrade Server v1.0.2d                  *
    [18:37:14.723,112] [OTASRVR/MAIN] UNMSKBL:  ************************************************
    [18:37:14.723,118] [OTASRVR/MAIN] UNMSKBL: 
    Startup phase 5 completed successfully, server started (OTA_SERVER_PID=282391) on Tuesday 30 March 2021 06:37:14 PM IST
    starting tracker with our pid ./zigbeeHAgw and pid list 282362 282368 282382 282391
    ===================================================
    tracking 4 pids, 282362 282368 282382 282391
    when we see something missing we will send a SIGUSR2 to pid 282319
    waiting for netmgr to exit ( pid 282375 ) on Tuesday 30 March 2021 06:37:14 PM IST
    

  • According to your 6562.build_imx8.log, it shows "make[1]: arm-linux-gnueabihf-gcc: Command not found" which means that you don't setup cross-compiler properly.

  • Hi Vikas, Barbara,

    The ZIGBEE-LINUX-SENSOR-TO-CLOUD example application has only been tested on a BeagleBone Black Debian v9.3 or Linux Ubuntu v18.04, developers will need to modify the setup accordingly to accommodate different operating systems.

    Regards,
    Ryan

  • Hi ,

        Is there an example to run on Linux Ubuntu 18.04,or userguide. I don't have BeagleBone Black.

  • You can refer to Simplelink Academy  TI Z-Stack - Zigbee Linux Gateway Project Zero.

  • Hi,

    we have setup the cross compiler and now we get some files missing error while creating server.The object files are getting created the issue happens while linking.

    Attached the package_builder,Makefile and compilation log.

    Please let me know your input .


    Makefile.txt
    # Makefile for NPI Server
    
    
    #Compilation output
    OBJS = out
    
    #temporary output for lib generation
    TEMP = temp
    
    #library to use
    LIBS_x86= -lpthread
    # -lusb-1.0
    LIBS_armBeagleBoard= -lpthread
    LIBS_arm= -lpthread
    LIBS_bbb= -lpthread
    LIBS_arago= -lpthread
    # -lusb-1.0
    LIBS_armBeagleBone= -lpthread
    # -lusb-1.0
    
    #include path
    INCLUDES= -I application\
    	-I ipclib/server \
    	-I ipclib/common \
    	-I ../../../../srvwrapper \
    	-I /opt/fsl-wayland/3.0/sysroots/aarch64-fsl-linux/usr/include
    
    #compilation tools
    
    CC_armBeagleBoard = arm-linux-gnueabihf-gcc
    
    CC_aragoBeagleBone = arm-arago-linux-gnueabi-gcc
    # arm-arago-gnueabi-gcc is for default Angstrom that comes with BeagleBone
    
    # The below line commented by sai
    #CC_armBeagleBone = arm-linux-gnueabihf-gcc
    CC_armBeagleBone = aarch64-poky-linux-gcc
    CC_armArago=arm-arago-linux-gnueabi-gcc
    # arm-linux-gnueabihf-gcc is for Ubuntu on BeagleBone Black
    # get it here: eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-ARMCrossCompiler:GCC
    CC_x86 = gcc
    
    #predefine
    #DEFINES = -DRNP_HOST -D__BIG_DEBUG__
    #DEFINES = -DRNP_HOST -DSRDY_INTERRUPT -DNPI_UNIX
    DEFINES = -DMRDY_EARLY_FIX -DRNP_HOST -DNPI_SPI=TRUE -DNPI_UART=TRUE -DNPI_I2C=TRUE -D__DEBUG_TIME__ -D__DEBUG_TIME__I2C -DSRDY_INTERRUPT -DSERVER_NAME=NPISRVR
    # -D__DEBUG_TIME__HID -D__DEBUG_MUTEX__ -DNPI_HID=TRUE
    
    #compilation Option
    COMPILO_FLAGS_x86 = "-Wall  $(INCLUDES) $(DEFINES) -m32 -D_GNU_SOURCE"
    #COMPILO_FLAGS_armBeagleBoard = "-Wall  $(INCLUDES) $(DEFINES) -mcpu=cortex-a8 -march=armv7-a"
    COMPILO_FLAGS_armBeagleBoard = "-Wall  $(INCLUDES) $(DEFINES) -tune=cortex-a9 -arch=armv7-a"
    # The below line commented by sai
    #COMPILO_FLAGS_armBeagleBone = "-Wall  $(INCLUDES) $(DEFINES) -mcpu=cortex-a8 -march=armv7-a"
    COMPILO_FLAGS_armBeagleBone = "-Wall  $(INCLUDES) $(DEFINES) -mcpu=cortex-a53 -march=armv8-a"
    COMPILO_FLAGS_arago = "-Wall  $(INCLUDES) $(DEFINES) -mcpu=cortex-a8 -march=armv7-a"
    
    #list of object file to compile for the server
    SERVER_OBJS= \
    	$(OBJS)/npi_lnx_ipc.o \
    	$(OBJS)/npi_lnx_uart.o \
    	$(OBJS)/npi_lnx_spi.o \
    	$(OBJS)/npi_lnx_i2c.o \
    	$(OBJS)/hal_gpio.o \
    	$(OBJS)/hal_i2c.o \
    	$(OBJS)/trace.o \
    	$(OBJS)/hal_spi.o \
    	$(OBJS)/configparser.o
    
    
    #by default, do not use the library.
    #PROJ_OBJS=$(SERVER_OBJS)
    
    .PHONY: all clean lib create_output arch-all-x86 arch-all-arm arch-all-armBeagleBoard arch-all-armBeagleBone exec_all_x86 exec_all_armBeagleBoard exec_all_armBeagleBone arch-all-x86 clean_obj clean_obj2 arago bbb
    
    all: \
    	create_output \
    	clean_obj \
    	arch-all-x86 \
    	arch-all-arm \
    	clean_obj2 \
    	arch-all-armBeagleBoard \
    	clean_obj3 \
    	arch-all-armBeagleBone \
    
    create_output:
    	@echo "********************************************************"
    	@echo "Check existance of output folder"
    	-if test ! -d $(OBJS); then mkdir $(OBJS); fi
    
    arch-all-x86:
    	@echo "********************************************************"
    	@echo "COMPILING NPI SERVER FOR x86"
    	@$(MAKE) COMPILO=$(CC_x86) COMPILO_FLAGS=$(COMPILO_FLAGS_x86) exec_all_x86
    	@if [ -n "$(EXTRACT_FILES)" ]; then echo $(MAKEFILE_LIST) | $(EXTRACT_FILES) >> project_file_list.txt; fi
    	@if [ -n "$(EXTRACT_FILES)" ]; then sort -u -V project_file_list.txt | grep -v /usr/ >actual_specific_project_file_list.txt; fi
    	@if [ -n "$(EXTRACT_FILES)" ]; then sort -u -V project_file_list.txt | grep /usr/ >actual_standard_project_file_list.txt; fi
    
    arch-all-arago:
    	@echo "********************************************************"
    	@echo "COMPILING NPI SERVER FOR $@ "
    	@$(MAKE) COMPILO=$(CC_armArago) COMPILO_FLAGS=$(COMPILO_FLAGS_arago) exec_all_arago
    
    arch-all-arm:
    	@echo "********************************************************"
    	@echo "COMPILING SERVER FOR ARM BEAGLE BONE"
    	@$(MAKE) COMPILO=$(CC_armBeagleBone) COMPILO_FLAGS=$(COMPILO_FLAGS_armBeagleBone) exec_all_arm
    	@if [ -n "$(EXTRACT_FILES)" ]; then echo $(MAKEFILE_LIST) | $(EXTRACT_FILES) >> project_file_list.txt; fi
    	@if [ -n "$(EXTRACT_FILES)" ]; then sort -u -V project_file_list.txt | grep -v /usr/ >actual_specific_project_file_list.txt; fi
    	@if [ -n "$(EXTRACT_FILES)" ]; then sort -u -V project_file_list.txt | grep /usr/ >actual_standard_project_file_list.txt; fi
    
    bbb:
    	@echo "********************************************************"
    	@echo "COMPILING NPI SERVER FOR $@ "
    	@$(MAKE) COMPILO=$(CC_armBeagleBone) COMPILO_FLAGS=$(COMPILO_FLAGS_armBeagleBone) exec_bbb
    
    arago:
    	@echo "********************************************************"
    	@echo "COMPILING NPI SERVER FOR $@ "
    	@$(MAKE) COMPILO=$(CC_armArago) COMPILO_FLAGS=$(COMPILO_FLAGS_arago) exec_arago
    
    
    arch-all-armBeagleBoard:
    	@echo "********************************************************"
    	@echo "COMPILING NPI SERVER FOR ARM BEAGLE BOARD"
    	@$(MAKE) COMPILO=$(CC_armBeagleBoard) COMPILO_FLAGS=$(COMPILO_FLAGS_armBeagleBoard) exec_all_armBeagleBoard
    
    arch-all-armBeagleBone:
    	@echo "********************************************************"
    	@echo "COMPILING SERVER FOR ARM BEAGLE BONE"
    	@$(MAKE) COMPILO=$(CC_armBeagleBone) COMPILO_FLAGS=$(COMPILO_FLAGS_armBeagleBone) exec_all_armBeagleBone
    	@if [ -n "$(EXTRACT_FILES)" ]; then echo $(MAKEFILE_LIST) | $(EXTRACT_FILES) >> project_file_list.txt; fi
    	@if [ -n "$(EXTRACT_FILES)" ]; then sort -u -V project_file_list.txt | grep -v /usr/ >actual_specific_project_file_list.txt; fi
    	@if [ -n "$(EXTRACT_FILES)" ]; then sort -u -V project_file_list.txt | grep /usr/ >actual_standard_project_file_list.txt; fi
    
    arch-all-aragoBeagleBone:
    	@echo "********************************************************"
    	@echo "COMPILING SERVER FOR ARM BEAGLE BONE"
    	@$(MAKE) COMPILO=$(CC_aragoBeagleBone) COMPILO_FLAGS=$(COMPILO_FLAGS_armBeagleBone) exec_all_armBeagleBone
    	@if [ -n "$(EXTRACT_FILES)" ]; then echo $(MAKEFILE_LIST) | $(EXTRACT_FILES) >> project_file_list.txt; fi
    	@if [ -n "$(EXTRACT_FILES)" ]; then sort -u -V project_file_list.txt | grep -v /usr/ >actual_specific_project_file_list.txt; fi
    	@if [ -n "$(EXTRACT_FILES)" ]; then sort -u -V project_file_list.txt | grep /usr/ >actual_standard_project_file_list.txt; fi
    
    
    exec_all_x86: $(OBJS)/NPI_lnx_x86_server
    
    exec_all_arm: $(OBJS)/NPI_lnx_arm_server
    
    exec_all_armBeagleBoard: $(OBJS)/NPI_lnx_armBeagleBoard_server
    
    exec_all_armBeagleBone: $(OBJS)/NPI_lnx_armBeagleBone_server
    
    exec_all_armBeagleBone: $(OBJS)/NPI_lnx_arago_server
    
    exec_bbb: $(OBJS)/NPI_lnx_bbb_server
    
    exec_arago: $(OBJS)/NPI_lnx_arago_server
    
    clean_obj:
    	@echo "********************************************************"
    	@echo "Cleaning Existing object"
    	-if test -d $(OBJS); then rm -f $(OBJS)/*.o; fi
    
    clean_obj2:
    	@echo "********************************************************"
    	@echo "Cleaning Existing object"
    	-if test -d $(OBJS); then rm -f $(OBJS)/*.o; fi
    
    clean_obj3:
    	@echo "********************************************************"
    	@echo "Cleaning Existing object"
    	-if test -d $(OBJS); then rm -f $(OBJS)/*.o; fi
    
    clean:
    	@echo "********************************************************"
    	@echo "Cleaning all"
    	-if test -d $(OBJS); then rm -rf $(OBJS); fi
    	rm -f project_file_list.txt
    
    
    $(OBJS)/NPI_lnx_armBeagleBoard_server: $(SERVER_OBJS)
    	@echo "Building target" $@ "..."
    	@$(COMPILO) -o $@ $(SERVER_OBJS) $(LIBS_armBeagleBoard)
    	@echo "********************************************************"
    
    $(OBJS)/NPI_lnx_armBeagleBone_server: $(SERVER_OBJS)
    	@echo "Building target" $@ "..."
    	@$(COMPILO) -o $@ $(SERVER_OBJS) $(LIBS_armBeagleBone)
    	@echo "********************************************************"
    
    $(OBJS)/NPI_lnx_arago_server: $(SERVER_OBJS)
    	@echo "Building target" $@ "..."
    	@$(COMPILO) -o $@ $(SERVER_OBJS) $(LIBS_bbb)
    	@echo "********************************************************"
    
    $(OBJS)/NPI_lnx_bbb_server: $(SERVER_OBJS)
    	@echo "Building target" $@ "..."
    	@$(COMPILO) -o $@ $(SERVER_OBJS) $(LIBS_arago)
    	@echo "********************************************************"
    
    $(OBJS)/NPI_lnx_x86_server: $(SERVER_OBJS)
    	@echo "Building target" $@ "..."
    	@$(COMPILO) -m32 -o $@ $(SERVER_OBJS) $(LIBS_x86)
    	@if [ -n "$(EXTRACT_FILES)" ]; then echo $(MAKEFILE_LIST) | $(EXTRACT_FILES) >> project_file_list.txt; fi
    	@if [ -n "$(EXTRACT_FILES)" ]; then sort -u -V project_file_list.txt | grep -v /usr/ >actual_specific_project_file_list.txt; fi
    	@if [ -n "$(EXTRACT_FILES)" ]; then sort -u -V project_file_list.txt | grep /usr/ >actual_standard_project_file_list.txt; fi
    	@echo "********************************************************"
    
    $(OBJS)/NPI_lnx_arm_server: $(SERVER_OBJS)
    	@echo "Building target" $@ "..."
    	@$(COMPILO) -o $@ $(SERVER_OBJS) $(LIBS_arm)
    	@if [ -n "$(EXTRACT_FILES)" ]; then echo $(MAKEFILE_LIST) | $(EXTRACT_FILES) >> project_file_list.txt; fi
    	@if [ -n "$(EXTRACT_FILES)" ]; then sort -u -V project_file_list.txt | grep -v /usr/ >actual_specific_project_file_list.txt; fi
    	@if [ -n "$(EXTRACT_FILES)" ]; then sort -u -V project_file_list.txt | grep /usr/ >actual_standard_project_file_list.txt; fi
    	@echo "********************************************************"
    
    
    $(OBJS)/npi_lnx_ipc.o: ipclib/server/npi_lnx_ipc.c
    	@echo "Compiling" $< "..."
    	@echo "Compiling" $(COMPILO) "..."
    	@echo "Compiling" $(COMPILO_FLAGS) "..."
    	@$(COMPILO) $(COMPILO_FLAGS) -c -o $@ $<
    	@if [ -n "$(EXTRACT_FILES)" ]; then $(COMPILO) -M $< $(COMPILO_FLAGS) | $(EXTRACT_FILES) >> project_file_list.txt; fi
    
    $(OBJS)/npi_lnx_spi.o: ipclib/server/npi_lnx_spi.c
    	@echo "Compiling" $< "..."
    	@$(COMPILO) -c -o $@ $(COMPILO_FLAGS) $<
    	@if [ -n "$(EXTRACT_FILES)" ]; then $(COMPILO) -M $< $(COMPILO_FLAGS) | $(EXTRACT_FILES) >> project_file_list.txt; fi
    
    $(OBJS)/npi_lnx_uart.o: ipclib/server/npi_lnx_uart.c
    	@echo "Compiling" $< "..."
    	@$(COMPILO) -c -o $@ $(COMPILO_FLAGS) $<
    	@if [ -n "$(EXTRACT_FILES)" ]; then $(COMPILO) -M $< $(COMPILO_FLAGS) | $(EXTRACT_FILES) >> project_file_list.txt; fi
    
    $(OBJS)/npi_lnx_i2c.o: ipclib/server/npi_lnx_i2c.c
    	@echo "Compiling" $< "..."
    	@$(COMPILO) -c -o $@ $(COMPILO_FLAGS) $<
    	@if [ -n "$(EXTRACT_FILES)" ]; then $(COMPILO) -M $< $(COMPILO_FLAGS) | $(EXTRACT_FILES) >> project_file_list.txt; fi
    
    #$(OBJS)/npi_lnx_hid.o: ipclib/server/npi_lnx_hid.c
    #	@echo "Compiling" $< "..."
    #	@$(COMPILO) -c -o $@ $(COMPILO_FLAGS) $<
    
    $(OBJS)/hal_spi.o: ipclib/server/hal_spi.c
    	@echo "Compiling" $< "..."
    	@$(COMPILO) -c -o $@ $(COMPILO_FLAGS) $<
    	@if [ -n "$(EXTRACT_FILES)" ]; then $(COMPILO) -M $< $(COMPILO_FLAGS) | $(EXTRACT_FILES) >> project_file_list.txt; fi
    
    $(OBJS)/hal_i2c.o: ipclib/server/hal_i2c.c
    	@echo "Compiling" $< "..."
    	@$(COMPILO) -c -o $@ $(COMPILO_FLAGS) $<
    	@if [ -n "$(EXTRACT_FILES)" ]; then $(COMPILO) -M $< $(COMPILO_FLAGS) | $(EXTRACT_FILES) >> project_file_list.txt; fi
    
    $(OBJS)/trace.o: ../../../../srvwrapper/trace.c
    	@echo "Compiling" $< "..."
    	@$(COMPILO) -c -o $@ $(COMPILO_FLAGS) $<
    	@if [ -n "$(EXTRACT_FILES)" ]; then $(COMPILO) -M $< $(COMPILO_FLAGS) | $(EXTRACT_FILES) >> project_file_list.txt; fi
    
    $(OBJS)/configparser.o: ../../../../srvwrapper/configparser.c
    	@echo "Compiling" $< "..."
    	@$(COMPILO) -c -o $@ $(COMPILO_FLAGS) $<
    	@if [ -n "$(EXTRACT_FILES)" ]; then $(COMPILO) -M $< $(COMPILO_FLAGS) | $(EXTRACT_FILES) >> project_file_list.txt; fi
    
    #$(OBJS)/hid.o: ipclib/server/hid.c
    #	@echo "Compiling" $< "..."
    #	@$(COMPILO) -c -o $@ $(COMPILO_FLAGS) $<
    
    $(OBJS)/hal_gpio.o: ipclib/server/hal_gpio.c
    	@echo "Compiling" $< "..."
    	@$(COMPILO) -c -o $@ $(COMPILO_FLAGS) $<
    	@if [ -n "$(EXTRACT_FILES)" ]; then $(COMPILO) -M $< $(COMPILO_FLAGS) | $(EXTRACT_FILES) >> project_file_list.txt; fi
    
    1638.package_builder.dat

  • Apologies for the delayed response.

    It looks like real-ld is not able to find some libraries.
    Have you referred to some of these posts?

    https://stackoverflow.com/questions/30600978/cpp-usr-bin-ld-cannot-find-lnameofthelibrary

    - https://stackoverflow.com/questions/6329887/compiling-problems-cannot-find-crt1-o

    https://stackoverflow.com/questions/91576/crti-o-file-missing

    If this is related to cross compiling (using ubuntu) to imx8 platform, I would maybe re-direct you to either the imx8 manufacturer or the developers of the cross compiler.

  • Hi Toby Pan,

    Initially we were building gateway on ubuntu 20.04 and toolchain was build using yocto .

    Now we are building the gateway on Ubuntu 16.04 machine.

    Target platform is IMX8.

    The steps followed are : 

    Step 1:

    Download the toolchain.

    gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz

    Step 2:

    Extract the tar file using

    tar -xvf gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz

    Step 3:

    Created the env.sh file

    $vi env.sh

    #!/bin/bash

    export PATH=$PATH:/media/acer/d16451e3-e767-4107-b519-6c8799a157ec/vineesha/linaro_toolchain/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin

    export ARCH=arm

    export CROSS_COMPILE=aarch64-linux-gnu

    export CC=aarch64-linux-gnu-gcc

    Step 4:

    Run the environment file using   $. env.sh

     

    Copied the Libraries to Zigbee source:

     

    /usr/lib64$ ls libprotobuf-c.

    libprotobuf-c.a         libprotobuf-c.so        libprotobuf-c.so.1      libprotobuf-c.so.1.0.0      

    acer@acer-Aspire-4738:/usr/lib64$ cp libprotobuf-c.* /media/acer/d16451e3-e767-4107-b519-6c8799a157ec/vineesha/Mindteck/Zigbee_3_0_Linux_Gateway_1_0_1_linaro/source/Projects/zstack/linux/protobuf-c/lib/arm/

    Copied the Libraries to Toolchain:

    acer@acer-Aspire-4738:/usr/lib64$ cp libprotobuf-c.*  /linaro_toolchain/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/lib

    Now are getting erros related to libprotobuf.

    Attached the build log for your reference. Please let me know your input on this.

    Thanks,

    VikasZigbee_cross_compilation_log_imx8mm_16.04.docx

  • May need to cross-compile the protobuf-c libraries themselves, similar to this post: https://e2e.ti.com/support/wireless-connectivity/zigbee-thread-group/zigbee-and-thread/f/zigbee-thread-forum/993930/running-z-stack-linux-on-raspberry-pi-zero-w/3675900?tisearch=e2e-sitesearch&keymatch=protobuf#3675900

    The default ones we provide are in C:\ti\Zigbee_3_0_Linux_Gateway_1_0_1\source\Projects\zstack\linux\protobuf-c\lib.