Or Continue to Thread: [Multi Boot] Boot Menu
Find Your Device:
16th April 2014, 11:11 AM   |  #17  
munjeni's Avatar
OP Recognized Contributor / Recognized Developer
Thanks Meter: 16,255
 
5,057 posts
Join Date:Joined: Jun 2011
ROM ramdisk modifications

For example CM11 ramdisk.

when you unpack cm11 boot.img, when you unpack ramdisk you will notice 2 ramdisks, one is rom ramdisk and one is recovery ramdisk (ramdisk.cpio and ramdisk.recovery.cpio). Look into previous post for CWM ramdisk modification.
Modification for ROM ramdisk (ramdisk.cpio):

init.rc file:
look for line "mkdir /system", added one line before these line: "mkdir /sde"

fstab.qcom:
the same like you done on CWM ramdisk!

init.qcom.rc:

look for lines:
Quote:

on fs
mount_all ./fstab.qcom
setprop ro.crypto.fuse_sdcard true

add:
Quote:

on fs

wait /dev/block/platform/msm_sdcc.1/by-name/userdata
mkdir /sde
mount ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata /sde rw wait
exec /sbin/losetup /dev/block/loop1 /sde/media/0/bootmenu/cm11/system.ext4
exec /sbin/losetup /dev/block/loop2 /sde/media/0/bootmenu/cm11/data.ext4
exec /sbin/losetup /dev/block/loop3 /sde/media/0/bootmenu/cm11/cache.ext4
exec /sbin/e2fsck -y /dev/block/loop2
exec /sbin/e2fsck -y /dev/block/loop3

mount_all ./fstab.qcom
setprop ro.crypto.fuse_sdcard true

red line "cm11" mean that you have created cm11 folder in boot menu and use these folder for example for booting into cm11! On these "cm11" folder you have created partitons, ramdisks, kernel...etc!
Last edited by munjeni; 16th April 2014 at 11:50 AM.
The Following User Says Thank You to munjeni For This Useful Post: [ View ]