1.3.3 配置Linux内核
1、 进入Linux-2.6.29.1内核主目录,通过以下命令将2410的默认配置文件写到当前目录下的.config。S3C2410的配置和S3C2440差不多,,在这基础上进行修改。
make s3c2410_defconfig
2、 配置内核模块的功能,有几种方式可以进行界面选择:
make menuconfig(文本选单的配置方式,在有字符终端下才能使用)
make xconfig(图形窗口模式的配置方式,图形窗口的配置比较直观,必须支持Xwindow下才能使用)
make oldconfig(文本配置方式,在原内核配置的基础修改时使用)
这里使用make menuconfig命令。
3、[*]Enable loadable module support--->
[*]Forced module loading
[*]Module unloading
4、System Type--->
S3C2410 Machines--->
[*]SMDK2410/A9M2410选上 其余不选
S3C2440 Machines--->
[*]SMDK2440
[*]SMDK2440 with S3C2440 CPU module,其余不选
其余的Machines下选项全部不选(如2400,2412,2442,2443)
5、Kernel Features--->
[*]Use the ARM EABI to compile the kernel
注:由于所使用的的交叉编译arm-linux-gcc-4.3.2是符合EABI标准交叉编译器,对于浮点运行会预设硬浮点运算FPA(Float Point Architecture),而没有FPA的CPU,比如SAMSUNG S3C2410/S3C2440,会使用FPE(Float Point Emulation 即软浮点),这样在速度上就会遇到极大的限制,使用EABI(Embedded Application Binary Interface)则可以对此改善处理,ARM EABI有许多革新之处,其中最突出的改进就是Float Point Performance,它使用Vector Float Point(矢量浮点),因此可以极大提高涉及到浮点运算的程序。
参考:http://www.hotchn.cn/bbs/viewthread.php?tid=130&extra=page%3D1
6、Boot options-?
noinitrd root="/dev/mtdblock2" init="/linuxrc" console=ttySAC0
7、Userspace binary formats--->
[*]Kernel support for ELF binaries
其它的可以全部不选。
8、 选择支持yaffs2文件系统
Filesystem--->
Miscellaneous filesystems--->
<*>YAFFS2 file system support
[*] Lets Yaffs do its own ECC
Native language support
<*> Codepage 437 (United States,Canada)
<*>Simplified Chinese charset(GB2312)
<*>Traditional Chinese charset(Big5)
<*>NLS ISO 8859-1(Latin1:Western European Languages)
<*>NLS UTF-8
9、Device Drivers--->
Graphics support--->
<*>Support for frame buffer devices--->
[*]Enable firmware EDID
[*]Enable Video Mode Handling Helpers
<*>S3C2410 LCD framebuffer support
Console display driver support--->
<*>Framebuffer Console support
[*]Select compiled-in fonts
[*] VGA8x8 font
[*]VGA8x16 font
[*]Bootup logo--->
[*]Standard black and white Linux logo
[*]Standard 16-color Linux logo
[*]Standard 224-color Linux logo
在Bootup logo--->选择的那几项,将会在系统启动时在液晶上显示开机logo。
本文来自: http://www.zdh1909.com/html/MCS51/4393_12.html