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.

J6EVM5777: : :VAYU ES2.0GPEEVM W/ 1080P TDmissing libdrm omap SHARED_LIBRARIES android-arm: Android Oreo

Part Number: J6EVM5777

I am trying to make an image for the Jacinto Board. While i am trying to make an Android Image i am getting issues like

missing libdrm omap SHARED_LIBRARIES android-arm

I have cross checked in the kernel config file it has CONFIG_DRM and CONFIG_DRM_OMAP macros to build libdrm image.

Please let me know if i need to use any other patches along with Android 6A0_1_1 (Android Oreo Version). 

Reference link for Building Android Oreo: https://software-dl.ti.com/infotainment/jacinto6/android/6AO_1_1_Release/index_FDS.html

  • Hi Vinay,

    The Android SDK 6AO.1.1 release has no build issues. It is being used by lot of people.
    Please make sure your repo is clean and you have downloaded the sources cleanly.

    Regards,
    Vishal

  • Hi VIshal,

    Thanks for your response.  I have a clean clone. I did not see any issue with Uboot and Kernel build. However while doing the android build i am seeing the same issues.

    First i got this error

    out/build-full_jacinto6evm.ninja is missing, regenerating...

    [231/1002] including ./external/libdrm/Android.mk ...

    external/libdrm/libkms/Android.mk:23: warning: invalid GPU drivers: omapdrm

    [249/1002] including ./external/mesa3d/Android.mk ...

    ./external/mesa3d/Android.mk:52: warning: invalid GPU drivers: omapdrm

    [687/1002] including ./system/sepolicy/Android.mk ...

    ./system/sepolicy/Android.mk:111: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version

    [1002/1002] including ./tools/tradefederation/core/Android.mk ...

    PRODUCT_COPY_FILES packages/services/Car/car_product/preloaded-classes-car:system/etc/preloaded-classes ignored.

    No private recovery resources for TARGET_DEVICE jacinto6evm

    find: ‘vendor’: No such file or directory

    platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh

    platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests

    platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests

    platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests

    platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module EmergencyInfoTests

    platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh

    build/core/prebuilt_internal.mk:489: warning: overriding commands for target `out/target/product/jacinto6evm/obj/ETC/pvrsrvkm_intermediates/pvrsrvkm.ko'

    device/ti/proprietary-open/jacinto6/sgx_src/Android.mk:44: warning: ignoring old commands for target `out/target/product/jacinto6evm/obj/ETC/pvrsrvkm_intermediates/pvrsrvkm.ko'

    [ 99% 1262/1263] glob vendor/*/*/Android.bp

    ninja: error: '/home/ubuntu/6AO.1.1/kernel/android-4.4/drivers/scsi/scsi_mod.ko', needed by 'out/target/product/jacinto6evm/recovery.img', missing and no known rule to make it

    14:00:07 ninja failed with: exit status 1

     

    #### failed to build some targets (01:41 (mm:ss)) ####

     

    #### failed to build some targets (01:41 (mm:ss)) ####

     Once i installed cmake the error was not seen but still think there is a issue with generation of libdrm_omap

    sudo apt install cmake

    After that when i tried to compile Android then i see the issue of missing libdrm_omap which is required but not getting built. Please let me know a way to solve this issue.

    root@A2ML21114L:/home/ubuntu/6AO.1.1/mydroid# make -j2

    ============================================

    PLATFORM_VERSION_CODENAME=REL

    PLATFORM_VERSION=8.1.0

    TARGET_PRODUCT=aosp_arm

    TARGET_BUILD_VARIANT=eng

    TARGET_BUILD_TYPE=release

    TARGET_ARCH=arm

    TARGET_ARCH_VARIANT=armv7-a

    TARGET_CPU_VARIANT=generic

    HOST_ARCH=x86_64

    HOST_2ND_ARCH=x86

    HOST_OS=linux

    HOST_OS_EXTRA=Linux-4.15.0-123-generic-x86_64-with-Ubuntu-18.04-bionic

    HOST_CROSS_OS=windows

    HOST_CROSS_ARCH=x86

    HOST_CROSS_2ND_ARCH=x86_64

    HOST_BUILD_TYPE=release

    BUILD_ID=OPM1.171019.021

    OUT_DIR=out

    ============================================

    ninja: no work to do.

    ninja: no work to do.

    out/build-aosp_arm.ninja is missing, regenerating...

    [687/1002] including ./system/sepolicy/Android.mk ...

    ./system/sepolicy/Android.mk:111: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version

    [1002/1002] including ./tools/tradefederation/core/Android.mk ...

    hardware/ti/dce/Android.mk: error: libdce (SHARED_LIBRARIES android-arm) missing libdrm_omap (SHARED_LIBRARIES android-arm)

    You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.

    hardware/ti/dra7xx/camera/Android.mk: error: camera. (SHARED_LIBRARIES android-arm) missing libdrm_omap (SHARED_LIBRARIES android-arm)

    You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.

    hardware/ti/dra7xx/hwcomposer/Android.mk: error: hwcomposer. (SHARED_LIBRARIES android-arm) missing libdrm_omap (SHARED_LIBRARIES android-arm)

    You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.

    build/core/main.mk:728: error: exiting from previous errors.

    14:13:36 ckati failed with: exit status 1

    build/core/main.mk:21: recipe for target 'run_soong_ui' failed

    make: *** [run_soong_ui] Error 1

    root@A2ML21114L:/home/ubuntu/6AO.1.1/mydroid#

  • Vishal,

    Found a thread similar to the first issue. However this did not solve the issue.

  • Hi,

    Did you do the below commands before starting the build?
    We don't support aosp lunch targets in our SDK.

    . build/envsetup.sh
    lunch full_jacinto6evm-userdebug
    export KERNELDIR=${YOUR_PATH}/kernel/android-4.4

    Regards,
    Vishal

  • The issues i was getting because the kernel modules were not built properly. Also other observation is that if Android build gets terminated because of any error we need to do a clean build every time else we will face some unknown issue. I was able to build the images. Thanks.