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

    Trouble when trying to port to TB-X505F

    Scheduled Pinned Locked Moved Porting
    4 Posts 3 Posters 835 Views 1 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.
      • K Offline
        Kaloyan Donev
        last edited by

        I am trying to port Ubuntu Touch to the Lenovo TB-X505F, but there isn't an official port of Lineage OS in GitHub, but there is an unofficial one made by TBX505-Dev right here: https://github.com/TBX505-Dev/device_lenovo_X505L

        I tried hooking it up to my build environment using this XML config:

        <manifest>
        	<project name="TBX505-Dev/device_lenovo_X505L" path="device/lenovo/X505F" remote="github" revision="lineage-17.1"/>
        </manifest>
        

        and also this one:

        <?xml version="1.0" encoding="UTF-8"?>
        <manifest>
        	<project path="device/lenovo/x505f" name="device_lenovo_X505L" remote="device_lenovo_X505L" revision="lineage-17.1" />
        	<remote name="device_lenovo_X505L"
            fetch="https://github.com/TBX505-Dev"
            revision="lineage-17.1" />
        </manifest>
        

        Everything works fine with both of the XML files until I try to run the breakfast command with my devices code name (X505F), which results in this error:

        including vendor/lineage/vendorsetup.sh
        build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_X505F".
        14:48:59 dumpvars failed with: exit status 1
        Device X505F not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
        Repository for X505F not found in the LineageOS Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
        build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_X505F".
        14:49:00 dumpvars failed with: exit status 1
        build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_X505F".
        14:49:01 dumpvars failed with: exit status 1
        
        ** Don't have a product spec for: 'lineage_X505F'
        ** Do you have the right repo manifest?
        

        When I try to run brunch without a device codename specified, and select lineage_arm64-userdebug, I get the error

        ninja: error: '/home/user/halium/out/soong/host/linux-x86/bin/d8', needed by '/home/user/halium/out/soong/.intermediates/frameworks/base/packages/EasterEgg/EasterEgg/android_common/dex/EasterEgg.jar', missing and no known rule to make it
        

        Breakfast says something about roomservice.xml, but I can't seem to find that file anywhere. Also, sidenote, lenovo hasn't provided the source code for the kernel for the Lenovo TB-X505F, so the Lineage OS port by TBX505-Dev uses the already compiled kernel.

        Is there a way to fix these errors, and if so, how?

        redmiguy3R S 2 Replies Last reply Reply Quote 1
        • KenedaK Keneda moved this topic from Lenovo on
        • redmiguy3R Offline
          redmiguy3 @Kaloyan Donev
          last edited by redmiguy3

          @Kaloyan-Donev Once you have created the manifestation file run this command

          ./halium/devices/setup DEVICE
          

          replace DEVICE with your device's codename. This command will sync the required files for your device as specified in the manifest file. I would also recommend reffering to the actual Halium porting guide at Halium Porting Guide by Halium team themselves. But for some reason the ubuntu touch porting guide never mentions that step, even I have ran into that same problem while porting to Redmi 3.

          P.S. : run the above command before running the breakfast command.

          K 1 Reply Last reply Reply Quote 0
          • K Offline
            Kaloyan Donev @redmiguy3
            last edited by

            @redmiguy3 Thank you! I have tried porting postmarketOS to this device too, but the kernel I used is broken. I don't have the files for the port anymore, but I will restart development and try to port this device.

            1 Reply Last reply Reply Quote 0
            • S Offline
              shadan @Kaloyan Donev
              last edited by

              @Kaloyan-Donev hey hey I'm having the same problem but I never ran the breakfast command but I couldn't understand the line of that code,what are you supposed to name the name,remote,and repository

              1 Reply Last reply Reply Quote 0
              • First post
                Last post