User manual

5 Software Development
5.2. Linux Kernel
5.2.1. From Subversion Repository or Archive (old kernels)
The OnRISC uses 2.6 series Linux kernel. The source code for one of these kernels can be obtained
both from CD and from Subversion
41
repository at http://svn.visionsystems.de/. For the kernel
archive on the CD execute:
su
mount /dev/cdrom /mnt
exit
cd /home/user/projects
tar -xvjf /mnt/development/linux-2.6.33-OnRISC.tar.bz2
To check out the repository to your development host execute:
svn co svn://svn.visionsystems.de/linux-2.6.33-OnRISC/trunk linux-2.6.33-OnRISC/trunk
After extracting the kernel sources from the archive or checking out the repository execute
cd linux-2.6.33-OnRISC/trunk
to get to the kernels source tree, where the main Makefile is placed.
To configure the kernel via text based graphical user interface Ncurses
42
library must be installed
in the development version with all needed headers. After that execute:
make onrisc_ks8695_defconfig
make menuconfig
you’ll see the following menu as shown in Figure 2. Change kernel configuration according to your
needs and save the configuration. To compile the kernel execute:
make
43
The compiled kernel image zImage will be placed under
arch/arm/boot/zImage
41
http://subversion.tigris.org/
42
http://www.gnu.org/software/ncurses/ncurses.html
43
if your development host has more than one CPU core, you can use make -j to utilize all of you cores, that will
accelerate the compilation process
May 2014 OnRISC User Manual 33