[Android Q&A, Help & Troubleshooting] ihavenoeffort:
So i'm trying to build CM 11 from source for my Galaxy Note Edge (SCL24) for the carrier AU by KDDI here in Japan. Here's what i've got/done so far.

I've sync'd the repo. and done everything and then some as explained by this guide and many more.

Because i'm trying to port CM 11 to an unsupported device i am following the CM 11 Porting guide and i've chosen Method 1: mkvendor.sh script to pull files off of the boot.img. I get to the "Customise the files" and start with Boardconfig.mk in the ~/cm11/device/samsung/scl24 folder.

Here is the code:

USE_CAMERA_STUB := true

# inherit from the proprietary version
-include vendor/samsung/scl24/BoardConfigVendor.mk

TARGET_ARCH := arm
TARGET_NO_BOOTLOADER := true
TARGET_BOARD_PLATFORM := unknown
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 := scl24

BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 dwc3_msm.cpu_to_affin=1
BOARD_KERNEL_BASE := 0x00000000
BOARD_KERNEL_PAGESIZE := 4096

# fix this up by examining /proc/mtd on a running device
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_FLASH_BLOCK_SIZE := 131072

TARGET_PREBUILT_KERNEL := device/samsung/scl24/kernel

BOARD_HAS_NO_SELECT_BUTTON := true

Now, i'm trying to confirm the BOARD_BOOTIMAGE_PARTITION_SIZE and down to the BOARD_USERDATAIMAGE_PARTITION_SIZE values are correct. However when i follow the guide and others to try and find the partition sizes i am unable to find the memory addresses that are listed for each value. On my phone (while running) i can go to the /dev/block/msm_sdcc.1 and i see that the recovery points to the mmcblk0p18 (found using this thread here). I can't pull or view the partitions any other way.

Q1: I'm confused as to where or how to convert the mmcblk0p18 to the address listed in the BOARD_XXXXIMAGE_PARTITION_SIZE. !OR!

Q2: Do i need to leave the BOARD_XXXXIMAGE_PARTITION_SIZE the way it is and edit recovery.fstab?

recovery.fstab looks like this

# mount point	fstype device	[device2]

/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 ext4 /dev/block/mmcblk0p2

so should the recovery.fstab look like this:

/recovery mtd /dev/block/mmcblk0p18

?

My end goal here is to be able to build CM 11 for the SCL24 Galaxy Note Edge (Japanese Version a.k.a. SM-N915J). To be honest, all the guides i've found seem to be incomplete and not specific, but i've never done this before and want to learn the hard way. I don't want to copy and paste random files and folders from a CM 11 ROM of a like variant and put it into the stock ROM base.

I do have the source for kernel and platform from the samsung opensource website. I have not built the kernel yet or really messed with that.

What i have done however (if this helps you understand what i've done so far) is sync'd the repo and took the samsung source and pretty much copied and pasted it into the CM 11 tree. Logically i thought that instead (because i can't figure it out yet) of pulling files off the phone i'd just take the whole source (kernel and platform) and paste it into the tree. Upon trying to mka the build i received a number of errors of libraries not being built in the $OUT path and then failing the build because another library tried to call on one that did not exist and then failed the build. So i decided to start over by deleting my CM 11 tree and reaccomplished the sync.

If you have any information or help to provide, i'd greatly appreciate it!