Hello,
I am a noob. I am trying to build LineageOS 18.1 for gt58ltedo.
Repositories :
Manifest :
gt58lte manifest for lineage-18.1
gt58lte manifest for lineage-18.1. GitHub Gist: instantly share code, notes, and snippets.
gist.github.com
Device Tree :
GitHub - user20482020/android_device_samsung_msm8916-common: Common MSM8916 tree for Samsung devices
Common MSM8916 tree for Samsung devices. Contribute to user20482020/android_device_samsung_msm8916-common development by creating an account on GitHub.
github.com
GitHub - Galaxy-MSM8916/android_device_samsung_gte-common
Contribute to Galaxy-MSM8916/android_device_samsung_gte-common development by creating an account on GitHub.
github.com
lineage-18.1-gt58lte branch :
GitHub - user20482020/device_samsung_gt58lte
Contribute to user20482020/device_samsung_gt58lte development by creating an account on GitHub.
github.com
Kernel :
GitHub - user20482020/android_kernel_samsung_msm8916: MSM8916/MSM8929/MSM8939 kernel for Samsung devices.
MSM8916/MSM8929/MSM8939 kernel for Samsung devices. - GitHub - user20482020/android_kernel_samsung_msm8916: MSM8916/MSM8929/MSM8939 kernel for Samsung devices.
github.com
Vendor Blobs :
GitHub - user20482020/vendor_samsung_msm8916-common
Contribute to user20482020/vendor_samsung_msm8916-common development by creating an account on GitHub.
github.com
GitHub - retiredtab/android_vendor_samsung_gte-common
Contribute to retiredtab/android_vendor_samsung_gte-common development by creating an account on GitHub.
github.com
GitHub - user20482020/android_vendor_samsung_gt58lte
Contribute to user20482020/android_vendor_samsung_gt58lte development by creating an account on GitHub.
github.com
@retiredtab
Where can I find camera.vendor.msm8916.so ? On my device I have camera.msm8916.so but no camera.vendor.msm8916.so ?
user655362020 said:
I using roomservice.xml file from https://forum.xda-developers.com/t/...eos-17-1-for-galaxy-tab-a-8-0-sm-t350.4162573.
Click to expand...
Click to collapse
If you are going to use my roomservice.xml, upload that to your github as well so I can see what you are doing. Obviously, you will have to change some things that are gt58wifi specific to gt58ltedo.
user655362020 said:
Where can I find camera.vendor.msm8916.so ? On my device I have camera.msm8916.so but no camera.vendor.msm8916.so ?
Click to expand...
Click to collapse
You can rename it when you do copy. For example,
https://github.com/user20482020/pro...ineage-17.1/gt58ltedo/gt58ltedo-vendor.mk#L26
Code:
vendor/samsung/gt58ltedo/proprietary/lib/hw/camera.msm8916.so:$(TARGET_COPY_OUT_SYSTEM)/lib/hw/camera.vendor.msm8916.so \
See how it's copied and renamed above?
BTW, in your first build, you will likely face stuck at boot animation problems. I highly suggest you build an "eng" build when you do a brunch or make. That way, the OS will start adbd right away and you can run
Code:
adb logcat -C
right away to see log messages.
I run
Code:
TARGET_BUILD_TYPE=debug TARGET_BUILD_VARIANT=eng make -j2 bacon
I explain more in this thread. I helped someone who has never built LineageOS before. A lot of the questions you may have might be answered there are already so please give that a read.
https://forum.xda-developers.com/t/need-help-building-a-sm-t555-gt510lte-lineageos-rom.4255243/
In addition, the SM-T555 is the bigger brother to SM-T355 so you might be able to use code or look at his code for clues as the two should be very similar.
retiredtab said:
If you are going to use my roomservice.xml, upload that to your github as well so I can see what you are doing. Obviously, you will have to change some things that are gt58wifi specific to gt58ltedo.
Click to expand...
Click to collapse
Uploading it as attachment. I intend to change the account of repositories. I'll upload manifest to a repo after that.
retiredtab said:
If you are going to use my roomservice.xml, upload that to your github as well so I can see what you are doing. Obviously, you will have to change some things that are gt58wifi specific to gt58ltedo.
Click to expand...
Click to collapse
I modified the 1st post to include link for the roomservice.xml.
retiredtab said:
You can rename it when you do copy. For example,
https://github.com/user20482020/pro...ineage-17.1/gt58ltedo/gt58ltedo-vendor.mk#L26
Code:
vendor/samsung/gt58ltedo/proprietary/lib/hw/camera.msm8916.so:$(TARGET_COPY_OUT_SYSTEM)/lib/hw/camera.vendor.msm8916.so \
See how it's copied and renamed above?
Click to expand...
Click to collapse
I missed that. Thanks.
retiredtab said:
BTW, in your first build, you will likely face stuck at boot animation problems. I highly suggest you build an "eng" build when you do a brunch or make. That way, the OS will start adbd right away and you can run
Code:
adb logcat -C
right away to see log messages.
I run
Code:
TARGET_BUILD_TYPE=debug TARGET_BUILD_VARIANT=eng make -j2 bacon
I explain more in this thread. I helped someone who has never built LineageOS before. A lot of the questions you may have might be answered there are already so please give that a read.
https://forum.xda-developers.com/t/need-help-building-a-sm-t555-gt510lte-lineageos-rom.4255243/
In addition, the SM-T555 is the bigger brother to SM-T355 so you might be able to use code or look at his code for clues as the two should be very similar.
Click to expand...
Click to collapse
The debugging tips from that thread will be super useful. Plus a similar device that has RIL will be helpful too. Thanks.
retiredtab said:
If you are going to use my roomservice.xml, upload that to your github as well so I can see what you are doing. Obviously, you will have to change some things that are gt58wifi specific to gt58ltedo.
Click to expand...
Click to collapse
There is no /media/source/lineageos/out/soong/.temp/tmpjgPF4J/content/apex_payload.img. Any ideas ?
Code:
[ 95% 800/839] //art/build/apex:com.android.runtime.release apex (image)
FAILED: out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/com.android.runtime.release.apex.unsigned
rm -rf out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex && (mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/adbconnection/libadbconnection/android_arm_armv8-a_core_shared_com.android.runtime.release/libadbconnection.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libadbconnection.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/build/apex/art_postinstall_hook/android_arm_armv8-a/art_postinstall_hook out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/art_postinstall_hook && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/build/apex/art_preinstall_hook/android_arm_armv8-a/art_preinstall_hook out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/art_preinstall_hook && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/build/apex/art_preinstall_hook_boot/android_arm_armv8-a/art_preinstall_hook_boot out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/art_preinstall_hook_boot && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/build/apex/art_preinstall_hook_system_server/android_arm_armv8-a/art_preinstall_hook_system_server out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/art_preinstall_hook_system_server && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/build/apex/art_prepostinstall_utils/android_arm_armv8-a/art_prepostinstall_utils out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/art_prepostinstall_utils && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc && cp out/soong/.intermediates/art/build/apex/com.android.runtime.ld.config.txt/android_arm_armv8-a_core/ld.config.txt out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/ld.config.txt && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/compiler/libart-compiler/android_arm_armv8-a_core_shared_com.android.runtime.release/libart-compiler.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libart-compiler.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/dalvikvm/dalvikvm/android_arm_armv8-a_core_com.android.runtime.release/dalvikvm32 out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/dalvikvm32 && ln -s dalvikvm32 out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/dalvikvm && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/dex2oat/dex2oat/android_arm_armv8-a_core_com.android.runtime.release/dex2oat out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/dex2oat && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/dexlayout/libart-dexlayout/android_arm_armv8-a_core_shared_com.android.runtime.release/libart-dexlayout.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libart-dexlayout.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/dexlist/dexlist/android_arm_armv8-a_core_com.android.runtime.release/dexlist out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/dexlist && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/dexoptanalyzer/dexoptanalyzer/android_arm_armv8-a_core_com.android.runtime.release/dexoptanalyzer out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/dexoptanalyzer && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/disassembler/libart-disassembler/android_arm_armv8-a_core_shared_com.android.runtime.release/libart-disassembler.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libart-disassembler.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/dt_fd_forward/libdt_fd_forward/android_arm_armv8-a_core_shared_com.android.runtime.release/libdt_fd_forward.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libdt_fd_forward.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/libartbase/libartbase/android_arm_armv8-a_core_shared_com.android.runtime.release/libartbase.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libartbase.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/libartpalette/libartpalette/android_arm_armv8-a_core_shared_com.android.runtime.release/libartpalette.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libartpalette.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/libdexfile/libdexfile/android_arm_armv8-a_core_shared_com.android.runtime.release/libdexfile.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libdexfile.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/libdexfile/libdexfile_external/android_arm_armv8-a_core_shared_com.android.runtime.release/libdexfile_external.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libdexfile_external.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/libdexfile/libdexfile_support/android_arm_armv8-a_core_shared_com.android.runtime.release/libdexfile_support.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libdexfile_support.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/libprofile/libprofile/android_arm_armv8-a_core_shared_com.android.runtime.release/libprofile.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libprofile.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/oatdump/oatdump/android_arm_armv8-a_core_com.android.runtime.release/oatdump out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/oatdump && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/openjdkjvm/libopenjdkjvm/android_arm_armv8-a_core_shared_com.android.runtime.release/libopenjdkjvm.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libopenjdkjvm.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/openjdkjvmti/libopenjdkjvmti/android_arm_armv8-a_core_shared_com.android.runtime.release/libopenjdkjvmti.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libopenjdkjvmti.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/profman/profman/android_arm_armv8-a_core_com.android.runtime.release/profman out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/profman && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/runtime/libart/android_arm_armv8-a_core_shared_com.android.runtime.release/libart.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libart.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/sigchainlib/libsigchain/android_arm_armv8-a_core_shared_com.android.runtime.release/libsigchain.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libsigchain.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/bionic && cp out/soong/.intermediates/bionic/libc/libc/android_arm_armv8-a_core_shared_com.android.runtime.release/libc.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/bionic/libc.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/bionic/libc/malloc_debug/libc_malloc_debug/android_arm_armv8-a_core_shared_com.android.runtime.release/libc_malloc_debug.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libc_malloc_debug.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/bionic/libc/malloc_hooks/libc_malloc_hooks/android_arm_armv8-a_core_shared_com.android.runtime.release/libc_malloc_hooks.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libc_malloc_hooks.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/bionic && cp out/soong/.intermediates/bionic/libdl/libdl/android_arm_armv8-a_core_shared_com.android.runtime.release/libdl.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/bionic/libdl.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/bionic && cp out/soong/.intermediates/bionic/libm/libm/android_arm_armv8-a_core_shared_com.android.runtime.release/libm.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/bionic/libm.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/bionic/linker/linker/android_arm_armv8-a_core_com.android.runtime.release/linker out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/linker && ln -s linker out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/linker_asan && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/dalvik/dexdump/dexdump/android_arm_armv8-a_core_com.android.runtime.release/dexdump out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/dexdump && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib && cp out/soong/.intermediates/external/apache-xml/apache-xml/android_common/dex-withres-aligned/apache-xml.jar out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib/apache-xml.jar && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/boringssl/libcrypto/android_arm_armv8-a_core_shared_com.android.runtime.release/libcrypto.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libcrypto.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib && cp out/soong/.intermediates/external/bouncycastle/bouncycastle/android_common/hiddenapi/bouncycastle.jar out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib/bouncycastle.jar && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/chromium-libpac/libpac/android_arm_armv8-a_core_shared_com.android.runtime.release/libpac.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libpac.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/expat/libexpat/android_arm_armv8-a_core_shared_com.android.runtime.release/libexpat.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libexpat.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/icu/icu4c/source/common/libicuuc/android_arm_armv8-a_core_shared_com.android.runtime.release/libicuuc.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libicuuc.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/icu/icu4c/source/i18n/libicui18n/android_arm_armv8-a_core_shared_com.android.runtime.release/libicui18n.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libicui18n.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/icu && cp out/soong/.intermediates/external/icu/icu4c/source/stubdata/apex_icu.dat/android_arm_armv8-a_core/icudt63l.dat out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/icu/icudt63l.dat && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/icu/libandroidicu/libandroidicu/android_arm_armv8-a_core_shared_com.android.runtime.release/libandroidicu.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libandroidicu.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/libcxx/libc++/android_arm_armv8-a_core_shared_com.android.runtime.release/libc++.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libc++.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/lzma/C/liblzma/android_arm_armv8-a_core_shared_com.android.runtime.release/liblzma.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/liblzma.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/oj-libjdwp/libdt_socket/android_arm_armv8-a_core_shared_com.android.runtime.release/libdt_socket.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libdt_socket.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/oj-libjdwp/libjdwp/android_arm_armv8-a_core_shared_com.android.runtime.release/libjdwp.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libjdwp.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/oj-libjdwp/libnpt/android_arm_armv8-a_core_shared_com.android.runtime.release/libnpt.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libnpt.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib && cp out/soong/.intermediates/external/okhttp/okhttp/android_common/hiddenapi/okhttp.jar out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib/okhttp.jar && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/vixl/libvixl/android_arm_armv8-a_core_shared_com.android.runtime.release/libvixl.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libvixl.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/zlib/libz/android_arm_armv8-a_core_shared_com.android.runtime.release/libz.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libz.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib && cp out/soong/.intermediates/libcore/core-libart/android_common/dex-withres-aligned/core-libart.jar out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib/core-libart.jar && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib && cp out/soong/.intermediates/libcore/core-oj/android_common/dex-withres-aligned/core-oj.jar out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib/core-oj.jar && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/libcore/libandroidio/android_arm_armv8-a_core_shared_com.android.runtime.release/libandroidio.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libandroidio.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/libcore/libjavacore/android_arm_armv8-a_core_shared_com.android.runtime.release/libjavacore.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libjavacore.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/libcore/libopenjdk/android_arm_armv8-a_core_shared_com.android.runtime.release/libopenjdk.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libopenjdk.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/libnativehelper/libnativehelper/android_arm_armv8-a_core_shared_com.android.runtime.release/libnativehelper.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libnativehelper.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/system/core/base/libbase/android_arm_armv8-a_core_shared_com.android.runtime.release/libbase.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libbase.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/system/core/libbacktrace/libbacktrace/android_arm_armv8-a_core_shared_com.android.runtime.release/libbacktrace.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libbacktrace.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/system/core/libnativebridge/libnativebridge/android_arm_armv8-a_core_shared_com.android.runtime.release/libnativebridge.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libnativebridge.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/system/core/libnativeloader/libnativeloader/android_arm_armv8-a_core_shared_com.android.runtime.release/libnativeloader.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libnativeloader.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/system/core/libunwindstack/libunwindstack/android_arm_armv8-a_core_shared_com.android.runtime.release/libunwindstack.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libunwindstack.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/system/core/libziparchive/libziparchive/android_arm_armv8-a_core_shared_com.android.runtime.release/libziparchive.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libziparchive.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/tz && cp out/soong/.intermediates/system/timezone/output_data/apex_tz_version/android_arm_armv8-a_core/tz_version out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/tz/tz_version && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/tz && cp out/soong/.intermediates/system/timezone/output_data/apex_tzdata/android_arm_armv8-a_core/tzdata out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/tz/tzdata && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/tz && cp out/soong/.intermediates/system/timezone/output_data/apex_tzlookup.xml/android_arm_armv8-a_core/tzlookup.xml out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/tz/tzlookup.xml) && APEXER_TOOL_PATH=out/soong/host/linux-x86/bin:prebuilts/sdk/tools/linux/bin out/soong/host/linux-x86/bin/apexer --force --manifest art/build/apex/manifest.json --file_contexts system/sepolicy/apex/com.android.runtime.release-file_contexts --canned_fs_config out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/canned_fs_config --payload_type image --key art/build/apex/com.android.runtime.pem --pubkey art/build/apex/com.android.runtime.avbpubkey --target_sdk_version 29 --assets_dir out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/NOTICE out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/com.android.runtime.release.apex.unsigned
Traceback (most recent call last):
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/internal/stdlib/runpy.py", line 174, in _run_module_as_main
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/internal/stdlib/runpy.py", line 72, in _run_code
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/__main__.py", line 12, in <module>
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/internal/stdlib/runpy.py", line 174, in _run_module_as_main
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/internal/stdlib/runpy.py", line 72, in _run_code
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/avbtool.py", line 4419, in <module>
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/avbtool.py", line 4254, in run
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/avbtool.py", line 4344, in add_hashtree_footer
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/avbtool.py", line 3385, in add_hashtree_footer
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/avbtool.py", line 2797, in _generate_vbmeta_blob
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/avbtool.py", line 405, in encode_rsa_key
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/avbtool.py", line 367, in __init__
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/internal/stdlib/subprocess.py", line 394, in __init__
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/internal/stdlib/subprocess.py", line 1047, in _execute_child
OSError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/internal/stdlib/runpy.py", line 174, in _run_module_as_main
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/internal/stdlib/runpy.py", line 72, in _run_code
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/__main__.py", line 12, in <module>
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/internal/stdlib/runpy.py", line 174, in _run_module_as_main
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/internal/stdlib/runpy.py", line 72, in _run_code
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/apexer.py", line 427, in <module>
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/apexer.py", line 420, in main
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/apexer.py", line 305, in CreateApex
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/apexer.py", line 107, in RunCommand
AssertionError: Failed to execute: out/soong/host/linux-x86/bin/avbtool add_hashtree_footer --do_not_generate_fec --algorithm SHA256_RSA4096 --key art/build/apex/com.android.runtime.pem --prop apex.key:com.android.runtime --salt e3980a7e51b32d0673a26fd105adf0ca55d783b39739c21439499b713829e8b9 --image /media/source/lineageos/out/soong/.temp/tmpjgPF4J/content/apex_payload.img
[ 95% 804/839] Building Kernel Config
make: Entering directory '/media/source/lineageos/kernel/samsung/msm8916'
GEN /media/source/lineageos/out/target/product/gt58ltedo/obj/KERNEL_OBJ/Makefile
arch/arm/Kconfig:1666:warning: choice value used outside its choice group
arch/arm/Kconfig:1672:warning: choice value used outside its choice group
arch/arm/Kconfig:1675:warning: choice value used outside its choice group
arch/arm/Kconfig:1681:warning: choice value used outside its choice group
drivers/misc/Kconfig:777:warning: choice value used outside its choice group
drivers/misc/Kconfig:779:warning: choice value used outside its choice group
drivers/misc/Kconfig:787:warning: choice value used outside its choice group
drivers/misc/Kconfig:790:warning: choice value used outside its choice group
drivers/misc/Kconfig:792:warning: choice value used outside its choice group
arch/arm/configs/msm8916_sec_defconfig:94:warning: override: reassigning to symbol IP_MULTICAST
arch/arm/configs/msm8916_sec_defconfig:226:warning: override: reassigning to symbol NET_EMATCH
arch/arm/configs/msm8916_sec_defconfig:573:warning: override: reassigning to symbol INPUT_MISC
arch/arm/configs/msm8916_sec_defconfig:574:warning: override: reassigning to symbol INPUT_GPIO
arch/arm/configs/msm8916_sec_defconfig:731:warning: unexpected data
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8909 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM_KRAIT && ARCH_MSM8909 && ARCH_MSM8916 && ARCH_MSM8610 && ARCH_MSM8226) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
arch/arm/configs/selinux_defconfig:4:warning: override: reassigning to symbol EXT4_FS_SECURITY
arch/arm/configs/selinux_defconfig:5:warning: override: reassigning to symbol AUDIT
arch/arm/configs/selinux_defconfig:7:warning: override: reassigning to symbol SECURITY
arch/arm/configs/selinux_defconfig:8:warning: override: reassigning to symbol LSM_MMAP_MIN_ADDR
arch/arm/configs/selinux_defconfig:9:warning: override: reassigning to symbol SECURITY_NETWORK
arch/arm/configs/selinux_defconfig:13:warning: symbol value 'y' invalid for SECURITY_SELINUX_CHECKREQPROT_VALUE
arch/arm/configs/selinux_defconfig:15:warning: override: reassigning to symbol NF_CONNTRACK_SECMARK
arch/arm/configs/selinux_defconfig:16:warning: override: reassigning to symbol NETFILTER_XT_TARGET_CONNSECMARK
arch/arm/configs/selinux_defconfig:18:warning: override: reassigning to symbol IP_NF_SECURITY
arch/arm/configs/msm8916_sec_gt58lte_aus_defconfig:17:warning: override: reassigning to symbol USB_HOST_NOTIFY
arch/arm/configs/msm8916_sec_gt58lte_aus_defconfig:65:warning: override: reassigning to symbol SENSORS
arch/arm/configs/msm8916_sec_gt58lte_aus_defconfig:85:warning: override: reassigning to symbol MSM_EEPROM
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8909 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM_KRAIT && ARCH_MSM8909 && ARCH_MSM8916 && ARCH_MSM8610 && ARCH_MSM8226) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
KCONFIG_SELINUX(arch/arm/configs/selinux_defconfig)
KCONFIG_LOG_SELINUX((null))
KCONFIG_DMVERITY((null))
KCONFIG_VARIANT(arch/arm/configs/msm8916_sec_gt58lte_aus_defconfig)
KCONFIG_DEBUG((null))
#
# configuration written to .config
#
make: Leaving directory '/media/source/lineageos/kernel/samsung/msm8916'
make: Entering directory '/media/source/lineageos/kernel/samsung/msm8916'
GEN /media/source/lineageos/out/target/product/gt58ltedo/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
arch/arm/Kconfig:1666:warning: choice value used outside its choice group
arch/arm/Kconfig:1672:warning: choice value used outside its choice group
arch/arm/Kconfig:1675:warning: choice value used outside its choice group
arch/arm/Kconfig:1681:warning: choice value used outside its choice group
drivers/misc/Kconfig:777:warning: choice value used outside its choice group
drivers/misc/Kconfig:779:warning: choice value used outside its choice group
drivers/misc/Kconfig:787:warning: choice value used outside its choice group
drivers/misc/Kconfig:790:warning: choice value used outside its choice group
drivers/misc/Kconfig:792:warning: choice value used outside its choice group
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8909 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM_KRAIT && ARCH_MSM8909 && ARCH_MSM8916 && ARCH_MSM8610 && ARCH_MSM8226) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8909 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM_KRAIT && ARCH_MSM8909 && ARCH_MSM8916 && ARCH_MSM8610 && ARCH_MSM8226) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
make: Leaving directory '/media/source/lineageos/kernel/samsung/msm8916'
11:16:56 ninja failed with: exit status 1
#### failed to build some targets (06:40 (mm:ss)) ####
retiredtab said:
If you are going to use my roomservice.xml, upload that to your github as well so I can see what you are doing. Obviously, you will have to change some things that are gt58wifi specific to gt58ltedo.
Click to expand...
Click to collapse
I used the crdroid-9.0 branch to create the device tree. Do you still use the crdroid-9.0 branch ?
user655362020 said:
There is no /media/source/lineageos/out/soong/.temp/tmpjgPF4J/content/apex_payload.img. Any ideas ?
Code:
[ 95% 800/839] //art/build/apex:com.android.runtime.release apex (image)
FAILED:
Traceback (most recent call last):
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/internal/stdlib/runpy.py", line 174, in _run_module_as_main
OSError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/internal/stdlib/runpy.py", line 174, in _run_module_as_main
#### failed to build some targets (06:40 (mm:ss)) ####
Click to expand...
Click to collapse
There's something strange with the above. On my 17.1 gt58wifi build, my directory shows
Code:
[email protected]:/media/l/gt58wifi/17/out/soong/host/linux-x86/bin$ ls -al avbtool
-rwxrwxr-x 1 l l 28148198 Apr 12 00:02 avbtool
$ file avbtool
avbtool: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, with debug_info, not stripped
$ file apexer
apexer: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, with debug_info, not stripped
whereas your shows avbtool and apexer has a directory.
I'm wondering if your manifest.xml is somehow messing up the make? I suggest removing lines 4 to 20, doing a complete repo sync and a make clean (start over) and then your brunch or make command.
user655362020 said:
I used the crdroid-9.0 branch to create the device tree. Do you still use the crdroid-9.0 branch ?
Click to expand...
Click to collapse
When I made 17.1 or Android 10, I used the crdroid-9.0 branch beause at that time there was no 10.0 branch and when there was, too many things got moved around so I stuck with 9.0. Either 9.0 or 10.0 is fine as long as you know how to change and move things around.
What desktop OS are you using? If linux, what distro? If Windows, are you using WSL version 2?
retiredtab said:
What desktop OS are you using? If linux, what distro? If Windows, are you using WSL version 2?
Click to expand...
Click to collapse
Bare-metal Fedora 34
retiredtab said:
I'm wondering if your manifest.xml is somehow messing up the make? I suggest removing lines 4 to 20, doing a complete repo sync and a make clean (start over) and then your brunch or make command.
Click to expand...
Click to collapse
I did that. It still fails at the same step.
There were a few more warnings (?) in both builds :
Code:
[ 53% 353/660] Target boot image: out/target/product/gt58ltedo/boot.img
patch boot out/target/product/gt58ltedo/boot.img out/target/product/gt58ltedo/boot.img.lok
cp: bad 'out/target/product/gt58ltedo/boot.img.lok': No such file or directory
Made boot image: out/target/product/gt58ltedo/boot.img
[ 55% 366/660] ----- Making recovery image ------
patch recovery out/target/product/gt58ltedo/recovery.img out/target/product/gt58ltedo/recovery.img.lok
cp: bad 'out/target/product/gt58ltedo/recovery.img.lok': No such file or directory
Made recovery image: out/target/product/gt58ltedo/recovery.img
retiredtab said:
whereas your shows avbtool and apexer has a directory.
Click to expand...
Click to collapse
Actually python trace shows where in the source file the error occured. I too have avbtool and apexer in out/soong/host/linux-x86/bin directory as single file.
I tried enabling dm-verity in kernel config (required by apex image according to
https://source.android.com/devices/tech/ota/apex#required_kernel_configuration_options). It still fails.
retiredtab said:
I'm wondering if your manifest.xml is somehow messing up the make? I suggest removing lines 4 to 20, doing a complete repo sync and a make clean (start over) and then your brunch or make command.
Click to expand...
Click to collapse
what command do you use to build ?
I am using source build/envsetup.sh && lunch lineage_gt58ltedo-userdebug && mka
Maybe Relevant
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20210801-UNOFFICIAL-gt58ltedo
TARGET_PRODUCT=lineage_gt58ltedo
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.13.4-200.fc34.x86_64-x86_64-Fedora-34-(KDE-Plasma)
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ3A.200805.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES= hardware/qcom-caf/msm8916
============================================
Also were you trying to compile TWRP for T350/T355 ? If yes, then can you provide the link for twrp device tree ?
=== apex_payload.img ===
So I cloned my 17.1 gt58wifi mechnical hard drive (250GB) to another drive using dd. Then, I took your roomservice.xml, did a repo sync to your directories as per roomservice and compiled the rom.
Code:
Package Complete: out/target/product/gt58ltedo/lineage-17.1-20210801-UNOFFICIAL-gt58ltedo.zip
#### build completed successfully (01:30:21 (hh:mm:ss)) ####
The reason I cloned my gt58wifi is so I don't have to recompile 80,000 files from scratch as a brand new make takes around 9.5 hours. The gt58wifi and gt58ltedo share similar code and libraries so I'm able to save 8 hours of compiling.
When I switched to your roomservice.xml, it had to recompile about 17,000s and took 1.5 hours as shown above. At this point, I'm not willing
to do a make clean which means my machine will be compiling for 9.5 hours.
I highly doubt the image produced will boot into OS since it's your first draft of all the code, but it completed without any apex_payload.img errors.
However, by default, LineageOS builds a recovery.img (similar to TWRP, but with less functionality and UI is different). That file is only 11MB
and if you want, I can send you this file and you can try loading onto your recovery partition. If it doesn't boot into recovery partition, that's
a sure sign that it won't boot into full LineageOS.
If recovery.img fails, you can always reflash it with TWRP if that's what you are presently running. If you don't know how to flash recovery and
get into download mode, please do some research. It's not difficult, but first time people will panic and then possibly make a huge mistake possibly creating a bricked device.
The messages below show up in my compile, but I see them all the time.
Code:
[ 77% 11670/15082] Target boot image: out/target/product/gt58ltedo/boot.img
patch boot out/target/product/gt58ltedo/boot.img out/target/product/gt58ltedo/boot.img.lok
cp: bad 'out/target/product/gt58ltedo/boot.img.lok': No such file or directory
Made boot image: out/target/product/gt58ltedo/boot.img
[ 79% 11948/15082] ----- Making recovery image ------
patch recovery out/target/product/gt58ltedo/recovery.img out/target/product/gt58ltedo/recovery.img.lok
cp: bad 'out/target/product/gt58ltedo/recovery.img.lok': No such file or directory
Made recovery image: out/target/product/gt58ltedo/recovery.img
Here's what I suggest. If you have a spare 250GB hard drive, load Lubuntu 20.04. All the LineageOS build instructions that I see are written for an Ubuntu environment and there may be a missing library or some functionality that doesn't work on Fedora? I do all my builds on Lubuntu 20.04. A 250GB drive is enough to hold Lubuntu (only about 6GB) and your build.
If you want to keep trying Fedora, then take a look at
https://wiki.lineageos.org/devices/chagallwifi/builds
and figure out what library you may be missing. I'm not a Fedora user and the last time I tried it was in 2014 so I cannot help you with Fedora questions.
=== twrp ===
If you can't build the LineageOS, you can try building the TWRP. It's a lot easier and faster (only about 8,000 files total instead of 80,000).
I did not build TWRP for SM-T350. Nubianprince did and his code is at
GitHub - Nubianprince/android_device_samsung_gt58wifi at twrp
Device tree for Samsung Galaxy SM-T350. Contribute to Nubianprince/android_device_samsung_gt58wifi development by creating an account on GitHub.
github.com
If you can get a working TWRP for your device, then that will help you build the full LineageOS. Again, you must know how to flash the recovery partition because there's a good chance your first TWRP won't work.
=== dm-verity ===
You shouldn't have to enable it. It's disabled in kernel as per
android_device_samsung_msm8916-common/BoardConfigCommon.mk at lineage-17.1 · Galaxy-MSM8916/android_device_samsung_msm8916-common
Common MSM8916 tree for Samsung devices. Contribute to Galaxy-MSM8916/android_device_samsung_msm8916-common development by creating an account on GitHub.
github.com
android_kernel_samsung_msm8916/msm8916_sec_defconfig at lineage-17.1 · Galaxy-MSM8916/android_kernel_samsung_msm8916
MSM8916/MSM8929/MSM8939 kernel for Samsung devices. - android_kernel_samsung_msm8916/msm8916_sec_defconfig at lineage-17.1 · Galaxy-MSM8916/android_kernel_samsung_msm8916
github.com
=== commands to build ===
Because I have a slow machine with limited memory, I use
. build/envsetup.sh
breakfast gt58ltedo
TARGET_BUILD_TYPE=debug TARGET_BUILD_VARIANT=eng make -j2 bacon (as per post #5)
recovery.img zipped.
Removed by me.
Related
Any kernel devs out there willing tohelp me out with this?
I am getting these warnings when running angler_defconfig
warning: (PCI_MSM && AMD_IOMMU) selects PCI_MSI which has unmet direct dependencies (PCI && ARCH_SUPPORTS_MSI)
warning: (SND_SOC_APQ8074 && SND_SOC_MSM8994) selects SND_SOC_MSM_HDMI_CODEC_RX which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && FB_MSM_MDSS_HDMI_PANEL && (SND_SOC_MSM8974 || SND_SOC_APQ8084 || SND_SOC_MSM8994))
warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
warning: (PCI_MSM && AMD_IOMMU) selects PCI_MSI which has unmet direct dependencies (PCI && ARCH_SUPPORTS_MSI)
warning: (SND_SOC_APQ8074 && SND_SOC_MSM8994) selects SND_SOC_MSM_HDMI_CODEC_RX which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && FB_MSM_MDSS_HDMI_PANEL && (SND_SOC_MSM8974 || SND_SOC_APQ8084 || SND_SOC_MSM8994))
warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
Can anyone one help me solve this?
When I run command make -j3 I get error:
scripts/kconfig/conf --silentoldconfig Kconfig
sound/soc/codecs/audience/Kconfig:40:warning: type of 'SND_SOC_ES_SLIM' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:43:warning: type of 'SND_SOC_ES_I2C' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:44:warning: choice value used outside its choice group
sound/soc/codecs/audience/Kconfig:41:warning: choice value used outside its choice group
warning: (SND_SOC_MSM8226) selects DOLBY_DAP which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_MSM8974)
warning: (SND_SOC_MSM8226) selects DOLBY_DAP which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_MSM8974)
*** Error during update of the configuration.
/media/sf_gti9301i/GT-I9301I_KK_Opensource/Kernel/scripts/kconfig/Makefile:33: recipe for target 'silentoldconfig' failed
make[2]: *** [silentoldconfig] Error 1
/media/sf_gti9301i/GT-I9301I_KK_Opensource/Kernel/Makefile:496: recipe for target 'silentoldconfig' failed
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/kernel.release'. Stop.
I have fixed problem by putting source inside home folder.
Hello All.
I am building a new Cyanogenmod 13.0 for Galaxy A5H and I make a lot progress but, Im havng building error mostly on the kernel.
Here is the error log:
Building Kernel
make -C kernel/samsung/msm8916-caf O=/media/storage/android/cm-13.0/out/target/product/a53g/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/media/storage/android/cm-13.0/prebuilts/misc/linux-x86/ccache/ccache /home/ahmed/android/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-/arm-eabi-" zImage
make[1]: Entering directory '/media/storage/android/cm-13.0/kernel/samsung/msm8916-caf'
/media/storage/android/cm-13.0/kernel/samsung/msm8916-caf/Makefile:603: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
GEN /media/storage/android/cm-13.0/out/target/product/a53g/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/misc/Kconfig:421:warning: type of 'TIMA_LOG' redefined from 'boolean' to 'tristate'
drivers/misc/Kconfig:752:warning: choice value used outside its choice group
drivers/misc/Kconfig:754:warning: choice value used outside its choice group
drivers/misc/Kconfig:762:warning: choice value used outside its choice group
drivers/misc/Kconfig:765:warning: choice value used outside its choice group
drivers/misc/Kconfig:767:warning: choice value used outside its choice group
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM_KRAIT && ARCH_MSM8909 && ARCH_MSM8916 && ARCH_MSM8610 && ARCH_MSM8226) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM_KRAIT && ARCH_MSM8909 && ARCH_MSM8916 && ARCH_MSM8610 && ARCH_MSM8226) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
GEN /media/storage/android/cm-13.0/out/target/product/a53g/obj/KERNEL_OBJ/Makefile
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
Using /media/storage/android/cm-13.0/kernel/samsung/msm8916-caf as source for kernel
/media/storage/android/cm-13.0/kernel/samsung/msm8916-caf is not clean, please run 'make mrproper'
in the '/media/storage/android/cm-13.0/kernel/samsung/msm8916-caf' directory.
/media/storage/android/cm-13.0/kernel/samsung/msm8916-caf/Makefile:843: recipe for target 'prepare3' failed
make[2]: *** [prepare3] Error 1
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/media/storage/android/cm-13.0/kernel/samsung/msm8916-caf'
build/core/tasks/kernel.mk:286: recipe for target 'TARGET_KERNEL_BINARIES' failed
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
#### make failed to build some targets (02:30:51 (hh:mm:ss)) ####
Please I need your help.
hi, which version of java you use?
and since you compile source ?, I also tried to compile a kernel from 0, and gave me errors
You can ignore everything after Cannot use CONFIG_CC_STACKPROTECTOR regular as those are just warnings.
It's saying your compiler doesn't support CONFIG_CC_STACKPROTECTOR regular set in the defconfig.
Are you sure you've got your environment correctly setup and paths correct.
I always set my path and platform variables in the MAKE file
Then just do MAKE to build.
If you still get the error try commenting out CONFIG_CC_STACKPROTECTOR regular in the defconfig.
Also run make mrproper and make clean before building.
Also which distro are you building on?
I'm building with Java 1.7 and Ubuntu 16.04 64-Bit I'll try it and PM you.
after Lenovo added the Sources of its STOCK Firmware public, i wanted to set-up my Lenovo Tab 4 10 Plus TB-X704L to stock firmware by myself to compile it.
How can I read out dependencies from the sources to get any error while compiling?
here is the stock firmware from lenovo: pcsupport.lenovo.com/de/de/products/tablets/a-series/tab4-10-plus/downloads
i did follow this tut for building a GCC Cross Compiler but still get errors while following the TUT by myself: preshing.com/20141119/how-to-build-a-gcc-cross-compiler/
Can someone please tell me how to solve such problems - maybe in summoning general ways like. reading header files to follow dependencies, too?
Thanks.
Code:
[email protected]:/media/kick/jdownloads/kernel# sudo ./build_kernel.sh
make[1]: Verzeichnis „/media/kick/jdownloads/kernel/kernel/msm-3.18/out“ wird betreten
GEN ./Makefile
drivers/soc/qcom/Kconfig:368:warning: choice value used outside its choice group
drivers/soc/qcom/Kconfig:373:warning: choice value used outside its choice group
arch/arm64/configs/hq_msm8953_a6090-perf_defconfig:64:warning: override: reassigning to symbol ARCH_MMAP_RND_COMPAT_BITS
arch/arm64/configs/hq_msm8953_a6090-perf_defconfig:657:warning: unexpected data
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8994 && SND_SOC_MSM8996 && SND_SOC_MSM8X16 && SND_SOC_MDM9607 && SND_SOC_MDM9640) selects SND_SOC_WCD9330 which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && WCD9330_CODEC)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8994 && SND_SOC_MSM8996 && SND_SOC_MSM8X16 && SND_SOC_MDM9607 && SND_SOC_MDM9640) selects SND_SOC_WCD9330 which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && WCD9330_CODEC)
#
# configuration written to .config
#
make[1]: Verzeichnis „/media/kick/jdownloads/kernel/kernel/msm-3.18/out“ wird verlassen
make[1]: Verzeichnis „/media/kick/jdownloads/kernel/kernel/msm-3.18/out“ wird betreten
GEN ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/soc/qcom/Kconfig:368:warning: choice value used outside its choice group
drivers/soc/qcom/Kconfig:373:warning: choice value used outside its choice group
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8994 && SND_SOC_MSM8996 && SND_SOC_MSM8X16 && SND_SOC_MDM9607 && SND_SOC_MDM9640) selects SND_SOC_WCD9330 which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && WCD9330_CODEC)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8994 && SND_SOC_MSM8996 && SND_SOC_MSM8X16 && SND_SOC_MDM9607 && SND_SOC_MDM9640) selects SND_SOC_WCD9330 which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && WCD9330_CODEC)
CHK include/config/kernel.release
GEN ./Makefile
CHK include/generated/uapi/linux/version.h
Hi,
I'm trying to compile the stock Samsung Kernel for my SM-T280 (Android 5.1.1) because I plan to make some modifications later on. The build currently just stops with no obvious error message I could debug from.
Code:
...
In file included from include/soc/sprd/sci_glb_regs.h:169:0,
from drivers/usb/gadget/dwc_otg/usb_hw.c:23:
include/soc/sprd/./chip_x30g/__regs_ap_apb.h:69:0: warning: "BIT_CKG_SOFT_RST" redefined [enabled by default]
#define BIT_CKG_SOFT_RST ( BIT(18) )
^
In file included from include/soc/sprd/sci_glb_regs.h:154:0,
from drivers/usb/gadget/dwc_otg/usb_hw.c:23:
include/soc/sprd/./chip_x30g/__regs_aon_apb_tshark3.h:153:0: note: this is the location of the previous definition
#define BIT_CKG_SOFT_RST ( BIT(22) )
^
LD drivers/usb/gadget/dwc_otg/dwc_otg.o
LD drivers/usb/gadget/dwc_otg/built-in.o
LD drivers/usb/gadget/built-in.o
LD drivers/usb/built-in.o
LD drivers/built-in.o
To make things easy to reproduce, I use Docker:
Code:
FROM ubuntu:18.04
RUN apt-get -y update \
&& apt-get -y install make gcc python wget abootimg unzip curl \
&& apt-get clean
# Go to https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8
# Click Branch "master"
# Download [tgz]
COPY arm-eabi-4.8-refs_heads_master.tar.gz /data/arm-eabi.tar.gz
# Go to http://opensource.samsung.com/
# Search "T280XXU0AQA4"
# Download "SM-T280_EUR_LL_Opensource.zip"
COPY SM-T280_EUR_LL_Opensource.zip /data/tools.zip
ENV PATH /usr/sbin:/usr/bin:/sbin:/bin:/data/arm-eabi/bin
ENV ARCH arm
ENV SUBARCH arm
ENV CROSS_COMPILE arm-eabi-
RUN mkdir /data/arm-eabi \
&& mkdir /data/src \
&& tar -xf /data/arm-eabi.tar.gz -C /data/arm-eabi/ \
&& unzip /data/tools.zip -d /data \
&& tar -xf /data/Kernel.tar.gz -C /data/src/ \
&& rm /data/tools.zip \
&& rm /data/arm-eabi.tar.gz \
&& rm /data/Kernel.tar.gz
WORKDIR /data/src
RUN make mrproper \
&& make gtexswifi-dt_defconfig \
&& make -j4 zImage
#RUN abootimg -u /data/boot.img -k /data/src/arch/arm/boot/zImage
The description Samsung provides to compile the kernel is pretty poor. I already tried different toolchains (tag "android-5.1.1_r38" instead of "master") and "ubuntu:16.04" as base image.
https://forum.xda-developers.com/ga...rnel-galaxy-tab-7-0-2016-lte-sm-t285-t3474967 states the Kernel source for SM-T285 provided by Samsung is actually broken... Maybe this one too? I have almost no experience in compiling anything on linux, so I'm stuck for now. (I tried the same with a stock Android Kernel for a Nexus 7 and it worked.)
Help would be appreciated
Okay... After hours of trying different software packages used in https://github.com/lineage-gtexslte/build_guide/blob/master/Dockerfile , I found that "bc" was missing. Now it compiles :victory:
Code:
FROM ubuntu:18.04
RUN apt-get -y update \
&& apt-get -y install make gcc python wget abootimg unzip curl [B][COLOR="DarkRed"]bc[/COLOR][/B] \
&& apt-get clean
# Go to https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8
# Click Tag "android-5.1.1_r38"
# Download [tgz]
COPY arm-eabi-4.8-26e93f6af47f7bd3a9beb5c102a5f45e19bfa38a.tar.gz /data/arm-eabi.tar.gz
# Go to http://opensource.samsung.com/
# Search "T280XXU0AQA4"
# Download "SM-T280_EUR_LL_Opensource.zip"
COPY SM-T280_EUR_LL_Opensource.zip /data/tools.zip
ENV PATH /usr/sbin:/usr/bin:/sbin:/bin:/data/arm-eabi/bin
ENV ARCH arm
ENV SUBARCH arm
ENV CROSS_COMPILE arm-eabi-
RUN mkdir /data/arm-eabi \
&& mkdir /data/src \
&& tar -xf /data/arm-eabi.tar.gz -C /data/arm-eabi/ \
&& unzip /data/tools.zip -d /data \
&& tar -xf /data/Kernel.tar.gz -C /data/src/ \
&& rm /data/tools.zip \
&& rm /data/arm-eabi.tar.gz \
&& rm /data/Kernel.tar.gz
WORKDIR /data/src
RUN make mrproper \
&& make gtexswifi-dt_defconfig \
&& make -j4 zImage
Edit: Just wanted to let you know that I now also generated a boot.img successfully and it actually booted my recompiled kernel.
To create a boot.img out of zImage I used https://github.com/chiefwigms/degas-mkbootimg/tree/galaxy_tab_a_smt285 and a original boot.img I created from my device using TWRP.
Code:
degas-unpackbootimg -i /data/boot.img -o /data/boot
degas-mkbootimg --kernel /data/src/arch/arm/boot/zImage --ramdisk /data/boot/boot.img-ramdisk.gz --cmdline "console=ttyS1,115200n8" --dt /data/boot/boot.img-dt --signature /data/boot/boot.img-signature -o /data/boot-mkbootimg.img
mkT280bootimg -i /data/boot-mkbootimg.img -o /data/boot-mkt280.img
The image created by degas-mkbootimg won't boot. Using mkT280bootimg OR https://github.com/osm0sis/dhtbsign on it will create an image that boots.
I've used TWRP again to flash the image.
hey bud sorry for bumping up the post...i have sm-t280 and im trying to install it as my car stereo. currently i have problems with otg host with charging at the same time. do you have any solution or advice?