⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1.txt

📁 关于Linux嵌入裁减的技术文档
💻 TXT
字号:
    
 全球中文linux第一门户  宝库首页 | 热门100 | 最新100 | 图书下载 | 一句话 | 网址大全 | linux论坛 | linux博客 | 友情链接 | 关于本站 | 收藏本站  
 
   
Linux宝库
为Linux加油
 搜索文章: 标题 作者   
  
 
 
 
 
编译内核实践篇
2004-04-23 15:18 pm
作者:linux宝库 (http://www.linuxmine.com)
来自:linux宝库 (http://www.linuxmine.com)
现存:http://www.linuxmine.com/1122.html
联系:linuxmine#gmail.com
分类:kernel
添加:陈绪


  
上一篇:linux内核分析
下一篇:编译内核的步骤

不明白?欢迎到 linux论坛 (http://bbs.linuxmine.com) 参加讨论!

从www.kernel.org上下载最新的内核源文件linux-2.4.20.tar.bz2,并于rh8上编译。
1. cp linux-2.4.20.tar.bz2 /usr/src
2. cd /usr/src
3. tar xvfj linux-2.4.20.tar.bz2
4. ln -sf linux-2.4.20 linux
5. cd /usr/src/linux
6. make mrproper
7. cd /usr/include/
9. ln -sf /usr/src/linux/include/asm-i386 asm
10. ln -sf /usr/src/linux/include/linux linux
11. ln -sf /usr/src/linux/include/scsi scsi
12. make menuconfig
13. make dep
14. make clean
15. make bzImage或make zImage
16. make modules
17. make modules_install
18. depmod -a
19. cp /usr/src/linux/System.map /boot/System.map-2.4.20
20. cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.4.20
21. cd /boot
22. ln -sf vmlinuz-2.4.20 vmlinuz
23. ln -sf System.map-2.4.20 System.map
24. /sbin/mkinitrd /boot/initrd-2.4.20.img 2.4.20
25. vi /etc/rc.sysinit,将keybdev替换成usbkbd,mousedev替换成usbmouse.
25. Grub启动, 在/etc/grub.conf中增加
title Red Hat linux (2.4.20)
root (hd0,0)
kernel /vmlinuz-2.4.20 ro root=/dev/hda2
Grub不需再次调用命令,自动生效。
重启以后就可以用新内核了。

over

make menuconfig的变化
(1) processor type and features
  删去
    symmetric multi-processing support
  增加
    MTTR (memory type range register)support. [*]

(2) general setup
  增加
    advanced power management BIOS support <*>, 然后选中以下7项
    parallel port support 中,增加 parallel port support <*>
(3) network devices中,在Ethernet (10 r 100M bit)中,选中3COM cards [*]
3c590/3c900 series <*>
Input Core Support中, 打开所有<*> (除了joystick) (这样就支持USB)
File Systems中,打开Ext3 journalling file system support <*>
DOS FAT fs <*>
MSDOS fs support <*>
vfat (windows-95) fs support <*>
Network File Systems
SMB file system support (to mount windows shares etc.) <*>
Native Language Support
选中
simplified chinese charset <*>
traditional chinese charset <*>
USB support
打开UHCI Alternate Driver (JE) support <*>
打开OHCI (Compaq, iMacs, OPTi, SiS, ALi, ... ) support <M>
USB Human Interface Devices (HID)
打开
USB Human Interface Device (full HID) support <M>
HID input layer support [*]
/dev/hiddev raw HID device support [*]
USB HIDBP Keyboard (basic) support <M>
USB HIDBP Mouse (basic) support <M>


UHCI (Intel PIIX4, VIA, ...) support (NEW) <*>
OHCI (COMPAQ, iMacs, OPTi, SiS, ALi, ...) support <*>

最新一次的改变:
2.4.20 make menuconfig的变化
(0) Code maturity level options
  增加
    [*] Prompt for development and/or incomplete code/drivers

(1) processor type and features
  删除
    symmetric multi-processing support

(1) General Setup
  删除
    [ ] ISA bus support

(1) Plug and Play configuration
  删除
    < > ISA Plug and Play support

(2) Block devices
  增加
    <*> Loopback device support
    <*> Network block device support
<*> RAM disk support
[*] Initial RAM disk (initrd) support

(2) IEEE 1394 (FireWire) support (EXPERIMENTAL)
  增加
    <M> IEEE 1394 (FireWire) support (EXPERIMENTAL) (NEW)
      <M> OHCI-1394 support (NEW)
      <M> Raw IEEE1394 I/O support (NEW)

(3) Network device support
  Ethernet (10 or 100Mbit)
  增加
    [*] 3COM cards
<*> 3 c590/3c900 series (592/595/597) "Vortex/Boomerang" support (NEW)
  删除
    [ ] EISA,VLB,PCI and on board controllers
  PCMCIA network device support
  删除
    [ ] PCMCIA network device support

(4) Input core support
  增加
    <*> Input core support
    <*> Keyboard support
    <*> Mouse support

(5) Character devices
  增加
    <M> Enhanced Real Time Clock Support

(6) FILE SYSTEMS
  增加
    <*> Ext3 journalling file system support
    <*> DOS FAT fs support
    <*> MSDOS fs support
    <*> VFAT (Windows-95) fs support
    <*> NTFS file system support
    <*> Network File Systems
      <*> SMB file system support (to mount Windows shares etc.)
        [*] Use a default NLS (NEW)
        将.config中的cp437改为cp936
    <*> Native language support
      <*> Simplified Chinese charset (CP936, GB2312) (NEW)

(7) Sound
  增加
    <*> Creative SBLive! (EMU10K1)
  删除
    < > Creative Ensoniq AudioPCI 97 (ES1371)

(8) USB support
  增加
    <*> Preliminary USB device filesystem
    <*> OHCI (Compaq, iMacs, OPTi, Sis, ALi, ...) support
    <M> USB Human Interface Device (full HID) support
      <*> HID input layer support
      <*> /dev/hiddev raw HID device support
    <M> USB HIDBP Keyboard (basic) support
    <M> USB HIDBP Mouse (basic) support


 


不明白?欢迎到 linux论坛 (http://bbs.linuxmine.com) 参加讨论! 

上一篇:linux内核分析
下一篇:编译内核的步骤

 

全文结束  
 
 
   论坛快速登录 
用 户 名:   
密  码:   
安全提问:  无安全提问 母亲的名字 爷爷的名字 你的出生城市 您的一位老师 您电脑的型号 最喜欢的餐馆 驾驶证的号码 
答  案:  
   
 
分类列表(共6011篇) 
编号 分类  文章数 
01:  技术动态 47 
02:  非技术类 72 
03:  基础知识 462 
04:  指令大全 258 
05:  shell 299 
06:  安装启动 270 
07:  xwindow 146 
08:  ntp 12 
09:  vpn 21 
10:  输入法类 9 
11:  美化汉化 65 
12:  网络配置 309 
13:  存储备份 8 
14:  杂项工具 86 
15:  编程技术 217 
16:  网络安全 107 
17:  kernel 80 
18:  速度优化 23 
19:  apache 361 
20:  email 241 
21:  ftp服务 152 
22:  cvs 39 
23:  proxy 35 
24:  samba 86 
25:  bind 62 
26:  iptables 171 
27:  集群 31 
28:  nfs 5 
29:  oracle 225 
30:  数据库理论 106 
31:  mysql 207 
32:  postgresql 74 
33:  ldap 30 
34:  网络基础 56 
35:  笑话 64 
36:  python 54 
37:  perl 240 
38:  php 33 
39:  dhcp 15 
40:  多媒体 78 
41:  eclipse 13 
42:  vi 40 
43:  emacs技术 13 
44:  nis技术 33 
45:  ssh 24 
46:  html技术 36 
47:  drivers 81 
48:  xml 49 
49:  办公自动化 26 
50:  PAM认证 11 
51:  zope 21 
52:  java/jsp 267 
53:  Gentoo/lFS 10 
54:  bsd 34 
55:  vc 34 
56:  windows 224 
57:  solaris 21 
58:  debian 68 
59:  灾难恢复 9 
60:  quota 17 
61:  网络监控 24 
62:  rpm 33 
63:  IBM 3 
64:  学习方法 50 
65:  手机 4 
66:  subversion 7 
67:  discuz 3 
 
 
  
Powered by: 
  魏琼 陈绪 陈楚楚
Build: 20060711    linux宝库
? 2004 - 2006 版权所有
www.linuxmine.com  
 
 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -