LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: zhou3345

[服务新手] gentoo-sources内核.config文件配置服务

[复制链接]
发表于 2009-10-11 08:21:28 | 显示全部楼层
编译了几遍,开始使用的是cjk-sources,2.6.31的,编译好后没办法启动。又使用gentoo-sources编译,能够正常启动,还是不能使用USB。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-11 12:45:39 | 显示全部楼层
Post by oydl82;2035233
编译了几遍,开始使用的是cjk-sources,2.6.31的,编译好后没办法启动。又使用gentoo-sources编译,能够正常启动,还是不能使用USB。

请问你在其它系统下能正常使用usb吗?是不是在bios中没有打开usb设备?

根据这个页面
http://www.sun.com/bigadmin/hcl/data/components/details/2907.html
得知ati sb400的usb驱动是包含在 ohci 驱动中的,如果内核中有 ohci 的支持,应该是没有问题的。

其实你自己的这个帖子http://www.linuxsir.cn/bbs/thread348329.html已经提到这个问题了 ,请仔细看你贴出来的硬件信息,可以发现:
  1. 00:13.0 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller (rev 80) (prog-if 10 [OHCI])
  2.     Kernel driver in use: ohci_hcd
  3. 00:13.1 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller (rev 80) (prog-if 10 [OHCI])
  4.     Kernel driver in use: ohci_hcd
  5. 00:13.2 USB Controller: ATI Technologies Inc IXP SB400 USB2 Host Controller (rev 80) (prog-if 20 [EHCI])
  6.     Kernel driver in use: ehci_hcd
复制代码

如果以上驱动 ohci/ehci都编译进内核,而usb还是不能使用的话,就需要从别的地方去找原因了。
回复 支持 反对

使用道具 举报

发表于 2009-10-11 15:47:20 | 显示全部楼层
非常感谢,虽然还是没有搞定。
其实使用gentoo的minimal启动都能够识别usb。可是自己编译后却不行。以前在Debian里没有出现这个问题的。自己再弄几天看看吧。
回复 支持 反对

使用道具 举报

发表于 2009-10-11 22:44:10 | 显示全部楼层
硬件信息:
  1. * processors
  2.         o Intel Core 2 Duo (Merom) T5870
  3. * Chipset
  4.         o Mobile Intel® GM45 Express CS/ICH 9M-E
  5. * graphics adapters
  6.         o Intel Graphics Media Accelerator 4500MHD
  7.         o ATI Mobility Radeon HD 3470 discrete graphics card
  8.         o Both of them (Switchable Graphics Card Technology)
  9. * displays
  10.         o 14.1" wide: WXGA (1280 x 800, 107DPI, 185+ nit)
  11. * System Memory
  12.         o 2X1GB of PC2-8500 1066MH z DDR3
  13. * Harddrive
  14.         o 160GB 5400RPM SATA HDD
  15. * Intel Gigabit Ethernet Controller
  16. * MiniPCI Express slot 1
  17.         o Intel WiFi Link 5100 (1x2AGN)
  18. * 1 CardBus slot (Type 2)
  19. * ExpressCard/54 slot
  20. * Memory reader
  21. * IBM Embedded Security Subsystem 2.0
  22. * IBM Active Protection System
  23. * Bluetooth
  24. * UltraNav (TrackPoint / Touchpad combo)
  25. * Integrated camera
  26. * IEEE1394 Firewire
复制代码


lspci:
  1. 00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
  2. 00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
  3. 00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
  4. 00:03.0 Communication controller: Intel Corporation Mobile 4 Series Chipset MEI Controller (rev 07)
  5. 00:19.0 Ethernet controller: Intel Corporation 82567LM Gigabit Network Connection (rev 03)
  6. 00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
  7. 00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
  8. 00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
  9. 00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
  10. 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
  11. 00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
  12. 00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
  13. 00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 03)
  14. 00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 03)
  15. 00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
  16. 00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
  17. 00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
  18. 00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
  19. 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
  20. 00:1f.0 ISA bridge: Intel Corporation ICH9M-E LPC Interface Controller (rev 03)
  21. 00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller (rev 03)
  22. 00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
  23. 03:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection
  24. 15:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ba)
  25. 15:00.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 04)
  26. 15:00.2 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 21)
  27. 15:00.3 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev ff)
  28. 15:00.4 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 11)
  29. 15:00.5 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 11)
复制代码


只用intel的集成显卡,开kms
蓝牙也不使用
使用ext4文件系统

另:本人用的archlinux,只是想参考下lz给出的配置文件
回复 支持 反对

使用道具 举报

发表于 2009-10-24 20:31:11 | 显示全部楼层
汗,lz已经停止提供服务了么...
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-24 22:22:35 | 显示全部楼层
@crazyatom 兄弟请用198楼的配置。因为你的机器和197楼的机器基本一致,所以没有另外配了。很抱歉忘记说明了。

如果另外有特殊需要请说明。
回复 支持 反对

使用道具 举报

发表于 2009-10-30 06:02:45 | 显示全部楼层
zhuo大侠,能不能帮我配置一下啊。因为种种需要,就是经常编译内核或者模块重启测试等等原因,所以我选择虚拟机了。(其实我本机也装了,不过是ubuntu)现在渐渐地喜欢gentoo的高度可定制。

我使用的VB作为虚拟机的,自己编译的不能启动啊,所以用genkernel,但是那个太麻烦了,也太大了,要编译好久好久。太浪费效率了。所以想从您这里求一份最简单能启动能使用的配置就好了。主要是显示驱动+usb驱动+硬盘驱动+网络驱动,什么FAT文件系统等等的,我自己也就可以加。主要是前面一堆配置,我都不太懂。

