- A unix system or a virtual image of it.
- Sources files UExxCxxx.zip example:ue40C8000.zip(I use this)
- Toolchain that is arm_v7_vfp_le_20091117.tgz
- native GCC for your linux version. (if you don't install it you get error 2 and error 127 gcc not found)
- ncurseslib for your linux version. (is necessary for the command menuconfig for configuring kernel options)
I use a vmvare image of last CentOS but it work on Ubuntu too.
Open terminal and get root access to avoid permissions problems
Code: Select all
su root
and type root password
On CentOS
Code: Select all
yum install subversion
On Ubuntu
Code: Select all
sudo apt-get subversion
Install native GCC
On CentOS
Code: Select all
yum install gcc
On Ubuntu
Code: Select all
sudo apt-get install gcc build-essential
Instal ncurseslib
On CentOS
Code: Select all
yum install ncurses-devel ncurses
On Ubuntu
Code: Select all
sudo apt-get install libncurses5-dev
Code: Select all
cd //opt
Code: Select all
svn checkout svn://svn.code.sf.net/p/samygo/code/develop/toolchains/T-VAL
Code: Select all
cd opt/T-VAL/
Code: Select all
mv arm_v7_vfp_le_20091117 arm_v7_vfp_le
Code: Select all
export PATH=$PATH:/opt/T-VAL/arm_v7_vfp_le/bin
Code: Select all
echo $PATH
---------------------------------------------------------------------------------------------------------------------------------------------------
The following instructions are for recompiling the kernel.
make src directory in opt
Code: Select all
mkdir src
Code: Select all
cp -r linux.tgz //opt/src/
Code: Select all
tar xzvf linux.tgz
unzip it and you get file .config.valdeuc
Code: Select all
unzip config_valdeuc.zip
Code: Select all
cp -r .config.valdeuc //opt/src/linux/
rename this files .config.valdeuc to .config.old
Code: Select all
mv .config.valdeuc .config.old
Code: Select all
cd opt/src/linux
Code: Select all
make ARCH=arm CROSS_COMPILE=arm_v7_vfp_le- oldconfig
make ARCH=arm CROSS_COMPILE=arm_v7_vfp_le- prepare
make ARCH=arm CROSS_COMPILE=arm_v7_vfp_le- prepare scripts
Code: Select all
make ARCH=arm CROSS_COMPILE=arm_v7_vfp_le- Image
Code: Select all
make ARCH=arm CROSS_COMPILE=arm_v7_vfp_le- menuconfig
You'll find your recompiled kernel in //opt/src/linux/arch/arm/boot/ as Image.