UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Motorola Moto Z (griffin) mka systemimage - dependency issues

    Scheduled Pinned Locked Moved Porting
    5 Posts 2 Posters 790 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B Offline
      blendermen
      last edited by

      Hi,
      I'm trying to port Motorola Moto Z (griffin)
      It has all the required sources:
      https://github.com/LineageOS/android_device_motorola_griffin
      https://github.com/LineageOS/android_kernel_motorola_msm8996
      https://github.com/LineageOS/android_external_bson
      https://github.com/LineageOS/android_system_qcom
      https://github.com/TheMuppets/proprietary_vendor_motorola

      Here is my motorola_griffin.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <manifest>
        <remote name="los"
            	fetch="https://github.com/LineageOS"
            	revision="lineage-16.0" />
        <remote name="muppets"
            	fetch="https://github.com/TheMuppets"
            	revision="lineage-16.0" />
      
        <project name="android_device_motorola_griffin" path="device/motorola/griffin" remote="los" />
        <project path="kernel/motorola/msm8996" name="android_kernel_motorola_msm8996" remote="los"  />
        <project path="external/bson" name="android_external_bson" remote="los" />
        <project path="system/qcom" name="android_system_qcom" remote="los"  />
        <project name="proprietary_vendor_motorola" path="vendor/motorola" remote="muppets"  />
      </manifest>
      
      marcin@marcinPC:~/halium2$ breakfast griffin
      including vendor/lineage/vendorsetup.sh
      Looking for dependencies in device/motorola/griffin
      Looking for dependencies in kernel/motorola/msm8996
      kernel/motorola/msm8996 has no additional dependencies.
      Looking for dependencies in packages/resources/devicesettings
      packages/resources/devicesettings has no additional dependencies.
      Looking for dependencies in external/bson
      external/bson has no additional dependencies.
      Looking for dependencies in system/qcom
      system/qcom has no additional dependencies.
      
      ============================================
      PLATFORM_VERSION_CODENAME=REL
      PLATFORM_VERSION=9
      LINEAGE_VERSION=16.0-20241202-UNOFFICIAL-griffin
      TARGET_PRODUCT=lineage_griffin
      TARGET_BUILD_VARIANT=userdebug
      TARGET_BUILD_TYPE=release
      TARGET_ARCH=arm64
      TARGET_ARCH_VARIANT=armv8-a
      TARGET_CPU_VARIANT=kryo
      TARGET_2ND_ARCH=arm
      TARGET_2ND_ARCH_VARIANT=armv8-a
      TARGET_2ND_CPU_VARIANT=kryo
      HOST_ARCH=x86_64
      HOST_2ND_ARCH=x86
      HOST_OS=linux
      HOST_OS_EXTRA=Linux-5.15.0-126-generic-x86_64-Ubuntu-20.04.6-LTS
      HOST_CROSS_OS=windows
      HOST_CROSS_ARCH=x86
      HOST_CROSS_2ND_ARCH=x86_64
      HOST_BUILD_TYPE=release
      BUILD_ID=PQ3A.190801.002
      OUT_DIR=/home/mazur/halium2/out
      PRODUCT_SOONG_NAMESPACES= hardware/qcom/audio-caf/msm8996 hardware/qcom/display-caf/msm8996 hardware/qcom/media-caf/msm8996
      

      mka helium-boot went flawlessly.
      Problems appear when building the system image (mka systemimage).
      I have a lot of dependency problems.
      I use this documentation: https://docs.ubports.com/en/latest/porting/build_and_boot/H9_setup_sources.html

      ninja: error: '/home/mazur/halium2/out/soong/host/linux-x86/bin/d8', needed by '/home/mazur/halium2/out/target/common/obj/APPS/BluetoothMidiService_intermediates/dex/classes.dex', missing and no known rule to make it
      
      ninja: error: 'external/proguard/bin/proguard.sh', needed by '/home/mazur/halium2/out/target/common/obj/APPS/BluetoothMidiService_intermediates/classes-proguard.jar', missing and no known rule to make it
      
      ninja: error: '/home/mazur/halium2/out/soong/host/linux-x86/framework/jarjar.jar', needed by '/home/mazur/halium2/out/soong/.intermediates/external/libphonenumber/libphonenumber-platform/android_common/turbine-jarjar/libphonenumber-platform.jar', missing and no known rule to make it
      

      I noticed that when I use a predefined configuration for another phone (any configuration from halium/halium/devices/manifests) I have the same problems. So I assume the problem lies in the configuration of the environment itself.

      Do you know how to solve this problem?
      BR,
      Marcin

      1 Reply Last reply Reply Quote 0
      • B Offline
        blendermen
        last edited by blendermen

        Hi,
        Problem solved by switching repo from (Halium-9 Lineage-16.0) to (Halium-11 Lineage-18.1).

        Out of curiosity, why doesn't Halium-11 have ./halium/devices/setup?
        I had to copy it manually from Halium-9

        default.xml in Halium-9:

        ...
        <project path="halium/devices" name="Halium/halium-devices" revision="halium-9.0" />
        ...
        

        default.xml for Halium-11 or 12

        no halium/devices entry
        
        1 Reply Last reply Reply Quote 0
        • B Offline
          blendermen
          last edited by

          Hi,
          I finally have the system and boot images.
          When I do fastboot boot halium-boot.img -c break=premount
          I see only the Motorola logo and that is all. I think it freezes at some point. I have checked the dmesg and there are no new entries.
          Do you know how to debug the boot image at the early loading stage?

          arubislanderA 1 Reply Last reply Reply Quote 0
          • arubislanderA Offline
            arubislander @blendermen
            last edited by

            @blendermen You seem to be following the porting documentation. Have you also seen mentioned the Telegram group for support with Porting Questions? There are more eyeballs there to pick up and notice your questions.

            πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
            Happily running Ubuntu Touch
            JingPad (24.04-1.x daily)
            OnePlus Nord N10 5G (24.04-2.x daily)
            PinePhone OG (20.04)
            Meizu Pro 5 (16.04 DEV)

            B 1 Reply Last reply Reply Quote 0
            • B Offline
              blendermen @arubislander
              last edited by

              @arubislander
              Yes I have seen it but didn't use it. I will ask there.
              Thanks.

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better πŸ’—

              Register Login
              • First post
                Last post