快速业务通道

Kernel内核的裁剪及移植(四)

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-04-14
八、配置和编译内核 到现在,一个简单的内核就准备好了,我们还需要做一些配置,然后编译,内核才能 正常使用. 在内核源代码的根目录下运行make menuconfig命令,进入配置界面: [root@localhost gspca]# cd ../../../.. [root@localhost linux-2.6.24.4]# make menuconfig

1、选择硬件系统 做如下选择: System Type ---> S3C2410 Machines ---> [*] SMDK2410/A9M2410 [*] IPAQ H1940 [*] Acer N30 [*] Simtec Electronics BAST (EB2410ITX) [*] NexVision OTOM Board [*] AML M5900 Series [*] Thorcom VR1000 [*] QT2410

其他的:

S3C2400 Machines ---> S3C2412 Machines ---> S3C2440 Machines ---> S3C2442 Machines ---> S3C2443 Machines ---> 上面的四个选项下的所有选项都不要选,以减小内核体积. 2、配置LCD驱动 做如下选择: Device Drivers ---> Graphics support ---> <*> Support for frame buffer devices ---> <*> S3C2410 LCD framebuffer support

[*] Bootup logo --->

--- Bootup logo [*] Standard black and white Linux logo [*] Standard 16-color Linux logo [*] Standard 224-color Linux logo

这样,在内核启动的时候,在LCD的左上角就会出现Linux的LOGO,一只小企鹅.

3、配置NAND Flash驱动 做如下选择: Device Drivers ---> <*> Memory Technology Device (MTD) support ---> <*> NAND Device Support ---> <*> NAND Flash support for S3C2410/S3C2440 SoC

4、配置网卡驱动

做如下选择:

Device Drivers ---> [*] Network device support ---> [*] Ethernet (10 or 100Mbit) ---> --- Ethernet (10 or 100Mbit) -*- Generic Media Independent Interface device support <*> ASIX AX88796 NE2000 clone support [ ] ASIX AX88796 external 93CX6 eeprom support < > SMC 91C9x/91C1xxx support < > DM9000 support < > Broadcom 440x/47xx ethernet support
Empire CMS,phome.net

5、配置文件系统 做如下配置,以支持CRAMFS文件系统和YAFFS文件系统,为了调试方便,也 选上NFS文件系统的支持: File systems ---> Miscellaneous filesystems ---> <*> YAFFS2 file system support -*- 512 byte / page devices [ ] Use older-style on-NAND data format with pageStatus byte [ ] Lets Yaffs do its own ECC -*- 2048 byte (or larger) / page devices [*] Autoselect yaffs2 format [ ] Disable lazy loading [ ] Turn off wide tnodes [ ] Force chunk erase check [*] Cache short names in RAM < > Journalling Flash File System v2 (JFFS2) support <*> Compressed ROM file system support (cramfs)

[*] Network File Systems --->

--- Network File Systems <*> NFS file system support [*] Provide NFSv3 client support [*] Provide client support for the NFSv3 ACL protocol extension [ ] Provide NFSv4 client support (EXPERIMENTAL) [*] Allow direct I/O on NFS files < > NFS server support [*] Root file system on NFS

6.配置摄像头驱动

要内核支持中星的摄像头 Device Drivers ---> Multimedia devices ---> Video For Linux

USB support --->

Support for Host-side USB ---USB Host Controller Drivers OHCI HCD support

USB SPCA5XX Sunplus/Vimicro/Sonix jpeg Cameras

这样,内

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号