[Samsung Galaxy Core Prime Questions & Answers] Mr. root1234:
btw Jay if it wasn't for you I couldn't have gotten the files that pointed me in the right direction!

Its really not that hard to get the hang of it. I just used the source for the g360 version to get the boardconfig.mk and I'm changing the code as I go.

Here's what the recovery.fstab was supposed to look like:

/boot emmc /dev/block/platform/7824900.sdhci/by-name/boot

/system ext4 /dev/block/platform/7824900.sdhci/by-name/system

/system_image emmc /dev/block/platform/7824900.sdhci/by-name/system

/data	ext4 /dev/block/platform/7824900.sdhci/by-name/userdata flags=encryptable=/dev/block/bootdevice/by-name/encrypt

/cache	ext4 /dev/block/platform/7824900.sdhci/by-name/cache

#/misc	emmc /dev/block/platform/7824900.sdhci/by-name/misc

/recovery emmc /dev/block/platform/7824900.sdhci/by-name/recovery flags=backup=1

/efs1 emmc /dev/block/platform/7824900.sdhci/by-name/modemst1 flags=backup=1;display=EFS

/efs2 emmc /dev/block/platform/7824900.sdhci/by-name/modemst2 flags=backup=1;subpartitionof=/efs1

/external_sd vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1

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

All I had to do was fix the path to /by-name

---------- Post added at 03:06 AM ---------- Previous post was at 03:01 AM ----------

Also here's the boardconfig.mk:

# Bootloader

TARGET_BOOTLOADER_BOARD_NAME := MSM8916

TARGET_NO_BOOTLOADER := true

# Platform

TARGET_BOARD_PLATFORM := msm8916

TARGET_BOARD_PLATFORM_GPU := qcom-adreno306

# Architecture

TARGET_ARCH := arm

TARGET_ARCH_VARIANT := armv7-a-neon

TARGET_ARCH_VARIANT_CPU := cortex-a9

TARGET_CPU_ABI := armeabi-v7a

TARGET_CPU_ABI2 := armeabi

TARGET_CPU_SMP := true

TARGET_CPU_VARIANT := cortex-a7

BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom user_debug=23 msm_rtb.filter=0x3F ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci

BOARD_KERNEL_BASE := 0x80000000

BOARD_KERNEL_PAGESIZE := 2048

BOARD_MKBOOTIMG_ARGS := --kernel_offset 0x00008000 --ramdisk_offset 0x02000000 --tags_offset 0x01e00000 --dt device/samsung/coreprimeltevzw/dt.img

# prebuilt kernel

TARGET_PREBUILT_KERNEL := device/samsung/coreprimeltevzw/kernel

# else uncomment below to build from sauce

#TARGET_KERNEL_SOURCE := kernel/samsung/coreprimeltevzw

#TARGET_KERNEL_CONFIG := msm8916_defconfig

BOARD_BOOTIMAGE_PARTITION_SIZE := 25165824

BOARD_RECOVERYIMAGE_PARTITION_SIZE := 25165824

BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824

BOARD_USERDATAIMAGE_PARTITION_SIZE := 2147483648

BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64)

BOARD_VOLD_EMMC_SHARES_DEV_MAJOR := true

TARGET_USERIMAGES_USE_EXT4 := true

#TARGET_USERIMAGES_USE_F2FS := true

BOARD_HAS_NO_SELECT_BUTTON := true

TARGET_RECOVERY_PIXEL_FORMAT := "RGB_565"

TW_THEME := portrait_mdpi

RECOVERY_GRAPHICS_USE_LINELENGTH := true

#TW_INCLUDE_CRYPTO := true

TW_NO_USB_STORAGE := true

BOARD_SUPPRESS_SECURE_ERASE := true

RECOVERY_SDCARD_ON_DATA := true

BOARD_HAS_NO_REAL_SDCARD := true

TW_NO_REBOOT_BOOTLOADER := true

TW_HAS_DOWNLOAD_MODE := true

TW_MTP_DEVICE := /dev/usb_mtp_gadget

# original path was /sys/devices/soc.0/1a00000.qcom,mdss_mdp/qcom,mdss_fb_primary.133/leds/lcd-backlight/brightness

TW_BRIGHTNESS_PATH := "/sys/devices/soc.0/1a00000.qcom\x2cmdss_mdp/qcom\x2cmdss_fb_primary.133/leds/lcd-backlight/brightness"

If I can get the partition sizes correct it should be good. Everything else matches our phone except the BOARD_MKBOOTIMG_ARGS line, I had to change it from this:

BOARD_MKBOOTIMG_ARGS := --kernel_offset 0x80008000 --ramdisk_offset 0x82000000 --tags_offset 0x81e00000 --dt device/samsung/coreprimelte/dt.img

Had to so it will match the offsets from running the mkboot command.

---------- Post added at 03:38 AM ---------- Previous post was at 03:06 AM ----------

this is what I got from running it on my phone yesterday:

u0_a155@coreprimeltevzw:/ $ su

root@coreprimeltevzw:/ # cat /proc/partitions

major minor #blocks name

179 0 7634944 mmcblk0

179 1 15360 mmcblk0p1

179 2 58816 mmcblk0p2

