http://forum.xda-developers.com/shie…ld-tv-t3150352
Since the author of that thread does not seem to visit this forum often, the pre-built kernel is not updated, I found issues after installed L4T rootfs, e.g., wifi was not working, higher than 1920×1080 displays might not work, so I deciced to build kernel from source.
I believe there are 3 keys to rebuild kernel from source, (1). have the right tool chain, (2). have the right source. (3). have the right configuration file.
For (1). I used Ubuntu compiler packages (I used Intel X64 Ubuntu to cross compile Shield TV kernels):
sudo apt-get install gcc-aarch64-linux-gnu
sudo apt-get install gcc-arm-linux-androideabi
For (2). I used "android_kernel_nvidia_foster-cm-12.1" from Link 2
https://github.com/CM-Shield/android…_nvidia_foster
For (3). I started with configuration file from Link 2 and refered configuration file from Link 1 and tried many different versions of configuration files.
The source file from Link 2 produced few build errors, I (and others) were able to fix the errors to build working kernels.
Patched source from Link 2 can be downloaded from
https://drive.google.com/open?id=0Bz…EpyYnB3aDY1S1E
In "cm-12.1/arch/arm64/configs" there are configuration files from Link 1 (3.10.config-foster_e_defconfig), Link 2 (cyanogenmod_foster_defconfig) and my latest with change histories (shieldTv_defconfig).
In "cm-12.1/" there is a script "first.sh" to install cross compilers and to generate "Image". Please check "first.sh" to make sure it makes sense to you. To run the script, use
"source first.sh"
The "image" file will be in "../cmOutDir1/arch/arm64/boot"
I’ll add the next step to combine the "Image" file and a ramdisk to generate "boot.img" file. (I’m currently busy and can only finish this post in stages).
Those steps were documented in Link 1.