Building Linux kernel from OYO original sources
This page has been visited 56423 times.
On this page... (hide)
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
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 )
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
The orignal kernel builders had the toolchain located somewhere else.
We have to define where to find the toolchain on our compter.
and save .cross_compile
Now you can start the compile job
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/
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
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