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

How to install Ubuntu Touch on LG G6

Scheduled Pinned Locked Moved LG G6
11 Posts 4 Posters 3.4k 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.
    • M Offline
      metty
      last edited by 16 May 2021, 23:04

      I have two LG-G6s which I used a year ago with Lineage OS. The devices are unlocked and I would like to try installing an Ubuntu Touch on them. Since UBports does not yet support the device, I am looking for instructions on how to manually install the system. Is there anything where I can work my way through step by step?

      A 1 Reply Last reply 17 May 2021, 14:17 Reply Quote 0
      • A Offline
        AppLee @metty
        last edited by AppLee 17 May 2021, 14:17

        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.

        K 1 Reply Last reply 17 May 2021, 19:17 Reply Quote 0
        • K Offline
          Keneda @AppLee
          last edited by 17 May 2021, 19:17

          @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-2023 : Meizu MX4 ☠️⚰️✝️
          2023-2024 : Nexus 5 ☠️⚰️✝️
          2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
          🇲🇫🇬🇧

          A 1 Reply Last reply 17 May 2021, 19:22 Reply Quote 0
          • A Offline
            AppLee @Keneda
            last edited by 17 May 2021, 19:22

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

            M 1 Reply Last reply 17 May 2021, 19:54 Reply Quote 0
            • M Offline
              metty @AppLee
              last edited by 17 May 2021, 19:54

              @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 20 May 2021, 15:43 Reply Quote 0
              • G Offline
                Guf @metty
                last edited by 20 May 2021, 15:43

                @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 24 Jun 2021, 18:03 Reply Quote 1
                • M Offline
                  metty @Guf
                  last edited by 24 Jun 2021, 18:03

                  @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 6 Jul 2021, 17:59 Reply Quote 0
                  • M Offline
                    metty @metty
                    last edited by 6 Jul 2021, 17:59

                    @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 :beaming_face_with_smiling_eyes:

                    G 1 Reply Last reply 13 Jul 2021, 10:28 Reply Quote 0
                    • G Offline
                      Guf @metty
                      last edited by 13 Jul 2021, 10:28

                      @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 13 Jul 2021, 10:59 Reply Quote 0
                      • M Offline
                        metty @Guf
                        last edited by 13 Jul 2021, 10:59

                        @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 21 Jul 2021, 17:41 Reply Quote 0
                        • G Offline
                          Guf @metty
                          last edited by 21 Jul 2021, 17:41

                          @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