179 3 512 mmcblk0p3

179 4 32 mmcblk0p4

179 5 2048 mmcblk0p5

179 6 512 mmcblk0p6

179 7 512 mmcblk0p7

179 8 512 mmcblk0p8

179 9 3072 mmcblk0p9

179 10 16 mmcblk0p10

179 11 10768 mmcblk0p11

179 12 10240 mmcblk0p12

179 13 14336 mmcblk0p13

179 14 3072 mmcblk0p14

179 15 3072 mmcblk0p15

179 16 13312 mmcblk0p16

179 17 15360 mmcblk0p17

179 18 5121 mmcblk0p18

179 19 7159 mmcblk0p19

179 20 3072 mmcblk0p20

179 21 8 mmcblk0p21

179 22 8192 mmcblk0p22

179 23 9216 mmcblk0p23

179 24 2437120 mmcblk0p24

179 25 1048576 mmcblk0p25

179 26 15360 mmcblk0p26

179 27 3945452 mmcblk0p27

179 32 512 mmcblk0rpmb

179 64 30375936 mmcblk1

179 65 30374912 mmcblk1p1

root@coreprimeltevzw:/ # fdisk

BusyBox v1.24.1-Stericson (2015-11-06 19:11:24 EST) multi-call binary.

Usage: fdisk [-ul] [-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK

Change partition table

-u Start and End are in sectors (instead of cylinders)

-l Show partition table for each DISK, then exit

-b 2048 (for certain MO disks) use 2048-byte sectors

-C CYLINDERS Set number of cylinders/heads/sectors

-H HEADS

-S SECTORS

1|root@coreprimeltevzw:/ # fdisk mmcblk1p1

fdisk: can't open 'mmcblk1p1'

1|root@coreprimeltevzw:/ # exit

1|u0_a155@coreprimeltevzw:/ $ ls -l /dev/block/platform/7824900.sdhci/by-name

lrwxrwxrwx root root 2015-03-05 21:39 aboot -> /dev/block/mmcblk0p5

lrwxrwxrwx root root 2015-03-05 21:39 apnhlos -> /dev/block/mmcblk0p1

lrwxrwxrwx root root 2015-03-05 21:39 backup -> /dev/block/mmcblk0p19

lrwxrwxrwx root root 2015-03-05 21:39 boot -> /dev/block/mmcblk0p16

lrwxrwxrwx root root 2015-03-05 21:39 cache -> /dev/block/mmcblk0p25

lrwxrwxrwx root root 2015-03-05 21:39 carrier -> /dev/block/mmcblk0p26

lrwxrwxrwx root root 2015-03-05 21:39 ddr -> /dev/block/mmcblk0p4

lrwxrwxrwx root root 2015-03-05 21:39 efs -> /dev/block/mmcblk0p13

lrwxrwxrwx root root 2015-03-05 21:39 fota -> /dev/block/mmcblk0p18

lrwxrwxrwx root root 2015-03-05 21:39 fsc -> /dev/block/mmcblk0p20

lrwxrwxrwx root root 2015-03-05 21:39 fsg -> /dev/block/mmcblk0p9

lrwxrwxrwx root root 2015-03-05 21:39 modem -> /dev/block/mmcblk0p2

lrwxrwxrwx root root 2015-03-05 21:39 modemst1 -> /dev/block/mmcblk0p14lrwxrwxrwx root root 2015-03-05 21:39 modemst2 -> /dev/block/mmcblk0p15lrwxrwxrwx root root 2015-03-05 21:39 pad -> /dev/block/mmcblk0p11

lrwxrwxrwx root root 2015-03-05 21:39 param -> /dev/block/mmcblk0p12

lrwxrwxrwx root root 2015-03-05 21:39 persdata -> /dev/block/mmcblk0p23lrwxrwxrwx root root 2015-03-05 21:39 persist -> /dev/block/mmcblk0p22

lrwxrwxrwx root root 2015-03-05 21:39 qhee -> /dev/block/mmcblk0p8

lrwxrwxrwx root root 2015-03-05 21:39 qsee -> /dev/block/mmcblk0p7

lrwxrwxrwx root root 2015-03-05 21:39 recovery -> /dev/block/mmcblk0p17lrwxrwxrwx root root 2015-03-05 21:39 rpm -> /dev/block/mmcblk0p6

lrwxrwxrwx root root 2015-03-05 21:39 sbl1 -> /dev/block/mmcblk0p3

lrwxrwxrwx root root 2015-03-05 21:39 sec -> /dev/block/mmcblk0p10

lrwxrwxrwx root root 2015-03-05 21:39 ssd -> /dev/block/mmcblk0p21

lrwxrwxrwx root root 2015-03-05 21:39 system -> /dev/block/mmcblk0p24

lrwxrwxrwx root root 2015-03-05 21:39 userdata -> /dev/block/mmcblk0p27

u0_a155@coreprimeltevzw:/ $

would it make a difference running through adb?

nvm I see the difference.

---------- Post added at 03:55 AM ---------- Previous post was at 03:38 AM ----------

how did you get it to print out? Mine is giving this: /system/bin/sh: /dev/block/partitions/7824900.sdhci/by-name: not found