[Galaxy Tab 4 Q&A, Help & Troubleshooting] moonbutt74:
chip,

hi, i use debian but for the most part i think thing should be fairly similar or you should be able to find an equivalent, the packages you need from what i can remember, also pulled from http://docs.kali.org/development/arm-cross-compilation-environment,

Also from user [MENTION=5378432]Restl3ss[/MENTION] who got me up and running,

Replicant pre-req for Debian 8

apt-get install bison flex git-core gperf libncurses-dev build-essential curl squashfs-tools openjdk-7-jre openjdk-7-jdk pngcrush wget zip zlib1g-dev lzma libxml2-utils libc6-dev-i386 g++-multilib lib32z1-dev lib32readline-gplv2-dev lib32ncurses5-dev zlib1g-dev:i386

And to get further along, Welcome to XDA ! The search function is your friend, you can search the whole of XDA, you can also search specific threads,

Keep in mind some of these packages may not be available, simply remove them from the apt-get install command line, and/or search for equivalents.

Once those steps are completed, you will need to create your cm11 directory on a drive/partition whith a few hundred gigs of space

now you wil get install google repo tool, see this page for complete instruction http://source.android.com/source/downloading.html

curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

After that is done cd to your cm11 directory and initialize your repo, see the internet for complete instruction.... :silly:

repo init -u https://github.com/CyanogenMod/android.git -b [COLOR="Red"]cm-11.0[/COLOR]

you can edit the branch entry accordingly, cm-11.0, cm-12.o etc. then

repo sync

and wait for a loooong time

m

---------- Post added at 09:37 AM ---------- Previous post was at 09:15 AM ----------

okay, part 2

github is awesome, developers can get cranky, always seek permission or give credit where applicable !

bookmark this page https://github.com/

for you purposes you will search github for

matisse or matissewifi and download a device tree and then edit the tree to conform to your device.

samsung kernel sources, start here http://opensource.samsung.com/reception.do

search your device name sm-tblahblahblah

take this advice, one you have your kernel source safe fat and happy on your hard drive keep it safe and work from a copy of it instead.

i keep my sources in a centralized location, /storage/kbuild and then copy the source as per the device i'm working on to

cm11/kernel/samsung/whatever, there is a readme in the archive you will download which gives basic instruction as to the defconfig you will use

as well as the recommended toolchain, on the toolchain as long as you use a standard arm-eabi 4.6 or 4.7 you should be good.

again goto github and search for a toolchain with terms such as arm-eabi or arm-linux-android

m

Update- for building cortex-a53 you may also need to install libjemalloc packages

Update - when cloning new toolchains to /opt/toolchains/ run updatedb

also add to path ~/.bashrc

PATH=/opt/<toolchain-name>/bin:$PATH

Note- the "triplet" in the names of the toolchains bin/binaries correspond to cpu-vendor-os, arm-toaster-linux :D

Update : See this excellent thread

Learn about the repo tool , manifests and local manifests and 5 important tips !

Courtesy of [MENTION=4918174]Red Devil[/MENTION] [IMG="reddevil_avatar"]http://cdn4.xda-developers.com/customavatars/avatar4918174_24.gif[/IMG]

Might want to add some filesystem support for large microsd cards and stuff

apt-get install hfsplus hfsprogs hfsutils hfsutils-tcltk exfat-fuse exfat-utils