LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2447|回复: 11

关于笔记本硬件驱动的问题。。。(已解决)

[复制链接]
发表于 2007-11-15 01:07:52 | 显示全部楼层 |阅读模式
本着先装上系统再慢慢深入学习逐步优化的原则,目前已经在笔记本上安装好了系统,也配置好了KDE,可以应付日常应用,但由于不知道应该给硬件配置什么驱动,刚开始手动编译内核与显卡驱动都导致无法启动X,最后只好使用 genkernel,我自然是不了解它编了些什么,总之,现在是除了无线网卡,一切都正常了。
那么,我的问题有两个:
1,能否根据当前系统信息,从而反推 gentoo 加载了哪些内核驱动,再以此为根据手动编译内核?(主要是显卡、网卡、PCI-bus、电池支持等等)--声卡已通过 alsa-driver 搞定。

2,目前,无线网卡无法配置起来,参考过 google 搜索到的方法配置过 wireless-tools,但没有成功,lspci 显示无线网卡是一个未知设备,因此,尚不太清楚是配置出问题,还是无线网卡压根就没驱动起来,大家通常是如何做的?
 楼主| 发表于 2007-11-15 01:26:40 | 显示全部楼层
目前系统的 lspci 结果:

00:00.0 Host bridge: Intel Corporation Mobile Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile Integrated Graphics Controller (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Contoller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation Mobile LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation Mobile IDE Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation Mobile SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
04:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8055 PCI-E Gigabit Ethernet Controller (rev 12)
14:00.0 Network controller: Intel Corporation Unknown device 4229 (rev 61)
1c:03.0 CardBus bridge: O2 Micro, Inc. Unknown device 7136 (rev 01)
1c:03.2 Generic system peripheral [0805]: O2 Micro, Inc. Integrated MMC/SD Controller (rev 02)
1c:03.3 Mass storage controller: O2 Micro, Inc. Integrated MS/xD Controller (rev 01)
1c:03.4 FireWire (IEEE 1394): O2 Micro, Inc. Firewire (IEEE 1394) (rev 02)
回复 支持 反对

使用道具 举报

发表于 2007-11-15 02:29:35 | 显示全部楼层
只要你的笔记本不是杂牌子的
网上就应该有现成的配置文件
http://gentoo-wiki.com/Index:Hardware
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-11-15 11:02:30 | 显示全部楼层
谢谢,没在列表中找到对应的型号,可能是机型比较新,不过应该可以参考具有相同配置的其他牌子的型号来配置,不妨研究下。。或者:这个wiki会不断更新吗?过段时间可能会有?
回复 支持 反对

使用道具 举报

发表于 2007-11-15 12:34:22 | 显示全部楼层
这只是gentoo的
你还可以在网上再搜索一下

没有人有义务往wiki加什么内容,或者保持它内容的完整
大家都是志愿的
不能总期待别人的贡献
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-11-15 12:49:20 | 显示全部楼层
恩,关注中,谢谢
回复 支持 反对

使用道具 举报

发表于 2007-11-15 13:20:19 | 显示全部楼层
Post by ljx980645;1782563
目前系统的 lspci 结果:

00:00.0 Host bridge: Intel Corporation Mobile Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile Integrated Graphics Controller (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Contoller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation Mobile LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation Mobile IDE Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation Mobile SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
04:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8055 PCI-E Gigabit Ethernet Controller (rev 12)
14:00.0 Network controller: Intel Corporation Unknown device 4229 (rev 61)
1c:03.0 CardBus bridge: O2 Micro, Inc. Unknown device 7136 (rev 01)
1c:03.2 Generic system peripheral [0805]: O2 Micro, Inc. Integrated MMC/SD Controller (rev 02)
1c:03.3 Mass storage controller: O2 Micro, Inc. Integrated MS/xD Controller (rev 01)
1c:03.4 FireWire (IEEE 1394): O2 Micro, Inc. Firewire (IEEE 1394) (rev 02)


我当时配置内核的时候就是根据lspci的输出一个一个选择对应的内核模块,每次只更改一两个模块,直到所有的硬件都驱动起来,而且没有多余(我认为没有)的模块为止。
前后花了将近一周的时间,但也学到了不少东西。
如果你的时间充分,可以这么试试看。
回复 支持 反对

使用道具 举报

发表于 2007-12-19 21:29:43 | 显示全部楼层
声卡是怎么解决的,lz说说
回复 支持 反对

使用道具 举报

发表于 2007-12-20 15:51:47 | 显示全部楼层
用livecd进去 然后lsmod查看模块就是了啊
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-12-23 16:31:42 | 显示全部楼层
Post by newsky_;1797690
声卡是怎么解决的,lz说说


声卡是最容易解决的,我们平时装的大多都是 alsa 的驱动,一般步骤是这样的:
1, 在编译的内核中选中声卡支持,但不选任何声卡驱动(这个特别注意)。
2, 装好系统后,#emerge alsa-driver ,#emerge alsa-utils  (包的名称不知道有没记错,eix 查询一下就可以了),
    包里面带了很多驱动,其中匹配的是 hda-intel,可用 #ALSA_CARDS="hda-intel" emerge alsa-driver 来指定安装。
    但最好的方法当然是把 ALSA_CARDS="hda-intel" 写入到 make.conf 里啦,这样升级的时候就不会编译其他驱动。
3, 装好驱动要配置下,#alsaconfig,然后依指示做就可以了,结束时会提示说配置好了的。
4, 最后当然是要把声音服务加到启动服务中,#rc-update add alsasound default
我的理解是安装绝大多数声卡都是这个流程的,唯一不同的是,不同的声卡要在 make.conf 中指定与自身硬件匹配的驱动名称。
当然,不指定也是可以的,只是把所有的声卡驱动都装上而已,。。。到时候不要到处说 gentoo 编译软件太慢就可以了。。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表