在Dell Optiplex320上安装Gentoo

学校最近新买了一批Dell Optiplex320
机器比较烦人,BIOS根据Vista改过,所以无法正常安装Linux,硬件配置如下

# lspci
00:00.0 Host bridge: ATI Technologies Inc Radeon Xpress 200 Host Bridge (rev 01)
00:01.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge
00:12.0 SATA controller: ATI Technologies Inc SB600 Non-Raid-5 SATA
00:13.0 USB Controller: ATI Technologies Inc SB600 USB (OHCI0)
00:13.1 USB Controller: ATI Technologies Inc SB600 USB (OHCI1)
00:13.2 USB Controller: ATI Technologies Inc SB600 USB (OHCI2)
00:13.3 USB Controller: ATI Technologies Inc SB600 USB (OHCI3)
00:13.4 USB Controller: ATI Technologies Inc SB600 USB (OHCI4)
00:13.5 USB Controller: ATI Technologies Inc SB600 USB Controller (EHCI)
00:14.0 SMBus: ATI Technologies Inc SB600 SMBus (rev 13)
00:14.1 IDE interface: ATI Technologies Inc SB600 IDE
00:14.2 Audio device: ATI Technologies Inc SB600 Azalia
00:14.3 ISA bridge: ATI Technologies Inc SB600 PCI to LPC Bridge
00:14.4 PCI bridge: ATI Technologies Inc SB600 PCI to PCI Bridge
01:05.0 VGA compatible controller: ATI Technologies Inc RC410 [Radeon Xpress 200]
02:09.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)


可以看到,显卡是Radeon Xpress 200,主板是ATI,声卡也是。

由于无法正常启动,无奈之下只能只用随机副送的RF5了,首先安装好RF5,下载Gentoo stage3安装包
下面的步骤就不详细说明了,请参看Gentoo handbook。着重说下和普通机器配置不同的地方

首先在编译内核的时候,不要选择ALSA和OSS,因为暂时内核中的驱动对这块声卡无法正常使用
编译好内核后,改grub,在kernel XXX后加上pci=routeirq clocksource=acpi_pm atapi_enabled=1
我的是kernel /boot/vmlinuz-2.6.22 root=/dev/sda9 pci=routeirq clocksource=acpi_pm atapi_enabled=1
否则,无法正常启动,会有一个类似PCI:XXXXXX的错误提示

这样就能正常进入系统了,之后X -configure得到xorg.conf.new
cp ~/xorg.conf.new /etc/X11/xorg.conf
如果尚未安装ati驱动,就emerge ati-drivers来安装ati显卡驱动,最后aticonfig --initial /etc/X11/xorg.conf
这样显卡驱动就搞定了
下面来解决声卡问题,先emerge alsa-driver alsa-utils
安装声卡驱动,之后alsaconf来让alsa自动搜索声卡
如果无误,声卡就会安装完毕了

之后的事情,就看你自己了哦,反正驱动都安装好了…如果emerge了X,就startx吧~ 🙂

最后附上我的内核config文件
config-2622.txt

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.