Saturday 10 October 2015

[GUIDE] How to convert NAND ROM to SD-EXT ROM for MultiBootloader



How to convert NAND ROM to SD-EXT ROM for MultiBootloader



Code:


After following this guide, your ROM can be use with MultiBootloader

Requirements
Instructions

Step 1: Modifying boot.img
  • Use Android Image Kitchen's unpackimg command to unpack the boot.img file from the ROM your want to port.

  • Go to \ramdisk folder, edit these files:
    1. fstab.qcom



      Make it look like this:

      Code:


      # Android fstab file.
      # The filesystem that contains the filesystem checker binary (typically /system) cannot
      # specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK

      #TODO: Add 'check' as fs_mgr_flags with data partition.
      # Currently we dont have e2fsck compiled. So fs check would failed.

      #<src>                                                <mnt_point>  <type>  <mnt_flags and options>                    <fs_mgr_flags>
      /dev/block/mmcblk0p2                                  /system      ext4    ro,barrier=1                                wait
      /dev/block/mmcblk0p3                                  /data        ext4    nosuid,nodev,barrier=1,noauto_da_alloc,discard      wait,check,encryptable=footer
      /devices/msm_sdcc.2/mmc_host                    /storage/sdcard1  vfat    nosuid,nodev                                wait,voldmanaged=sdcard:auto
      #/dev/block/mmcblk0p11        /system      ext4    ro,barrier=1                                wait
      #/dev/block/mmcblk0p12      /data        ext4    nosuid,nodev,barrier=1,noauto_da_alloc      wait,check,encryptable=footer


      The line: /dev/block/mmcblk1p2 /system ext4 ro,barrier=1 wait is for mounting the 2nd parition of sdcard as system
      The line: /dev/block/mmcblk0p3 /data ext4 nosuid,nodev,barrier=1,noauto_da_alloc,discard wait,check,encryptable=footer is for mounting the 2nd parition of sdcard as system



    2. init.rc

    3. init.target.rc




<EDITTING>



No comments:

Post a Comment