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.

/bin/bash: android: command not found on beaglebone

Hello everyone,

I need to build custom rootfs. I did everything as told as on http://processors.wiki.ti.com/index.php/BeagleBone-Android-DevKit_Guide. But When I run below command I got sdk error.

make TARGET_PRODUCT=beaglebone OMAPES=4.x

Output error:

/bin/bash: android: command not found
make: *** [rowboperf/3D/SDKPackage_OGLES2/Demos/ChameleonMan/OGLES2/Build/Android/libs/armeabi/libPVRShell.so] Error 127

Thanks.
Mehmet Kurnaz
  • Mehmet,

    Rowboperf is an Android apk built using Android's SDK so you must have the SDK path included in you PATH environment variable. The error you are getting is telling you that is can not find the "android" executable in your currently defined PATH.

  • Mehmet,

    I also forgot to mention that to build the Android images, you do not need to include rowboperf in the sources. The rowboperf directory is only needed if you want to include RowboPERF, the demo applications that TI provides, in your file system when you build.

    Regards,

    Alejandro 

  • Alejandro,

    Thanks your response. 

    I found android executable in TI_Android_GingerBread_2_3_4_AM335x_Sources/out/host/linux-x86/bin. And I set PATH env. In this state I got below error.

    SWT folder '/PROJELER/AECMP_BBAndroid/TI_Android_GingerBread_2_3_4_AM335x_Sources/out/host/linux-x86/framework/x86' does not exist.
    Please export ANDROID_SWT to point to the folder containing swt.jar for your platform.
    make: *** [rowboperf/3D/SDKPackage_OGLES2/Demos/ChameleonMan/OGLES2/Build/Android/libs/armeabi/libPVRShell.so] Error 1
    
    

    I found swt.jar in ./prebuilt/linux-x86/swt/swt.jar and /out/host/linux-x86/framework/swt.jar. I think I should use first one(My host is Ubuntu 10.04 32 Bit). After this change I got below error;

    Error: Error parsing the sdk.
    Error: /PROJELER/AECMP_BBAndroid/TI_Android_GingerBread_2_3_4_AM335x_Sources/out/host/linux-x86/platforms is missing.
    Error: Unable to parse SDK content.
    make: *** [rowboperf/3D/SDKPackage_OGLES2/Demos/ChameleonMan/OGLES2/Build/Android/libs/armeabi/libPVRShell.so] Error 1

    Thanks.

    Mehmet Kurnaz

  • Alejandro,

    There is another problem, In default binaries, there is no problem about usb mouse and sgx. But When I built there is no "usb" and "sgx" directories in out/target/product/beaglebone directory, system doesn't  recognize usb mouse and LCD is very slow .  

    And I don't know, Is there any thing I couldn't build. 

    How can I built fully?

    Thanks

    Mehmet Kurnaz

  • Hi Mehmet,

    Following build command should build all necessary components (Android, Kernel, kernel modules and SGX )

    $ make TARGET_PRODUCT=beaglebone OMAPES=4.x

    What is your build command?

    Please provide build log to debug this further.

    Regards,

    Pankaj Bharadiya

  • Pankaj,

    I have used same build command 

    $ make TARGET_PRODUCT=beaglebone OMAPES=4.x

    Now, it is building.  Build log is very very big. Is there any key that I can find about sgx or usb host building? If so I can provide this part of build log.

    Thanks.

    Mehmet

  • Pankaj,

    Where is the sgx sources. If I build sgx standalone, I can see problem. How can I build sgx standalone? 

    Thanks

    Mehmet

  • Hi Mehmet,

    SGX sources are located in <android source path>/hardware/ti/sgx folder. You can compile and install sgx separately using following commands. Make sure that kernel is built before compiling SGX.

       $ cd <android source path>/hardware/ti/sgx

       $ make TARGET_PRODUCT=beaglebone OMAPES=4.x ANDROID_ROOT_DIR=<android source path>

       $ make TARGET_PRODUCT=beaglebone OMAPES=4.x ANDROID_ROOT_DIR=<android source path>  install

    Regards,

    Pankaj Bharadiya

  • Pankaj,

    Thanks, it is ok.

    Mehmet

  • Hi Mehmet--

    Did you have any luck getting Mplayer to compile on Android? I am trying to do a similar thing and not much out there to clarify how to get past the building problems.


    thanks much!

    -brian Sawyer