[i=s] 本帖最后由 kantian 于 2009-5-11 12:27 编辑 [/i]
成功编译内核后的喜与悲
喜~~~~~
玩linux半年,没正经编译过啥东东,却倒腾出了内核,狂喜,赞自己一个,
kantian@kantian:~$ uname -a
Linux kantian 2.6.28.8-default1 #1 SMP Mon May 11 00:02:28 CST 2009 i686 GNU/Linux
kantian@kantian:~$ cat /etc/issue
Debian GNU/Linux squeeze/sid \n \l
悲~~~~~
看着英文就发怵的我看到“How To Compile A Kernel - The Debian (Sarge) Way”里那句:It's a good idea to use the configuration of your current working kernel as a basis for your new kernel. 就就没做其他选项的设置,匆忙上马开始编译,没能实现我本来想做的内核精简(我以为那样就能精简的)。用了大半天,倒腾出了的不是自己要得,感觉相当的悲哀。
我的新内核已经可应用了,连启动都没觉着快起来,所以我还想在编译一次精简内核,可是我一看lsmod就晕,
期待那位DX给我点提示,看可以去掉那些(我不敢轻易动,听说有人就是因为乱减模块挂了的)
lsusb
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 0ac8:303b Z-Star Microelectronics Corp. ZC0303 WebCam
Bus 002 Device 002: ID 0461:4d03 Primax Electronics, Ltd Kensington Mouse-in-a-box
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
kantian@kantian:~$ lspci
00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 03)
00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 82)
00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 02)
03:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
kantian@kantian:~$
2009-5-11 07:23
window2.png
iMocu 于 2009-05-15 19:58:50发表:
真是恭喜LZ贺喜LZ
到现在我都还没有完全弄明白内核的编译呢
RedFire87 于 2009-05-15 11:26:16发表:
同上,不过随着学习的深入,一定会懂的
三尺非 于 2009-05-14 14:43:03发表:
没想过 要自己编译内核,也没看懂楼主写的东西,学习下。
hb006 于 2009-05-14 10:44:29发表:
在学习中!!!!
kantian 于 2009-05-11 12:26:13发表:
lsusb
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 0ac8:303b Z-Star Microelectronics Corp. ZC0303 WebCam
Bus 002 Device 002: ID 0461:4d03 Primax Electronics, Ltd Kensington Mouse-in-a-box
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
kantian@kantian:~$ lspci
00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 03)
00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 82)
00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 02)
03:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
kantian@kantian:~$
iceking 于 2009-05-11 11:45:35发表:
不知道你机器的配置怎么给你精简?
先关了IPV6再说。
traceble 于 2009-05-11 10:27:23发表:
关注