Architectures/ARM/Building a Kernel for ARM
m (fix typo in export command)
|Line 24:||Line 24:|
'''''=(anydirectory) make modules_install'''''
Revision as of 16:22, 16 April 2011
First, grab a source code. wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-126.96.36.199.tar.bz2
Extract and install the package tar xjvf (tar.bz2 file)
You get a folder called linux-188.8.131.52. Change to that directory and edit the Makefile.
Inside the Makefile, change to the following:
ARCH ?= arm CROSS_COMPILE ?= (directory of the cross-compiler) For example, /home/username/Desktop/arm-2010.09/bin/arm-none-linux-gnueabi-
Next, make sure you have the defconfig file in your arch/arm/configs folder. You can then proceed with the command make (name of defconfig file)
After that, use make gconfig to open up the GUI configuration where you can choose to install specific drivers and such.
After saving the gconfig, you can use make uImage command to make the kernel for the ARM device.
To make the modules, you use the following commands:
INSTALL_MOD_PATH=(anydirectory) make modules_install