Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

TWRP for Amlogic devices.

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can you upload recovery.log ?

    Can you show me the output of 'cat proc/partitions' but while on TWRP ?

    Cache might be 0 size, was there any problem with it on previous version ?

    There were some HW revisions, so some devices need a different DTB, kernel and modules for it to work. But the principle should work for all devices.
    if [ $up.post.type = $type.two.lazy.to_use_google ] || [ $up.post.type = $type.silly_question ];
    then mv $user.contact.up.post /.trash; set response($response.type = ignore);
    $user.up.post.ignore_in_future = true; fi;

    Comment


      PCB "M8 V5_0 20141119"

      adb shell
      ~ # ←[6ncat proc/partitions
      cat proc/partitions
      major minor #blocks name

      179 0 15440896 mmcblk0
      179 1 15440782 mmcblk0p1
      179 16 7570432 mmcblk1
      179 17 4096 mmcblk1p1
      179 18 65536 mmcblk1p2
      179 19 524288 mmcblk1p3
      179 20 8192 mmcblk1p4
      179 21 32768 mmcblk1p5
      179 22 32768 mmcblk1p6
      179 23 32768 mmcblk1p7
      179 24 32768 mmcblk1p8
      179 25 1179648 mmcblk1p9
      179 26 5559296 mmcblk1p10
      179 48 2048 mmcblk1boot1
      179 32 2048 mmcblk1boot0

      recovery.log - attached as .txt
      Attached Files

      Comment


        Bootloader doesn't appear as an option to backup ?

        Everything seems OK, remember that env,misc and reserved will not be backup up( there is no need for it) so i will remove those entry.
        For security you should back up boot and/recovery and check if they are correct, i might have assign them incorrectly. Or upload them that i can check.

        If this image works as expected them i will make new ones for more models.
        if [ $up.post.type = $type.two.lazy.to_use_google ] || [ $up.post.type = $type.silly_question ];
        then mv $user.contact.up.post /.trash; set response($response.type = ignore);
        $user.up.post.ignore_in_future = true; fi;

        Comment


          yes, Bootloader doesn't appear as an option to backup.
          please fix it.


          backups of partitions: logo, boot, recovery: (please check it)
          TWRP_K200_new_testing.ZIP (13.57MB)
          Attached Files

          Comment


            The cache is 0MB, the same as before...

            Comment


              So boot,recovery and logo looks OK.

              Now, please test this image and let's see if bootloader appears.
              if [ $up.post.type = $type.two.lazy.to_use_google ] || [ $up.post.type = $type.silly_question ];
              then mv $user.contact.up.post /.trash; set response($response.type = ignore);
              $user.up.post.ignore_in_future = true; fi;

              Comment


                Hi Abdul,

                Thanks for your help!

                What about the cache 0MB partition ?

                Comment


                  Originally posted by abdul_pt View Post
                  Now, please test this image and let's see if bootloader appears.
                  https://www.freak-tab.de/abdul_pt/am...sting_emmc.img
                  PCB "M8 V5_0 20141119"
                  Now Bootloader is OK, thanks.

                  but that version of TWRP still not start at my other model of M8 TV Box - PCB "M9&M8_V0.92 201-03-12", while any other version of TWRP for M8 and K200 start OK (but only one of them correctly detects all partitions)
                  can you add some fixes to TWRP_2.8.7.0_K200_Testing_emmc.img for compatibility with my another M8?
                  i want to copy Firmware via TWRP from my one M8 model (PCB "M8 V5_0 20141119") to another my M8 model (PCB "M9&M8_V0.92 201-03-12").

                  here is info from ADB partitions via another my M8 model (PCB "M9&M8_V0.92 201-03-12") using that version TWRP: TWRP_2.8.7.0_M8N.img


                  adb shell
                  ~ # ←[6ncat proc/partitions
                  cat proc/partitions
                  major minor #blocks name

                  31 0 1024 mtdblock0
                  31 1 64 mtdblock1
                  179 0 15440896 mmcblk0
                  179 1 15439872 mmcblk0p1
                  250 0 524288 cache
                  250 1 32768 logo
                  250 2 32768 recovery
                  250 3 32768 misc
                  250 4 32768 boot
                  250 5 1048576 system
                  250 6 5513216 data

                  Comment



                    Originally posted by abdul_pt View Post
                    So boot,recovery and logo looks OK

                    Now, please test this image and let's see if bootloader appears.
                    https://www.freak-tab.de/abdul_pt/am...sting_emmc.img
                    Abdul,

                    The bootloader OK, but the cache is still 0MB.

                    So when I try to restore it stuck on restoring Cache 71%

                    wiping Cache...
                    Formating cache using make_ext4fs function

                    Thanks for your help!

                    Comment


                      I tried to un-tick the Cache partition in restore but now same issue with the system.

                      Resotring system stuck on 71%
                      wiping system...
                      formating system using make_ext4fs function.

                      What do you think?

                      Comment


                        Originally posted by yhaddad View Post
                        I tried to un-tick the Cache partition in restore but now same issue with the system.

                        Resotring system stuck on 71%
                        wiping system...
                        formating system using make_ext4fs function.

                        What do you think?
                        What box is it ? link to stock FW ?

                        recovery.log ?

                        I can't think anything without data
                        if [ $up.post.type = $type.two.lazy.to_use_google ] || [ $up.post.type = $type.silly_question ];
                        then mv $user.contact.up.post /.trash; set response($response.type = ignore);
                        $user.up.post.ignore_in_future = true; fi;

                        Comment


                          Hi Abdul,

                          It's the M8C... the k200 twrp work on it but the cache partition still 0MB.

                          Comment


                            Originally posted by Zybex74 View Post
                            PCB "M8 V5_0 20141119"
                            Where do you get the information above ?

                            Comment


                              Originally posted by Zybex74 View Post
                              PCB "M8 V5_0 20141119"
                              Now Bootloader is OK, thanks.

                              but that version of TWRP still not start at my other model of M8 TV Box - PCB "M9&M8_V0.92 201-03-12", while any other version of TWRP for M8 and K200 start OK (but only one of them correctly detects all partitions)
                              can you add some fixes to TWRP_2.8.7.0_K200_Testing_emmc.img for compatibility with my another M8?
                              i want to copy Firmware via TWRP from my one M8 model (PCB "M8 V5_0 20141119") to another my M8 model (PCB "M9&M8_V0.92 201-03-12").

                              here is info from ADB partitions via another my M8 model (PCB "M9&M8_V0.92 201-03-12") using that version TWRP: TWRP_2.8.7.0_M8N.img
                              http://www.freak-tab.de/abdul_pt/aml....8.7.0_M8N.img

                              adb shell
                              ~ # ←[6ncat proc/partitions
                              cat proc/partitions
                              major minor #blocks name

                              31 0 1024 mtdblock0
                              31 1 64 mtdblock1
                              179 0 15440896 mmcblk0
                              179 1 15439872 mmcblk0p1
                              250 0 524288 cache
                              250 1 32768 logo
                              250 2 32768 recovery
                              250 3 32768 misc
                              250 4 32768 boot
                              250 5 1048576 system
                              250 6 5513216 data
                              And you are sure that both boxes can run the same firmware ? It doesn't look like it
                              if [ $up.post.type = $type.two.lazy.to_use_google ] || [ $up.post.type = $type.silly_question ];
                              then mv $user.contact.up.post /.trash; set response($response.type = ignore);
                              $user.up.post.ignore_in_future = true; fi;

                              Comment


                                Originally posted by yhaddad View Post
                                Hi Abdul,

                                It's the M8C... the k200 twrp work on it but the cache partition still 0MB.
                                And ? Did you look inside cache to see what's in there ?
                                if [ $up.post.type = $type.two.lazy.to_use_google ] || [ $up.post.type = $type.silly_question ];
                                then mv $user.contact.up.post /.trash; set response($response.type = ignore);
                                $user.up.post.ignore_in_future = true; fi;

                                Comment

                                Working...
                                X