How to install Ubuntu Touch on LG G6
-
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-testersIf you don't find the answer, you can ping the porter and ask for help.
-
@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-testersMaybe you should move this thread in the G6 subforum ^^
-
@keneda
That's a good idea.
Will do right now, thanks. -
@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.
-
@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 thehalium-boot.img
which boots from /data
Then reboot and it should start to work
-
@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.
- So I started the phone into bootloader, and connected the computer
- Downloaded the halium install script from: https://gitlab.com/JBBgameich/halium-install/
- Downloaded the OS from here: https://drive.google.com/file/d/1BtVYvabN0nK1bR-7Hv8kBC-CIcN-B8Rc/view?usp=sharing
- 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
- 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?
-
@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 -
@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 -
@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 likefastboot 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.
-
@metty
fastboot flash boot halium-install.img
for kernel, while for rootfs.img and system.img you needhalium-install
tool. It automatically install both of them in the /data partition