You can use the "-j" flag to improve compilation time. If you have a dual core machine you can use "-j 3", for a quad core machine you can use "-j 6", and so on.

+

You can use the "-j" flag to improve compilation time. If you have a dual core machine you can use "-j 3", for a quad core machine you can use "-j 6", and so on. Also if your trying to rebuild an existing kernel, the proper .config file can be obtained from the raspberry pi using zcat /proc/config.gz > .config

=== Ubuntu ===

=== Ubuntu ===

apt-get install git gcc-arm-linux-gnueabi make ncurses-dev

apt-get install git gcc-arm-linux-gnueabi make ncurses-dev

Line 162:

Line 162:

Note: if /tmp/modules contains symlinks they will be followed and if they are recursive this is a problem. A safer way to copy is to use tar:

Note: if /tmp/modules contains symlinks they will be followed and if they are recursive this is a problem. A safer way to copy is to use tar:

Programming - programming languages that might be used on the Raspberry Pi.

Overview

First, you are going to get and build the linux kernel and its modules using a suitable compiler (a "cross-compiler" if you aren't building it on the same hardware you will be running it on) and then you are going to create a kernel image from the uncompressed kernel (Image) to place on the sd, along with the modules you build alongside it.

Kernel cross compilation

You can use the "-j" flag to improve compilation time. If you have a dual core machine you can use "-j 3", for a quad core machine you can use "-j 6", and so on. Also if your trying to rebuild an existing kernel, the proper .config file can be obtained from the raspberry pi using zcat /proc/config.gz > .config

crossdev should create a cross-toolchain using the latest stable versions of the required packages. If it fails, you can specify exact versions by removing the "-S" flag and adding the "--b", "--g", "--k" and "--l" flags.

OS X

The Kernel source requires a case-sensitive filesystem. If you do not have a HFS+ Case-sensitive partition that can be used, create a disk image with the appropriate format.
Ensure latest Xcode and command line tools are installed from Apple Developer Connection