linux内核编译ppt,Linux内核编译与裁剪.ppt

Linux内核编译与裁剪

Linux内核编译与裁剪;主要内容;前言——Linux操作系统;一、Linux版本特点;;Linux内核历史;Linux 2.6内核特性;二、Linux内核移植准备;1 获取内核源码;各标记符的意义;2 获取SEP4020 Linux SDK源码;3 内核源码结构及Makefile分析;目录名;目录名;SEP4020 Linux2.6.16相关代码层次结构;(2)Linux Makefile分析;Linux的Makefile体系;(A)Makefile决定编译哪些文件;;内核配置时的三种定义;.config的作用;子目录中的Makefile;(B)Makefile如何编译这些文件;全局选项;局部选项;(C)Makefile如何连接文件;Makefile总结;4 内核Kconfig分析;;(1)Kconfig基本要素:config条目;例子;config关键字表示一个配置选项的开始FB_SEP4020_320_240是配置名称省略了前缀“CONFIG_”tristate表示变量类型,有五种类型:bool、tristate、string、hex和inttristate变量取值有3种:y、m、ntristate后面的字符串是提示信息depents on表示依赖关系,前提条件default 表示默认选项select 表示当config被选择后自动选中内容help 是帮助内容;(2)menu条目;例子;(3)choice条目;(4)comment条目;(5)source 条目;5 Linux内核配置选项;;1) Code maturity level options ;2)General setup 常规设置 ;;;;;;3)Loadable module support可加载模块支持 ;4)Block layer 块设备层 ;5)System Type;7)Kernel Features;10)Floating point emulation;12) Power management options;14)Device Driver;16)Profiling support;19)Cryptographic options;Device Driver菜单分析;;;;;;6 SEP4020相关Linux内核选项;;;(2).网卡驱动Device Driver->Network device support->Ethernet(10 or 100Mbit)->SEP4020 Ethernet support;(3).触摸屏驱动Device Driver->Character devices->sep4020 char drivers->sep4020 char device->sep4020 touchpad driver;;(4).RTC驱动Device Driver->Character devices->sep4020 char drivers->sep4020 char device->sep4020 rtc driver;(5).Lcd驱动(有三个地方)Device Driver->Graphics support->SEP4020 640*480 LCD support-> SEP4020 320*240 LCD support(根据不同分辨率选择,只能选择一个,不能同时选择);Device Driver->Graphics support->console display driver-support;Device Driver->Graphics support->logo configuration;(6).声卡驱动Device Driver->Sound->Sound card support->open sound system->SEP4020 UDA1341 driver;;(7).SD卡驱动Device Driver->MMC/SD Card support->sep4020 Multimedia Card Interface support;(8).文件系统驱动Linux能兼容各种形式的文件系统,包括yaffs、cramfs、nfs、VFAT fs、MSDOS fs、ext2(ext3)、proc、sys,这也是linux的一个很重要的特色之一。

下面是我们在嵌入式开发中常用到的一些文件系统形式:;Yaffs(for nand ,是个可读可写的文件系统)进入File system,选项配置如下图:注意:在Linux SDK3.0中有变化:;Cramfs(for nand,是个可读的文件系统,不可写)进入File system->Miscella

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值