kernel 4.9 is currently compiling, but it takes a hell of time to complete on the n900.
# Install build deps: sudo apt-get -y install build-essential crossbuild-essential-armhf u-boot-tools # Build options: kerneldir=~/tmp/linux # where kernel sources located targetdir=~/tmp/kernel # where to install kernel and modules MAKEOPTS="-j4" # number of CPU cores you have compiler=/usr/bin/arm-linux-gnueabi- arch=arm # Configure kernel: cd $kerneldir/ && make mrproper && make ARCH=$arch CROSS_COMPILE=$compiler menuconfig # Build kernel: make $MAKEOPTS ARCH=$arch CROSS_COMPILE=$compiler zImage modules omap3-n900.dtb # Install: cat arch/arm/boot/zImage arch/arm/boot/dts/omap3-n900.dtb > zImage && make $MAKEOPTS ARCH=$arch CROSS_COMPILE=$compiler INSTALL_MOD_PATH=$targetdir INSTALL_MOD_STRIP=1 modules_install && mkimage -A arm -O linux -T kernel -C none -a 80008000 -e 80008000 -n zImage -d zImage uImage && mkdir -p $targetdir/boot && cp -v zImage uImage $targetdir/boot/ && echo OK || echo FAIL