Skip to content

kevintm78/kfde

Repository files navigation

Samsung has removed the download for some legacy devices including most of the trlte variants. The initial tag is an untouched upload of the kernel.zip for the SM-N910V. Mirror of the original zip from Samsung.

I'm not a developer nor do I have any formal education regarding Android development (or anything else). These notes are here just for convenience. Some information could be inaccurate and I welcome any input/corrections.

Kernel Specs

  • Linux kernel v.3.10.40
  • Device = trltevzw
  • Firmware = N910VVRU2CQL1
  • Recommended Toolchain = arm-eabi-4.8

  • Google's prebuilt gcc arm-eabi-4.8 toolchain (mirror):

    git clone git@github.com:kevintm78/arm-eabi-4.8.git
    
  • Build Tools

    sudo apt install git-core ccache automake lzop bison gperf build-essential zip curl zlib1g-dev g++-multilib python3-networkx libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev squashfs-tools pngcrush schedtool dpkg-dev liblz4-tool make optipng gnupg flex libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc unzip fontconfig
    
  • AOSP guide for setting up your build environment.


Fix for "/usr/bin/env 'python' no such file or directory"

  • AOSP suggestion If your Ubuntu 20.04.2 LTS is a newly installed (vs. upgraded) Linux version:

    sudo ln -s /usr/bin/python3 /usr/bin/python
    
  • Above fix works with certain distros, but if not try:

    sudo apt install python-is-python2
    
  • python-all was needed once, but probably just a fluke...

    sudo apt install python-all
    

Environment Variables:

Warning-These could be as inaccurate as everything else in this readme.

export USE_CCACHE=1                                     #Android 9 and below just needs this one
export ANDROID_SDK_ROOT="$HOME/Android/Sdk"             #Path to some dumb kevin. For when I get lost.
export OUT_DIR_COMMON_BASE=""$HOME/path/to/salvation"   #Set this for common out directory for Android builds
export PATH="$HOME/android-studio/jre/bin:$PATH"        #This is needs to set for building Magisk
export PATH="$HOME/.bin:$PATH"                          #This is where I install repo.
export ALLOW_FILE_DISCOVERY=1                           #Self explanatory
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4g"  #this is for my lack of ram

export CCACHE_EXEC=$(command -v ccache)                 #Android 10+ only??!!

@osm0sis' rep0s, odds, ends, and evens

References, Links, etc.