This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

z-stack gateway server script executing problems "no such file or directory"

Other Parts Discussed in Thread: Z-STACK, CC2531

Dear experts!

I have encountered a following problem, when I start running the server or any application script included in the z-stack linux gateway. (I've done everything in the quick starting guide on Beaglebone Black and doesn't work.)

When I start the server application it drops this in the console:

"

root@beaglebone:~/zstack/servers# ./zigbeeHAgw bbb
running zigbeegw.scr on an ARM
resetting beaglebone black
./zigbeeHAgw: line 989: ../tools/bbb_usbreset.bin: No such file or directory
sleeping 6 seconds after reset... ./zigbeeHAgw: line 997: ../tools/gw_soc_fw_version_query.bin: No such file or directory
done
Starting the ZigBee gateway subsystem
./zigbeeHAgw: line 332: ./NPI_lnx_arm_server: No such file or directory
NPI started (pid 746) at Sat Jan 1 00:57:51 UTC 2000
./zigbeeHAgw: line 359: ./ZLSZNP_arm: No such file or directory
ZLSZNP started (pid 749) at Sat Jan 1 00:57:56 UTC 2000
./zigbeeHAgw: line 417: ./NWKMGR_SRVR_arm: No such file or directory
NETWORK MANAGER started (pid 752) at Sat Jan 1 00:57:57 UTC 2000
./zigbeeHAgw: line 387: ./GATEWAY_SRVR_arm: No such file or directory
GATEWAY SERVER started (pid 755) at Sat Jan 1 00:57:59 UTC 2000
./zigbeeHAgw: line 446: ./OTA_SRVR_arm: No such file or directory
OTA SERVER started (pid 758) at Sat Jan 1 00:58:01 UTC 2000
starting tracker with our pid ./zigbeeHAgw and pid list 746 749 755 758
===================================================
oops! Network manager has already exited (!) at
Sat Jan 1 00:58:01 UTC 2000
tracking 4 pids, 746 749 755 758
when we see something missing we will send a SIGUSR2 to pid 686
./zigbeeHAgw: line 482: 765 Killed ./track_servers $$ "$pids"
killall: GATEWAY_SRVR_arm: no process killed
killall: OTA_SRVR_arm: no process killed
killall: ZLSZNP_arm: no process killed
killall: NPI_lnx_arm_server: no process killed
unexpected exit code (127) from netmgr!
resetting beaglebone black
./zigbeeHAgw: line 989: ../tools/bbb_usbreset.bin: No such file or directory
sleeping 6 seconds after reset... ^Ccaught SIGTERM, killing all the servers and cleaning up
terminating zigbeeHAGW (pid 686)
Killed"

other informations:

"

root@beaglebone:~/zstack/servers# uname -a
Linux beaglebone 3.8.13 #1 SMP Wed Sep 4 09:09:32 CEST 2013 armv7l GNU/Linux"

"

"

root@beaglebone:~/zstack/servers# lsb_release -a
Distributor ID: Angstrom
Description: Angstrom GNU/Linux v2012.12 (Core edition)
Release: v2012.12
Codename: Core edition

"

"

root@beaglebone:~/zstack/servers# modprobe cdc-acm
FATAL: Module cdc-acm not found.
"
- maybe the source of the problem?

Connecting device:
"

[ 4016.252667] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 4016.252791] hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
[ 4016.252845] usb 1-1: USB disconnect, device number 2
[ 4016.252883] usb 1-1: unregistering device
[ 4016.252922] usb 1-1: unregistering interface 1-1:1.0
[ 4016.256879] usb 1-1: unregistering interface 1-1:1.1
[ 4016.257695] usb 1-1: usb_disable_device nuking all URBs
[ 4016.369656] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
[ 4016.475082] usb 1-1: new full-speed USB device number 3 using musb-hdrc
[ 4016.594179] usb 1-1: ep0 maxpacket = 32
[ 4016.596335] usb 1-1: skipped 4 descriptors after interface
[ 4016.596702] usb 1-1: default language 0x0409
[ 4016.598492] usb 1-1: udev 3, busnum 1, minor = 2
[ 4016.598544] usb 1-1: New USB device found, idVendor=0451, idProduct=16a8
[ 4016.598586] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4016.598624] usb 1-1: Product: TI CC2531 USB CDC
[ 4016.598659] usb 1-1: Manufacturer: Texas Instruments
[ 4016.598693] usb 1-1: SerialNumber: __0X00124B0001DD8BF3
[ 4016.599836] usb 1-1: usb_probe_device
[ 4016.599889] usb 1-1: configuration #1 chosen from 1 choice
[ 4016.600540] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[ 4016.601035] cdc_acm 1-1:1.0: usb_probe_interface
[ 4016.601089] cdc_acm 1-1:1.0: usb_probe_interface - got id
[ 4016.601140] cdc_acm 1-1:1.0: This device cannot do calls on its own. It is not a modem.
[ 4016.617847] cdc_acm 1-1:1.0: ttyACM0: USB ACM device
[ 4016.621094] usb 1-1: adding 1-1:1.1 (config #1, interface 1)
[ 4016.625899] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 4016.626001] hub 1-0:1.0: port 1 enable change, status 00000103

"

Thank you for advance!

  • Hi,

    As mentioned in quick start guide , Z-Stack Linux Gateway is released on Beaglebone black debian distribution - seems like you are running Angstrom .

    As per logs:

    sleeping 6 seconds after reset... ./zigbeeHAgw: line 997: ../tools/gw_soc_fw_version_query.bin: No such file or directory
    done
    Starting the ZigBee gateway subsystem
    ./zigbeeHAgw: line 332: ./NPI_lnx_arm_server: No such file or directory
    NPI started (pid 746) at Sat Jan 1 00:57:51 UTC 2000
    ./zigbeeHAgw: line 359: ./ZLSZNP_arm: No such file or directory
    ZLSZNP started (pid 749) at Sat Jan 1 00:57:56 UTC 2000
    ./zigbeeHAgw: line 417: ./NWKMGR_SRVR_arm: No such file or directory
    NETWORK MANAGER started (pid 752) at Sat Jan 1 00:57:57 UTC 2000
    ./zigbeeHAgw: line 387: ./GATEWAY_SRVR_arm: No such file or directory
    GATEWAY SERVER started (pid 755) at Sat Jan 1 00:57:59 UTC 2000
    ./zigbeeHAgw: line 446: ./OTA_SRVR_arm: No such file or directory
    OTA SERVER started (pid 758) at Sat Jan 1 00:58:01 UTC 2000

    Gateway script cannot find any of the sever/binary files - either these are not present or the cross compiler used to compile these binaries ('Linaro' , consult addendum document ) is not supported on the BB release you are working on .

    Saurabh

  • Thank you!

    Well I thought it will work, until I didn't recognised this dist. is not debian based:D. Will be released  all of the source code for compiling to other systems? It would be very helpful for flexible developement.