View Single Post
Posts: 3 | Thanked: 16 times | Joined on Jun 2010
#19
Originally Posted by DennisHeine View Post
kernel 4.9 is currently compiling, but it takes a hell of time to complete on the n900.
It takes about 10 minutes to build kernel for N900 on my Debian PC.

Here are some commands that you may be interested in. I use them to build my own kernel for Maemo Leste:

Code:
# 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