From: Muratkrty <mur...@gm...> - 2013-06-07 09:43:36
|
Hi, We have several Khepera III mobile robots in our laboratory which has following specifications with gumstix platform[1]: * Linux OS, Angström distribution (OpenEmbedded tools), * kernel 2.6.24 To get signal information from existing nodes in ad-hoc network, we have found a bash command (iw) to get these information,In order to run this command in the robots, we have just tried to compile the source code via cross compiler (arm-angstrom-linux-gnueabi-gcc)[2]. Cross compilation generates no error in PCs and it generates expected outputs, yet we faced below errors while trying execution of the compiled command in robots. *--PC and Robot's kernels versions---* Kernel PC#1: 3.8.0-19-generic Kernel PC#2: 2.6.24 Kernel Robot: Linux korebot2 2.6.24 *--------------------------------------------------* *--Error while executing PC#1's file in robot-* $ dev eth0 scan ./iw: ./iw: 1: Syntax error: "&" unexpected (expecting ")") *------------------------------------------------------------* *--Error while executing PC#2's file in robot---* $ ./iw dev eth0 scan ./iw: ./iw: 1: Syntax error: Bad function name *---------------------------------------------------------------* Please note that we have also changed default PC shell to /bin/sh which is same with the robot's shell, yet same errors. Any ideas to fade away these errors? [1] http://www.k-team.com/mobile-robotics-products/khepera-iii/specifications <http://www.k-team.com/mobile-robotics-products/khepera-iii/specifications> [2] https://www.kernel.org/pub/software/network/iw/ <https://www.kernel.org/pub/software/network/iw/> Best. -- Murat. -- View this message in context: http://gumstix.8.x6.nabble.com/Cross-compilation-error-in-gumstix-based-mobile-robots-tp4967372.html Sent from the Gumstix mailing list archive at Nabble.com. |