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

    Pinephone tutorial

    Scheduled Pinned Locked Moved Support
    41 Posts 18 Posters 13.8k Views 8 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.
      • C Offline
        canadien666
        last edited by

        Hi, any guides available for writing UT from the SD card to the BH eMMC?
        Thanks...

        AppLeeA 1 Reply Last reply Reply Quote 0
        • AppLeeA Offline
          AppLee @canadien666
          last edited by

          @canadien666
          It can be dangerous if you don't know what you're doing.
          And the fact that you didn't figure out a way to do it by yourself is probably a warning that you shouldn't do it.

          But hey, it's your phone.
          I'm making assumptions here because I don't want to brick my phone while testing 😉

          So if I have a quick look at devices on the PinePhone you'll notice 2 MMC blocks. One is the sdcard and I suppose the other one is the eMMC.
          To avoid damage, you'll have to copy data from the sdcard to the eMMC, but you have to know where you can so you won't mess up the bootloader.
          With that you'll be able to call dd

          But my advice is : Wait for an official script from Pine64. You can check their forum...

          Blabla I'm not accountable if you did try that out 🙂

          C 1 Reply Last reply Reply Quote 2
          • C Offline
            canadien666 @AppLee
            last edited by

            @AppLee Yeah... Probably good advice. Thanks!!!

            1 Reply Last reply Reply Quote 1
            • AppLeeA Offline
              AppLee
              last edited by

              @admsjas
              In addition to my previous message, someone confirmed my guess ; mmcblk2 is the eMMC on the PinePhone BraveHeart.
              This guy did flash an image from the sdcard to the eMMC and so you can clone your sdcard to the eMMC.

              I won't give a command because if you cannot come up with it it's better not to try the operation.

              dd is a powerful tool but in the wrong hands it can bring havoc on your devices. Don't mess with dd (after all it's Dexter's sister).
              Ok I need my pills now 😉

              A 1 Reply Last reply Reply Quote 1
              • A Offline
                admsjas @AppLee
                last edited by

                @AppLee thanks. I'm quite familiar with the DD command as its what I've had to use to write to my SD cards because etcher isn't available for manjaro on the PBP. Theres a utility on the KDE bistros that show the separated block devices so its fairly easy to figure out which one to write to.

                1 Reply Last reply Reply Quote 0
                • A Offline
                  admsjas
                  last edited by

                  For anyone interested I can confirm it works. I definitely notice quicker response and boot time, now is there a way to use screen rotation?

                  1 Reply Last reply Reply Quote 0
                  • I Offline
                    Irenicus
                    last edited by

                    dd works, but it doesn't verify the image so it is better to use pm tool.

                    I made a script that helps with that - https://github.com/goddard/pinephone

                    It downloads the latest successful build and verifies everything downloaded correct. It then asks you what root path to flash the image to.

                    More improvements coming soon.

                    K 2 Replies Last reply Reply Quote 0
                    • K Offline
                      kugiigi @Irenicus
                      last edited by

                      @Irenicus This is supposed to be ran on the PInePhone itself? on UT?

                      AppLeeA 1 Reply Last reply Reply Quote 0
                      • AppLeeA Offline
                        AppLee @kugiigi
                        last edited by

                        @kugiigi
                        If I'm not mistaken, it should be run on the PinePhone on any OS running on it.
                        The root path for eMMC or SDCard is not exposed on your computer when you plug the phone.

                        In order to do something similar you'll need to be in FEL mode and use a serial connection via the jack connector of the phone...

                        K 1 Reply Last reply Reply Quote 1
                        • K Offline
                          kugiigi @Irenicus
                          last edited by

                          @Irenicus I tried this but looks like root size isn't enough for the script. it ran out of space. I'm not sure how to resize the root on the pinephone. I think I'm not qualified for the braveheart LOL

                          1 Reply Last reply Reply Quote 0
                          • K Offline
                            kugiigi @AppLee
                            last edited by

                            @AppLee So I went with dd and seems to work well but I can't install any app from the store. It just downloads and just show the install button again.

                            AppLeeA 1 Reply Last reply Reply Quote 0
                            • AppLeeA Offline
                              AppLee @kugiigi
                              last edited by

                              @kugiigi
                              Probably the user partition needs resizing.
                              I don't have a reference link right now and I have a meeting soon but if you cannot find how to do it, I'll dig in later.

                              1 Reply Last reply Reply Quote 1
                              • M Offline
                                Marathon2422
                                last edited by Marathon2422

                                If you dd from sdcard to emmc keep your size below 14.5g or your emmc will not boot, don't ask how i know this.
                                Or label your sdcards , and know what is on them.
                                Its easier to adjust the size with gparted or similar before you “ dd ” it.

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