Sei sulla pagina 1di 8

RDC RISC DSP Communication

R3210
32-BIT RISC M ICROPROCESSOR

Linux Kernel Build Up Flow

1.Extract source Codes

2. Change kernel settings

3.Build the kernel Image

4. Activate the new kernel

1
RDC RISC DSP Communication
32-BIT RISC M ICROPROCESSOR
R3210

Extract source codes

linux2425.sample.tar.gz and linux269.sample.tar.gz are the kernel source codes that got from the
Linux Kernel Archives http://www.kernel.org/.

linux2425.sample.tar.gz is to be run in Mandrake 9.0 environment, while linux269.sample.tar.gz in


Mandrake 10.0.

You have to login in supervisor mode first, and go to


Follow the steps to extract the files in your Linux system individually.
# cd /usr/src ------- in the Linux kernel source directory
# tar zxvf linux2425.sample.tar.gz ------ decompress file
# tar zxvf linux269.sample.tar.gz ------ decompress file

2
RDC RISC DSP Communication
32-BIT RISC M ICROPROCESSOR
R3210

Change kernel settings

The file .config keeps the working settings of CPU and peripheral drivers of the kernel. To change
the any kernel setting, you may type :
# cd linux2425 ----- (or cd linux269 for Linux v2.6.9 )
# cp .config-R8610 .config
# make menuconfig

The example is for Linux Kernel 2.4.25.


Flash Driver

3
RDC RISC DSP Communication
R3210
32-BIT RISC M ICROPROCESSOR

4
RDC RISC DSP Communication
R3210
32-BIT RISC M ICROPROCESSOR

386 Math emulation

5
RDC RISC DSP Communication
R3210
32-BIT RISC M ICROPROCESSOR

6
RDC RISC DSP Communication
R3210
32-BIT RISC M ICROPROCESSOR

MAC dri ver

Wireless support

7
RDC RISC DSP Communication
32-BIT RISC M ICROPROCESSOR
R3210

Build the kernel image

# cd /usr/src/linux2425.
# make dep bzImage ------ Build the kernel image

When the building process is completed, you shall see the message shows where kernel was generated.
In this example, it will be /usr/src/linux2425/arch/i386/boot/bzImage.

Acivate the new kernel

# cp /usr/src/linux2425/arch/i386/boot/bzImage /boot ------ copy kernel image to /boot


Edit the file /etc/lilo.conf, set the working kernel filename like :
image = /boot/bzImage
label = embedded
root = /dev/ram0
initrd = /boot/initrd

Then save the file, and reboot. The new kernel will be activated.

Potrebbero piacerti anche