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

    Is it possible to flash ubuntu touch without an installer?

    Scheduled Pinned Locked Moved Support
    21 Posts 5 Posters 7.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.
      • W Offline
        wdehoog
        last edited by

        See https://pastebin.com/2BTrDBpM
        It seems to create one file: system.img
        I am trying to see if I can create it

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          doniks @wdehoog
          last edited by

          @wdehoog said in Is it possible to flash ubuntu touch without an installer?:

          See https://pastebin.com/2BTrDBpM
          It seems to create one file: system.img
          I am trying to see if I can create it

          Yeah ok. I guess this is basically the rootfs right? so maybe making an fs image and unpacking the ubports-asdf....xz file into it is enough?!

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            doniks @doniks
            last edited by doniks

            @doniks I'm wondering why not just use this rootstock script. But I guess I'm still not really getting it. You can't adb into your recovery, right? No adb shell, no adb push. How do you then get that magical zip file onto the device? What does that zip install script look like? Who runs it? What can it do?

            1 Reply Last reply Reply Quote 0
            • W Offline
              wdehoog
              last edited by

              When in recovery adb lists the device as 'unauthorized' so no adb shell for me, so no installer script.

              The zip I create can be transfered when booted in android or sailfish.

              The script in the zip is simple: extract system.img to /data and flash boot.img into the boot partition. It is the updater-script run by the updater-binary.

              I have the kernel booting (no errors in /last/kernel_msg) but no UI or anything else.

              D 1 Reply Last reply Reply Quote 0
              • D Offline
                doniks @wdehoog
                last edited by

                @wdehoog said in Is it possible to flash ubuntu touch without an installer?:

                When in recovery adb lists the device as 'unauthorized' so no adb shell for me, so no installer script.

                The zip I create can be transfered when booted in android or sailfish.

                ah ok. clear. are you using multirom or something similar?

                The script in the zip is simple: extract system.img to /data and flash boot.img into the boot partition. It is the updater-script run by the updater-binary.

                uuuhhhu, ok, now you come forward with some terms that are actually suitable at least for an internet research ....
                are we talking about something like this:
                https://www.youtube.com/watch?v=dSCseBYVc3Y

                I have the kernel booting (no errors in /last/kernel_msg) but no UI or anything else.

                ok. and now? maybe you want to, i don't know, share some details like the updater-script that you wrote and what exactly you put where exactly into the zip file. you don't make it easy to help you ...

                W 1 Reply Last reply Reply Quote 0
                • W Offline
                  wdehoog @doniks
                  last edited by

                  @doniks said in Is it possible to flash ubuntu touch without an installer?:

                  ah ok. clear. are you using multirom or something similar?
                  yes TWRP+multirom

                  uuuhhhu, ok, now you come forward with some terms that are actually suitable at least for an internet research ....
                  are we talking about something like this:
                  https://www.youtube.com/watch?v=dSCseBYVc3Y
                  I have no idea what you try to explain with this video. The updater-script is explained a bit here https://www.droidgyan.com/updater-script/

                  I have the kernel booting (no errors in /last/kernel_msg) but no UI or anything else.

                  ok. and now?
                  Yep that is the question. How can I get logs of what is going wrong in user space.

                  maybe you want to, i don't know, share some details like the updater-script that you
                  wrote and what exactly you put where exactly into the zip file. you don't make it easy to > help you ...
                  What script do you mean? The updater-script: https://pastebin.com/mYaHFSz9
                  or the one making the system.img: https://pastebin.com/hE5qD52q

                  I am a bit surprised that none of the ubports developers joins in. They know exactly how it works and where I should look.

                  M 1 Reply Last reply Reply Quote 0
                  • M Offline
                    malditobastardo @wdehoog
                    last edited by

                    @wdehoog You can try to reach them in the Telegram supergroup. They are busy and small Team so is kinda understandable. Also in the group there are a lot of people with huge knowledge who can help you guys

                    W 1 Reply Last reply Reply Quote 0
                    • W Offline
                      wdehoog @malditobastardo
                      last edited by

                      @malditobastardo said in Is it possible to flash ubuntu touch without an installer?:

                      @wdehoog You can try to reach them in the Telegram supergroup. They are busy and small Team so is kinda understandable. Also in the group there are a lot of people with huge knowledge who can help you guys

                      Thanks.

                      You see I think that is mistake they make. They created this forum so they at least should use it. The messages on the forum are stored and can be searched through. Very convenient. Telegram/irc or whatever messaging platform usually is not.

                      S 1 Reply Last reply Reply Quote 0
                      • W Offline
                        wdehoog
                        last edited by

                        Well I now have adb access to ubuntu-touch. Some errors in dmesg:

                        [ 3.285119] initrd: mounting system.img (image developer mode)
                        [ 3.301791] initrd: mounting device image as ro
                        [ 3.309947] EXT4-fs (loop1): couldn't mount as ext3 due to feature incompatibilities
                        [ 3.334772] initrd: device is bacon

                        and

                        [ 3.624120] initrd: mounting /root/var/lib/lxc/android/system.img as /root/android/system
                        [ 3.910165] init: ureadahead-touch main process (497) terminated with status 5
                        [ 4.469967] init: /init.environ.rc: 13: export requires 2 arguments

                        1 Reply Last reply Reply Quote 0
                        • W Offline
                          wdehoog
                          last edited by

                          Ok. It works now. Got ubports on my phone. Extracting the archives was wrong so some dirs ended up in the wrong place. Here is the script I used https://pastebin.com/DgUu2PuJ

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            suoko @wdehoog
                            last edited by

                            @wdehoog did you find a way to create flashable zips of ut?

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

                              @suoko This thread is two years old. Your much better off asking a fresh question in the appropriate section of the forum. However UT is not a zip and has never been one.
                              I'm going to lock this thread now, but you can refer back to it in any new question using the weblink e.g https://forums.ubports.com/topic/669/is-it-possible-to-flash-ubuntu-touch-without-an-installer/21
                              Thanks

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