[Miscellaneous Android Development] yuweng:
Yeoh bro, you misunderstood my whole point here... :o

B'cos of you, i had a look at it again, credits to gp.triple, last year he has ask me to help him to port ROM to his Alcatel OT-991D but now only i make the discovery & i wonder why jeffta never share this info... :eek:

CWM does support custpack partition just by adding in a few lines of command... :cool:

For Alcatel MT6573

AFAIK, jeffta is the first one to cook ROMs on MTK Alcatel MT6573 devices . . .

Below is what i found out, how he make existing MTK CWM to support Alcatel custpack partition . . . :cool:

mkdir /system
mkdir /data
mkdir /cache

[B][COLOR="blue"] mount yaffs2 mtd@system /system nandboot
mkdir /custpack
mount yaffs2 mtd@custpack /custpack nandboot[/COLOR][/B]

You only need to add these 3 statement to init.rc after all the mkdir statement

/boot	mtd	boot
/cache	yaffs2	cache
/data	yaffs2	userdata
/misc	mtd	misc
/recovery	mtd	recovery
/sdcard	vfat	/dev/block/mmcblk0p1	/dev/block/mmcblk0
/system	yaffs2	system
/sd-ext	ext2	/dev/block/mmcblk0p2
[COLOR="blue"][B]/custpack yaffs2 custpack[/B][/COLOR]

And add custpack to the last line at recovery.fstab

For Alcatel MT6575/ 77/ 89

( mod accordingly to your device type with cross-reference to your stock 3e recovery )

Early this year, Master Shifu Javum has informed me that he has compile a new TWRP V2.4.1.0 at that time that support custpack & mobile_info partition for Alcatel 992D so i make it into a porting tool so that it can also support other MTK Alcatel devices....

However, it was not welcome at all... :( i personally sent a pm to an Alcatel user in hoping he would be gladly to help out testing it but alas, he ignores me... :(

Total downloads for Port TWRP V2.4.1.0 for Alcatel MT6575_ 77 is 1820 but thanks is only 10... :(

Everyone knows me, i don't ask for thanks & i don't have a DONATE button but 10 thanks is really sad for all the effort that i have put into it... :crying:

And many just share it at their native language forum without even mentioning Master Shifu Javum the one that make it all possible for Alcatel users to have TWRP that can backup & restore custpack & mobile_info partition on their device... :(

From that day onwards, i never bump into other threads to offer my help anymore... :(

mkdir /sdcard
mkdir /system
[B][COLOR="Blue"]mkdir /custpack[/COLOR][/B]
mkdir /data
mkdir /cache
mount /tmp /tmp tmpfs
insmod /sec.ko
mknod /dev/sec c 182 0
chmod 0660 /dev/sec

[COLOR="blue"][B]on fs
write /proc/bootprof "INIT:eMMC:Mount_START"
exec /sbin/e2fsck -p /dev/block/mmcblk0p6
mkdir /custpack
mkdir /mobile_info
mount ext4 emmc@custpack /custpack wait ro commit=1,noauto_da_alloc
mount ext4 emmc@mobile_info /mobile_info wait ro commit=1,noauto_da_alloc
mount ext4 emmc@android /system wait ro commit=1,noauto_da_alloc
mount ext4 emmc@cache /cache noatime nosuid nodev wait noauto_da_alloc
write /proc/bootprof "INIT:eMMC:Mount_END"[/B][/COLOR]

Add the above statement to your existing CWM init.rc

/boot	emmc	/dev/bootimg
/cache	ext4	/emmc@cache
/data	ext4	/emmc@usrdata
/misc	emmc	/dev/misc
/recovery	emmc	/dev/recovery
/emmc	vfat	/emmc@fat
/system	ext4	/emmc@android
/uboot emmc /dev/uboot
/sdcard	vfat	/dev/block/mmcblk1p1	/dev/block/mmcblk1
/sd-ext auto /dev/block/mmcblk1p2
[B][COLOR="blue"]/custpack ext4 /emmc@custpack
/mobile_info ext4 /emmc@mobile_info[/COLOR][/B]

Add the above to recovery.fstab

# Android fstab file.
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
# 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

/emmc@android /system ext4 ro,noatime wait
/emmc@cache /cache ext4 noatime,nosuid,nodev,noauto_da_alloc wait
/emmc@usrdata /data ext4 noatime,nosuid,nodev,noauto_da_alloc wait,encryptable=footer
[COLOR="Blue"]/emmc@custpack /custpack ext4 noatime,nosuid,nodev,noauto_da_alloc wait
/emmc@mobile_info /mobile_info ext4 noatime,nosuid,nodev,noauto_da_alloc wait[/COLOR]

Add the above to fstab

ceco's CWM 6033 is for 720x1280 is oversized on my 480x854 screen

By right, any MTK CWM version should work however i only try it on ceco's 6033 & i don't have MTK Alcatel device so i cannot confirmed whether it does backup & restore custpack & mobile_info properly....

Cross-check it with your stock 3e recovery & Master Shifu Javum's compiled TWRP V2.4.1.0.

You may need additional mount points for custpack & mobile_info

Eg. At advanced_meta_init.project.rc, advanced_meta_init.rc, meta_init.rc

Good Luck... :cool: