[Android Software Development] arvinquilao:
No option to partition sd

Hi, I was able to build 2.8.6.0 for my MT6582 using CM11 source. However, I noticed that the the "Partition" option in Advanced setting is missing. A previous TWRP installation, version 2.8.2.0 that was ported by someone else from another Mediatek phone has this option available. Can anyone tell me why that option is missing? Thanks.

My Boardconfig.mk:

LOCAL_PATH := device/starmobile/f3467
USE_CAMERA_STUB := true

# inherit from the proprietary version
-include vendor/starmobile/f3467/BoardConfigVendor.mk

TARGET_ARCH := arm
TARGET_NO_BOOTLOADER := true
TARGET_BOARD_PLATFORM := mt6582
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_CPU_VARIANT := cortex-a7
TARGET_CPU_SMP := true
ARCH_ARM_HAVE_TLS_REGISTER := true
TARGET_BOOTLOADER_BOARD_NAME := f3467

BOARD_KERNEL_CMDLINE :=
BOARD_KERNEL_BASE := 0x10000000
BOARD_KERNEL_PAGESIZE := 2048

TARGET_POWERHAL_VARIANT := cm

BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16777216
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 943718400
BOARD_USERDATAIMAGE_PARTITION_SIZE := 968884224
BOARD_FLASH_BLOCK_SIZE := 512

BOARD_MKBOOTIMG_ARGS := --kernel_offset 0x00008000 --ramdisk_offset 0x01000000 --tags_offset 0x00000100

TARGET_RECOVERY_INITRC := $(LOCAL_PATH)/recovery/init.mt6582.rc
TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/recovery/recovery.fstab
TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/prebuilt/kernel

BOARD_HAS_NO_SELECT_BUTTON := true
TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/devices/platform/mt_usb/musb-hdrc.0/gadget/lun%d/file"

#TWRP
BOARD_CUSTOM_BOOTIMG_MK := $(LOCAL_PATH)/boot.mk
BOARD_SUPPRESS_EMMC_WIPE := true
TARGET_RECOVERY_PIXEL_FORMAT := "BGR_565"
TARGET_USERIMAGES_USE_EXT4 := true
BOARD_HAS_FLIPPED_SCREEN := true
RECOVERY_VARIANT := twrp
DEVICE_RESOLUTION := 480x800
BOARD_HAS_NO_REAL_SDCARD := true
TARGET_USERIMAGES_USE_EXT4 := true
TW_INTERNAL_STORAGE_PATH := "/data/media"
TW_INTERNAL_STORAGE_MOUNT_POINT := "data"
TW_EXTERNAL_STORAGE_PATH := "/sdcard"
TW_EXTERNAL_STORAGE_MOUNT_POINT := "sdcard"
TW_NO_USB_STORAGE := true
RECOVERY_GRAPHICS_USE_LINELENGTH := true
TW_IGNORE_MAJOR_AXIS_0 := true
TW_BRIGHTNESS_PATH := /sys/class/leds/lcd-backlight/brightness
TW_USE_MODEL_HARDWARE_ID_FOR_DEVICE_ID := true

# EGL settings
BOARD_EGL_CFG := $(LOCAL_PATH)/egl.cfg
USE_OPENGL_RENDERER := true

Recovery log:

__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
Starting TWRP 2.8.6.0 on Thu Jun 4 07:56:07 2015
(pid 92)
I:=> product model: 'f3467'
I:=> using device id: 'f3467'
BOARD_HAS_NO_REAL_SDCARD := true
TW_NO_USB_STORAGE := true
I:TW_BRIGHTNESS_PATH := /sys/class/leds/lcd-backlight/brightness
I:Found brightness file at '/sys/class/leds/lcd-backlight/brightness'
I:TWFunc::Set_Brightness: Setting brightness control to 255
Starting the UI...Pixel format: 480x800 @ 32bpp
Pixel format: BGR_565
Not using qualcomm overlay, 'mtkfb'
framebuffer: fd 3 (480 x 800)
=> Linking mtab
Renaming regular /etc/recovery.fstab -> /etc/recovery.fstab.bak
Moving /etc/twrp.fstab -> /etc/recovery.fstab
=> Processing recovery.fstab
I:Processing '/boot'
I:Processing '/recovery'
I:Processing '/misc'
I:Processing '/nvram'
I:Processing '/uboot'
I:Processing '/logo'
I:Processing '/system'
I:Processing '/cache'
I:Processing '/data'
I:Processing '/emmc'
I:Created '/emmc' folder.
I:Processing '/sdcard'
I:Created '/sdcard' folder.
I:Processing '/sd-ext'
I:Created '/sd-ext' folder.
I:Processing '/usb-otg'
I:Created '/usb-otg' folder.
I:Created '/and-sec' folder.
I:Creating Android Secure: /emmc/.android_secure
I:mount -o bind '/emmc/.android_secure' '/and-sec' process ended with RC=0
I:Backup folder set to '/emmc/TWRP/BACKUPS/f3467'
I:Settings storage is '/emmc'
Updating partition details...
I:Unable to mount '/sd-ext'
I:Actual block device: '', current file system: 'auto'
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'auto'
...done
I:Unmounting main partitions...

Partition Logs:
/boot | /dev/bootimg | Size: 16MB
Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img
Primary_Block_Device: /dev/bootimg
Display_Name: Boot
Storage_Name: Boot
Backup_Path: /boot
Backup_Name: boot
Backup_Display_Name: Boot
Storage_Path: /boot
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/recovery | /dev/recovery | Size: 16MB
Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img
Primary_Block_Device: /dev/recovery
Display_Name: Recovery
Storage_Name: Recovery
Backup_Path: /recovery
Backup_Name: recovery
Backup_Display_Name: Recovery
Storage_Path: /recovery
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/misc | /dev/misc | Size: 0MB
Flags: Can_Be_Backed_Up IsPresent
Primary_Block_Device: /dev/misc
Display_Name: Misc
Storage_Name: Misc
Backup_Path: /misc
Backup_Name: misc
Backup_Display_Name: Misc
Storage_Path: /misc
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/nvram | /dev/nvram | Size: 5MB
Flags: Can_Be_Backed_Up IsPresent
Primary_Block_Device: /dev/nvram
Display_Name: Nvram
Storage_Name: Nvram
Backup_Path: /nvram
Backup_Name: nvram
Backup_Display_Name: Nvram
Storage_Path: /nvram
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/uboot | /dev/uboot | Size: 0MB
Flags: Can_Be_Backed_Up IsPresent
Primary_Block_Device: /dev/uboot
Display_Name: Uboot
Storage_Name: Uboot
Backup_Path: /uboot
Backup_Name: uboot
Backup_Display_Name: Uboot
Storage_Path: /uboot
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/logo | /dev/logo | Size: 3MB
Flags: Can_Be_Backed_Up IsPresent
Primary_Block_Device: /dev/logo
Display_Name: Boot Logo
Storage_Name: Boot Logo
Backup_Path: /logo
Backup_Name: logo
Backup_Display_Name: Boot Logo
Storage_Path: /logo
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/system | /dev/block/mmcblk0p6 | Size: 885MB Used: 729MB Free: 156MB Backup Size: 729MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI IsPresent
Primary_Block_Device: /dev/block/mmcblk0p6
Display_Name: System
Storage_Name: System
Backup_Path: /system
Backup_Name: system
Backup_Display_Name: System
Storage_Path: /system
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files

/cache | /dev/block/mmcblk0p7 | Size: 124MB Used: 4MB Free: 119MB Backup Size: 4MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent
Primary_Block_Device: /dev/block/mmcblk0p7
Display_Name: Cache
Storage_Name: Cache
Backup_Path: /cache
Backup_Name: cache
Backup_Display_Name: Cache
Storage_Path: /cache
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files

/data | /dev/block/mmcblk0p8 | Size: 2286MB Used: 1416MB Free: 869MB Backup Size: 1416MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent Can_Encrypt_Backup Use_Userdata_Encryption
Primary_Block_Device: /dev/block/mmcblk0p8
Display_Name: Data
Storage_Name: Data
Backup_Path: /data
Backup_Name: data
Backup_Display_Name: Data
Storage_Path: /data
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files

/emmc | /dev/block/mmcblk0p9 | Size: 265MB Used: 14MB Free: 250MB Backup Size: 0MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up IsPresent Has_Android_Secure Is_Storage
Symlink_Path: /emmc/.android_secure
Symlink_Mount_Point: /and-sec
Primary_Block_Device: /dev/block/mmcblk0p9
Display_Name: Phone Storage
Storage_Name: Phone Storage
Backup_Path: /and-sec
Backup_Name: and-sec
Backup_Display_Name: Android Secure
Storage_Path: /emmc
Current_File_System: vfat
Fstab_File_System: vfat
Backup_Method: files
MTP_Storage_ID: 65537

/sdcard | /dev/block/mmcblk1p1 | Size: 7564MB Used: 5303MB Free: 2260MB Backup Size: 5303MB
Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable IsPresent Is_Storage
Primary_Block_Device: /dev/block/mmcblk1p1
Alternate_Block_Device: /dev/block/mmcblk1
Display_Name: SDcard
Storage_Name: SDcard
Backup_Path: /sdcard
Backup_Name: sdcard
Backup_Display_Name: SDcard
Storage_Path: /sdcard
Current_File_System: vfat
Fstab_File_System: vfat
Backup_Method: files
MTP_Storage_ID: 65538

/sd-ext | | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI Removable Can_Encrypt_Backup Use_Userdata_Encryption
Primary_Block_Device: /dev/block/mmcblk1p2
Display_Name: SD-Ext
Storage_Name: SD-Ext
Backup_Path: /sd-ext
Backup_Name: sd-ext
Backup_Display_Name: SD-Ext
Storage_Path: /sd-ext
Current_File_System: auto
Fstab_File_System: auto
Backup_Method: files

/usb-otg | | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB
Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable Is_Storage
Primary_Block_Device: /dev/block/sda1
Alternate_Block_Device: /dev/block/sda
Display_Name: USB-OTG
Storage_Name: USB-OTG
Backup_Path: /usb-otg
Backup_Name: usb-otg
Backup_Display_Name: USB-OTG
Storage_Path: /usb-otg
Current_File_System: auto
Fstab_File_System: auto
Backup_Method: files
MTP_Storage_ID: 65539

I:Loading package: TWRP (/script/ui.xml)
I:Load XML directly
I:Loading package: TWRP (/emmc/TWRP/theme/ui.zip)
I:Loading zip theme
I:Loading package: TWRP (/twres/ui.xml)
I:Load XML directly
I:Checking resolution...
I:Loading resources...
open_png /twres/images/twrplogo.png
open_png /twres/images/menu-button.png
open_png /twres/images/file.png
open_png /twres/images/folder.png
open_png /twres/images/slideout.png
open_png /twres/images/indeterminate001.png
open_png /twres/images/indeterminate002.png
open_png /twres/images/indeterminate003.png
open_png /twres/images/indeterminate004.png
open_png /twres/images/indeterminate005.png
open_png /twres/images/indeterminate006.png
open_png /twres/images/indeterminate007.png
open_png /twres/images/progress_empty.png
open_png /twres/images/progress_fill.png
open_png /twres/images/checkbox_empty.png
open_png /twres/images/checkbox_checked.png
open_png /twres/images/radio_empty.png
open_png /twres/images/radio_selected.png
open_png /twres/images/medium-button.png
open_png /twres/images/sort-button.png
open_png /twres/images/minus-button.png
open_png /twres/images/plus-button.png
open_png /twres/images/home-icon.png
open_png /twres/images/back-icon.png
open_png /twres/images/slider.png
open_png /twres/images/slider-used.png
open_png /twres/images/slider-touch.png
open_png /twres/images/unlock.png
open_png /twres/images/keyboard1.png
open_png /twres/images/keyboard2.png
open_png /twres/images/keyboard3.png
open_png /twres/images/keyboard4.png
open_png /twres/images/cursor.png
I:Loading variables...
I:Loading mouse cursor...
I:Loading pages...
I:PageSet::CheckInclude loading filename: '/twres/portrait.xml'
I:Loading included resources...
I:Loading included variables...
I:Loading mouse cursor...
I:Loading included pages...
I:Loading page main
I:Loading page main2
I:Loading page install
I:Loading page flash_confirm
I:Loading page flash_zip
I:Loading page flash_done
I:Loading page install_image
I:Loading page flashimage_confirm
I:Loading page clear_vars
I:Loading page confirm_action
I:Loading page action_page
I:Loading page singleaction_page
I:Loading page action_complete
I:Loading page filecheck
I:Loading page rebootcheck
I:Loading page wipe
I:Loading page advancedwipe
I:Loading page formatdata
I:Loading page formatdata_confirm
I:Loading page checkpartitionlist
I:Loading page partitionoptions
I:Loading page refreshfilesystem
I:Loading page selectfilesystem
I:Loading page backup
I:Loading page backupname1
I:Loading page backupname2
I:Loading page backupencryption
I:Loading page backupencryption2
I:Loading page checkbackuppassword
I:Loading page backup_run
I:Loading page restore
I:Unable to open '/emmc/TWRP/BACKUPS/f3467'
I:Loading page restore_read
I:Loading page restore_decrypt
I:Loading page try_restore_decrypt
I:Loading page restore_select
I:Loading page renamebackup
I:Loading page restore_run
I:Loading page selectstorage
I:Loading page mount
I:Loading page usb_mount
I:Loading page usb_umount
I:Loading page system_readonly_check
I:Loading page reboot
I:Loading page settings
I:Loading page timezone
I:Loading page screen
I:Loading page Vibrate
I:Loading page advanced
I:Loading page partsdcard
I:Loading page htcdumlock
I:Loading page lock
I:Loading page filemanagerlist
I:Loading page filemanageroptions
I:Loading page choosedestinationfolder
I:Loading page filemanagerrenamefile
I:Loading page filemanagerrenamefolder
I:Loading page filemanagerchmod
I:Loading page filemanagerconfirm
I:Loading page filemanageracction
I:Loading page decrypt
I:Loading page decrypt_pattern
I:Loading page trydecrypt
I:Loading page terminalfolder
I:Loading page terminalcommand
I:Loading page sideload
I:Loading page fixperms
I:Loading page installsu
I:Loading page system_readonly
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Switching packages (TWRP)
SELinux contexts loaded from /file_contexts
Full SELinux support is present.
Startup Commands:
ro.cm.device=f3467
ro.cm.display.version=11-20150604-UNOFFICIAL-f3467
ro.cm.version=11-20150604-UNOFFICIAL-f3467
ro.cm.releasetype=UNOFFICIAL
ro.adb.qemud=1
ro.adb.secure=0
ro.com.google.clientidbase=android-google
ro.com.android.dateformat=MM-dd-yyyy
ro.com.android.dataroaming=false
ro.com.android.wifi-watchlist=GoogleGuest
ro.cwm.forbid_format=/nvram,/uboot
ro.ril.hsxpa=1
ro.ril.gprsclass=10
ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html
ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html
ro.boot.emmc=0
ro.emmc=0
ro.twrp.boot=1
ro.twrp.version=2.8.6.0
ro.wifi.channels=
ro.allow.mock.location=1
ro.board.platform=mt6582
ro.build.id=KTU84Q
ro.build.date=Thu Jun 4 15:33:09 PHT 2015
ro.build.date.utc=0
ro.build.host=arvin-ubuntu64
ro.build.tags=test-keys
ro.build.type=eng
ro.build.user=arvin
ro.build.display.id=cm_f3467-eng 4.4.4 KTU84Q 425545ad96 test-keys
ro.build.product=f3467
ro.build.selinux=1
ro.build.version.sdk=19
ro.build.version.release=4.4.4
ro.build.version.codename=REL
ro.build.version.incremental=425545ad96
ro.build.description=cm_f3467-eng 4.4.4 KTU84Q 425545ad96 test-keys
ro.build.fingerprint=starmobile/cm_f3467/f3467:4.4.4/KTU84Q/425545ad96:eng/test-keys
ro.build.characteristics=default
ro.mount.fs=EXT4
ro.config.ringtone=Orion.ogg
ro.config.alarm_alert=Hassium.ogg
ro.config.notification_sound=Argon.ogg
ro.kernel.android.checkjni=1
ro.secure=0
ro.carrier=unknown
ro.cmlegal.url=https://cyngn.com/legal/privacy-policy
ro.persist.partition.support=no
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.name=cm_f3467
ro.product.board=f3467
ro.product.brand=starmobile
ro.product.model=f3467
ro.product.device=f3467
ro.product.locale.region=US
ro.product.locale.language=en
ro.product.manufacturer=starmobile
ro.baseband=unknown
ro.bootmode=unknown
ro.hardware=mt6582
ro.revision=0
ro.serialno=
ro.bootloader=unknown
ro.bootloader.mode=download
ro.debuggable=1
ro.modversion=11-20150604-UNOFFICIAL-f3467
ro.rommanager.developerid=cyanogenmod
ro.factorytest=0
ro.setupwizard.enterprise_mode=1
net.bt.name=Android
net.change=net.bt.name
init.svc.adbd=running
init.svc.healthd=running
init.svc.ueventd=running
init.svc.recovery=running
twrp.crash_counter=0
dalvik.vm.stack-trace-file=/data/anr/traces.txt
persist.mtk.aee.aed=on
persist.sys.dun.override=0
persist.sys.usb.config=mass_storage,adb,adb
persist.sys.dalvik.vm.lib=libdvm.so
persist.sys.dalvik.multithread=false
persist.sys.root_access=1
persist.sys.recovery_update=false
persist.service.acm.enable=0
persist.service.adb.enable=1
service.adb.root=1
keyguard.no_require_sim=true

I:Copying file /cache/recovery/log to /cache/recovery/last_log
I:Attempt to load settings from settings file...
I:Loading settings from '/emmc/TWRP/.twrps'.
I:Backup folder set to '/sdcard/TWRP/BACKUPS/f3467'
I:Copying file /etc/recovery.fstab to /cache/recovery/recovery.fstab
I:Version number saved to '/cache/recovery/.version'
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'auto'

twrp.fstab, similar to 2.8.2.0 with working partition tab:

# mount	point	fstype	device	[device2]
/boot	emmc	/dev/bootimg	flags=display="Boot";backup=1
/recovery	emmc	/dev/recovery	flags=display="Recovery";backup=1
/misc	emmc	/dev/misc	flags=display="Misc";backup=1
/nvram	emmc	/dev/nvram	flags=display="Nvram";backup=1
/uboot	emmc	/dev/uboot	flags=display="Uboot";backup=1
/logo emmc /dev/logo flags=display="Boot Logo";backup=1

/system	ext4	/emmc@android	flags=display="System";backup=1
/cache	ext4	/emmc@cache	flags=display="Cache";backup=1
/data	ext4	/emmc@usrdata	flags=display="Data";backup=1

/emmc	vfat	/emmc@fat	flags=display="Phone Storage";storage;settingsstorage
/sdcard	vfat	/dev/block/mmcblk1p1	/dev/block/mmcblk1	flags=display="SDcard";storage;wipeingui
/sd-ext auto /dev/block/mmcblk1p2

/usb-otg	auto	/dev/block/sda1 /dev/block/sda flags=display="USB-OTG";storage;wipeingui;removable