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

    Porting Ubuntu Touch (@UBPorts) to tenshi (BQ Aquaris U Plus)

    Scheduled Pinned Locked Moved BQ U Plus
    56 Posts 11 Posters 15.7k Views 6 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
        malditobastardo
        last edited by

        Because this port also deserves it's own place here. AFAIK it's fully usable now for daily use. @Guf could you please tell us more about the actual situation of the port? 🙂
        For sure there are more people interested in knowing about this awesome device.

        Thanks a lot!!

        G 1 Reply Last reply Reply Quote 2
        • S Offline
          Speedy-10
          last edited by

          Hi Guf,
          thanks for your work!
          I just applied your steps to my U plus, I think I did it right.
          But the telefon doesn't boot UT, it stuck with the "android" screen .
          Perhaps someone can help me to finish it.
          For your understanding I add a great part of my terminal issues:

          Greetings Speedy-10

          ...
          matthias@matthias-buero:~/Downloads/UT-tenshi$ adb devices
          List of devices attached
          TJ083572	device
          
          matthias@matthias-buero:~/Downloads/UT-tenshi$ adb reboot bootloader
          matthias@matthias-buero:~/Downloads/UT-tenshi$ adb reboot bootloader
          matthias@matthias-buero:~/Downloads/UT-tenshi$ 
          matthias@matthias-buero:~/Downloads/UT-tenshi$ sudo fastboot devices
          [sudo] Passwort für matthias: 
          sudo: fastboot: Befehl nicht gefunden
          matthias@matthias-buero:~/Downloads/UT-tenshi$ fastboot devices
          TJ083572	fastboot
          matthias@matthias-buero:~/Downloads/UT-tenshi$ fastboot oem unlock
                                                             OKAY [  0.033s]
          Finished. Total time: 0.035s
          matthias@matthias-buero:~/Downloads/UT-tenshi$ ls
          halium-boot-20200326.img  twrp-3.3.1-0-tenshi.img
          halium-install-master     ubports-touch.rootfs-xenial-armhf.tar.gz
          system-20200326.img
          matthias@matthias-buero:~/Downloads/UT-tenshi$ sudo fastboot flash recovery twrp-3.3.1-0-$DEVICE.img
          sudo: fastboot: Befehl nicht gefunden
          matthias@matthias-buero:~/Downloads/UT-tenshi$ sudo fastboot flash recovery twrp-3.3.1-0-$DEVICE.img
          sudo: fastboot: Befehl nicht gefunden
          matthias@matthias-buero:~/Downloads/UT-tenshi$ sudo apt install fastboot
          Paketlisten werden gelesen... Fertig
          Abhängigkeitsbaum wird aufgebaut.       
          Statusinformationen werden eingelesen.... Fertig
          Die folgenden zusätzlichen Pakete werden installiert:
            adb android-libbacktrace android-libetc1 android-libf2fs-utils
            android-libsparse android-libunwind android-libutils android-libziparchive
            android-sdk-platform-tools dmtracedump etc1tool f2fs-tools graphviz
            hprof-conv libann0 libcdt5 libcgraph6 libf2fs-format4 libf2fs5 libgts-0.7-5
            libgts-bin libgvc6 libgvpr2 liblab-gamut1 libpathplan4 p7zip p7zip-full
            sqlite3
          Vorgeschlagene Pakete:
            graphviz-doc p7zip-rar sqlite3-doc
          Die folgenden NEUEN Pakete werden installiert:
            adb android-libbacktrace android-libetc1 android-libf2fs-utils
            android-libsparse android-libunwind android-libutils android-libziparchive
            android-sdk-platform-tools dmtracedump etc1tool f2fs-tools fastboot graphviz
            hprof-conv libann0 libcdt5 libcgraph6 libf2fs-format4 libf2fs5 libgts-0.7-5
            libgts-bin libgvc6 libgvpr2 liblab-gamut1 libpathplan4 p7zip p7zip-full
            sqlite3
          0 aktualisiert, 29 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
          Es müssen 4.793 kB an Archiven heruntergeladen werden.
          Nach dieser Operation werden 19,0 MB Plattenplatz zusätzlich benutzt.
          Möchten Sie fortfahren? [J/n] 
          Holen:1 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 adb amd64 1:8.1.0+r23-5~18.04 [97,4 kB]
          Holen:2 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 p7zip amd64 16.02+dfsg-6 [358 kB]
          Holen:3 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 p7zip-full amd64 16.02+dfsg-6 [1.164 kB]
          Holen:4 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 android-libunwind amd64 8.1.0+r23-2~18.04 [51,4 kB]
          Holen:5 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 android-libbacktrace amd64 1:8.1.0+r23-5~18.04 [54,4 kB]
          Holen:6 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 android-libetc1 amd64 1:8.1.0+r23-2~18.04 [17,9 kB]
          Holen:7 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 libf2fs5 amd64 1.11.0-1.1~18.04 [14,3 kB]
          Holen:8 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 libf2fs-format4 amd64 1.11.0-1.1~18.04 [18,0 kB]
          Holen:9 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 android-libsparse amd64 1:8.1.0+r23-5~18.04 [25,7 kB]
          Holen:10 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 android-libf2fs-utils amd64 8.1.0+r23-2~18.04 [11,1 kB]
          Holen:11 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 android-libutils amd64 1:8.1.0+r23-5~18.04 [56,9 kB]
          Holen:12 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 android-libziparchive amd64 1:8.1.0+r23-5~18.04 [32,9 kB]
          Holen:13 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 f2fs-tools amd64 1.11.0-1.1~18.04 [157 kB]
          Holen:14 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 libann0 amd64 1.1.2+doc-6 [24,8 kB]
          Holen:15 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 libcdt5 amd64 2.40.1-2 [19,6 kB]
          Holen:16 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 libcgraph6 amd64 2.40.1-2 [40,8 kB]
          Holen:17 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 libgts-0.7-5 amd64 0.7.6+darcs121130-4 [150 kB]
          Holen:18 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 libpathplan4 amd64 2.40.1-2 [22,6 kB]
          Holen:19 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 libgvc6 amd64 2.40.1-2 [601 kB]
          Holen:20 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 libgvpr2 amd64 2.40.1-2 [169 kB]
          Holen:21 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 liblab-gamut1 amd64 2.40.1-2 [178 kB]
          Holen:22 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 graphviz amd64 2.40.1-2 [601 kB]
          Holen:23 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 dmtracedump amd64 8.1.0+r23-3~18.04 [26,3 kB]
          Holen:24 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 etc1tool amd64 8.1.0+r23-1~18.04 [18,4 kB]
          Holen:25 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 fastboot amd64 1:8.1.0+r23-5~18.04 [65,5 kB]
          Holen:26 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 hprof-conv amd64 8.1.0+r23-2~18.04 [13,2 kB]
          Holen:27 http://de.archive.ubuntu.com/ubuntu bionic-updates/main amd64 sqlite3 amd64 3.22.0-1ubuntu0.3 [752 kB]
          Holen:28 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 android-sdk-platform-tools amd64 27.0.0+10~18.04.2 [10,8 kB]
          Holen:29 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 libgts-bin amd64 0.7.6+darcs121130-4 [41,3 kB]
          Es wurden 4.793 kB in 6 s geholt (797 kB/s).                                   
          Vormals nicht ausgewähltes Paket adb wird gewählt.
          (Lese Datenbank ... 236240 Dateien und Verzeichnisse sind derzeit installiert.)
          Vorbereitung zum Entpacken von .../00-adb_1%3a8.1.0+r23-5~18.04_amd64.deb ...
          Entpacken von adb (1:8.1.0+r23-5~18.04) ...
          Vormals nicht ausgewähltes Paket p7zip wird gewählt.
          Vorbereitung zum Entpacken von .../01-p7zip_16.02+dfsg-6_amd64.deb ...
          Entpacken von p7zip (16.02+dfsg-6) ...
          Vormals nicht ausgewähltes Paket p7zip-full wird gewählt.
          Vorbereitung zum Entpacken von .../02-p7zip-full_16.02+dfsg-6_amd64.deb ...
          Entpacken von p7zip-full (16.02+dfsg-6) ...
          Vormals nicht ausgewähltes Paket android-libunwind wird gewählt.
          Vorbereitung zum Entpacken von .../03-android-libunwind_8.1.0+r23-2~18.04_amd64.deb ...
          Entpacken von android-libunwind (8.1.0+r23-2~18.04) ...
          Vormals nicht ausgewähltes Paket android-libbacktrace wird gewählt.
          Vorbereitung zum Entpacken von .../04-android-libbacktrace_1%3a8.1.0+r23-5~18.04_amd64.deb ...
          Entpacken von android-libbacktrace (1:8.1.0+r23-5~18.04) ...
          Vormals nicht ausgewähltes Paket android-libetc1 wird gewählt.
          Vorbereitung zum Entpacken von .../05-android-libetc1_1%3a8.1.0+r23-2~18.04_amd64.deb ...
          Entpacken von android-libetc1 (1:8.1.0+r23-2~18.04) ...
          Vormals nicht ausgewähltes Paket libf2fs5:amd64 wird gewählt.
          Vorbereitung zum Entpacken von .../06-libf2fs5_1.11.0-1.1~18.04_amd64.deb ...
          Entpacken von libf2fs5:amd64 (1.11.0-1.1~18.04) ...
          Vormals nicht ausgewähltes Paket libf2fs-format4:amd64 wird gewählt.
          Vorbereitung zum Entpacken von .../07-libf2fs-format4_1.11.0-1.1~18.04_amd64.deb ...
          Entpacken von libf2fs-format4:amd64 (1.11.0-1.1~18.04) ...
          Vormals nicht ausgewähltes Paket android-libsparse wird gewählt.
          Vorbereitung zum Entpacken von .../08-android-libsparse_1%3a8.1.0+r23-5~18.04_amd64.deb ...
          Entpacken von android-libsparse (1:8.1.0+r23-5~18.04) ...
          Vormals nicht ausgewähltes Paket android-libf2fs-utils wird gewählt.
          Vorbereitung zum Entpacken von .../09-android-libf2fs-utils_8.1.0+r23-2~18.04_amd64.deb ...
          Entpacken von android-libf2fs-utils (8.1.0+r23-2~18.04) ...
          Vormals nicht ausgewähltes Paket android-libutils wird gewählt.
          Vorbereitung zum Entpacken von .../10-android-libutils_1%3a8.1.0+r23-5~18.04_amd64.deb ...
          Entpacken von android-libutils (1:8.1.0+r23-5~18.04) ...
          Vormals nicht ausgewähltes Paket android-libziparchive wird gewählt.
          Vorbereitung zum Entpacken von .../11-android-libziparchive_1%3a8.1.0+r23-5~18.04_amd64.deb ...
          Entpacken von android-libziparchive (1:8.1.0+r23-5~18.04) ...
          Vormals nicht ausgewähltes Paket f2fs-tools wird gewählt.
          Vorbereitung zum Entpacken von .../12-f2fs-tools_1.11.0-1.1~18.04_amd64.deb ...
          Entpacken von f2fs-tools (1.11.0-1.1~18.04) ...
          Vormals nicht ausgewähltes Paket libann0 wird gewählt.
          Vorbereitung zum Entpacken von .../13-libann0_1.1.2+doc-6_amd64.deb ...
          Entpacken von libann0 (1.1.2+doc-6) ...
          Vormals nicht ausgewähltes Paket libcdt5 wird gewählt.
          Vorbereitung zum Entpacken von .../14-libcdt5_2.40.1-2_amd64.deb ...
          Entpacken von libcdt5 (2.40.1-2) ...
          Vormals nicht ausgewähltes Paket libcgraph6 wird gewählt.
          Vorbereitung zum Entpacken von .../15-libcgraph6_2.40.1-2_amd64.deb ...
          Entpacken von libcgraph6 (2.40.1-2) ...
          Vormals nicht ausgewähltes Paket libgts-0.7-5:amd64 wird gewählt.
          Vorbereitung zum Entpacken von .../16-libgts-0.7-5_0.7.6+darcs121130-4_amd64.deb ...
          Entpacken von libgts-0.7-5:amd64 (0.7.6+darcs121130-4) ...
          Vormals nicht ausgewähltes Paket libpathplan4 wird gewählt.
          Vorbereitung zum Entpacken von .../17-libpathplan4_2.40.1-2_amd64.deb ...
          Entpacken von libpathplan4 (2.40.1-2) ...
          Vormals nicht ausgewähltes Paket libgvc6 wird gewählt.
          Vorbereitung zum Entpacken von .../18-libgvc6_2.40.1-2_amd64.deb ...
          Entpacken von libgvc6 (2.40.1-2) ...
          Vormals nicht ausgewähltes Paket libgvpr2 wird gewählt.
          Vorbereitung zum Entpacken von .../19-libgvpr2_2.40.1-2_amd64.deb ...
          Entpacken von libgvpr2 (2.40.1-2) ...
          Vormals nicht ausgewähltes Paket liblab-gamut1 wird gewählt.
          Vorbereitung zum Entpacken von .../20-liblab-gamut1_2.40.1-2_amd64.deb ...
          Entpacken von liblab-gamut1 (2.40.1-2) ...
          Vormals nicht ausgewähltes Paket graphviz wird gewählt.
          Vorbereitung zum Entpacken von .../21-graphviz_2.40.1-2_amd64.deb ...
          Entpacken von graphviz (2.40.1-2) ...
          Vormals nicht ausgewähltes Paket dmtracedump wird gewählt.
          Vorbereitung zum Entpacken von .../22-dmtracedump_8.1.0+r23-3~18.04_amd64.deb ...
          Entpacken von dmtracedump (8.1.0+r23-3~18.04) ...
          Vormals nicht ausgewähltes Paket etc1tool wird gewählt.
          Vorbereitung zum Entpacken von .../23-etc1tool_8.1.0+r23-1~18.04_amd64.deb ...
          Entpacken von etc1tool (8.1.0+r23-1~18.04) ...
          Vormals nicht ausgewähltes Paket fastboot wird gewählt.
          Vorbereitung zum Entpacken von .../24-fastboot_1%3a8.1.0+r23-5~18.04_amd64.deb ...
          Entpacken von fastboot (1:8.1.0+r23-5~18.04) ...
          Vormals nicht ausgewähltes Paket hprof-conv wird gewählt.
          Vorbereitung zum Entpacken von .../25-hprof-conv_8.1.0+r23-2~18.04_amd64.deb ...
          Entpacken von hprof-conv (8.1.0+r23-2~18.04) ...
          Vormals nicht ausgewähltes Paket sqlite3 wird gewählt.
          Vorbereitung zum Entpacken von .../26-sqlite3_3.22.0-1ubuntu0.3_amd64.deb ...
          Entpacken von sqlite3 (3.22.0-1ubuntu0.3) ...
          Vormals nicht ausgewähltes Paket android-sdk-platform-tools wird gewählt.
          Vorbereitung zum Entpacken von .../27-android-sdk-platform-tools_27.0.0+10~18.04.2_amd64.deb ...
          Entpacken von android-sdk-platform-tools (27.0.0+10~18.04.2) ...
          Vormals nicht ausgewähltes Paket libgts-bin wird gewählt.
          Vorbereitung zum Entpacken von .../28-libgts-bin_0.7.6+darcs121130-4_amd64.deb ...
          Entpacken von libgts-bin (0.7.6+darcs121130-4) ...
          libgts-0.7-5:amd64 (0.7.6+darcs121130-4) wird eingerichtet ...
          libpathplan4 (2.40.1-2) wird eingerichtet ...
          liblab-gamut1 (2.40.1-2) wird eingerichtet ...
          android-libetc1 (1:8.1.0+r23-2~18.04) wird eingerichtet ...
          sqlite3 (3.22.0-1ubuntu0.3) wird eingerichtet ...
          android-libsparse (1:8.1.0+r23-5~18.04) wird eingerichtet ...
          p7zip (16.02+dfsg-6) wird eingerichtet ...
          libann0 (1.1.2+doc-6) wird eingerichtet ...
          hprof-conv (8.1.0+r23-2~18.04) wird eingerichtet ...
          adb (1:8.1.0+r23-5~18.04) wird eingerichtet ...
          libgts-bin (0.7.6+darcs121130-4) wird eingerichtet ...
          etc1tool (8.1.0+r23-1~18.04) wird eingerichtet ...
          libcdt5 (2.40.1-2) wird eingerichtet ...
          libcgraph6 (2.40.1-2) wird eingerichtet ...
          libf2fs5:amd64 (1.11.0-1.1~18.04) wird eingerichtet ...
          libgvc6 (2.40.1-2) wird eingerichtet ...
          libgvpr2 (2.40.1-2) wird eingerichtet ...
          libf2fs-format4:amd64 (1.11.0-1.1~18.04) wird eingerichtet ...
          p7zip-full (16.02+dfsg-6) wird eingerichtet ...
          android-libf2fs-utils (8.1.0+r23-2~18.04) wird eingerichtet ...
          f2fs-tools (1.11.0-1.1~18.04) wird eingerichtet ...
          graphviz (2.40.1-2) wird eingerichtet ...
          android-libunwind (8.1.0+r23-2~18.04) wird eingerichtet ...
          dmtracedump (8.1.0+r23-3~18.04) wird eingerichtet ...
          android-libbacktrace (1:8.1.0+r23-5~18.04) wird eingerichtet ...
          android-libutils (1:8.1.0+r23-5~18.04) wird eingerichtet ...
          android-libziparchive (1:8.1.0+r23-5~18.04) wird eingerichtet ...
          fastboot (1:8.1.0+r23-5~18.04) wird eingerichtet ...
          android-sdk-platform-tools (27.0.0+10~18.04.2) wird eingerichtet ...
          Trigger für libc-bin (2.27-3ubuntu1) werden verarbeitet ...
          Trigger für man-db (2.8.3-2ubuntu0.1) werden verarbeitet ...
          Trigger für initramfs-tools (0.130ubuntu3.9) werden verarbeitet ...
          update-initramfs: Generating /boot/initrd.img-5.3.0-46-generic
          matthias@matthias-buero:~/Downloads/UT-tenshi$ sudo fastboot flash recovery twrp-3.3.1-0-$DEVICE.img
          < waiting for any device >
          ^C
          matthias@matthias-buero:~/Downloads/UT-tenshi$ sudo fastboot flash recovery twrp-3.3.1-0-$DEVICE.img
          error: cannot load 'twrp-3.3.1-0-.img': No such file or directory
          matthias@matthias-buero:~/Downloads/UT-tenshi$ sudo fastboot flash recovery twrp-3.3.1-0-tenshi.img 
          target reported max download size of 535822336 bytes
          sending 'recovery' (19818 KB)...
          OKAY [  0.627s]
          writing 'recovery'...
          OKAY [  0.255s]
          finished. total time: 0.882s
          matthias@matthias-buero:~/Downloads/UT-tenshi$ sudo fastboot flash boot halium-boot.img
          error: cannot load 'halium-boot.img': No such file or directory
          matthias@matthias-buero:~/Downloads/UT-tenshi$ sudo fastboot flash boot halium-boot-20200326.img 
          target reported max download size of 535822336 bytes
          sending 'boot' (21022 KB)...
          OKAY [  0.664s]
          writing 'boot'...
          OKAY [  0.267s]
          finished. total time: 0.931s
          matthias@matthias-buero:~/Downloads/UT-tenshi$ sudo fastboot reboot
          rebooting...
          
          finished. total time: 0.102s
          matthias@matthias-buero:~/Downloads/UT-tenshi$ ls
          halium-boot-20200326.img  twrp-3.3.1-0-tenshi.img
          halium-install-master     ubports-touch.rootfs-xenial-armhf.tar.gz
          system-20200326.img
          matthias@matthias-buero:~/Downloads/UT-tenshi$ cd halium-install-master/
          matthias@matthias-buero:~/Downloads/UT-tenshi/halium-install-master$ ls
          connect.py        functions       Makefile   tests
          download-twrp.py  halium-install  README.md  utils
          matthias@matthias-buero:~/Downloads/UT-tenshi/halium-install-master$ 
          matthias@matthias-buero:~/Downloads/UT-tenshi/halium-install-master$ ./halium-install -v -p ut ../ubports-touch.rootfs-xenial-armhf.tar.gz ../system.img
          
          Usage: ./halium-install [-p POSTINSTALL] [-v] [-u USERPASSWORD] [-r ROOTPASSWORD] [-i] [-z] rootfs.tar[.gz] system.img
          
          Options:
              -p POSTINSTALL  run common post installation tasks for release.
                              supported: reference, neon, ut, debian-pm, debian-pm-caf, none
                              default: none
          
              -v              verbose output.
          
              -u USERPASSWORD set this password for user phablet instead of
                              interactively asking for a password (does not apply to
                              all POSTINSTALL selections)
          
              -r ROOTPASSWORD set this passowrd for root user instead of interactively
                              asking for a password (does not apply to all POSTINSTALL
                              selections).
          
              -i              copy your ssh public key into the image for password
                              less login (depending on POSTINSTALL selection for user
                              root or phablet or both)
          
              -z              compress images before pushing them to the device
          
              -m mode
              --mode mode
          
                              "dir":
                                  install to a directory on the target device instead of an image.
                                  This is useful if you want to make full use of the space
                                  available on the partition.
                                  Note: This requires support in the initramfs.
          
                              "img":
                                  install to an image on /data. This file system layout is supported
                                  by all known halium reference initramfs implementations.
          
              -s
              --system-as-root
                              install the system image as system-as-root compatible.
                              This requires support in the initramfs implementation.
          
          Positional arguments:
              rootfs.tar[.gz]
              system.img
          
          matthias@matthias-buero:~/Downloads/UT-tenshi/halium-install-master$ ./halium-install -v -p ut ../ubports-touch.rootfs-xenial-armhf.tar.gz ../system-20200326.img 
          simg2img not found in $PATH
          
          make sure you have all dependencies installed.
          dependencies: qemu-utils binfmt-support qemu-user-static e2fsprogs sudo simg2img binutils
          matthias@matthias-buero:~/Downloads/UT-tenshi/halium-install-master$ sudo apt install simg
          simg2img      simgrid-doc   simgrid-java  
          matthias@matthias-buero:~/Downloads/UT-tenshi/halium-install-master$ sudo apt install simg
          simg2img      simgrid-doc   simgrid-java  
          matthias@matthias-buero:~/Downloads/UT-tenshi/halium-install-master$ sudo apt install simg
          simg2img      simgrid-doc   simgrid-java  
          matthias@matthias-buero:~/Downloads/UT-tenshi/halium-install-master$ sudo apt install simg
          simg2img      simgrid-doc   simgrid-java  
          matthias@matthias-buero:~/Downloads/UT-tenshi/halium-install-master$ sudo apt install simg2img
          Paketlisten werden gelesen... Fertig
          Abhängigkeitsbaum wird aufgebaut.       
          Statusinformationen werden eingelesen.... Fertig
          Die folgenden zusätzlichen Pakete werden installiert:
            android-sdk-libsparse-utils
          Die folgenden NEUEN Pakete werden installiert:
            android-sdk-libsparse-utils simg2img
          0 aktualisiert, 2 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
          Es müssen 25,4 kB an Archiven heruntergeladen werden.
          Nach dieser Operation werden 95,2 kB Plattenplatz zusätzlich benutzt.
          Möchten Sie fortfahren? [J/n] 
          Holen:1 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 android-sdk-libsparse-utils amd64 1:8.1.0+r23-5~18.04 [17,2 kB]
          Holen:2 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 simg2img all 1:8.1.0+r23-5~18.04 [8.204 B]
          Es wurden 25,4 kB in 0 s geholt (93,0 kB/s).
          Vormals nicht ausgewähltes Paket android-sdk-libsparse-utils wird gewählt.
          (Lese Datenbank ... 236649 Dateien und Verzeichnisse sind derzeit installiert.)
          Vorbereitung zum Entpacken von .../android-sdk-libsparse-utils_1%3a8.1.0+r23-5~18.04_amd64.deb ...
          Entpacken von android-sdk-libsparse-utils (1:8.1.0+r23-5~18.04) ...
          Vormals nicht ausgewähltes Paket simg2img wird gewählt.
          Vorbereitung zum Entpacken von .../simg2img_1%3a8.1.0+r23-5~18.04_all.deb ...
          Entpacken von simg2img (1:8.1.0+r23-5~18.04) ...
          android-sdk-libsparse-utils (1:8.1.0+r23-5~18.04) wird eingerichtet ...
          simg2img (1:8.1.0+r23-5~18.04) wird eingerichtet ...
          matthias@matthias-buero:~/Downloads/UT-tenshi/halium-install-master$ ./halium-install -v -p ut ../ubports-touch.rootfs-xenial-armhf.tar.gz ../system-20200326.img 
          qemu-arm-static not found in $PATH
          
          make sure you have all dependencies installed.
          dependencies: qemu-utils binfmt-support qemu-user-static e2fsprogs sudo simg2img binutils
          matthias@matthias-buero:~/Downloads/UT-tenshi/halium-install-master$ sudo apt install binutils
          Paketlisten werden gelesen... Fertig
          Abhängigkeitsbaum wird aufgebaut.       
          Statusinformationen werden eingelesen.... Fertig
          binutils ist schon die neueste Version (2.30-21ubuntu1~18.04.2).
          0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
          matthias@matthias-buero:~/Downloads/UT-tenshi/halium-install-master$ ./halium-install -v -p ut ../ubports-touch.rootfs-xenial-armhf.tar.gz ../system-20200326.img 
          qemu-arm-static not found in $PATH
          
          make sure you have all dependencies installed.
          dependencies: qemu-utils binfmt-support qemu-user-static e2fsprogs sudo simg2img binutils
          matthias@matthias-buero:~/Downloads/UT-tenshi/halium-install-master$ sudo apt install qemu-utils binfmt-support qemu-user-static e2fsprogs
          Paketlisten werden gelesen... Fertig
          Abhängigkeitsbaum wird aufgebaut.       
          Statusinformationen werden eingelesen.... Fertig
          binfmt-support ist schon die neueste Version (2.1.8-2).
          binfmt-support wurde als manuell installiert festgelegt.
          e2fsprogs ist schon die neueste Version (1.44.1-1ubuntu1.3).
          Die folgenden zusätzlichen Pakete werden installiert:
            ibverbs-providers libaio1 libibverbs1 libiscsi7 libnl-route-3-200 librados2
            librbd1 qemu-block-extra sharutils
          Vorgeschlagene Pakete:
            debootstrap sharutils-doc bsd-mailx | mailx
          Die folgenden NEUEN Pakete werden installiert:
            ibverbs-providers libaio1 libibverbs1 libiscsi7 libnl-route-3-200 librados2
            librbd1 qemu-block-extra qemu-user-static qemu-utils sharutils
          0 aktualisiert, 11 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
          Es müssen 15,1 MB an Archiven heruntergeladen werden.
          Nach dieser Operation werden 125 MB Plattenplatz zusätzlich benutzt.
          Möchten Sie fortfahren? [J/n] 
          Holen:1 http://de.archive.ubuntu.com/ubuntu bionic/main amd64 libnl-route-3-200 amd64 3.2.29-0ubuntu3 [146 kB]
          Holen:2 http://de.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libibverbs1 amd64 17.1-1ubuntu0.2 [44,4 kB]
          Holen:3 http://de.archive.ubuntu.com/ubuntu bionic-updates/main amd64 ibverbs-providers amd64 17.1-1ubuntu0.2 [160 kB]
          Holen:4 http://de.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libaio1 amd64 0.3.110-5ubuntu0.1 [6.476 B]
          Holen:5 http://de.archive.ubuntu.com/ubuntu bionic/main amd64 libiscsi7 amd64 1.17.0-1.1 [55,4 kB]
          Holen:6 http://de.archive.ubuntu.com/ubuntu bionic-updates/main amd64 librados2 amd64 12.2.12-0ubuntu0.18.04.5 [2.704 kB]
          Holen:7 http://de.archive.ubuntu.com/ubuntu bionic-updates/main amd64 librbd1 amd64 12.2.12-0ubuntu0.18.04.5 [922 kB]
          Holen:8 http://de.archive.ubuntu.com/ubuntu bionic-updates/main amd64 qemu-block-extra amd64 1:2.11+dfsg-1ubuntu7.23 [39,6 kB]
          Holen:9 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 qemu-user-static amd64 1:2.11+dfsg-1ubuntu7.23 [10,0 MB]
          Holen:10 http://de.archive.ubuntu.com/ubuntu bionic-updates/main amd64 qemu-utils amd64 1:2.11+dfsg-1ubuntu7.23 [871 kB]
          Holen:11 http://de.archive.ubuntu.com/ubuntu bionic/main amd64 sharutils amd64 1:4.15.2-3 [155 kB]
          Es wurden 15,1 MB in 11 s geholt (1.423 kB/s).                                 
          Vormals nicht ausgewähltes Paket libnl-route-3-200:amd64 wird gewählt.
          (Lese Datenbank ... 236661 Dateien und Verzeichnisse sind derzeit installiert.)
          Vorbereitung zum Entpacken von .../00-libnl-route-3-200_3.2.29-0ubuntu3_amd64.deb ...
          Entpacken von libnl-route-3-200:amd64 (3.2.29-0ubuntu3) ...
          Vormals nicht ausgewähltes Paket libibverbs1:amd64 wird gewählt.
          Vorbereitung zum Entpacken von .../01-libibverbs1_17.1-1ubuntu0.2_amd64.deb ...
          Entpacken von libibverbs1:amd64 (17.1-1ubuntu0.2) ...
          Vormals nicht ausgewähltes Paket ibverbs-providers:amd64 wird gewählt.
          Vorbereitung zum Entpacken von .../02-ibverbs-providers_17.1-1ubuntu0.2_amd64.deb ...
          Entpacken von ibverbs-providers:amd64 (17.1-1ubuntu0.2) ...
          Vormals nicht ausgewähltes Paket libaio1:amd64 wird gewählt.
          Vorbereitung zum Entpacken von .../03-libaio1_0.3.110-5ubuntu0.1_amd64.deb ...
          Entpacken von libaio1:amd64 (0.3.110-5ubuntu0.1) ...
          Vormals nicht ausgewähltes Paket libiscsi7:amd64 wird gewählt.
          Vorbereitung zum Entpacken von .../04-libiscsi7_1.17.0-1.1_amd64.deb ...
          Entpacken von libiscsi7:amd64 (1.17.0-1.1) ...
          Vormals nicht ausgewähltes Paket librados2 wird gewählt.
          Vorbereitung zum Entpacken von .../05-librados2_12.2.12-0ubuntu0.18.04.5_amd64.deb ...
          Entpacken von librados2 (12.2.12-0ubuntu0.18.04.5) ...
          Vormals nicht ausgewähltes Paket librbd1 wird gewählt.
          Vorbereitung zum Entpacken von .../06-librbd1_12.2.12-0ubuntu0.18.04.5_amd64.deb ...
          Entpacken von librbd1 (12.2.12-0ubuntu0.18.04.5) ...
          Vormals nicht ausgewähltes Paket qemu-block-extra:amd64 wird gewählt.
          Vorbereitung zum Entpacken von .../07-qemu-block-extra_1%3a2.11+dfsg-1ubuntu7.23_amd64.deb ...
          Entpacken von qemu-block-extra:amd64 (1:2.11+dfsg-1ubuntu7.23) ...
          Vormals nicht ausgewähltes Paket qemu-user-static wird gewählt.
          Vorbereitung zum Entpacken von .../08-qemu-user-static_1%3a2.11+dfsg-1ubuntu7.23_amd64.deb ...
          Entpacken von qemu-user-static (1:2.11+dfsg-1ubuntu7.23) ...
          Vormals nicht ausgewähltes Paket qemu-utils wird gewählt.
          Vorbereitung zum Entpacken von .../09-qemu-utils_1%3a2.11+dfsg-1ubuntu7.23_amd64.deb ...
          Entpacken von qemu-utils (1:2.11+dfsg-1ubuntu7.23) ...
          Vormals nicht ausgewähltes Paket sharutils wird gewählt.
          Vorbereitung zum Entpacken von .../10-sharutils_1%3a4.15.2-3_amd64.deb ...
          Entpacken von sharutils (1:4.15.2-3) ...
          sharutils (1:4.15.2-3) wird eingerichtet ...
          libiscsi7:amd64 (1.17.0-1.1) wird eingerichtet ...
          libnl-route-3-200:amd64 (3.2.29-0ubuntu3) wird eingerichtet ...
          libaio1:amd64 (0.3.110-5ubuntu0.1) wird eingerichtet ...
          qemu-user-static (1:2.11+dfsg-1ubuntu7.23) wird eingerichtet ...
          libibverbs1:amd64 (17.1-1ubuntu0.2) wird eingerichtet ...
          librados2 (12.2.12-0ubuntu0.18.04.5) wird eingerichtet ...
          ibverbs-providers:amd64 (17.1-1ubuntu0.2) wird eingerichtet ...
          librbd1 (12.2.12-0ubuntu0.18.04.5) wird eingerichtet ...
          qemu-block-extra:amd64 (1:2.11+dfsg-1ubuntu7.23) wird eingerichtet ...
          qemu-utils (1:2.11+dfsg-1ubuntu7.23) wird eingerichtet ...
          Trigger für man-db (2.8.3-2ubuntu0.1) werden verarbeitet ...
          Trigger für install-info (6.5.0.dfsg.1-2) werden verarbeitet ...
          Trigger für libc-bin (2.27-3ubuntu1) werden verarbeitet ...
          matthias@matthias-buero:~/Downloads/UT-tenshi/halium-install-master$ ./halium-install -v -p ut ../ubports-touch.rootfs-xenial-armhf.tar.gz ../system-20200326.img 
          Debug: Chosen rootfs is ../ubports-touch.rootfs-xenial-armhf.tar.gz
          Debug: Chosen android image is ../system-20200326.img
          Debug: Chosen release is ut
          Debug: Compress images before pushing: false
          
          I: Writing rootfs into mountable image
          Formatting '.halium-install-imgs.ZiGJV/rootfs.img', fmt=raw size=3221225472
          mke2fs 1.44.1 (24-Mar-2018)
          Geräteblöcke werden verworfen: erledigt                            
          Ein Dateisystem mit 786432 (4k) Blöcken und 196608 Inodes wird erzeugt.
          UUID des Dateisystems: 7b89a6b3-16bc-421f-9c76-fb9743f2f2a1
          Superblock-Sicherungskopien gespeichert in den Blöcken: 
          	32768, 98304, 163840, 229376, 294912
          
          beim Anfordern von Speicher für die Gruppentabellen: erledigt                            
          Inode-Tabellen werden geschrieben: erledigt                            
          Das Journal (16384 Blöcke) wird angelegt: fertig
          Die Superblöcke und die Informationen über die Dateisystemnutzung werden
          geschrieben: erledigt
          
          I: Writing android image into mountable image
          I: Running post installation tasks
          enabling Mir ... [done]
          enabling SSH ... [done]
          Please enter a new password for the user 'phablet':
          Geben Sie ein neues UNIX-Passwort ein: 
          Geben Sie das neue UNIX-Passwort erneut ein: 
          passwd: password updated successfully
          I: Shrinking images
          e2fsck 1.44.1 (24-Mar-2018)
          resize2fs 1.44.1 (24-Mar-2018)
          Die Größe des Dateisystems auf .halium-install-imgs.ZiGJV/system.img wird auf 73339 (4k) Blöcke geändert.
          Start von Durchgang 2 (max = 7140)
          Blöcke werden verschoben     XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
          Start von Durchgang 3 (max = 24)
          Die Inode-Tabelle wird gelesenXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
          Das Dateisystem auf .halium-install-imgs.ZiGJV/system.img is nun 73339 (4k) Blöcke lang.
          
          I: Unmounting images
          I: Pushing rootfs and android image to /data via ADB
          I:    Pushing rootfs to /data via ADB
          adb: error: failed to get feature set: no devices/emulators found
          I:    Pushing android image to /data via ADB
          adb: error: failed to get feature set: no devices/emulators found
          
          real	0m0,006s
          user	0m0,002s
          sys	0m0,003s
          I: Cleaning up
          umount: .halium-install-rootfs.NI6KS: nicht eingehängt.
          error: no devices/emulators found
          
          
          S 1 Reply Last reply Reply Quote 0
          • S Offline
            Speedy-10 @Speedy-10
            last edited by Speedy-10

            @Speedy-10
            The main problem seems to be at the end:

            I: Unmounting images
            I: Pushing rootfs and android image to /data via ADB
            I:    Pushing rootfs to /data via ADB
            adb: error: failed to get feature set: no devices/emulators found
            I:    Pushing android image to /data via ADB
            adb: error: failed to get feature set: no devices/emulators found
            
            real	0m0,006s
            user	0m0,002s
            sys	0m0,003s
            I: Cleaning up
            umount: .halium-install-rootfs.NI6KS: nicht eingehängt.
            error: no devices/emulators found
            

            About adb (used with Ubuntu 18.04)

            Android Debug Bridge version 1.0.41
            Version 29.0.6-6198805
            Installed as /home/matthias/adb-fastboot/platform-tools/adb
            
            1 Reply Last reply Reply Quote 0
            • N Offline
              Nandel
              last edited by

              Hi Speedy. Maybe you forgotten the reboot to bootloader after flashing recovery an halium-image ? This is the first thing to try. Also maybe was the wrong way to unlock the bootloader. In the last years, i flashed some Uplus to LineAge. Normal unlock via fastboot makes to much problems. Flash was perfect, but the OS shows 180 degrees twisted, like in a mirror. Better way to unlock is the official way via the BQ-Service-Page. You can make a appointment there. BQ will call you back. You need the Model-Number (from the backside of your phone). Say, you need the json-file for your Aquaris Uplus. They will send it via E-Mail. Download the BQ-Flashtool from the same page for Uplus. Install and start it, go to unlock device. In the next step the flashtool aks for the json-file. Add it and go. After unlock disconnect the phone from pc and reboot it while pressing the power long time. Then you can try to install UT again with install recovery. If this way not helpful, take a look to UBports-DEUTSCH group in telegram. There you find me.

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

                @malditobastardo @Nandel (sorry for delay in answering) at the moment audio and video playback were fixed. still strugglimg with installing roots in systempart, to comply with UBports-installer and OTA. tenshi works fine and is ready to be a community device

                N 2 Replies Last reply Reply Quote 2
                • N Offline
                  Nandel @Guf
                  last edited by

                  @Guf Wow ! Sounds very good. Im surprised. Becaus i didnt belive the Uplus will included to the installer. Uplus is my phone for the future. Thank you so much for your work !!!

                  1 Reply Last reply Reply Quote 1
                  • N Offline
                    Nandel @Guf
                    last edited by

                    @Guf Hi Guf... Here is a problem with camera. After start the app, i can change to rear and front camera or video. But if i want to make a photo, the blue circle running in the left upside corner until closing the app. Its not possible to save any photos in to the phone or memory card. Maybe it is a permission error. How can i change the permission via terminal ? Because in system setup i cant give permissions for camera, microphone and location. They are listet, but without function. Please help. Without camera i cant use the phone as daily device. The workaround of @peat_psuwit brings a test view like a television test view in the camera display. This test view can save as a photo, but nothing more.

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

                      @Nandel Unfortunately this was caused by changes from main developer, @peat_psuwit (not to blame him at all, rather to /praise him for great work), to gs-droid and other packages from rootfs.img. I could not retrieve previous configuration and package version, since they are update continuously in rootfs images.
                      I will try to find a work-around or test for new solution soon.
                      Sorry, no clue at the moment

                      1 Reply Last reply Reply Quote 0
                      • LakotaubpL Offline
                        Lakotaubp
                        last edited by

                        Quick couple of questions
                        Has anyone tried this yet with the installer and whats it like as a dd compared to say the OP3. Thanks

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

                          @Lakotaubp it's a long time i have struggled to turn it OTA ready (as to get it booting from systempart). I got it once, but in a couple of hours it crashed and i was not able to repeate it anymore.
                          I tried to dd rootfs (with system.img inside) as well to cp it to /dev/mmcblk0p24, but somehow it fails to boot from this partition

                          LakotaubpL 1 Reply Last reply Reply Quote 0
                          • LakotaubpL Offline
                            Lakotaubp @Guf
                            last edited by

                            @Guf Thanks for the reply. I am getting one for next to nothing 🙂 So what is the best way to install UT? Do the instructions above still apply or have things altered.

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

                              @Lakotaubp by using halium-install to install it on datapart (data partition), it works really fine as I have used and tested it myself, as daily driver, for some months.
                              I am sharing important stuff with you:
                              rootfs
                              system.img
                              and halium-boot without OTA-compatibility (at the moment)
                              To install these three, you need to exec:

                              adb push name_of_rootfs.img /data/rootfs.img && adb push name_of_system.img /data/system.img
                              

                              once you are in TWRP (and previously unlocked the bootloader).
                              Then, you reboot to bootloader and execute:

                              sudo fastboot flash boot name_of_halium-boot.img && sudo fastboot reboot
                              

                              Wait for some seconds and you should get UT spinner running.
                              I give you the rootfs.img because with this img also camera works, and recently hands-free speakers too.

                              LakotaubpL 3 Replies Last reply Reply Quote 0
                              • LakotaubpL Offline
                                Lakotaubp @Guf
                                last edited by

                                @Guf Thanks should have it by the weekend, then just need to find the time. Will download the bits and get ready. Thanks again.

                                1 Reply Last reply Reply Quote 0
                                • LakotaubpL Offline
                                  Lakotaubp @Guf
                                  last edited by

                                  @Guf said in Porting Ubuntu Touch (@UBPorts) to tenshi (BQ Aquaris U Plus):

                                  To install these three, you need to exec:

                                  Is there a need to clear and format partitions as on OP3. First attempt reboots to powered by android screen and stops there.

                                  1 Reply Last reply Reply Quote 0
                                  • LakotaubpL Offline
                                    Lakotaubp @Guf
                                    last edited by Lakotaubp

                                    @Guf All sorted I have UBports up and running just need to add accounts and take it for a run. Thanks again. This is a nice size phone.

                                    Edit: During setup I was not asked to set a password, so how do I get past the lock screen without going through it all again phablet does not work.
                                    Edit 2: Double checked and reinstalled and no request for password setup. Language setup, wifi, device name and location and then into OS. So without password can't change setting or use UTTweakTool.

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

                                      @Lakotaubp password is 1234

                                      LakotaubpL 2 Replies Last reply Reply Quote 0
                                      • LakotaubpL Offline
                                        Lakotaubp @Guf
                                        last edited by

                                        @Guf 🙄doh. How to feel very silly. Must have tried every combination of everything but 1234. Still plenty of time to get it set up now. Thanks.

                                        1 Reply Last reply Reply Quote 0
                                        • LakotaubpL Offline
                                          Lakotaubp @Guf
                                          last edited by Lakotaubp

                                          @Guf Thanks again for this and yes I did miss the code right at the top of this thread as well 😞 Still have most things set and and working during the weekend, so going to use it all day today. Still need to get camera going but that will be down to me again prob rushing. Battery life seems to be very good compared to OPO and OP3. Couple of quick thing if I may first, MTP. Uplus shows up as a wired connection Network on laptop but that's all except when in TWRP recovery when adb works. Is that correct, and the current status of the finger print sensor. How is that going.
                                          Again thanks for all the work on this. It's a nice size of phone for me and it's really quick on UT again compared to OP3. This is my first halium ported device (that keeps TWRP) so all new to me.

                                          1 Reply Last reply Reply Quote 0
                                          • LakotaubpL Offline
                                            Lakotaubp
                                            last edited by

                                            Couple more things just to check. Latest version of uNav not picking up GPS or asking for permission to do so, anyone else with this. Also installed indicator weather and on reboot lomiri (unity8) reported a missing file. So reinstalled everything and now time and date is not setting other than to Madrid. Did this last time then suddenly worked so going to keep trying as seen this elsewhere.
                                            Still can't sort camera, just blank screen but overly bothered by that yet.

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

                                              @Lakotaubp

                                              sudo dpkg-reconfigure tzdata
                                              

                                              in order to set you time zone properly.
                                              GPS should work with uNav, but you need to be outside your house for the first attempt and it might need 15 min to get connection.
                                              Regarding Lomiri with missing file, this is a known issue (that you can experience in other device), so please try an older edge rootfs.img or devel one.
                                              Camera is working with older version (3.1.0) but the issue came from rootfs packages, rather than from camera-app itself. I noticed that with my available rootfs.img it works on 2GB/16GB model, but not woth 3GB/32GB ... that's weird, isn't it?
                                              Still working on MTP, maybe it doesn't work because it hasn't still activated CONFIGFS, need to investigate.
                                              Yesterday I again experienced booting from /systempart, so I was focused on OTA-compliance because it will be the big step further to promote tenshi as community dev.
                                              If you want to try it, go to twpr:

                                              guf@GufBookPro:/media/gufdata/halium-7.1$ adb shell
                                              # mount /dev/block/mmcblk0p24 /tmp/
                                              # mount -o loop /data/rootfs.img /mnt/
                                              # cp -a /mnt/* /tmp/ && cp /data/system.img /tmp/var/lib/lxc/android/system.img && sync && umount /tmp && umount /mnt && sync && reboot
                                              

                                              Then, stop and go to bootloader and execute:

                                              guf@GufBookPro:/media/gufdata/halium-7.1$ sudo fastboot flash boot halium-boot.img && sudo fastboot reboot 
                                              

                                              (please, use the following halium-boot_tenshi_systempart.img

                                              LakotaubpL N 2 Replies Last reply Reply Quote 0
                                              • First post
                                                Last post