Page 1 of 5 123 ... LastLast
Results 1 to 10 of 49
Like Tree2Likes

Thread: New TWRP Recovery

  1. #1
    Resident
    Join Date
    May 2011
    Posts
    803
    Thanks
    15
    Thanked 531 Times in 203 Posts

    New TWRP Recovery

    Here is a test version of TWRP recovery so that new Google apps zips can be installed properly. Defaults to micro sdcard install for now due to an issue auto mounting internal /system. Manually mount /system before installing anything.

    v7: now includes parted, internal/external data & system and usb mounts and new 3 partition layout for internal for newer Marshmallow ROMs.

    NOTE: It seems boot.img may not be flashing correctly, might have to use nvflash to manually extract and flash the img.

    How to flash recovery.img from PC
    1. Download NVFLASH zip from a recent Lollipop ROM and extract to PC.
    2. Connect Adam to PC via USB cable.
    3. Install drivers in Drivers\Driver32-bit\NvidiaUsb.inf by right clicking on file and select Install in Windows, no drivers needed for Linux.
    2. Run flashrecovery.bat "recovery.img" in Windows or flashrecovery.sh "recovery.img" in Linux.

    How to flash recovery.img from Adam terminal app (root required) or adb
    1. Type "dd if=recovery.img of=/dev/block/mtdblock1" or download and use "flash_image recovery recovery.img".

    How to use fdisk to re-partition in twrp recovery and install to internal memory for Marshmallow ROMs

    1. Use adb shell to connect to twrp recovery from PC.
    2. Type "fdisk /dev/block/mmcblk0" (change 0 to 1 for microsd install).
    3. Type "p" to get list of partitions.
    4. Type "d" then the partition number and delete all partitions.
    5. Type "n", then "p", then "1" for partition number.
    6. Type "1" for first cylinder.
    7. Type "+2000M" to create 2GB partition for /internal_sd or any size you desire up to 2GB.
    8. Type "n", then "p", then "2" for partition number.
    9. Type "ENTER" or default suggested first cylinder.
    10. Type "+1500M" to create 1.5GB partition. (This is minimum for for full Google Apps install).
    11. Type "n", then "p", then "3" for partition number.
    12. Type "ENTER" or default suggested first cylinder.
    13. Type "ENTER" or default suggested last cylinder.
    14. Type "w" to write new partition table.
    15. Reboot holding Volume + to go into recovery again.
    16. Type "mkfs.vfat /dev/block/mmcblk0p1" to format /internal_sd. (Change 0 to 1 for microsd install). If you get "lseek: Value too large for defined data type" you may need to format microsd on PC in card reader to fat32 or keep partition under 2GB (exfat can be used on Omni-ROM for unlimited size).
    16. Type "make_ext4fs /dev/block/mmcblk0p2" to format /system. (Change 0 to 1 for microsd install).
    17. Type "make_ext4fs /dev/block/mmcblk0p3" to format /data. (Change 0 to 1 for microsd install).
    18. Now you can install your ROM to internal memory.

    For microsd install the partitions are as follows:
    /dev/block/mmcblk1p1 /external_sd vfat
    /dev/block/mmcblk1p2 /system ext4
    /dev/block/mmcblk1p3 /data ext4

    For internal install new layout v7 partitions are as follows:
    /dev/block/mmcblk0p1 /internal_sd vfat
    /dev/block/mmcblk0p2 /system ext4
    /dev/block/mmcblk0p3 /data ext4

    For old internal install before v7 parititions are as follows:
    /dev/block/mmcblk0p1 /system ext4
    /dev/block/mmcblk0p2 /data ext4

    download TWRP recovery 2.8.7.0 v7 for microsd install

    download TWRP recovery 2.8.7.0 v7 for internal install for Marshmallow (/internal_sd on mmcblk0p1, /system on mmcblk0p2 and /data on mmcblk0p3)

    --

    download TWRP recovery 2.8.7.0 v6 for microsd install

    download TWRP recovery 2.8.7.0 v6 for internal install for Marshmallow (/system on mmcblk0p1 and /data on mmcblk0p2)

    --

    download flash_image program in terminal to flash recovery on adam use "./flash_image recovery recovery.img" or "./flash_image boot boot.img" for boot.img. May need to "chmod 777 flash_image" to change permissions.
    Last edited by tenchi; 07-12-2016 at 08:06 PM. Reason: Revised partition instructions for 2GB vfat partition

  2. The Following 5 Users Say Thank You to tenchi For This Useful Post:

    fantaze (01-30-2016), mikus (12-06-2015), ri9000 (12-06-2015), Trans (02-09-2016), ZenOgeek (01-28-2016)

  3. #2
    Resident
    Join Date
    May 2011
    Posts
    803
    Thanks
    15
    Thanked 531 Times in 203 Posts
    It seems boot.img may not be flashing correctly, might have to use nvflash to manually extract and flash the img.

  4. #3
    Resident
    Join Date
    May 2011
    Posts
    803
    Thanks
    15
    Thanked 531 Times in 203 Posts
    Added internal install twrp version on front page (/system on mmcblk0p1 and /data on mmcblk0p2)

  5. #4
    Resident
    Join Date
    May 2011
    Posts
    803
    Thanks
    15
    Thanked 531 Times in 203 Posts
    New v3 of twrp recovery on front page which should now fix touch issues (disabled accelerometer in kernel)

  6. #5
    Resident
    Join Date
    May 2011
    Posts
    803
    Thanks
    15
    Thanked 531 Times in 203 Posts
    New v4 twrp recovery with make_ext4fs now added.

  7. #6
    Regular
    Join Date
    Apr 2011
    Posts
    108
    Thanks
    92
    Thanked 2 Times in 2 Posts
    I found that parted is not available in twrp

  8. #7
    Resident
    Join Date
    May 2011
    Posts
    803
    Thanks
    15
    Thanked 531 Times in 203 Posts
    Quote Originally Posted by ZenOgeek View Post
    I found that parted is not available in twrp
    Yes it is replaced by fdisk.

  9. #8
    Regular
    Join Date
    Apr 2011
    Posts
    108
    Thanks
    92
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by tenchi View Post
    Yes it is replaced by fdisk.
    Yeah, I understand. But, the problem with fdisk is that I can't change filesystem with fdisk. I am not an expert at shell commands. For example, if I want to create a FAT32 partition, it is easy using parted.
    tartutic07 likes this.

  10. #9
    Resident
    Join Date
    May 2011
    Posts
    803
    Thanks
    15
    Thanked 531 Times in 203 Posts
    Quote Originally Posted by ZenOgeek View Post
    Yeah, I understand. But, the problem with fdisk is that I can't change filesystem with fdisk. I am not an expert at shell commands. For example, if I want to create a FAT32 partition, it is easy using parted.
    use command 't' in fdisk and set to hex code 'c' and mkfs.vfat is the command to create fat32 in twrp. I also found that formatting in Marshmallow seems to alter the number of cylinders which may fix your boot issues.

  11. #10
    Regular
    Join Date
    Apr 2011
    Posts
    108
    Thanks
    92
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by tenchi View Post
    use command 't' in fdisk and set to hex code 'c' and mkfs.vfat is the command to create fat32 in twrp.
    Thank you for letting me know

    Quote Originally Posted by tenchi View Post
    I also found that formatting in Marshmallow seems to alter the number of cylinders which may fix your boot issues.
    How should I do this?
    Last edited by ZenOgeek; 01-28-2016 at 02:11 PM.

Page 1 of 5 123 ... LastLast

Remove Ads

Similar Threads

  1. Replies: 0
    Last Post: 03-21-2014, 11:57 PM
  2. [RECOVERY] Vega Touch Recovery and previous
    By scanno in forum Vega ROM Development
    Replies: 34
    Last Post: 03-11-2013, 11:41 AM
  3. TWRP Port - Streak 7
    By giveen in forum Streak 7 General Development
    Replies: 44
    Last Post: 06-04-2012, 10:25 PM
  4. TWRP Port - Notion Ink Adam
    By giveen in forum Adam General Development
    Replies: 4
    Last Post: 06-04-2012, 04:06 PM
  5. 1.2-based recovery options (Recovery Pack, cwm, standard recovery)
    By roebeet in forum G-Tab ROM Development
    Replies: 0
    Last Post: 05-05-2011, 10:08 PM

Search tags for this page

adam rom development new twrp
,
mkfs.vfat 128g mkfs.vfat: lseek: value too large for defined data type
,

mkfs.vfat: lseek: value too large for defined data type

,
parted in twrp-extract.zip
,
terminal emulator for android unzip: lseek: value too large for defined data type
,
twrp fdisk
,

twrp parted

Click on a term to search for related topics.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •