Android Build Failed for UDOO Neo (udooneo_6sx-eng)

Discussion in 'UDOO NEO' started by kkaran_2010, Nov 25, 2019.

  1. kkaran_2010

    kkaran_2010 UDOOer

    Joined:
    Nov 25, 2019
    Messages:
    8
    Likes Received:
    4
    Hi All,

    I am new to UDOO. I have a UDOO Full board with iMx6SoloX Processor. I am trying to build Android for the same board and following the below steps I found on UDOO official web site, but unfortunately the build cannot start as the file "device/udoo/imx6/udooneo_6sx.mk" is not present. I copied the file from GIT and tried but still cannot able to make as the file "out/build-udooneo_6sx.ninja" failed to generate.
    Can someone help me to build Android for my UDOO Neo Full board?

    Steps I follow to build are,
    1. Downloaded source from https://www.udoo.org/docs/Advanced_Topics/Compile_Android_From_Source.html
    2. mkdir myandroid
    3. mkdir bin
    4. cd myandroid
    5. curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ../bin/repo
    6. chmod a+x ../bin/repo
    7. ../bin/repo init -u https://github.com/UDOOboard/android_udoo_platform_manifest -b android-7.1
    ** Tried android-6.0.1 and android-7.1
    8. ../bin/repo sync
    9. lunch
    ** selected "udooneo_6x-eng" in lunch
    10. make -j8

    It mostly fails on 9th or 10th step. I tried to build for "udoo_6dq-eng" and it started the build but failed in make at 47% with out of memory, I will try to clean up my PC and try that again.

    FAILED: /bin/bash out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex.rsp
    Out of memory error (version 1.2-rc4 'Carnac' (298900 f95d7bdecfceb327f9d201a1348397ed8a843843 by android-jack-team@google.com)).
    GC overhead limit exceeded.
    Try increasing heap size with java option '-Xmx<size>'.
    Warning: This may have produced partial or corrupted output.
    [ 47% 18304/38561] Building with Jack: out/target/common/obj/JAVA_LIBRARIES/android-opt-timezonepicker_intermediates/classes.jack
    ninja: build stopped: subcommand failed.
    build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
    make: *** [ninja_wrapper] Error 1

    Please help me to build Android for UDOO Neo Full "udooneo_6x-eng" or "udooneo_6x-user"

    Thanks,
    Karan
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,107
    Likes Received:
    533
  3. kkaran_2010

    kkaran_2010 UDOOer

    Joined:
    Nov 25, 2019
    Messages:
    8
    Likes Received:
    4
    waltervl likes this.
  4. kkaran_2010

    kkaran_2010 UDOOer

    Joined:
    Nov 25, 2019
    Messages:
    8
    Likes Received:
    4
  5. kkaran_2010

    kkaran_2010 UDOOer

    Joined:
    Nov 25, 2019
    Messages:
    8
    Likes Received:
    4
  6. kkaran_2010

    kkaran_2010 UDOOer

    Joined:
    Nov 25, 2019
    Messages:
    8
    Likes Received:
    4
    Hi All,

    Can you please help me to build Android-7.1 for UDOO neo full?
    I am getting below error after "repo sync"

    Procedure I followed:
    1) ../bin/repo init -u https://github.com/UDOOboard/android_udoo_platform_manifest -b android-7.1
    2) ../bin/repo sync
    3) export ARCH=arm
    4) source build/envsetup.sh
    5) lunch
    output:
    You're building on Linux

    Lunch menu... pick a combo:
    1. aosp_arm-eng
    2. aosp_arm64-eng
    3. aosp_mips-eng
    4. aosp_mips64-eng
    5. aosp_x86-eng
    6. aosp_x86_64-eng
    7. udoo_6dq-eng
    8. udoo_6dq-user
    9. udooneo_6sx-eng
    10. udooneo_6sx-user

    I have selected 9 and got below error.

    Which would you like? [aosp_arm-eng] 9
    build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/udoo/imx6/udooneo_6sx.mk]]: "device/udoo/imx6/udooneo_6sx.mk" does not exist. Stop.

    ** Don't have a product spec for: 'udooneo_6sx'
    ** Do you have the right repo manifest?

    Can anyone please help me with this?

    Thanks,
    Karan
     
  7. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,107
    Likes Received:
    533
    Looks like the same error as in Android 6. Did you try to implement the same fix as for Android 6?
     
  8. kkaran_2010

    kkaran_2010 UDOOer

    Joined:
    Nov 25, 2019
    Messages:
    8
    Likes Received:
    4
    Hi Waltervl,

    Yes I have tried the same Solution, but everything in "device/udoo/udooneo_6sx/BoardConfig.mk" file looks correct.

    Thanks,
    Karan
     

Share This Page