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.

How to implement ZStack-Lighting-1.0.1 Remote project on Android x86 arm linux

Other Parts Discussed in Thread: CC2531


I have implementation the ZStack-Lighting-1.0.1 Remote project on ubuntu 13.04 via CC2531 USB Dongle by follow this web:

http://processors.wiki.ti.com/index.php/ZStack-Lighting-1.0.1_Host_Interface_C_Examples#Using_ZStack-Lighting-1.0.1_Host_Interface_C_Examples

And I want to implementation this project on Android x86 arm linux.

I use arm-linux-gnueabi-gcc to compile this C code on my ubuntu 13.04 by follow the web, and copy .c, .o, .bin file to Android x86 arm linux.

I enter the Android, and press "Alt + F1" to enter arm linux.

But, when I type "./zllController.bin /dev/ttyUSB0". It has error message "not executable: magic 7F45"

What should I type after "arm-linux-gnueabi-gcc" to compile the code?

What should I do?

  • Martin,

       This is not an Android support forum. I recommend you post this on a different Forum that is specifically for answering Android questions.

    However my advice on this issue would be to build zllController in the correct Android NDK. There is another consideration you need to be aware of, the kernel on Android devices do not support USB CDC class required for connecting to the CC2531, so you will need to find a solution to this as well (by rooting the device and rebuilding the kernel).

    I kindly request that you do not post further Android questions on this forum.

    Regards, TC.

  • I mean, I use the Android-x86.iso to run the Android on PC by using Live USB or Vmware.

    And I enter the terminal mode of Android.

    It fundamental layer is linux.

    When I plug the cc2531 into my pc, I can see the ttyUSB0. But when I type command "./zllController.bin /dev/ttyUSB0", it has error message.

    So, I want to know which cross-compiler can build the ZStack-Lighting-1.0.1 Host Interface C Examples and make make executable for Android-x86?