微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI Zigbee设计交流 > 在ARM9 9G20开发板中运行Z-Stack linux GateWay 的zigbeeHAgw bbb的时候出现以下错误,希望大家帮帮忙!谢谢了。

在ARM9 9G20开发板中运行Z-Stack linux GateWay 的zigbeeHAgw bbb的时候出现以下错误,希望大家帮帮忙!谢谢了。

时间:10-02 整理:3721RD 点击:

/mnt/nfs/Z-Stack_Linux_Gateway-1.0.1/z-stack_linux_gateway_arm_binaries/servers # ./zigbeeHAgw bbb
running zigbeegw.scr on an ARM
resetting beaglebone black
../tools/bbb_usbreset.bin: line 1: syntax error: unexpected word (expecting ")")
sleeping 6 seconds after reset... ../tools/gw_soc_fw_version_query.bin: line 1: syntax error: unexpected word (expecting ")")
done
stty: /dev/ttyACM0: Inappropriate ioctl for device
stty: /dev/ttyACM0: Inappropriate ioctl for device
Starting the ZigBee gateway subsystem
./NPI_lnx_arm_server: line 1: syntax error: unexpected word (expecting ")")
NPI started (pid 564) at Fri Aug 28 09:04:59 UTC 2015
./ZLSZNP_arm: line 1: syntax error: unexpected word (expecting ")")
ZLSZNP started (pid 571) at Fri Aug 28 09:05:03 UTC 2015
./NWKMGR_SRVR_arm: line 1: syntax error: unexpected word (expecting ")")
NETWORK MANAGER started (pid 578) at Fri Aug 28 09:05:04 UTC 2015
./GATEWAY_SRVR_arm: line 1: syntax error: unexpected word (expecting ")")
GATEWAY SERVER started (pid 585) at Fri Aug 28 09:05:06 UTC 2015
./OTA_SRVR_arm: line 1: syntax error: unexpected word (expecting ")")
OTA SERVER started (pid 592) at Fri Aug 28 09:05:08 UTC 2015
starting tracker with our pid ./zigbeeHAgw and pid list 564 571 585 592
===================================================
./zigbeeHAgw: line 1036: ./track_servers: not found
NETWORK MANAGER exited with code 2 at Fri Aug 28 09:05:08 UTC 2015
sh: can't kill pid 603: No such process
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
resetting beaglebone black
../tools/bbb_usbreset.bin: line 1: syntax error: unexpected word (expecting ")")
sleeping 6 seconds after reset... ../tools/gw_soc_fw_version_query.bin: line 1: syntax error: unexpected word (expecting ")")
done
stty: /dev/ttyACM0: Inappropriate ioctl for device
stty: /dev/ttyACM0: Inappropriate ioctl for device
Starting the ZigBee gateway subsystem
./NPI_lnx_arm_server: line 1: syntax error: unexpected word (expecting ")")
NPI started (pid 676) at Fri Aug 28 09:05:27 UTC 2015
./ZLSZNP_arm: line 1: syntax error: unexpected word (expecting ")")
ZLSZNP started (pid 683) at Fri Aug 28 09:05:31 UTC 2015
./NWKMGR_SRVR_arm: line 1: syntax error: unexpected word (expecting ")")
NETWORK MANAGER started (pid 690) at Fri Aug 28 09:05:33 UTC 2015
./GATEWAY_SRVR_arm: line 1: syntax error: unexpected word (expecting ")")
GATEWAY SERVER started (pid 697) at Fri Aug 28 09:05:35 UTC 2015
./OTA_SRVR_arm: line 1: syntax error: unexpected word (expecting ")")
OTA SERVER started (pid 704) at Fri Aug 28 09:05:37 UTC 2015
starting tracker with our pid ./zigbeeHAgw and pid list 676 683 697 704
./zigbeeHAgw: line 1149: ./track_servers: not found

找到解决方法了!

编译出来的程序在arm平台上运行时,将导致line 1: syntax error: word unexpected (expecting ")")错误,

这是由于 在编译目标hello的时候 使用了选项-c ,导致生成的hello 不是可执行文件,

可通过file hello 来查看其属性,如下所示:

hello: ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), not stripped

从file命令可以看出目标文件hello并非可执行文件,执行时当然会报错。

你好,请问是如何获得到z-stack linux gateway 的source code。十分感谢

.run文件安装完毕以后,生成的目录里面就有个Source,就是linux gateway的源代码,这个是全部开源的,只是针对Sitara平台的,其他平台可能要移植底层SPI/UART部分的实现

请问你的ARM9是如何控制zigbee呢?是ZNP模式吗

@nicolas zhao4,对的目前Linux gateway参考设计中,搭配的zigbee就是运行的ZNP程序

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top