|
|

楼主 |
发表于 2007-1-2 15:03:10
|
显示全部楼层
解决了!
还是内核编译的原因,找了个代理上了趟gentoo-wiki,找到了个“HARDWARE Intel 945G”,虽然我网卡的配置跟里面说的一样,但是照它的做了,还真就好了!!!看来可能是内核里其它硬件配置的问题。
下面结合gentoo-wiki的“HARDWARE Intel 945G“和我的具体实现说说怎么做(不仅仅是网卡),希望对用到Intel 945G的教育网兄弟有所帮助。
原文:http://gentoo-wiki.com/HARDWARE_Intel_945G
以下是在内核gentoo-sources-2.6.12-r9实现的。
显卡:
- Linux Kernel Configuration: Character devices
- Device Drivers --->
- Character devices --->
- <M> /dev/agpgart ( AGP Support )
- <M> Intel 440LX/BX/GX, I8xx and E7x05 chipset support
- <M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
- <M> Intel 830M, 845G, 852GM, 855GM, 865G
- <M> i915 driver
复制代码
注:以上配置适合xorg-x11 7.0以上版本(相信没人还在用7.0以下的吧)
我为了方便,直接把上面的除了i915 driver之外全部编译进内核了,i915 driver只让编译成模块,所以为了让它自己加载,加上:
- echo "i915" >> /etc/modules.autoload.d/kernel-2.6
复制代码
- Linux Kernel Configuration: Graphics support
- Device Drivers --->
- Graphics support --->
- <*> Support for frame buffer devices
- <*> VESA VGA graphics support
- VESA driver type (vesafb-tng) --->
- (X) vesafb-tng
- (1024x768@75) VESA default mode
- Console display driver support --->
- VGA text console
- [ ] Video mode selection support
- <*> Framebuffer Console support
- [ ] Select compiled-in fonts
复制代码
-----------------------------------
SATA:http://gentoo-wiki.com/HARDWARE_SATA
抱歉,本想也把它译出来,可是已经找不到可以上的代理了。其实我自己也想看看的
-----------------------------------
以太网:
- Linux Kernel Configuration: Networking support
- Device Drivers --->
- Networking support --->
- [*] Networking support
- [*] Network device support
- <M> Dummy net driver support
- Ethernet (1000 Mbit) --->
- <M> Broadcom Tigon3 support
- < > Broadcom NetXtremeII support
复制代码
同样,为了方便,我也把以上选项都编进内核了,如果按以上做法又想启动是自动加载网卡模块,则同样需要:
- echo "tg3" >> /etc/modules.autoload.d/kernel-2.6
复制代码
--------------------------------------
声卡:
声卡使用snd-hda-intel驱动。原文作者发现即使没有Sequencer和OSS的支持也有很好的效果。
- Linux Kernel Configuration: Sound
- Device Drivers --->
- Sound --->
- <M> Sound card support
- Advanced Linux Sound Architecture --->
- <M> Advanced Linux Sound Architecture
- < > Sequencer support
- < > OSS Mixer API
- < > OSS PCM (digital audio) API
- PCI devices --->
- <M> Intel HD Audio
- Open Sound System --->
- < > Open Sound System (DEPRECATED)
复制代码
如果把snd-hda-intel编译进内核(指Intel HD Audio),则驱动可能无法在所有的主板上正确的工作。
注:我的机器上没有音响设备,所以无法知道以上配置的效果。
--------------------------------------
USB:
除了usbcore我们还需要ehci-hcd和uhci-hcd驱动
- Linux Kernel Configuration: USB core support
- Device Drivers --->
- USB support --->
- <*> Support for Host-side USB
- [*] USB device filesystem
- <*> EHCI HCD (USB 2.0) support
- <*> UHCI HCD (most Intel and VIA) support
- <*> USB Mass storage support
复制代码
最后一个选项是假设你有USB存储设备才用到的,像u盘,移动硬盘,移动光驱等(相信没人不会不用到吧)
如果你还有usb键盘或鼠标,那还需:
- Linux Kernel Configuration: USB HID support
- Device Drivers --->
- USB support --->
- <*> USB Human Interace Device (full HID) support
- [*] HID input layer support
复制代码
------------------------------------
Hardware Sensors :http://gentoo-wiki.com/HARDWARE_Sensors
很抱歉,这个我还没弄清楚是干什么用的,惭愧……
以上只是945G芯片组硬件方面的配置,第一次编译内核不要忘了要先make defconfig再make menuconfig选上文件系统和按以上的做法配置硬件,最后还有个cpu要选对,这样编译出来的内核应该就没问题了(不敢说最优!),至少在我机器上没问题了。
我对硬件认识甚少,对于内核配置也只是新手,什么地方说得不好,希望各位大侠多多指正补充! |
|