OYO

Build Kernel

Building Linux kernel from OYO original sources


This page has been visited 56423 times.

If you like - you can view this pages in brown green orange blue


1.  Getting and extracting the original sources.

You can find OYO original kernel and U-boot sources at http://www.thalia.de/oyo_src/SG060B00_V009.tgz

Download this file and save it at some appropriate place.
( I have it under /usr/local/source/oyo )

Open a terminal window and cd into this directory

cd /usr/local/source/oyo

Now extract the sources.

tar -z -xvf SG060B00_V009.tgz

You will find two new subdirectories.

  • SG060B00_V009/s3c-linux-2.6.21 ( Here is the kernel )
  • SG060B00_V009/s3c-u-boot-1.1.6 ( Here is u-boot )

2.  Build the kernel

To compile the kernel, you need a toolchain for compiling ARM Software.
I'm using the tollchain and setup as described in build environment

Before we can use it, we need to tell the environment where everything is located.

$ . /usr/local/angstrom/arm/environment-setup

Go to the kernel subdirectory

cd SG060B00_V009/s3c-linux-2.6.21

The orignal kernel builders had the toolchain located somewhere else.
We have to define where to find the toolchain on our compter.
edit .cross_compile
change

/usr/local/arm/4.2.2-eabi/usr/bin/arm-linux-

to

/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-

and save .cross_compile

Now you can start the compile job

 
make 

After a while you should see something like

 
LD      arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready

now a zImage of the kernel is in arch/arm/boot/

(How to boot your new kernel from SD Card)


3.  Configuring kernel with MENUCONFIG

Every linux kernel has a configuration frontend - menuconfig

So if you would like to add or remove drivers or change or just check kernel parameters, MENUCONFIG is an easy and convenient way to read and change all the settings.

First let's make sure we have all the required packages.

sudo apt-get install libncurses5-dev

Now just type

make menuconfig

Sorry, this page has been destroyed by a stuipd spammer. The rest of the text was loast. I'll have to get it back from backup

Sorry