硬件信息如下,是在虚拟机里面用lspci -v得到的,主机的CPU是intel的E5300。如需其他,还请指点!先谢过大侠了。

00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
        Flags: fast devsel

00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
        Flags: bus master, medium devsel, latency 0

00:01.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01) (prog-if 8a [Master SecP PriP])
        Flags: bus master, fast devsel, latency 0
        [virtual] Memory at 000001f0 (32-bit, non-prefetchable)
        [virtual] Memory at 000003f0 (type 3, non-prefetchable)
        [virtual] Memory at 00000170 (32-bit, non-prefetchable)
        [virtual] Memory at 00000370 (type 3, non-prefetchable)
        I/O ports at d000
        Kernel driver in use: PIIX_IDE
        Kernel modules: ata_piix

00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter (prog-if 00 [VGA controller])
        Flags: bus master, fast devsel, latency 0
        Memory at e0000000 (32-bit, prefetchable) [size=16M]
        Expansion ROM at <unassigned> [disabled]

00:03.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 40)
        Subsystem: Advanced Micro Devices [AMD] PCnet - Fast 79C971
        Flags: bus master, medium devsel, latency 64, IRQ 11
        I/O ports at d020
        Memory at f0000000 (32-bit, non-prefetchable) [size=4K]
        Memory at f0080000 (32-bit, non-prefetchable) [size=512K]
        Kernel driver in use: pcnet32
        Kernel modules: pcnet32

00:04.0 System peripheral: InnoTek Systemberatung GmbH VirtualBox Guest Service
        Flags: bus master, fast devsel, latency 0, IRQ 10
        I/O ports at d040
        Memory at f0400000 (32-bit, non-prefetchable) [size=4M]
        Memory at f0800000 (32-bit, prefetchable) [size=16K]

00:05.0 Multimedia audio controller: Intel Corporation 82801AA AC'97 Audio Controller (rev 01)
        Subsystem: Intel Corporation Device 0000
        Flags: bus master, medium devsel, latency 64, IRQ 9
        I/O ports at d100 [size=256]
        I/O ports at d200
        Kernel driver in use: Intel ICH
        Kernel modules: snd-intel8x0

00:06.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB (prog-if 10 [OHCI])
        Flags: bus master, fast devsel, latency 64, IRQ 5
        Memory at f0804000 (32-bit, non-prefetchable) [size=4K]
        Kernel driver in use: ohci_hcd
        Kernel modules: ohci-hcd

00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
        Flags: bus master, medium devsel, latency 0, IRQ 9
        Kernel modules: i2c-piix4

00:0b.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (prog-if 20 [EHCI])
        Flags: bus master, fast devsel, latency 64, IRQ 11
        Memory at f0805000 (32-bit, non-prefetchable) [size=4K]
        Kernel driver in use: ehci_hcd
        Kernel modules: ehci-hcd
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-30 09:29:29 | 显示全部楼层
@uusky:
vbox装gentoo请看这篇文章:
http://en.gentoo-wiki.com/wiki/Virtualbox_Gentoo_as_Guest

按文章修改了一下配置,不知道用不用的上,请测试:)

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2009-11-3 16:18:00 | 显示全部楼层
救星啊,一直对内核的配置保持敬畏感,最好是有对选项的选择原则的解释,可以理解这些选项是用来做什么的,网上也有一些相关的内容,但是看了一些也还是一知半解。

我的硬件信息:
处理器名称:Mobile DualCore Intel Core 2 Duo T7250, 2133 MHz (11 x 194)
主板名称:Dell Latitude D630
主板芯片组:Intel Crestline-GM GM965
系统内存:2037 MB (DDR2 SDRAM)
BIOS 类型:Phoenix (07/14/09)
通讯端口:通讯端口 (COM1)
显示卡:Mobile Intel(R) 965 Express Chipset Family (384 MB)
显示卡:Mobile Intel(R) 965 Express Chipset Family (384 MB)
3D 加速器:Intel GMA X3100
声卡:SigmaTel STAC9205X @ Intel 82801HBM ICH8M - High Definition Audio Controller [B-0]
IDE 控制器:Intel(R) ICH8M 3 port Serial ATA Storage Controller - 2828
IDE 控制器:Intel(R) ICH8M Ultra ATA Storage Controllers - 2850
硬盘驱动器:WDC WD1200BEVT-75ZCT2 (111 GB, IDE)
光盘驱动器:TEAC DVD-ROM DV28EV (8x/24x DVD-ROM)
网络适配器:Broadcom NetXtreme 57xx Gigabit Controller
网络适配器:Dell Wireless 1395 WLAN Mini-Card
调制解调器:Conexant HDA D330 MDC V.92 Modem
防火墙控制器:O2Micro OHCI Compliant IEEE1394 Host Controller


lspci信息:
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02)
00:1c.5 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 6 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
03:01.0 CardBus bridge: O2 Micro, Inc. Cardbus bridge (rev 21)
03:01.4 FireWire (IEEE 1394): O2 Micro, Inc. Firewire (IEEE 1394) (rev 02)
09:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5755M Gigabit Ethernet PCI Express (rev 02)
0c:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g (rev 01)

/boot ext2
/ ext3
另外支持ntfs,vfat,最好能精简。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-4 09:14:16 | 显示全部楼层
@nonobenny
一般来说通用的内核配置都差不多,除了个别设备需要调整。
这个帖子主要是想帮助那些初次编译内核的童鞋少走弯路,调整过的项目和解释在开篇帖中已经提及,其中最主要的部分就是驱动(包括硬件驱动和文件系统驱动)。
但熟练的编译内核和精简设置就需要各位自己多动动手,多捣鼓才能熟,熟才能生巧。

这个配置是amd64的配置,如果用x86, 请自行微调。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

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

本版积分规则

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