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

Possible to reduce bootimg size or resize /boot?

Scheduled Pinned Locked Moved Solved Porting
10 Posts 5 Posters 658 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.
    • E Offline
      EliCh
      last edited by 9 Dec 2021, 09:41

      Hi everyone,

      I have struggled for days to revive my old device (Huawei MT7 / PE) with Ubuntu Touch. And finally passed the compilation.

      However, what bothered me is that the output halium-boot.img is of size 17700864 while partition /boot is of size 14680064.

      Are there any way to resize eMMC blocks of Android devices?

      Or are there some drivers unnecessary for Ubuntu that I can remove them from kernel?

      Any other ideas are welcome.

      Thanks at all !

      A K N 3 Replies Last reply 9 Dec 2021, 15:33 Reply Quote 0
      • A Offline
        AppLee @EliCh
        last edited by 9 Dec 2021, 15:33

        Hi and welcome @elich

        If I understand (at least a bit) your post, you're trying to port Ubuntu Touch to your device (Huawei MT7).
        So I moved your post to the porting category.

        Thanks for your efforts to bring Ubuntu Touch to a broader public..

        E 1 Reply Last reply 10 Dec 2021, 04:44 Reply Quote 0
        • A AppLee moved this topic from Support on 9 Dec 2021, 15:33
        • K Offline
          Keneda @EliCh
          last edited by Keneda 12 Sept 2021, 16:08 9 Dec 2021, 16:05

          @elich
          Did you previously install a custom rom on this phone ?
          From then did you reinstall last halium compatible factory rom on the device (the one you based your port on)?

          2015-2023 : Meizu MX4 ☠️⚰️✝️
          2023-2024 : Nexus 5 ☠️⚰️✝️
          2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
          🇲🇫🇬🇧

          E 1 Reply Last reply 10 Dec 2021, 04:47 Reply Quote 0
          • N Offline
            nero355 @EliCh
            last edited by 9 Dec 2021, 19:42

            @elich said in Possible to reduce bootimg size or resize /boot?:

            However, what bothered me is that the output halium-boot.img is of size 17700864 while partition /boot is of size 14680064.

            Are there any way to resize eMMC blocks of Android devices?

            I am not an expert but as far as I know it should be possible if you can flash TWRP to the phone first ?!

            I have seen some posts in the past where some guys were messing with the partitions of a phone and I think they were succesfull...

            Please check XDA Developers Forum for more information and as always : Good luck! 🙂

            My phones :

            • BQ Aquaris E5 HD Ubuntu Phone Edition - Ubuntu Touch 16.04 LTS
            • ZUK Z2 Pro - ZUI Android 8.x
            • Xiaomi Mi 9T - Jolla SailFish 3.4.x Community Build

            P.S. : I am NOT a developer! ;)

            E 1 Reply Last reply 10 Dec 2021, 04:53 Reply Quote 0
            • E Offline
              EliCh @AppLee
              last edited by 10 Dec 2021, 04:44

              @applee Oh yes, I misunderstood the categories. Thanks !

              1 Reply Last reply Reply Quote 0
              • E Offline
                EliCh @Keneda
                last edited by 10 Dec 2021, 04:47

                @keneda Currently a cm-based MIUI OS runs on my phone but this is my first trail to porting halium boot to a device

                1 Reply Last reply Reply Quote 0
                • E Offline
                  EliCh @nero355
                  last edited by 10 Dec 2021, 04:53

                  @nero355 Thanks for your suggestion !

                  I heard that TWRP is useful but I found it provides partition tool only for ext4 blocks ...

                  I am trying to understand how it modify DPT however reviewing source code is a hard work ...

                  N 1 Reply Last reply 12 Dec 2021, 19:15 Reply Quote 0
                  • E Offline
                    EliCh
                    last edited by 11 Dec 2021, 07:42

                    Oh it seems that I have post a stupid question ...

                    After searching, I learned that there is an adapted version of gparted (named parted or parted for Android) to edit DPT.

                    Whence it is easy to remove and remake partitions, just like working on desktop systems.

                    1 Reply Last reply Reply Quote 1
                    • E EliCh has marked this topic as solved on 11 Dec 2021, 07:42
                    • N Offline
                      nero355 @EliCh
                      last edited by 12 Dec 2021, 19:15

                      @elich said in Possible to reduce bootimg size or resize /boot?:

                      @nero355 Thanks for your suggestion !

                      I heard that TWRP is useful but I found it provides partition tool only for ext4 blocks ...

                      Weird... 😞

                      I can remember the same guys doing some F2FS related things too ?!

                      My phones :

                      • BQ Aquaris E5 HD Ubuntu Phone Edition - Ubuntu Touch 16.04 LTS
                      • ZUK Z2 Pro - ZUI Android 8.x
                      • Xiaomi Mi 9T - Jolla SailFish 3.4.x Community Build

                      P.S. : I am NOT a developer! ;)

                      E 1 Reply Last reply 13 Dec 2021, 01:04 Reply Quote 0
                      • E Offline
                        Emphrath @nero355
                        last edited by 13 Dec 2021, 01:04

                        @nero355 yes, twrp does f2fs

                        1 Reply Last reply Reply Quote 1
                        5 out of 10
                        • First post
                          5/10
                          Last post