Mainline 4.4.0.86 on Chromebooks TK1 Help to fix this script !!!

cd && clear
echo “--------------------------------------------------------”
echo " Script to re-enable cuda capabilities "
echo " on Acer CB5-311 Chromebooks "
echo “--------------------------------------------------------”
echo
echo “install tools”
sudo apt-get -y install cgpt vboot-kernel-utils device-tree-compiler build-essential u-boot-tools ncurses-dev mpi-default-dev mpi-default-bin

cd $HOME/Downloads
echo
echo “fetch sources”
wget http://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/xhci-firmware-2016.12.05.00.00.tbz2
git clone https://chromium.googlesource.com/chromiumos/third_party/kernel --> #downloading kernel 4.4.0.86
#Choice your way to downloading in rootfs partition ubuntu-xenial-version armhf in /dev/sda partition 7 ext4 format I’m using USBDRIVE 32G for it.

#Put this kernel after git clone in partition /dev/sda7 directory example: /usr/src/kernel and in this directory do below:

./chromeos/scripts/prepareconfig chromeos-tegra --> Doesnt Work Anymore with Kernel 4.4.0.86

./scripts/config --set-val CONFIG_EXTRA_FIRMWARE “nvidia/tegra124/xusb.bin”
./scripts/config --set-val CONFIG_EXTRA_FIRMWARE_DIR “/lib/firmware”
./scripts/config -d CONFIG_CC_STACKPROTECTOR
./scripts/config -d CONFIG_SECURITY_CHROMIUMOS
WIFIVERSION=-3.8 make oldnoconfig
cat ./.config|grep CONFIG_EXTRA_FIRMWARE
echo

WIFIVERSION=-3.8 make -j4 zImage
WIFIVERSION=-3.8 make -j4 modules
WIFIVERSION=-3.8 make tegra124-nyan-big.dtb
sudo WIFIVERSION=-3.8 make INSTALL_PATH=/boot INSTALL_MOD_PATH=/ firmware_install modules_install

cat << EOF > arch/arm/boot/kernel.its
/dts-v1/;

/ {
description = “ChromeOS kernel image with one or more FDT-blobs.”;
images {
kernel@1{
description = “kernel”;
data = /incbin/(“zImage”);
type = “kernel_noload”;
arch = “arm”;
os = “linux”;
compression = “none”;
load = <0>;
entry = <0>;
};
fdt@1{
description = “tegra124-nyan-big.dtb”;
data = /incbin/(“dts/tegra124-nyan-big.dtb”);
type = “flat_dt”;
arch = “arm”;
compression = “none”;
hash@1 {
algo = “sha1”;
};
};
};
configurations {
default = “conf@1”;
conf@1 {
kernel = “kernel@1”;
fdt = “fdt@1”;
};
};
};
EOF

mkimage -f arch/arm/boot/kernel.its vmlinux.uimg
echo “console=tty1 debug verbose root=/dev/sda7 rootfstype=ext4 rootwait rw lsm.module_locking=0” > kernel-config #Check this configuration ??? may have to change
vbutil_kernel
–version 1
–arch arm
–keyblock /usr/share/vboot/devkeys/kernel.keyblock
–signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk
–vmlinuz vmlinux.uimg
–pack chromeos-Ubuntu.kpart
–config kernel-config

echo
echo “--------------------------------------------------------”
echo " We are done. Install kernel now? - Then do:"
echo
echo " cd $HOME/src/kernel "
echo " sudo dd if=chromeos-R41-6680.B.kpart of=/dev/sda7"
echo " sudo cgpt add -i 6 -P 5 -T 1 /dev/sda "
echo " copy chromeos-Ubuntu.kpart in /boot in USB Drive
echo "
echo " … and reboot.

#THE Chromebooks goes Black Screen !!! Kernel 4.4.0.86