UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to install Ubuntu Touch on LG G6

    LG G6
    4
    11
    1622
    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.
    • AppLee
      AppLee @metty last edited by AppLee

      Hi @metty

      I suggest you start by reading the call for tester:
      https://forums.ubports.com/topic/3729/ubuntu-touch-on-lg-g6-h870-model-call-for-testers

      If you don't find the answer, you can ping the porter and ask for help.

      Keneda 1 Reply Last reply Reply Quote 0
      • Keneda
        Keneda @AppLee last edited by

        @applee said in How to install Ubuntu Touch on LG G6:

        I suggest you start by reading the call for tester:
        https://forums.ubports.com/topic/3729/ubuntu-touch-on-lg-g6-h870-model-call-for-testers

        Maybe you should move this thread in the G6 subforum ^^

        2015-Now : Meizu MX4 (Stable) for daily use
        Spare : Nexus 5 (Stable)

        AppLee 1 Reply Last reply Reply Quote 0
        • AppLee
          AppLee @Keneda last edited by

          @keneda
          That's a good idea.
          Will do right now, thanks.

          M 1 Reply Last reply Reply Quote 0
          • M
            metty @AppLee last edited by

            @applee Thanks for the answer..Yes, I saw that post. However, it is difficult for me to figure out how to do that. Basically, it would be great if there were more concrete instructions, as I am not an operating system developer. I'll give it a try anyway, if nothing else is available.

            G 1 Reply Last reply Reply Quote 0
            • G
              Guf @metty last edited by

              @metty hello, what is your difficulty in executing these instruction?
              Let me resume:

              • you need to unlock your device, I suppose you had already done to have LOS up and running
              • you need to install TWRP, by sudo fastboot flash recovery twrp.img
              • you then need to install the OS, executing: ./halium-install -v -p ut ~/Downloads/ubuntu-touch-hybris-xenial-edge-arm64-rootfs(1).tar.gz ../system.img
              • reboot the device to bootloader and flash the kernel: fastboot flash boot halium-boot.img
                I recommend at the first time to choose the halium-boot.img which boots from /data
                Then reboot and it should start to work
              M 1 Reply Last reply Reply Quote 1
              • M
                metty @Guf last edited by

                @guf Thanks for resuming, that helps me a lot! And also thanks for your contribution on ubuntu-touch! Sorry for the late reaction: did not saw, that someone was answering. I have to check my Notification-Settings here.

                So my starting point was, a LG-G6 without any system but twrp still runnig.

                1. So I started the phone into bootloader, and connected the computer
                2. Downloaded the halium install script from: https://gitlab.com/JBBgameich/halium-install/
                3. Downloaded the OS from here: https://drive.google.com/file/d/1BtVYvabN0nK1bR-7Hv8kBC-CIcN-B8Rc/view?usp=sharing
                4. Downloaded the Halium reference rootfs from here: https://ci.ubports.com/job/xenial-hybris-edge-rootfs-arm64/lastSuccessfulBuild/artifact/out/ubuntu-touch-hybris-xenial-edge-arm64-rootfs.tar.gz
                5. Executed: ./halium-install -v -p ut ~/Downloads/ubuntu-touch-hybris-xenial-edge-arm64-rootfs.tar.gz ../system-20200326.img

                I got:

                simg2img not found in $PATH
                make sure you have all dependencies installed.
                dependencies: qemu-utils binfmt-support qemu-user-static e2fsprogs sudo simg2img binutils
                

                So i did:

                sudo apt install qemu-utils binfmt-support qemu-user-static e2fsprogs sudo simg2img binutils
                

                After this I got:

                Scanning inode table          resize2fs: No space left on device while trying to resize .halium-install-imgs.OKVWa/system.img
                Please run 'e2fsck -fy .halium-install-imgs.OKVWa/system.img' to fix the filesystem
                after the aborted resize operation.
                I: Cleaning up
                * daemon not running; starting now at tcp:5037
                * daemon started successfully
                error: no devices/emulators found
                

                fastboot devices gives me:

                LGH870ed0cffee  fastboot
                

                What can I do to avoid this error?

                M 1 Reply Last reply Reply Quote 0
                • M
                  metty @metty last edited by

                  @metty Without knowing exactly what I did: I did the same as here , from @franky32: Uncomment the Line with

                  [ -f "$IMAGE_DIR/system.img" ] && sudo resize2fs -p -M "$IMAGE_DIR/system.img"
                  

                  from core.sh in the "function-folder".

                  The halium-install-script finishes sucessfully, also the fastboot-flash with halium-boot-bluetooth. But the phone fails to boot.
                  If there are some ideas what to do here, would be happy 😁

                  G 1 Reply Last reply Reply Quote 0
                  • G
                    Guf @metty last edited by

                    @metty did you choose the right images? first try to boot from datapart, putting system.img and rootfs.img over there and flashing the halium-boot.img
                    Then you can pass to the next step, I mean to boot from system partition

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      metty @Guf last edited by

                      @guf Hmm... I tried to write everything above what I did. Doesn't the Halium script copy the data to the partition? Do I need another command in between?
                      Something like

                      fastboot flash datapart system.img
                      fastboot flash datapart rootfs.img
                      

                      You can probably see my lack of knowledge in context. That's why it's difficult for me to successfully install UT from the forum. I can learn a lot from manuals.

                      G 1 Reply Last reply Reply Quote 0
                      • G
                        Guf @metty last edited by

                        @metty fastboot flash boot halium-install.img for kernel, while for rootfs.img and system.img you need halium-install tool. It automatically install both of them in the /data partition

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