Page 3 of 11 FirstFirst 12345 ... LastLast
Results 21 to 30 of 107
Like Tree5Likes

Thread: [M-ROM] Tenchi's AOSP ROM Marshmallow Android 6.x for ADAM [WIP]

  1. #21
    Resident
    Join Date
    May 2011
    Posts
    803
    Thanks
    15
    Thanked 531 Times in 203 Posts
    Quote Originally Posted by ZenOgeek View Post
    Yes, my MMC0 has two partitions. 4gb mmcblk0p1, 4gb mmcblk0p2, 0 swap. I formatted using cwm. How do I format to ext4? CWM gives only option of ext2 / ext3. I will give new TWRP a try.
    Yes try twrp and "make_ext4fs /dev/block/mmcblk0p1" in command line to format partition 1 and do partition 2 as well. twrp formatting gui seems to hang.

  2. The Following User Says Thank You to tenchi For This Useful Post:

    ZenOgeek (01-27-2016)

  3. #22
    Regular
    Join Date
    Apr 2011
    Posts
    108
    Thanks
    92
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by tenchi View Post
    Yes try twrp and "make_ext4fs /dev/block/mmcblk0p1" in command line to format partition 1 and do partition 2 as well. twrp formatting gui seems to hang.
    ROM installed successfully after making both partitions ext4, but doesn't boot. Just blank screen. tried setting sdboot 0 as well.
    Last edited by ZenOgeek; 01-27-2016 at 12:06 PM.

  4. #23
    Resident
    Join Date
    May 2011
    Posts
    803
    Thanks
    15
    Thanked 531 Times in 203 Posts
    Quote Originally Posted by ZenOgeek View Post
    ROM installed successfully after making both partitions ext4, but doesn't boot. Just blank screen. tried setting sdboot 0 as well.
    Ignore blank screen and let it sit for maybe 5 minutes or so, otherwise maybe partitions have to start at a multiple of 131072 bytes still.

  5. #24
    Regular
    Join Date
    Apr 2011
    Posts
    108
    Thanks
    92
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by tenchi View Post
    Ignore blank screen and let it sit for maybe 5 minutes or so, otherwise maybe partitions have to start at a multiple of 131072 bytes still.
    Thanks Tenchi.

    But, still doesn't boot. Left for 1 hour. Below is partition information. Do you see anything wrong with partitions? Do we need three partitions? I want to have around 3 GB for OS and rest for storing my data (mountable on windows using USB - should such partition be FAT32?). How should I partition in this case?

    (parted) p free
    p free
    p free
    Model: SD SE08G (sd/mmc)
    Disk /dev/block/mmcblk0: 7948206080B
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos

    Number Start End Size Type File system Flags
    1 32256B 3221257727B 3221225472B primary ext4
    2 3221257728B 7945616895B 4724359168B primary ext4
    7945616896B 7945620479B 3584B Free Space

  6. #25
    Resident
    Join Date
    May 2011
    Posts
    803
    Thanks
    15
    Thanked 531 Times in 203 Posts
    Quote Originally Posted by ZenOgeek View Post
    Thanks Tenchi.

    But, still doesn't boot. Left for 1 hour. Below is partition information. Do you see anything wrong with partitions? Do we need three partitions? I want to have around 3 GB for OS and rest for storing my data (mountable on windows using USB - should such partition be FAT32?). How should I partition in this case?

    (parted) p free
    p free
    p free
    Model: SD SE08G (sd/mmc)
    Disk /dev/block/mmcblk0: 7948206080B
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos

    Number Start End Size Type File system Flags
    1 32256B 3221257727B 3221225472B primary ext4
    2 3221257728B 7945616895B 4724359168B primary ext4
    7945616896B 7945620479B 3584B Free Space
    Looking at your partition start points are not aligned to 32768 byte size which is why it is not booting (Originally thought it was 131072 but 32768 seems okay).
    You should really use twrp fdisk as it aligns the blocks correctly for booting without having to calculate the starting points manually. I made a tutorial for twrp fdisk internal install here:
    New TWRP Recovery

    Only 2 partitions are needed on internal install, one for /system and one for /data. I didn't see any need for a /cache partition. If you want an internal partition mountable on Windows you would probably have to modify the boot.img - fstab.harmony file and format that partition fat32. Given the limited space I thought it was best left for apps. Suppose I could add this as an option.
    Last edited by tenchi; 01-28-2016 at 09:44 AM.

  7. #26
    Regular
    Join Date
    Apr 2011
    Posts
    108
    Thanks
    92
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by tenchi View Post
    Looking at your partition start points are not aligned to 32768 byte size which is why it is not booting (Originally thought it was 131072 but 32768 seems okay).
    You should really use twrp fdisk as it aligns the blocks correctly for booting without having to calculate the starting points manually. I made a tutorial for twrp fdisk internal install here:
    New TWRP Recovery

    Only 2 partitions are needed on internal install, one for /system and one for /data. I didn't see any need for a /cache partition.
    I will give it a try from twrp

    Quote Originally Posted by tenchi View Post
    If you want an internal partition mountable on Windows you would probably have to modify the boot.img - fstab.harmony file and format that partition fat32. Given the limited space I thought it was best left for apps. Suppose I could add this as an option.
    I would love to have this as part of the ROM itself. I am not comfortable at changing those files. Say 1.5 GB for system, 2.5GB for app, and the rest for windows mountable FAT32.

  8. #27
    Resident
    Join Date
    May 2011
    Posts
    803
    Thanks
    15
    Thanked 531 Times in 203 Posts
    Quote Originally Posted by ZenOgeek View Post
    I will give it a try from twrp


    I would love to have this as part of the ROM itself. I am not comfortable at changing those files. Say 1.5 GB for system, 2.5GB for app, and the rest for windows mountable FAT32.
    I will see what I can do, but it seems the MTP Windows mounting is broken as it doesn't mount any volumes...

  9. #28
    Regular
    Join Date
    Apr 2011
    Posts
    108
    Thanks
    92
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by ZenOgeek View Post
    I will give it a try from twrp
    Gave a try using fdisk as well. ROM (I tried the omni ROM this time) installs successfully, but doesn't boot. Strange!!

    Below is my current partition info

    (parted) p free
    p free
    p free
    Model: SD SE08G (sd/mmc)
    Disk /dev/block/mmcblk0: 7948MB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos

    Number Start End Size Type File system Flags
    1 8192B 1500MB 1500MB primary ext4
    2 1500MB 7948MB 6448MB primary ext4

  10. #29
    Resident
    Join Date
    May 2011
    Posts
    803
    Thanks
    15
    Thanked 531 Times in 203 Posts
    Quote Originally Posted by ZenOgeek View Post
    Gave a try using fdisk as well. ROM (I tried the omni ROM this time) installs successfully, but doesn't boot. Strange!!

    Below is my current partition info

    (parted) p free
    p free
    p free
    Model: SD SE08G (sd/mmc)
    Disk /dev/block/mmcblk0: 7948MB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos

    Number Start End Size Type File system Flags
    1 8192B 1500MB 1500MB primary ext4
    2 1500MB 7948MB 6448MB primary ext4
    It does seem odd that the start of partition 1 is 8192, thought it should be 32768 as that is the size of a cylinder on my internal card. Not sure why it wouldn't boot if you partitioned with fdisk.

  11. #30
    Regular
    Join Date
    Apr 2011
    Posts
    108
    Thanks
    92
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by tenchi View Post
    It does seem odd that the start of partition 1 is 8192, thought it should be 32768 as that is the size of a cylinder on my internal card. Not sure why it wouldn't boot if you partitioned with fdisk.
    I used ADB fdisk as fdisk from twrp was not taking commands. Does it make a difference? I used default cylinder values except for the p1 where I used +1500M, rest are default values.

Page 3 of 11 FirstFirst 12345 ... LastLast

Remove Ads

Similar Threads

  1. Replies: 20
    Last Post: 02-24-2016, 03:19 PM
  2. Android Marshmallow Issue
    By tenchi in forum Adam ROM Development
    Replies: 9
    Last Post: 10-13-2015, 08:35 PM
  3. Replies: 0
    Last Post: 09-24-2015, 02:16 PM
  4. Replies: 7
    Last Post: 09-22-2015, 02:38 AM
  5. Replies: 8
    Last Post: 08-21-2015, 09:17 PM

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
  •