我市新手,怎样编译一个适合自己机器和应用的内核???
主要是想把自己用不到的东西去掉,尽量简化,提高运行速度和效率。不知道从何下手,也不清楚应该遵循哪些规则,又不想走太多的弯路,我想这也是众多新手的一个难题吧,就只能在这里请教各位大侠了。
在网上查到的资料也没有比较系统的介绍这方面的东东,如果谁有,还请指点一二。
谢谢! 1) compile a workable kernel
2) reduce one option by one. read Configure.help carefully. ask question if u can not understand them.
3) adjust compiler option. there is a good post on that.
4) measure u improvement.
u at least try 20 times. good luck.
Re: 我市新手,怎样编译一个适合自己机器和应用的内核???
主要是想把自己用不到的东西去掉,尽量简化,提高运行速度和效率。不知道从何下手,也不清楚应该遵循哪些规则,又不想走太多的弯路,我想这也是众多新手的一个难题吧,就只能在这里请教各位大侠了。
在网上查到的资料也没有比较系统的介绍这方面的东东,如果谁有,还请指点一二。
谢谢!
http://bbs.sjtu.edu.cn/bbs0an?path=/groups/GROUP_3/GNULinux/linux/DB5252D27 these posts are very good. i mark u post now. 3ku
:mrgreen: 正在啃英文版kernel howto......
晕 bit by bit, u will know enough knowledge.
if u have questions. post here and we can discuss. 我把/usr/src下的linux-2.4.0目录重新复制了一份,还是放在src下,命名为linux-2.4.0-030825,然后在这里边进行编译可以吗?现在正在执行make zImage,不过心里还是不踏实。
另外想问问,make xconfige的时候,在不影响正常应用的前提下,应该是选择Y的越少,编译出来的内核就会小点,此内核占用的内存也会有所减少,不知道是不是这样的。
配置的时候有太多太多的选项不明白什么意思,看help也是一头雾水,只敢改了几个自己比较有把握的,唉,听天由命吧。
GOD BLESS ME!!! 完成,提示说:
System is too big,Try using bzImage or modules
make(1):***zImage error 1
make(1):Leaving directory '/usr/src/linux-2.4.20-8/arch/i386/boot'
make:*** zImage error 2
难道是有错误了?该怎么办呢? 在编译的时候总是提示:
warning:clock skew detected,your build may be imcompleted.
what does it mean??? 请教:
make modules:
make: *** Error 1
make: Leaving directory `/usr/src/linux-2.4.20-8/drivers/net'
make: *** Error 2
make: Leaving directory `/usr/src/linux-2.4.20-8/drivers'
make: *** Error 2
make modules_install:
cp: stat‘dummy.o’失败: 没有那个文件或目录
make: *** Error 1
make: Leaving directory `/usr/src/linux-2.4.20-8/drivers/net'
make: *** Error 2
make: Leaving directory `/usr/src/linux-2.4.20-8/drivers'
make: *** Error 2
这个可能是哪方面的问题? 使用make bzImage来产生内核,zImage只适用于小内核。
不一定是Y越少就小,要根据自己的需要来设置。我的全是Y,基本不用模块,当然我会留kmod。 :lol:
呵呵,和我一样。
这个kmod是什么?
多谢 我把/usr/src下的linux-2.4.0目录重新复制了一份,还是放在src下,命名为linux-2.4.0-030825,然后在这里边进行编译可以吗?现在正在执行make zImage,不过心里还是不踏实。
另外想问问,make xconfige的时候,在不影响正常应用的前提下,应该是选择Y的越少,编译出来的内核就会小点,此内核占用的内存也会有所减少,不知道是不是这样的。
配置的时候有太多太多的选项不明白什么意思,看help也是一头雾水,只敢改了几个自己比较有把握的,唉,听天由命吧。
GOD BLESS ME!!!
u had better download one kernel from www.kernel.org. if u copy thatdir to a new dir. do make distclean before u do anything.
use make bzImage
choose what u need everyday Y; choose what u need sometime as M, other N.
choose some to N and see what happens, if u do not know what it means, post it here.
good luck 完成,提示说:
System is too big,Try using bzImage or modules
make(1):***zImage error 1
make(1):Leaving directory '/usr/src/linux-2.4.20-8/arch/i386/boot'
make:*** zImage error 2
难道是有错误了?该怎么办呢?
use make bzImage instead of make zImage
I use make zImage and zsrec only for embedded systems 在编译的时候总是提示:
warning:clock skew detected,your build may be imcompleted.
what does it mean???
u system clock is skewed. do make distclean before u do anything after u copy it.