安装Xwindow
由于种种原因。需要自己手动安装xwindow。但是,不需要你自己编译的。在/etc/apt/sourses.list文件中添加上一行。
deb
http://people.debian.org/~daenzer/dri-trunk-sid/ ./
然后
apt-get install xserver-xfree86-dri-trunk xlibmesa-gl1-dri-trunk drm-trunk-module-src
接着,我们就应该重新编译drm驱动模块了。
cd /usr/src
tar –zxvf drm-trunk.tar.gz
cd /usr/src/linux
make-kpkg modules
然后在/usr/src/下生成了模块包:
drm-trunk-module-2.4.20-ben10_2004.02.28-2_powerpc.deb
dpkg –i drm-trunk-module-2.4.20-ben10_2004.02.28-2_powerpc.deb
这样,我们就安装好了debian的显卡驱动模块了。
修改你的/etc/yaboot.conf
我的yaboot.conf如下:
## yaboot.conf generated by yabootconfig 1.0.5
##
## run: "man yaboot.conf" for details. Do not make changes until you have!!
## see also: /usr/share/doc/yaboot/examples for example configurations.
##
## For a dual-boot menu, add one or more of:
## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ
boot=/dev/hda9
device=hd:
partition=11
root=/dev/hda11
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
macosx=/dev/hda12
image=/vmlinux
label=benh
read-only
append="video=ofonly:radeonfb"
image=/vmlinux
label=benh-safe
read-only
append="video=ofonly"
image=/vmlinux.old
label=Linux
read-only
append="video=ofonly"
#defaultos=macosx
注意。现在我们的新内核的启动参数是video=ofonly:radeonfb
使用ybin把配置文件写入启动分区。
使用新的内核启动系统。然后modprobe radeon (这个是必须的,否则会黑屏的。)
startx。你的可以进入xwindow界面了。。。。。
如果你的xfree没有配置好,下面是我的配置文件。:)
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/truetype"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/lfp-fix/"
FontPath "/usr/X11R6/lib/X11/fonts/lfp-var/"
FontPath "/usr/X11R6/lib/X11/fonts/sharefont/"
FontPath "/usr/X11R6/lib/X11/fonts/freefont/"
FontPath "/usr/X11R6/lib/X11/fonts/ttfs/"
FontPath "/usr/X11R6/lib/X11/fonts/local/"
FontPath "/usr/share/AbiSuite/fonts/"
EndSection
Section "Module"
Load "xtt"
Load "extmod"
Load "dri"
Load "dbe"
Load "record"
Load "xtrap"
Load "glx"
#Load "speedo"
#Load "type1"
Load "freetype"
#Load "bitmap"
Load "xtt"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/input/mice"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
UseModes "Modes0"
HorizSync 30-70
VertRefresh 50-160
EndSection
Section "Device"
Identifier "Card0"
Driver "ati"
VendorName "ATI Technologies Inc"
BoardName "Radeon Mobility M6 LY"
BusID "PCI:0:16:0"
Option "UseFBDev" "true"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
EndSection
Section "DRI"
Mode 0666
EndSection
Section "Modes"
Identifier "Modes0"
# mode generated by Xeasyconf
Modeline "1024x768" 65.003 1024 1048 1184 1344 768 771 777 806 -HSync -VSync
EndSection
[
Last edited by sice on 2004-4-26 at 22:46 ]