[Miscellaneous Android Development] Deleted member 5172169:
Help is always welcomed,

as of 27.0.2016 the bug list is:

1)Camera

2)Hardware buttons- Started to work in latest test builds

3)Sound is not working (In-call sound is working tho)

Goals

To boot Cyanogenmod 13

Useful information

Kernel source is based on BIRD6752 kernel sources, some of the drivers have been taken from various other kernel sources and P6000 KitKat sources.

The "CheatSheet"

Collection of useful (for me atleast) commands or notes to help in in this or any other Android related project

/* needed for BBQLinux *\
//Sets locale to C to avoid Locale errors in building kernel or rom
export LC_ALL=C

---------------------------------------------------
from kernel.mk= line 154=-o=OUT_DIR=$(OUT_DIR),TARGET_BUILD_VARIANT=$(TARGET_BUILD_VARIANT) $(PROJECT_NAME /* to correct the mtk source building in Cm** (Not needed on Lollipop kernel) (this line needs to be removed to build using makeMtk command, Need to set "out" link in root of kernel directory) */
---------------------------------------------------

/*original command */
export TARGET_BUILD_VARIANT=user TARGET_PRODUCT=devicename MTK_ROOT_CUSTOM=../mediatek/custom/ TARGET_KERNEL_VERSION=devicename &&export PATH=pathToDir/arm-eabi-4.6/bin:$PATH&&export CROSS_COMPILE=arm-eabi-&&export ARCH=arm
//Thanks to MasterAwesome

#latest 64bit
export TARGET_BUILD_VARIANT=eng &&export TARGET_PRODUCT=k01q_e &&export PATH=~/toolchain/aarch64-gnu-4.9/bin:$PATH &&export CROSS_COMPILE=aarch64- &&export ARCH=arm64 &&export ARCH_MTK_PLATFORM=mt6752

#32bit
export TARGET_BUILD_VARIANT=eng &&export PATH=~/toolchain/arm-eabi-4.8/bin:$PATH&&export CROSS_COMPILE=arm-eabi- &&export ARCH=arm && export ARCH_MTK_PLATFORM=mt6752 && export ARCH_MTK_PROJECT=k01q_e && export TARGET_PRODUCT=mt6752 && export TARGET_PROJECT=k01q_e

/* steps for compiling P6000 kernel */
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6 $home/arm-eabi-4.6
mkdir -p $home/P6000
cd $home/P6000 //Extract the content of P6000_sourcecode.tar.gz to this folder
export PATH=$home/arm-eabi-4.6/bin:$PATH
export CROSS_COMPILE=arm-eabi-
./makeMtk k01q_e new k

/* unpack system.img (needs additional files) */

cd ../../
~/extras/ext4_utils/simg2img system.img system.raw.img

mkdir /mnt/my_system
sudo mount -t ext4 -o loop system.raw.img sys

cd ../../
PATH="$PATH:$(pwd)/extras/ext4_utils/make_ext4fs" ./extras/ext4_utils/mkuserimg.sh -s /mnt/my_system_dir my_system.img ext4 /tmp 512M

/* add device tree to zImage */
cat arch/arm/boot/dts/nb6752_lwt_cu.dtb >> arch/arm/boot/zImage

/*ptgen command */
./makeMtk -t ${device} ptgen

/* Aosp repo */
repo init -u https://android.googlesource.com/platform/manifest -b android-6.0.1_r1

#Device tree
split_bootimg.pl boot.img

dtc -I dtb boot.img-second.gz -O dts -o meson8_tm8.dtd

Credits

Bigrammy -Advice and support

HypoTurtle -Advice and support

BachMinuetInG -P6000 KK sources

Yuweng -Advice and support

Santosh M -Advice and support

AjlekcaHgp MejlbHukoB (4PDA) -Link to BIRD6752 sources and Gc camera drivers

Ferhung -For his work on Lenovo K50t

xen0n -for his work on Arale

Sources on Github:

Kernel : k01q_e_lollipop_kernel

Device Tree - Focusing on kernel now

Vendor Blobs - ~