原创 Compiling the Linux kernel

2009-3-1 10:40 1785 3 3 分类: MCU/ 嵌入式

First CD-ROM directory "Linux source code and tools" of the Linux kernel packet copy to a directory, into the head Recorded, and then extracting the Linux source code package, the command is:


tar –zxvf YLP2440_linux-2.6.12.tar.gz


点击看大图

Edit Makefile file:

Decompression into the directory, run the command:


vi Makefile


Find "CROSS_COMPILE =" This line, that it be replaced CROSS_COMPILE 
= / usr/local/arm/3.4.1/bin/arm-linux- (or your system installed on ARM-Linux-gcc compiler path)


点击看大图


Set up again after the compiler to preserve exit.


Configure the kernel


Enter the command: make menuconfig 
Column to enter the configuration of the "Load an Alternate Configuration File"


点击看大图


Enter the profile name and enter kernel_YLP2440.cfg, in the main menu and select Exit Exit to save your settings.


点击看大图


点击看大图


Compiling the kernel


Then enter the command make zImage


点击看大图


Compiled after the end of may at arch / arm / boot directory to be compressed linux kernel image zImage.


点击看大图


Generate kernel image after the programmer can attempt to test whether or not to run, it is noteworthy that the premise of the test cores are burning a good root file system, a separate programmer kernel image is not working.

文章评论0条评论)

登录后参与讨论
我要评论
0
3
关闭 站长推荐上一条 /2 下一条